Override limits

More
03 Mar 2020 00:54 #159053 by Nico2017
Override limits was created by Nico2017
Hi all,

is there a command equivalent to
self.c.override_limits()
but to disable the override limits.
When jogging away from a hard limit switch not being homed, the override get disable automaticly as soon as I move away. However when the machine is homed, I cannot disable the override if it has been enabled with self.c.override_limits().

Thank you,

Nicolas

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

More
03 Mar 2020 14:20 #159077 by bbsr_5a
Replied by bbsr_5a on topic Override limits
overriding the limits or setting this off is by far the WORST Case as it then can travel to the Hard limits and that kills the Liniaraxis tread ballscrew
or damage the machine at all
what are you trying to do as you want no Homing
10 Cherry switches is 5USD that gives you 3Per axis REF/MIN/MAX

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

More
05 Mar 2020 15:40 #159265 by andypugh
Replied by andypugh on topic Override limits

to disable the override limits.


There is a hint here that calling the function again will re-enable the limits
github.com/LinuxCNC/linuxcnc/blob/263115.../code-notes.txt#L521

But I have a feeling that actually you need to pass a negative number to un-override
github.com/LinuxCNC/linuxcnc/blob/345688...ask/taskintf.cc#L701

This is the code that is run when you use the Python function:
github.com/LinuxCNC/linuxcnc/blob/ee816b...s/emcmodule.cc#L1068

And I don't see a way to pass a negative number from that.
The following user(s) said Thank You: Nico2017

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

More
05 Mar 2020 20:55 #159280 by cmorley
Replied by cmorley on topic Override limits
In Qtvcp I looked up it's convenience function:
    # if called while on hard limit will set the flag and allow machine on
    # if called with flag set and now off hard limits - resets the flag
    def TOGGLE_LIMITS_OVERRIDE(self):
        if STATUS.is_limits_override_set() and STATUS.is_hard_limits_tripped():
            STATUS.emit('error',linuxcnc.OPERATOR_ERROR,'''Can Not Reset Limits Override - Still On Hard Limits''')
        elif not STATUS.is_limits_override_set() and STATUS.is_hard_limits_tripped():
            STATUS.emit('error',linuxcnc.OPERATOR_ERROR,'Hard Limits Are Overridden!')
            self.cmd.override_limits()
        else:
            STATUS.emit('error',linuxcnc.OPERATOR_TEXT,'Hard Limits Are Reset To Active!')
            self.cmd.override_limits()

Chris

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

Time to create page: 0.144 seconds
Powered by Kunena Forum