Programming instructions

ADT-CNC4620 Programming Manual
- 14 -
2.1.8. Program pause M00
Instruction format: M00 or M0
Instruction function: after other instructions of current block are executed, the program
pauses. Press the cycle start key to run next block.
2.1.9. Program running ends and return to program beginning M30
Instruction format: M30
Instruction function: after other instructions of current block are executed, the program
stops automatically, executes M05, M09, and the processing pieces increase by 1.
The cursor returns to the beginning of the program.
2.2. Programmable I/O instructions
2.2.1. Programmable input instruction M88
Instruction function: the user defines the function of standby input point.
Instruction format:M88 Pxx Lx Qxxxx
P is used to specify the value range of output port number 0-23.
L is used to specify the valid input level, “1” is high voltage level and “0” is low voltage level.
Q is used to specify the testing time in the unit of ms.
Note 1: if specified voltage level isn’t detected in the time specified by Q instruction, the alarm
prompts “abnormal program termination error”.
Note 2: if Q instruction isn’t specified, the system will always wait for input signal by default,
and won’t execute next instruction until the signal is valid.
Note 3: if the specified port isn’t in the range 0-23, the alarm prompts “specified port number
error”.
Note 4: if P instruction isn’t written, the alarm prompts “specified port number error”.
2.2.2. Programmable output instruction M89
Instruction function: the user defines the function of standby output point.
Instruction format: M89 Pxx Lx
P is used to specify the value range of output port number 0-23.
L is used to specify the valid output level, “1” is high voltage level and “0” is low voltage level.
Note 1: if the specified port isn’t in the range 0-23, the alarm prompts “specified port number
error”.
Note 2: if P instruction isn’t written, the alarm prompts “specified port number error”.
2.3. Principal axis function (S instruction)
S instruction consists of instruction address S and later digits, and is used to control the
rotation of principal axis.