
6.COMPENSATION FUNCTION PROGRAMMING B-63944EN-2/02
- 178 -
In such a case, it is possible to prevent overcutting by specifying a
command with the exactly the same direction as the advance direction
immediately before movement along the Z axis beforehand, after the
tool is moved along the Z axis using the above rule.
N1 G91 G00 G41 X500.0 Y400.0 D1 ;
N2 Y100.0 ;
N3 Z-250.0 ;
N5 G01 Z-50.0 F100 ;
N6 Y1000.0 F200 ;
Workpiece
N1
N6
fter compensation
N2
N3, N5 : Move command for the Z axis (2 blocks)
As the block with sequence No. N2 has the move command in the
same direction as that of the block with sequence No. N6, the correct
compensation is performed.
Alternatively, it is possible to prevent overcutting in the same way by
specifying an IJ type vector with the same direction as the advance
direction in the start-up block, as in N1 G91 G00 G41 X500. Y500. I0
J1 D1;, after the tool has moved along the Z axis.