Due to high demand and worldwide supply chain issues, we are experiencing longer than normal delivery time frames for many Tormach machines and accessories. We appreciate your patience during this time.
Note: The ONLY way to secure a machine that is currently on backorder is to place an order for one. You may place a deposit to hold your spot in line for machines arriving. Without an order, any dates presented on our website are subject to change with demand.

WAIT ON INPUT (M66)

NOTE: This command is only useful when the mill is equipped with the USB M-Code I/O Interface Kit.

There are four digital inputs available on the USB I/O module.

M66 P- | E-

  • P- is the digital input number from 0 to 3.
  • L- is the wait mode type:
    • Mode 0: IMMEDIATE – no waiting, returns immediately. The value of the input at that time 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- 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.