How To Jog An Axis From Marco

Post anything you want to discuss with others about the software.

How To Jog An Axis From Marco

Postby WillieHutch » Thu Feb 10, 2022 8:54 am

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
WillieHutch
 
Posts: 2
Joined: Sat Feb 05, 2022 6:26 pm

Re: How To Jog An Axis From Marco

Postby dezsoe » Thu Feb 10, 2022 12:24 pm

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.)
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary


Return to General discussion about the UCCNC software

Who is online

Users browsing this forum: No registered users and 26 guests