Jog with Callbutton()

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

Jog with Callbutton()

Postby CFSAB » Fri Jan 03, 2025 6:37 am

Hi

I have some external buttons connected through a MODBUS I/O module, with one of them i want to JOG the C axis, so when holding the button it keeps jogging and stops when the button is released.

But it seams that i have problem with exec.Callbutton(157); it starts jogging but does not stop; after some search, I found that I´m not the only one that has seen this. But i can´t find a button number to stop the jog?

Does anyone know how to jog with a macro? I will also later add a analog joystick and will have the same problem there.


Best Regards
Mikael
CFSAB
 
Posts: 8
Joined: Wed Dec 27, 2023 9:11 am

Re: Jog with Callbutton()

Postby RsX » Fri Jan 03, 2025 3:27 pm

Try these buttons. For example 157 to start jogging, 239 to stop

jog_buttons.png
User avatar
RsX
 
Posts: 59
Joined: Fri Oct 25, 2024 9:22 pm

Re: Jog with Callbutton()

Postby cncdrive » Sat Jan 04, 2025 9:25 am

You have to call the jog stop button for the axis of jog movement to stop the motion.
cncdrive
Site Admin
 
Posts: 4998
Joined: Tue Aug 12, 2014 11:17 pm


Return to Macros

Who is online

Users browsing this forum: bjornhallberg and 7 guests