The invention discloses a digital controlled drilling machine capable of automatically adjusting the depth of a hole. The digital controlled drilling machine capable of automatically adjusting the depth of the hole comprises a drilling machine body, an axial driving mechanism, a workpiece clamping and fixing mechanism, a rotation driving mechanism, a control system, a lifting support frame, a horizontal bracket, and a lifting and driving mechanism. The workpiece clamping and fixing mechanism is installed right above the lifting support frame through the horizontal bracket. The control system comprises a second electrical parameter detection unit, a lifting height detection unit, a first parameter input unit, a second parameter input unit, a main controller, a first electromagnetic control switch, a lifting speed detection unit, a lifting direction detection unit, a data storage unit, and a display unit, wherein the main controller is used for controlling the lifting and driving mechanism according to information input by the first parameter input unit and then adjusting the depth of the hole to be drilled at present, and the first electromagnetic control switch is connected with a power supply return circuit of the axial driving mechanism in series. The digital controlled drilling machine capable of automatically adjusting the depth of the hole has the advantages of being reasonable in design, convenient to install and arrange, simple in use and operation, high in intellectualization degree, good in using effect, and capable of automatically adjusting and monitoring the depth of the hole to be drilled easily and conveniently.