G40: Tool radius compensation cancel
Cancels the set tool radius compensation amount (G41, G42).
Code
G40
Processing details
• The G40 command cancels the set tool radius compensation amount (G41, G42) and performs positioning.
• Refer to tool radius compensation for details of tool radius compensation. (Page 183 Tool radius compensation)
Program example
■Program that cancels tool radius compensation (left)
Tool radius compensation amount is "compensation No.: 10", "compensation amount: 10[mm]"
Operation
Program
(1)
G90 X0. Y0.
(2)
G91 G01 G41 X40. Y40. D10 F500.
(3)
G01 X30.
(4)
G40 X30. Y-40.
*1 Describes the tool center position.
Y
70
60
50
40
30
(2)
20
10
(1)
10
20 30 40 50 60 70
5 G-CODE CONTROL PROGRAMS
126
5.6 G-Code
Format
G40 X x
Y y
Coordinate command
(3)
(4)
X
80 90 100
Remarks
Move to "X0,Y0" by absolute position command
Move to "X40,Y50" by tool radius compensation start operation
Move to "X70" by straight line
Cancel tool radius compensation, move to "X0,Y0"
: Program path
: Tool center path
[Unit: mm]
*1