26
Addendum B
Listing of Provided Macros
The following
macros
are provided with the InTurn™ system. The numbering in some cases mimics
standard ‘M’ codes except they are 4000 series. Some are grouped into logical On/Off pairs
separated by 10.
Macro
Function
M4000
Disable 4
th
axis Drive
M4001
Enable 4
th
axis Drive
M4002
Home 4
th
axis
M4003
Spindle ON Clockwise Rotation
M4004
Spindle ON Counter Clockwise
M4005
Spindle OFF
M4006
SET target RPM (use ‘P’ parameter)
M4007
SET target SFM (use ‘P’ parameter) (SMM for Metric users)
Pair
M4008
LOCK Spindle
M4018
UNLOCK Spindle
M4010
Select LATHE Mode
M4011
Select INDEX mode
M4013
Select SetSpeed Mode
M4014
Select AutoSpeed Mode
M4015
Spindle OFF
M4019
SET follow Axis to Y
M4020
SET follow Axis to Z
M4444 Initialization
–turns off spindle, disabled drive, displays AutoSpeed params
Note: many of these macros do nothing except call
other ‘named’ macros which are also provided.
‘Named’ macros have descriptive names instead of the cryptic ‘M’ designations, but they cannot be
run by the CNC system.
MACH3 treats named macros differently than traditional CNC ‘M’ macros and there are technical
reasons that it is preferable to use them. Leave all named macros in the
same folder with the ‘M’
macros
. Named macros typically start with ‘4
th
’ and would appear as this example:
“4thSpindleONccw.m1s”.