Page 1 of 1

How To Jog An Axis From Marco

PostPosted: Thu Feb 10, 2022 8:54 am
by WillieHutch
I Need to Jog An Axis From Marco
Only When Marco Is Called From Input .

When I Call The Marco The Axis Moves and Does Not Stop ??

This Is Code I Am Using
exec.Callbutton(147); // Move X Sevo Forward

Re: How To Jog An Axis From Marco

PostPosted: Thu Feb 10, 2022 12:24 pm
by dezsoe
Yes, the jog buttons are special. To stop the axis you have to press the jogoff button, e.g. if you start to jog with 147 (JogX+) then you have to stop it with 229 (JogXplusoff). The input triggers do it for you automatically, but if you call a macro to start the jog then you have to stop it somehow. Check the macroloop here. Instead of using input triggers you could use that sample macroloop to check for LEDs. (All inputs are mapped to LEDs, so you can watch an input instead of buttons.)