Run a macro on Feedhold and Stop?

Here is where you can request new features or special features.

Re: Run a macro on Feedhold and Stop?

Postby ger21 » Tue Mar 07, 2017 4:43 pm

More macroloop examples would sure be nice. Not having written any, I didn't even know where to start.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2714
Joined: Sat Sep 03, 2016 2:17 am

Re: Run a macro on Feedhold and Stop?

Postby 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.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Previous

Return to Feature Request

Who is online

Users browsing this forum: No registered users and 8 guests