Jogging while in MDI mode

More
4 years 1 day ago - 4 years 1 day ago #255622 by funkenjaeger
Well, for what it's worth, a very small change to qtdragon_handler.py (see attached) was enough to get it to automatically kick back into Manual mode after running an MDI command.  The qtdragon gui button indicators for Manual/MDI update accordingly without me needing to intervene.

I tried triggering this off signals like `command-stopped` but it wasn't working for single MDI commands - I'm guessing based on the code where these signals are emitted (in hal_glib.py) that since they're based on polled status, running a single MDI command happens so quickly that the status change from RCS_DONE to RCS_EXEC and back to RCS_DONE happens too quickly for it to even register the state change and trigger the signal(s).

I'll play with it some more to look for unintended consequences, but I'm cautiously optimistic that this small change might suffice.
Last edit: 4 years 1 day ago by funkenjaeger.

Please Log in or Create an account to join the conversation.

More
4 years 1 day ago #255630 by spumco
Replied by spumco on topic Jogging while in MDI mode
Nice job with the diagnostics, and thanks for reporting back.  Might help someone else in the future (like me!)

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #255818 by spumco
Replied by spumco on topic Jogging while in MDI mode

Like you, the vc-p4s.hal file has me scratching my head with all the joint references... especially since my machine is XYYZ so Joint 2 is the second Y axis motor, not the Z axis. But it seems to work as is, so I've left well enough alone...


 

I just had a brain wave...

I think the vc-p4s is referencing both joint and teleop jog so the pendant works before and after homing the machine.  In your case, you probably have a forced-homing-before-jog feature turned on, so you'd never notice a joint jog.  And in my simple XYZA mill I don't notice the difference between pre- and post-homing jogs.

But you'd better be sure not to turn off forced homing...I bet the p4s could rack your gantry in joint mode with the hal file as-is.

Please Log in or Create an account to join the conversation.

More
3 years 11 months ago #255836 by funkenjaeger

But you'd better be sure not to turn off forced homing...I bet the p4s could rack your gantry in joint mode with the hal file as-is.

Somewhat ironically, the logic in emcmotCommandHandler that started this whole inquiry protects me from exactly that, regardless of any other settings that might be in place - because I (necessarily) have my two Y joints set to synchronous homing.



 
The following user(s) said Thank You: spumco

Please Log in or Create an account to join the conversation.

Time to create page: 0.227 seconds
Powered by Kunena Forum