26
Fig. 11-3
G41: Tool compensation left in the direction of observation means of advancing the tool, the tool biased to
the left of the workpiece contour.
G42: Tool compensation left in the direction of observation means of advancing the tool, the tool biased to
the right of the workpiece contour.
As shown below:
Fig. 11-4
Program Example:
O0001
;
G90 G54 G17 G00 X0 Y0 S1000 M03
;
G41 X20.0 Y10.0 D01
;
Compensation start
G01 Y50.0 F100
;
X50.0
;
Y20.0
;
X10.0
;
G40 G00 X0 Y0
;
Compensation cancel
M05
;
M30
;
12. Macro Instruction
With variable method for CNC programming is called the numerical control macro programming. User
macro code can realize the variable assignment, arithmetic, logic, and conditional transfer and is beneficial to