Hello,
I need a lua code for check if the gcode is running or not.
I try set one led on screen with (File Running, File Feed Hold), and this work on led, while start ou pause run the led is on, if stop the led turm off.
I create a lua script that ckeck is this led is on or off:
State = scr.GetProperty("RunningLed","Value")
if State == 1 then
print ("led on")
else
print ("led Off")
end
for some reason (I think that is a bug) return always ON.
The same script for other diferente led, work OK
Any tip??