Darc,
Acualy after testing the code out I found that since the estop is active I'm unable to Home the axis (obviously

) via the macro pump.
If your trying to not allow the operator to run Gcode you could put the above code on the Gcode button and add the "DoButton (0) 'Play Gcode" and add "DoOEMButton(290-295) to disable jog movment of each axis".
PS I belive we're looking for a
=0 value is sent if the axis are ref homePut this on the Start Gcode button:
If GetLed (808)=1 Then 'Std Y axis home LED
DoOEMButton (1021) 'Estop OEM LED
CODE "(HOME MACHINE BEFORE USE)"
Else
DoButton (0) 'Strat Gcode
End If
Put this in the macro Pump:
If GetLed (808)=1 Then 'Std Y axis home LED
DoOEMButton (250) 'Stop Jog X
DoOEMButton (251) 'Stop Jog Y
DoOEMButton (252) 'Stop Jog Z
DoOEMButton (253) 'Stop Jog A
DoOEMButton (254) 'Stop Jog B
CODE "(HOME MACHINE BEFORE USE)"
Else
DoOEMButton (290) 'Allow Jog X
DoOEMButton (291) 'Allow Jog Y
DoOEMButton (292) 'Allow Jog Z
DoOEMButton (293) 'Allow Jog A
DoOEMButton (294) 'Allow Jog B
CODE "(Ready to go)"
End If
If a talented VB coder would add in a "SUb Main" and "Sub exit" to have it exit the macro pump script once the Axis are homed that would be great
since there is no reason for Mach to keep check the code once the axis are refered.