Soft Limit Setup
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
- Posts: 200
- Thank you received: 10
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 or Create an account to join the conversation.
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 or Create an account to join the conversation.
There is usually a button to 'override limits' to back away off the limit switches.
Please Log in or Create an account to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
- Posts: 200
- Thank you received: 10
So isn't the Min_Limit and Max_Limit the travel limits, and not fault limits?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19196
- Thank you received: 6434
Please Log in or Create an account to join the conversation.
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 or Create an account to join the conversation.
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:
Attachments:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
- Posts: 200
- Thank you received: 10
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 or Create an account to join the conversation.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
- Posts: 200
- Thank you received: 10
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:
Please Log in or Create an account to join the conversation.