Programming instructions

ADT-CNC4620 Programming Manual
- 6 -
O0001; (program name)
G0 X100 Z50; (quickly locate point A)
M12; (clamp the workpiece)
T0101; (replace tool #1 and execute tool #1 offset)
M3 S600; (start the principal axis, and set the principal axis rotation to 600rpm)
M8 (coolant on)
G1 X50 Z0 F600; (approach point B at the speed of 600mm/min)
W-30 F200; (cut from point B to point C)
X80 W-20 F150; (cut from point C to point D)
G0 X100 Z50; (quickly back to point A)
T0100; (cancel tool offset)
M5 S0; (stop principal axis)
M9; (coolant off)
M13; (release workpiece)
M30; (program ends, principal axis/coolant off)
%
After above program, the tool will have a track of ABCDA.
1.8. General structure of program
The program consists of several block started with “OXXXX” (program name) and ended with “%”,
while block consists of several instruction words started with block number (can be omitted),
changed line with “CR” and ended with “LF”. The general structure of a program is shown in Fig.
1-3-2 below:
Instruction word Program name
Block end Block switch symbol
Block No. Block
Program end symbol
Fig. 1-8 General Program Structure
1) Program name
To identify the programs, every program has a name consists of instruction address O and
four digits later in the start of the program. This system can save up to 9999 programs,
and the program names can’t repeat.
□□□□