Chapter 7
140
UM10372_PCNC440_Manual_0221A
PROgRAMMiNg
7.5.10 Wait on Input – M66
NOTE: These commands are only useful when the mill is equipped with the USB I/O Module (PN 32616).
There are four digital inputs available on the USB I/O module.
M66 P- | E- <L->
Word Definition
P- Species the digital input number from 0 to 3.
L-
Species the wait mode type:
• Mode 0: IMMEDIATE – no waing, returns immediately. The value of the input at that
me is stored in parameter #5399.
• Mode 1: RISE – waits for the selected input to perform a rise event.
• Mode 2: FALL – waits for the selected input to perform a fall event.
• Mode 3: HIGH – waits for the selected input to go to the HIGH state.
• Mode 4: LOW – waits for the selected input to go to the LOW state.
Q-
Species the meout in seconds for waing. 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.
7.6 Other Input Codes
7.6.1 Feed Rate – F
To set the feed rate, program: F~
Depending on the seng of the feed mode toggle, the rate may be in units-per-minute or units-per-
rev of the spindle. The units are those dened by the G20/G21 mode. The feed rate may somemes
be overridden as described in M48 and M49 above.
7.6.2 Spindle Speed – S
To set the speed in revoluons per minute (rpm) of the spindle, program: S~
The spindle turns at the commanded speed when it has been programmed to start turning. It is OK
to program an S word whether the spindle is turning or not. If the speed override switch is enabled
and not set at 100 percent, the speed is dierent from what is programmed. It is OK to program S0,
but the spindle does turn if that is done. It is an error if:
• The S number is negave