example plc: Add printout of cycles.

This commit is contained in:
Anders Sandstrom
2022-01-31 17:28:30 +01:00
parent bbfecde0b5
commit 41e489e2ab

View File

@@ -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);
};