10: PROGRAMMING
To disable the spindle speed override control, program: M51
P0
When spindle speed override control is disabled, the spindle
speed override slider has no influence, and the spindle speed is
equal to the value of the S word.
10.4.9 Set Current Tool Number (M61)
To change the current tool number while in MDI or manual
mode, program: M61 Q~
l Q~ is the tool number
Troubleshooting
It's an error if:
l Q~ is not 0 or greater
10.4.10 Set Output State (M64 and M65)
Note: These commands are only useful when the
machine is equipped with the USBM-Code
I/OInterface Kit.
There are four output relays available on the USB I/O module.
To activate output relays (contact close), program: M64
To deactivate output relays (contact open), program: M65
There are four contacts, numbered from 0 to 3. The contact is
specified by the P word.
E X A M P L E
l Activating the first relay: M64 P0
l Activating the second relay: M64 P1
The outputs are deactivated using M65 with the P word
specifying the relay.
E X A M P L E
l Deactivating the second relay: M65 P1
l Deactivating the fourth relay: M65 P3
There is only one P word and one relay per line. Each relay
command must be done on an individual line.
The following is legal:
M64 P0
M64 P2
M64 P3
The following is not legal:
M64 P023
M64 P0 P2 P3
10.4.11 Wait on Input (M66)
Note: This command is only useful when the machine
is equipped with the USBM-Code I/OInterface Kit.
There are four digital inputs available on the USB I/O module.
M66 P- | E- <L->
l P- is the digital input number from 0 to 3.
l L- is the wait mode type:
o
Mode 0: IMMEDIATE – no waiting, returns
immediately. The value of the input at that time is
stored in parameter #5399.
o
Mode 1: RISE – waits for the selected input to
perform a rise event.
o
Mode 2: FALL – waits for the selected input to
perform a fall event.
o
Mode 3: HIGH – waits for the selected input to go to
the HIGH state.
o
Mode 4: LOW – waits for the selected input to go to
the LOW state.
l Q- is the timeout in seconds for waiting
The Q value is ignored if the L word is zero (IMMEDIATE). A Q
value of zero is an error if the L word is non-zero.
10.4.12 USB Camera Control (M301, M302, M303)
PathPilot supports three new M-codes to control cameras
within G-code programs:M301, M302, and M303. Example use
cases:
l Record only across each M01 stop where the operator
needs to flip a workpiece or change a tool.
l Create short videos that focus on unique aspects of the
program to reduce later video editing.
l Record USB IO integration operations with robots or
other devices (pneumatic vises, etc.).
l Monitor progress on a workpiece by including M303
throughout the program.
To begin a video recording by an attached camera,
program:M301
To stop a video recording by an attached camera, program:
M302
To take a picture with an attached camera, program:M303
©Tormach® 2023
Specifications subject to change without notice.
Page 217 Tormach 1100M® Operator's Manual (Version 1223A)
For the most recent version, see tormach.com/support