by cncdrive » Tue Mar 07, 2017 4:52 pm
Hi Gerry,
Yes, I know, but I don't really know where to start writting examples.
Macro loops work the same as the macros, I mean it is the same language same function calls are available, the only difference is that the macro is running in a loop with a 50msec Sleep at the end of each cycle.
The code example I wrote above is basicly what we advicing not to do (executing motion from a macroloop), because macroloops are always running in the background and so if a cycle is ongoing and the macroloop adds movements to the buffer could possibly cause strange results.
However this one is kind of an exception, because it triggers on the Cycle stop and this ensures that the Cycle is not running when the motion is added to the buffer.
So, the macro loop can be used to make movements, but one must be careful about how it is done.