No error light
TC returns 0 (no errors)
MG _XQ return -1 showing that the program is not running.
Kenny, that is a good idea to execute it in thread 2. Right now I'm just using SmartTerm to try and diagnose the Galil card so any mach interactions are out of the picture, but that could have caused the initial problem.
FWIW here is the whole program:
#AUTO
REM This program automatically starts with power on
REM and continiously monitors the status of the servo
REM motors. If any motor is turned off then all motors
REM will be turned off and the brakes applied. If all
REM servo motors are on the brakes will be released.
REM It also reads the extended inputs and pops them into
REM the unused auxillary encoder registers so we can
REM read the inputs easily through the DR in Mach III.
XQ #START,2
EN
#START
IF (_MOA=1)|(_MOB=1)|(_MOC=1)
MG "Motors OFF"
SB 80
SB 74
MO
ELSE
MG "Motors ON"
CB 80
CB 74
ENDIF
DE (256*_TI3)+_TI2,(256*_TI5)+_TI4,(256*_TI7)+_TI6,(256*_TI9)+_TI8
WT 1000
JP #START
EN
#ININT
MG "Servos OFF, Brakes ON"
REM Turn the brakes ON, stop all axis
SB 74
SB 80
ST XYZ
RI