13. Program Support Functions
Work coordinate system offset
By using variable numbers #5201 to #532n, it is possible to read out the work coordinate system
offset data or to substitute values.
(Note)
The number of axes which can be controlled differs according to the specifications.
The last digit in the variable number corresponds to the control axis number.
Axis No.
Axis name
External work offset #5201 #5202 #5203 #5204 . . #520n
G54
G55
G56
G57
G58
G59
(Example 1)
N1 G28 X0 Y0 Z0 ;
N2 #5221=-20. #5222=-20. ;
N3 G90 G00 G54 X0 Y0 ;
N10 #5221=-90. #5222=-10. ;
N11 G90 G00 G54 X0Y0 ;
M02 ;
(Example 2)
N100 #5221=#5221+#5201 ;
#5222=#5222+#5202 ;
#5241=#5241+#5201 ;
#5242=#5242+#5202 ;
#5201=0 #5202=0;
This is an example where the external workpiece offset values are added to the work coordinate
(G54, G55) system offset values without changing the position of the work coordinate systems.
Axis 1 Axis 2 Axis 3 Axis 4 . . Axis n
#5221 #5222 #5223 #5224
#5241 #5242 #5243 #5244
#5261 #5262 #5263 #5264
#5281 #5282 #5283 #5284
#5301 #5302 #5303 #5304
#5321 #5322 #5323 #5324
G54 work coordinate
system defined by
N10
Base machine coordinate system
Coordinate system
before change
Base machine coordinate system
Coordinate system
after change
204
13.5 User macro specifications
External workpiece offset
specifications are required.
. . #522n
. . #524n
. . #526n
. . #528n
. . #530n
. . #532n
N1
-90.
W1
N11
G54 work coordinate
system defined by
N2
External workpiece offset
G55
W2 (G55)
G55
W2 (G55)
Remarks
-20.
N3
-10.
-20.
W1
M
G54
W1 (G54)
M
G54
W1 (G54)