M-Series Operator’s Manual 4/9/15
Example:
; PLC program fragment
CNC_program_running is SV_PROGRAM_RUNNING ;program running indicator
M15 is SV_M94_M95_15 ; M function 15 indicator
drill_out is OUT5 ; air drill output relay
if M15 && CNC_program running then (drill_out) ; Drill On if M94/15 and the
; CNC program is running. Drill
; Off if M95/15 or the CNC
; program is terminated.
M41, M42, M43 – Select Spindle Gear Range (Macros)
M41, M42, and M43 have no default actions, and therefore custom macros must be defined for these M codes in
order to make this feature work. If defined, these macros notify the PLC of which spindle gear range is selected
according to the following table:
Macro M function Action
M41 Select Low Gear Range
M42 Select Medium-Low Gear Range
M43 Select High Gear Range
Note that selecting a “Medium-High” Gear Range is currently not supported by this schema, although that would
not prevent a system intergrator from defining another custom macro M function to do that.
M60
–
5-Axis Digitizing Macro
The M60 is used only when digitizing with the 5-Axis Tilt Table system.
The M60 uses user variables to assign a “Start Position” and a “Finish Position” for 5-Axis Digitizing. When the M60
is executed, the probe will be moved from the start position to the end position. If during the motion the probe detects a
surface, the surface position is recorded, and the probe returns to the start position. If no surface is found the probe
returns to the start position.
The following variables are to be assigned before the M60 is called, the M60 will then use the positions as assigned by
the user variables:
#29100 = X-Axis Probing vector start point (Initial Position)
#29101 = Y-Axis Probing vector start point (Initial Position)
#29102 = Z-Axis Probing vector start point (Initial Position)
#29103 = A-Axis Probing vector start point (Initial Position)
#29104 = B-Axis Probing vector start point (Initial Position)
#29110 = X-Axis Probing vector end point
#29111 = Y-Axis Probing vector end point
#29112 = Z-Axis Probing vector end point
Upon a successful probe the M60 will use an M122 to save the probed position to a text file that should be opened
using an M120 or M121 before calling the M60