Limit switch errors
07 Oct 2024 18:03 #311508
by WCDJ1993
Limit switch errors was created by WCDJ1993
https://discord.com/assets/7f809e89e310c87b2e3f.svg Hi all. Would appreciate some help please. Busy converting from my old BOB to Mesa. Everything has gone well so far, except for setting up my limit switches. Same behaviour on all switches.
Anyone know why this could be the case? Been battling this for a few good hours now.
- NPN sensors are inverted in settings. So using hal meter I can clearly see it going from False to True when putting a piece of metal over. This eliminates wiring issues.
- When setting the input to a homing input only, it works and the machine stops soon as the switch triggers. This eliminates noise
- I have HOME_IGNORE_LIMITS configured.
joint 0 on limit switch error
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19011
- Thank you received: 6371
07 Oct 2024 19:21 #311516
by tommylight
Replied by tommylight on topic Limit switch errors
Check that the, say, switch for X axis is actually wired to X axis/joint 0 in hal and physically, easily done by starting LinuxCNC and watching the DRO on screen, when triggered a sign shows in front of the axis value.
If they are not correct, you can change them in hal, it is easier that rewiring.
If they are not correct, you can change them in hal, it is easier that rewiring.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5008
- Thank you received: 1440
07 Oct 2024 20:25 #311524
by Todd Zuercher
Replied by Todd Zuercher on topic Limit switch errors
Could you post your INI file?
There are a couple of ways that the home switch touch off can be configured. It can either be configured to only touch the joint once then slowly back off the switch to set the point where the switch changes or it can search for the joint touches it, backs off then touches again (usually more slowly) to set the home position. Which way is chosen depends on how the "HOME_SEARCH_VEL" and "HOME_LATCH_VEL" are configured (if they have the same or oposite sign value.)
If you have them configured with the same sign value (either both positive or both negative.) then it is configured for the double touch. If you have the home switch connected with the wrong polarity input and the double touch, the axis will still home but will only touch the switch once, and if combined with a limit will give the results you are seeing.
There are a couple of ways that the home switch touch off can be configured. It can either be configured to only touch the joint once then slowly back off the switch to set the point where the switch changes or it can search for the joint touches it, backs off then touches again (usually more slowly) to set the home position. Which way is chosen depends on how the "HOME_SEARCH_VEL" and "HOME_LATCH_VEL" are configured (if they have the same or oposite sign value.)
If you have them configured with the same sign value (either both positive or both negative.) then it is configured for the double touch. If you have the home switch connected with the wrong polarity input and the double touch, the axis will still home but will only touch the switch once, and if combined with a limit will give the results you are seeing.
Please Log in or Create an account to join the conversation.
Time to create page: 0.061 seconds