diff --git a/iocsh/plc/grbl.plc b/iocsh/plc/grbl.plc index 8b58e67..7769471 100644 --- a/iocsh/plc/grbl.plc +++ b/iocsh/plc/grbl.plc @@ -1,2 +1,15 @@ println('GRBL busy:', grbl_get_busy()); + +static.state; + +if(not(grbl_get_busy())) { + println('Retrigger g-code!!'); + grbl_set_execute(0); + grbl_set_execute(1); + static.state:=1; +}; + + + +