
14.COMPENSATION FUNCTION PROGRAMMING B-63784EN/01
- 604 -
- Offset mode cancellation
In offset mode, executing a block satisfying either or both of the
following conditions causes the CNC to enter offset cancel mode:
1 G40 is specified.
2 0 is specified as the code for specifying the amount of cutter
compensation (D code).
The command used to perform offset cancellation must be G00 or G01,
not any other G code such as a circular interpolation command (G02 or
G03) or involute interpolation command (G02.2 or G03.2). Otherwise,
an alarm will be issued.
- Formulas
The three-dimensional cutter compensation vector at the N2 end point
in the following program can be calculated as follows:
1. Part program
A part program may be created with a workpiece coordinate
system.
G42.5 D1;
N1 X
1
x
Y
1
y
Z
1
z
A
1
a
C
1
c
;
N2 X
2
x
Y
2
y
Z
2
z
A
2
a
C
2
c
;
N3 X
3
x
Y
3
y
Z
3
z
A
3
a
C
3
c
;
2. Definition of symbols
P = (
1
x
,
1
y
,
1
z
)
Q = (
2
x
,
2
y
,
2
z
)
R = (
3
x
,
3
y
,
3
z
)
P0: Origin of the table coordinate system (parameter No. 6154)
A: Tool rotation axis
C: Table rotation axis