
B-63784EN/01 PROGRAMMING 14.COMPENSATION FUNCTION
- 577 -
Examples
O300 is sample program 3.
In this example, each side, 100 mm long, of an equilateral triangle is
created with the B-axis set, respectively, to 0, 30 to 60, and 60 degrees.
O300 (Sample Program3) ;
N10 G55 ;
Gets the programming coordinate system ready
N20 G90 X50.0 Y-70.0 Z300.0 B0 C0 ;
Moves the tool to the initial position.
N30 G01 G43.4 H01 Z20.0 ;
Starts tool center point control.
Moves the tool to an approach position.
H01 is a tool compensation number.
N40 X28.868 Y-50.0 Z10.0 B30.0 ;
Set the height of the surface to be cut to 10.0 mm along the Z-axis.
N50 Y50.0 ;
N60 B45.0 C120.0 ;
N70 X-57.735 Y0 B60.0 C180.0 ;
Moves the tool along the X- and Y-axes while keeping the B- and C-axes
operating.
N80 C240.0 ;
N90 X28.868 Y-50.0 ;
N100 X50.0 Y-70.0 Z20.0 B0 C360.0 ;
Set the X, Y, and Z coordinates of the approach position.
Moves the rotary axes to the previous position.
N110 G49 Z300.0 ;
Cancels tool center point control.
Moves the tool to the initial position along the Z-axis.
N120 M30;