M code
M16
M17
M18
M19
M40
M41
M42
M43
M44
M45
M46
M47
M48
M49
M50
M51
M66
M67
M64
M65
M62
M63
M60
M61
M88 Pn Lm
M89 Pn Lm Qt
In the machine tool, M code has two effects: one is to control the execution of the program, and the other
is IO operation, which is used to control the execution of spindle, cooling system and other auxiliary devices.
ADTECH9 Series CNC Programming Manual
Function
Output 10 port is in high voltage level
Output 10 port is in low voltage level
Output 11 port is in high voltage level
Output 11 port is in low voltage level
Output 12 port is in high voltage level
Output 12 port is in low voltage level
Output 13 port is in high voltage level
Output 13 port is in low voltage level
Output 14 port is in high voltage level
Output 14 port is in low voltage level
Output 15 port is in high voltage level
Output 15 port is in low voltage level
Output 16 port is in high voltage level
Output 16 port is in low voltage level
Output 17 port is in high voltage level
Output 17 port is in low voltage level
Output 20 port is in high voltage level
Output 20 port is in low voltage level
Output 21 port is in high voltage level
Output 21 port is in low voltage level
Output 22 port is in high voltage level
Output 22 port is in low voltage level
Output 23 port is in high voltage level
Output 23 port is in low voltage level
Check whether input IO (IN n) voltage level is m (high/low),
continue to wait if not true
Output: OUT n, voltage level: m, delay t ms output, or execute
immediately if there is no t
Need help?
Do you have a question about the ADTECH9 Series and is the answer not in the manual?