Default M functions
Channel M functions
In conformity with DIN66025, the following M functions are assigned fixed defaults as CNC commands. Unless specified accordingly in the channel parameter list, they are neither output nor synchronized.
M function | Meaning |
---|---|
M00 | Programmed halt |
M01 | Optional halt |
M02, M30 | Main program end |
M17, M29 | Subroutine end |
M10 | Optional function: activation of 'axis clamping' (channel-specific output) [SYSP - Chapter 3.18]. Only MNS_SNS permitted |
M11 | Optional function: deactivation of 'axis clamping' (channel-specific output) [SYSP - Chapter 3.18]. Only MVS_SVS permitted. |
The parameter P-CHAN-00041 (m_synch[..]) must be assigned for channel or axis-specific output! |
Spindle M functions
As defined in DIN66025, the following M functions are assigned fixed defaults for the control of spindles. Unlike for other M functions, a synchronization method is specified for each spindle under the special parameters in the channel parameter list [CHAN] (excepting M40 , 45).
M function | Meaning |
---|---|
M03 | Endless clockwise spindle rotation |
M04 | Endless counterclockwise spindle rotation |
M05 | Stop spindle |
M19 | Position spindle |
M40 45 | Gear selection for the main spindle |
Example
Spindle output
spindel[0].m3_synch 0x00020002 PLC_INFO, MVS_SVS
spindel[0].m4_synch 0x00020004 PLC_INFO, MVS_SNS
Channel output
m_synch[3] 0x00000002 Channel output