diff --git a/iocsh/plc/grbl.plc b/iocsh/plc/grbl.plc index 69581a1..6dec1bf 100644 --- a/iocsh/plc/grbl.plc +++ b/iocsh/plc/grbl.plc @@ -1,4 +1,3 @@ - # # Test of GRBL plugin for g-code parsing # @@ -6,7 +5,8 @@ println('GRBL busy:', grbl_get_busy()); if(not(grbl_get_busy())) { - println('Retrigger g-code!!'); + static.counter+=1; + println('Retrigger g-code. Counter: ', static.counter); grbl_set_execute(0); - grbl_set_execute(1); + grbl_set_execute(1); };