Disable jog in joint mode. SOLVED

More
19 Jan 2013 00:54 - 20 Jan 2013 14:57 #28805 by Miselph
Hi Folks,

I have a gantry based machine that is running nicely, EXCEPT that sometimes it drops back from axis (world?) to joint mode when you try and jog. At this point, if I have the X axis selected, it just moves one of my motors and racks the gantry. This could potentially be disastrous as it could lead to me damaging the gantry. So what I need it either a way of disabling jog in joint mode or preventing it from entering joint mode once the machine is homed.

Ideas please?
Last edit: 20 Jan 2013 14:57 by Miselph.

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

More
19 Jan 2013 21:17 #28825 by ArcEye
Replied by ArcEye on topic Disable jog in joint mode.
Hi

If you insert a single line into /usr/bin/axis (save a copy first) you can prevent jogging in joints mode

From line 2688 (approx)
def jog(*args):
    if not manual_ok(): return
    if not manual_tab_visible(): return
#insert the below line
    if joints_mode(): return
    ensure_mode(linuxcnc.MODE_MANUAL)
    c.jog(*args)

This will prevent jog working in joints mode

Obviously as with any edit, it will be lost when Linuxcnc is next upgraded.

Test this carefully to make sure it does exactly what you want on your machine, I just did it in the gantry sim

regards

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

More
19 Jan 2013 23:53 #28829 by ArcEye
Replied by ArcEye on topic Disable jog in joint mode.
This is a improved solution, because it allows jogging in either mode until homed
def jog(*args):
    isHomed=True
    for i,h in enumerate(s.homed):
        if s.axis_mask & (1<<i):
            isHomed=isHomed and h
    if not manual_ok(): return
    if not manual_tab_visible(): return
    if joints_mode() and isHomed : return
    ensure_mode(linuxcnc.MODE_MANUAL)
    c.jog(*args)

regards
The following user(s) said Thank You: Miselph

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

More
20 Jan 2013 14:56 #28856 by Miselph
Replied by Miselph on topic Disable jog in joint mode.
Thank you, ArcEye. Problem solved!

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

Time to create page: 0.230 seconds
Powered by Kunena Forum