From 161ff92c258f3d7c8f43f99c5c1c0b26b3544f22 Mon Sep 17 00:00:00 2001 From: Anders Sandstrom Date: Wed, 26 Jan 2022 16:51:26 +0100 Subject: [PATCH] Retrigger code buffer works.. --- iocsh/plc/grbl.plc | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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; +}; + + + +