15. COMPENSATION FUNCTION
A compensation vector is created by extending the line between the
compensation center and the specified end point. The length of the
compensation vector equals to the offset value corresponding to the offset
number specified with the D code.
When the offset value is positive, the compensation vector is added to the
specified end point. When the offset value is negative, the compensation
vector is subtracted from the specified end point.
Offset value (+)
Tool center path
Offset value (–)
Specifying D0 cancels compensation mode, thus disabling the creation of
a compensation vector.
Specifying G40 selects a mode for holding the current compensation
vector. In this mode, the specified end point is shifted by the same vector
length until a different compensation mode is specified.
Specifying D0 in compensation vector hold mode clears the
compensation vector and cancels compensation mode.
D Compensation vector
D Canceling compensation
D Holding the