Hi,
this board concerns Mach3 screens rather more than Mach4....I think you'd get more views on the Mach4 General Discussion
board.
You can interogate Mach to determine the number of lines of Gcode are loaded:
LUA Syntax:
count, rc = mc.mcCntlGetGcodeLineCount(
number mInst)
If you used that in the PLC script, if count>=1 then Gcode is loaded and therefore set an LED to blink or whatever.
Craig