40 8025/8030 CNC PROGRAMMING MANUAL
Example:
The tool’s starting point is X0 Y0 Z5
N10 G00 G90 X-50 Y50 (Tool over the center of fig. 1)
N20 G20 N1.1 (Calling of subroutine number 1)
N30 X60 Y110 (Tool over the center of fig. 2)
N40 G20 N1.1
N50 X35 Y-90 (Tool over the center of fig. 3)
N60 G20 N1.1
N70 M30 (End of program.)
N100 G22 N1 (Definition of subroutine number 1)
N110 G31 (Store current datum point.)
N120 G92 X0 Y0 (Preselection of coordinate values)
N130 G1 Z-20 F350 (Shift the tool.)
N140 X— Y— (Programming of internal contour in Fig 1)
N ---
N ---
N ---
N ---
N ---
N200 G0 Z5 (Return the tool to starting point)
N210 G32 (Retrieve datum point stored by G31)
N220 G24 (End of subroutine.)