·78·
Programming manual
CNC 8055
CNC 8055i
5.
ISO CODE PROGRAMMING
·M· & ·EN· MODELS
SOFT: V02.2X
Auxiliary function (M)
5.7 Auxiliary function (M)
The miscellaneous functions are programmed by means of the M4 Code, it being possible to
program up to 7 functions in the same block.
When more than one function has been programmed in one block, the CNC executes these
correlatively to the order in which they have been programmed.
The CNC is provided with an M functions table with "NMISCFUN" (general machine parameter)
components, specifying for each element:
• The number (0-9999) of the defined miscellaneous M function.
• The number of the subroutine which is required to associate to this miscellaneous function.
• An indicator which determines if the M function is executed before or after the movement block
in which it is programmed.
• An indicator which determines if the execution of the M function interrupts block preparation or
not.
• An indicator which determines if the M function is executed or not, after the execution of the
associated subroutine.
• An indicator which determines if the CNC must wait for the signal AUX END or not (Executed
M signal, coming from the PLC), to continue the execution of the program.
If, when executing the M miscellaneous function, this is not defined in the M functions table, the
programmed function will be executed at the beginning of the block and the CNC will wait for the
AUX END to continue the execution of the program.
Some of the miscellaneous functions are assigned an internal meaning in the CNC.
If, while executing the associated subroutine of an "M" miscellaneous function, there is a block
containing the same "M", this will be executed but not the associated subroutine.
All the miscellaneous "M" functions which have an associated subroutine must be programmed alone
in a block.
In the case of functions M41 through M44 with associated subroutine, the S that generates the gear
change must be programmed alone in the block. Otherwise, the CNC will display error 1031.