The invention discloses a five-axis cutter length compensation method based on post-
processing. Firstly, the structure of a given five-axis
numerical control machine tool is analyzed, and thus a
kinetic model of the
machine tool is established and solved; secondly, post-
processing software having a five-axis cutter compensation function is developed based on a VisualC++ platform by using the
macro-variable and the numerical operation function provided by a
numerical control system; finally, the
pendulum length of a cutter is regarded as a
macro-variable and written into a
numerical control program obtained after post-
processing is conducted through the
software, and thus the compensation for the length of the five-axis cutter can be conveniently achieved by modifying the
macro-variable of the
pendulum length in the numerical control program. By means of the five-axis cutter length compensation method, the problem of cutter compensation of
machine tools which do not having the five-axis
radius compensation function can be solved, the phenomenon that post-processing is conducted again on preposition
cutter location data is avoided, and thus the
reusability of the numerical control program is improved. It is proved through practice that by means of the method, the five-axis cutter compensation function can be conveniently achieved, cost is low, and high
engineering application value is achieved.