Programming instructions
ADT-CNC4620 Programming Manual
- 7 -
Program No. (0000~9999, leading zero can’t be
omitted)
Instruction address O
2) Instruction word
Instruction word is the basic instruction unit for CNC system to complete the control
function. Instruction word consists of one English letter (instruction address) and later
digits (instruction value, signed or unsigned). Instruction address regulates the meaning of
following instruction value. In different combinations of instruction word, same
instruction address may have different meanings.
X
1000
X
-1000
Instruction address
Instruction value Instruction address
Instruction value
Instruction word Instruction word
3) Block switch symbol, block No. and block
A program consists of several blocks and is executed in blocks. Generally, a block is
executed only the previous block has been executed. Blocks are separated with “;” or “*”,
and “;” is used in this manual. A block consists of several instruction words, and is started
with block No. and ended with “;” or “*”.
For example: block may have “/” symbol in the front, which is called block switch symbol
4) When the program is run automatically, if the switch function is enabled, the program will
execute next block automatically when running to this block. If the switch function isn’t
enabled, this block will be executed. The option of switch function is in the auxiliary interface
of main menu. This function won’t be saved after power off, and it is disabled by default after
initialization.
/
N0100 G0 X200 Z300 ;
Block end symbol
Block No.
Block switch symbol
5) Block No.
N0000~N9999; the leading zero can be omitted. Block No. can be omitted, but the target
block for program call and switch must exist. The sequence of block No. may be random,
and the block No. in latter part doesn’t need to be larger than previous number. For the
convenience of reference, the line No. is usually arranged according to certain increment.
During manual editing, it is possible to determine whether insert line No. increment
automatically through No. 47 comprehensive parameter. The initialized value is 0, i.e. do
not insert line No. automatically.
6) Program end symbol
The program is started from program name and ended with “%”, which is the end symbol
of the program file. During communicating, “%” is the end symbol and start symbol.