- Posts: 153
- Thank you received: 0
Override limits
6 years 7 months ago #159053
by Nico2017
Override limits was created by Nico2017
Hi all,
is there a command equivalent to
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
is there a command equivalent to
Code:
self.c.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 to join the conversation.
6 years 7 months ago #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
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 to join the conversation.
6 years 7 months ago #159265
by andypugh
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.
Replied by andypugh on topic Override limits
Nico2017 wrote: 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.
Please Log in to join the conversation.
6 years 7 months ago #159280
by cmorley
Replied by cmorley on topic Override limits
In Qtvcp I looked up it's convenience function:
Chris
Code:
# 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 to join the conversation.
Time to create page: 0.104 seconds
