- Posts: 198
- Thank you received: 0
Soft Limit Setup
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
-
Less
More
2 years 5 months ago #301627
by Project_Hopeless
Soft Limit Setup was created by Project_Hopeless
I'm working with a sim at present prepping for the real machine. If I jog into a limit the sim/machine faults and I cannot reverse direction to get out of the limit.
Is there a way to setup soft limits so the machine stops motion at the limit, doesn't fault, and can still reverse motion without needing to disable limits or re-home?
Is there a way to setup soft limits so the machine stops motion at the limit, doesn't fault, and can still reverse motion without needing to disable limits or re-home?
Please Log in to join the conversation.
2 years 5 months ago #301628
by pippin88
Replied by pippin88 on topic Soft Limit Setup
Limit switches should never be hit in normal function and will only occur because of a fault (in a properly configured setup).
I don't believe a function to not fault when limits triggered exists (nor should it)
There is the maximum physical travel of the machine (usually with limit switches close to either end of this).
Then there are the 'soft limits'/ axis travel defined in your ini file.
E.g. real max physicial travel 320mm.
Limit switches 5mm from either end = 310mm between limit switches
Axis travel 300mm
Then you need to tell LinuxCNC where the axis is (in relation to the actual allowable physical travel / limits)
Usually done with a home switch inside limits, or using on limit switch as home+limit
If axis not homed correctly, then you can end up hitting limits
I don't believe a function to not fault when limits triggered exists (nor should it)
There is the maximum physical travel of the machine (usually with limit switches close to either end of this).
Then there are the 'soft limits'/ axis travel defined in your ini file.
E.g. real max physicial travel 320mm.
Limit switches 5mm from either end = 310mm between limit switches
Axis travel 300mm
Then you need to tell LinuxCNC where the axis is (in relation to the actual allowable physical travel / limits)
Usually done with a home switch inside limits, or using on limit switch as home+limit
If axis not homed correctly, then you can end up hitting limits
Please Log in to join the conversation.
2 years 5 months ago #301629
by cmorley
Replied by cmorley on topic Soft Limit Setup
Did you home the machine?
There is usually a button to 'override limits' to back away off the limit switches.
There is usually a button to 'override limits' to back away off the limit switches.
Please Log in to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 198
- Thank you received: 0
2 years 5 months ago #301630
by Project_Hopeless
Replied by Project_Hopeless on topic Soft Limit Setup
There are no limit switches, I'm in Sim mode presently. So over travel should not be possible.
So isn't the Min_Limit and Max_Limit the travel limits, and not fault limits?
So isn't the Min_Limit and Max_Limit the travel limits, and not fault limits?
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22009
- Thank you received: 3
2 years 5 months ago #301631
by tommylight
Replied by tommylight on topic Soft Limit Setup
I just tested Axis sim mm, it does not exceed limits, so how are you able to exceed them?
Please Log in to join the conversation.
2 years 5 months ago #301636
by cmorley
Replied by cmorley on topic Soft Limit Setup
Please answer the questions explicitly.
Did you home the machine?
You don't need home switches or limits switches or a real machine to home the machine.
Homing sets the reference for the machine origin which sets the soft limits.
If you didn't home - the machine doesn't know where it is.
Did you home the machine?
You don't need home switches or limits switches or a real machine to home the machine.
Homing sets the reference for the machine origin which sets the soft limits.
If you didn't home - the machine doesn't know where it is.
Please Log in to join the conversation.
2 years 5 months ago #301669
by Aciera
Replied by Aciera on topic Soft Limit Setup
If this for your robot and you are using custom kinematics/ switchable kinematics you will need to switch the axis limits from cartesian to joint when switching from 'World' to 'Joint' mode (and the other way around).
For an example have a look at the 'millturn' sim config.
M428/M429 will call 'M128/M129' respectively which is where the axis limits are switched between the two sets defined in the ini.
[edit]
Here is the melfa-sim config with axis limit switching added:
For an example have a look at the 'millturn' sim config.
M428/M429 will call 'M128/M129' respectively which is where the axis limits are switched between the two sets defined in the ini.
[edit]
Here is the melfa-sim config with axis limit switching added:
Attachment not found
Please Log in to join the conversation.
2 years 5 months ago #301672
by Aciera
Replied by Aciera on topic Soft Limit Setup
Note that when jogging in WORLD mode you will still be able to jog into the joint limits. That is a limitation of the current state of linuxcnc.
Please Log in to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 198
- Thank you received: 0
2 years 5 months ago #301711
by Project_Hopeless
I reset the robot, Home the robot, select World jog mode. Then if I jog into a limit I can't back out without disabling the axis limits or re-homing the arm.
All axis are rotary joints, so I thought when any individual joint approaches its limit it would soft stop. I really only need axis limits not Cartesian for a maximum usable envelope.
Replied by Project_Hopeless on topic Soft Limit Setup
Yes exactly, my 5-DOF robot.Aciera post=301669 userid=25994If this for your robot and you are using custom kinematics/ switchable kinematics you will need to switch the axis limits from cartesian to joint when switching from 'World' to 'Joint' mode (and the other way around).
I reset the robot, Home the robot, select World jog mode. Then if I jog into a limit I can't back out without disabling the axis limits or re-homing the arm.
All axis are rotary joints, so I thought when any individual joint approaches its limit it would soft stop. I really only need axis limits not Cartesian for a maximum usable envelope.
Please Log in to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 198
- Thank you received: 0
2 years 5 months ago #301713
by Project_Hopeless
Replied by Project_Hopeless on topic Soft Limit Setup
Thanks for the example. It will take me a while to grasp how this works.[edit]
Here is the melfa-sim config with axis limit switching added:
Attachment not found
Please Log in to join the conversation.
Time to create page: 0.127 seconds
