Programming instructions
 ADT-CNC4620 Programming Manual 
- 10 - 
M40  Gear position speed setting output off   
M41  First gear speed output   
M42  Second gear speed output   
M43  Third gear speed output   
M44  Fourth gear speed output   
M88  Check the signa of specified input pin  Allow specifying effective input voltage level 
M89  Control the switch of specified output 
pin 
Allow specifying output voltage level 
Note: the instructions marked with “*” are valid after electrified. 
After the system executed the M instruction that output signal to machine tool, delay for a period 
and then execute following instruction word or block. The delay time is set by the system 
parameter M code waiting time. 
M code starts executing 
Delay time
Start executing following instruction word or block 
2.1.1. Subroutine call M98 
Instruction format: 
M98 P○○○ □□□□ 
Subroutine No. (0000~9999) being called. If 
the calling time isn’t entered, the leading 0 
of the subroutine No. can’t be omitted; if the 
calling time is entered, the subroutine No. 
must contain four digits. 
If the calling time (1-999) is 1, it isn’t required to 
enter 
Instruction function: after other iinstructions of current block are executed, the system 
won’t execute next block, but to execute the subroutine specified by P. The 
subroutine can be executed for 999 times at most. In MDI mode, the 
subroutine can’t be called. 
2.1.2. Return from subroutine and return to main program M99 
Instruction format:  M99 P○○○ (return from subroutine) 
Instruction function: when the called subroutine is finished, return to the block specified 
by P in the main program and continue to execution; if P isn’t entered, 
return to the next block of M98 instruction that calls current subroutine 
in the main program. If M99 is used in the end of the main program (i.e. 
current program isn’t called and executed by other programs), current 
program will execute repeatedly. M99 iinstruction is invalid in MDI 










