A height measurement method based on a height measurement assembly of a numerical control apparatus, wherein the height measurement assembly comprises a photoelectric signal collection array, a light source, a lens, and a processing portion, the light source being arranged on one side of the photoelectric signal collection array, light emitted out by the light source irradiating a plane to be measured of an assembly to be measured, and the lens being configured for focusing the light emitted out by the light source;
- and the height measurement method principally comprises:
- A1:
- driving the height measurement assembly to move on a coordinate axis of the numerical control apparatus through a preset positioning mechanism on the plane to be measured of the assembly to be measured, so as to obtain a preset movement distance corresponding to each movement;
- and acquiring reflected light patterns of several planes to be measured through the photoelectric signal collection array in each movement process, and acquiring a distance between adjacent reflected light patterns through the processing portion;
- and
- A2:
- acquiring a target height of the assembly to be measured through a preset height acquisition model according to each preset movement distance and the distance between adjacent reflected light patterns corresponding to each preset movement distance.