CNCezPRO™ Software

Real-Time 3D Graphics Simulation for Computer Numerical Control



G42 CUTTER COMPENSATION RIGHT
N_ G42 X_ Y_ Z_ F_
The G42 compensates the cutter a specified distance to the right-hand side of the programmed tool path. It is used to compensate for excessive tool wear or substitute a tool to profile a part.
Example G42
% (PROGRAM START FLAG)
:1013
N5 G90 G20 G40 G17 G80 (SETUP OF DEFAULTS)
N10 T01 M06 (TOOL CHANGE TO TOOL NUMBER 1)
N15 M03 S2000
N20 G00 X0.5 Y0.5
N25 Z0.1
N30 G01 Z-0.25 F5 (1ST PROFILE)
N35 X2 F15
N40 X2.5 Y1
N45 Y2
N50 G03 X2 Y2.5 R0.5
N55 G01 X0.5
N60 Y0.5
N65 G00 Z1 (END OF 1ST PROFILE)
N70 X0 Y0
N75 T04 M06 (TOOL CHANGE TO NUMBER 4)
N80 M03 S1000
N85 G00 X-0.5
N90 Z-0.5
N95 G01 G42 X0.5 Y0.5 Z-0.5 D11 F15 (2ND PROFILE WITH COMPENSATION)
N100 X2
N105 X2.5 Y1
N110 Y2
N115 G03 X2 Y2.5 R0.5
N120 G01 X0.5
N125 Y0
N130 G01 G40 Z0.25 (G40 COMPENSATION CANCEL)
N135 G00 Z1
N140 X0 Y0
N145 M05
N150 M30