From 41e489e2ab117a58b96c7c065a0b3ff31970ed9e Mon Sep 17 00:00:00 2001 From: Anders Sandstrom Date: Mon, 31 Jan 2022 17:28:30 +0100 Subject: [PATCH] example plc: Add printout of cycles. --- iocsh/plc/grbl.plc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); };