The invention discloses a device and method capable of measuring the drilling depth of a hydraulic 
drill carriage. The device comprises a 
drill bit, a 
drill pipe, a gripper, a gripper opening cylinderoil inlet 
pipe, a guide rail, a propulsion cylinder, 
rare earth magnets, a hydraulic chuck, a hydraulic chuck oil inlet 
pipe, a proximity switch, a 
gyrator reduction gearbox and a small water adaptersubstitute. The device and method capable of measuring the drilling depth of the hydraulic drill 
carriage have the beneficial effects that a drilling rig can accurately 
record the drilling depth in real time in the drilling process of the 
drill bit, and personnel does not need to 
record the number of drill pipes and supervise; the advance and retreat of the 
drill pipe are judged by the oil inletpipeline pressure of the hydraulic chuck, the pipeline pressure of the open side of the gripper, the pipeline pressure of the feeding side of an oil cylinder and the pipeline pressure of the retracting side of the oil cylinder, and the 
record of the positive and negative values of the 
stroke is convenient; the proximity switch is composed of an inductive element and a single-
chip microcomputer, and can sense a plurality of 
rare earth magnets for collecting signals so that the proximity switch can record the 
stroke when continuously sensing two 
rare earth magnets; and the small water adapter substitute is used for ventilation and drainage in the drilling process, and the 
punching operation is facilitated for workers.