Special functions
9.1 Auxiliary function outputs
Fundamentals
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
9-5
Caution
Function outputs in continuous-path mode
Function outputs before the traversing movements interrupt continuous-path mode
(G64/G641) and generate an exact stop for the previous block.
Function outputs after the traversing movements interrupt continuous-path mode
(G64/G641) and generate an exact stop for the current block.
Important:
wait for an outstanding acknowledgment signal from the PLC can also cause an
interruption to continuous-path mode, e.g. M command sequences in blocks with extremely
short path lengths.
9.1.1 M functions
Function
M functions can trigger, for example, switching operations such as "Coolant ON/OFF" and
other operations on the machine. Permanent functions have already been assigned to some
of the M functions by the control manufacturer (see list of predefined M functions).
Programming
M... Possible values. 0 to 9999 9999 (max. INT value), integer
Parameters
List of predefined M functions
M0* Programmed stop 1
M1* Optional stop
M2* End of main program with return to beginning of program
M30* End of program, same effect as M2
M17* End of subprogram
M3 Spindle clockwise
M4 Spindle counterclockwise
M5 Spindle stop
M6 Tool change (default setting)
M70 Spindle is switched to axis mode
M40 Automatic gear change
M41 Gear stage 1
M42 Gear stage 2
M43 Gear stage 3
M44 Gear stage 4
M45 Gear stage 5