Page 1 of 1

macroloop issue

PostPosted: Wed Oct 06, 2021 7:55 am
by girogiri
Hi all,

can someone explain why some instructions are bypassed inside a macroloop?
the attacched macro does not execute line 27 : "exec.Code("G0 G53 Z -40");" even if Gcode execution was stopped.
Lately we are facing many similar macroloop issue, are we doing something wrong?

thanks
Giorgio

Re: macroloop issue

PostPosted: Mon Oct 25, 2021 3:57 pm
by dezsoe
Because you stopped the machine. If you press the stop button then the exec.Ismacrostopped() gets true and exec.Code will exit without doing anything. Try calling exec.Codesync() which clears the Ismacrostopped.