- Posts: 335
- Thank you received: 59
Please help me get this Homing Sequence Right
- Michael
- Offline
- Platinum Member
-
eighthaxis wrote: Of course it should stop on the limit switch no one wants a crash.
So in halshow I watch: hm2_5i25.0.encoder.00.input-index
while manually jogging the axis and it just stays on a red indicator.
Do all encoders have this index mark?
The machine should not crash when homing if it is homing to a limit switch. The machine will go to the switch and stop. It will just recognize it as the home switch instead of the limit (limit would cause a fault). Then it will proceed through the latch process.
Not all encoders have a z pulse. What type of encoder are you using?
Your hal is not connected to the home switch from what i see. This needs to be connected to a switch:
net z-home-sw => joint.2.home-sw-in
Should connect to something like:
net z-home-sw <= hm2_5i25.0.7i77.0.0.input-03
Also I would ignore index to pulse for now and just get the homing function correct. Looking through your last ini it also looked like you have joint 2, the z axis looking for a home switch at the bottom of its travel or close to the table. Specifically for joint 2 what would you like for the axis to do when homing?
With the above ini this is what you are asking for it to do for joint 2 when homing:
HOME = 0.0 14.0
MIN_LIMIT = -0.001
MAX_LIMIT = 16.0
HOME_OFFSET = -0.050 16.050
HOME_SEARCH_VEL = 1
HOME_LATCH_VEL = 1 -.1
HOME_FINAL_VEL = 0.1 1
HOME_IGNORE_LIMITS = NO YES
HOME_SEQUENCE = 0
HOME_USE_INDEX = YES No
Search for home switch in the positive z direction: HOME_SEARCH_VEL = 1
When it finds the home switch it assumes that switch is actually at the bottom of the negative direction: HOME_OFFSET = -0.050
But you haven't turned off the limit switch, or connected the home switch in hal so it faults at a limit switch: HOME_IGNORE_LIMITS = NO
Even if that was corrected once it reached the home switch it thinks it is at the lower end of the scale when it is actually at the top of its travel. Try making the changes in red and connect the home switch in your hal file to the correct pin.
Please Log in or Create an account to join the conversation.
- eighthaxis
- Offline
- Premium Member
-
- Posts: 84
- Thank you received: 8
Please Log in or Create an account to join the conversation.
- eighthaxis
- Offline
- Premium Member
-
- Posts: 84
- Thank you received: 8
Debug file information:
Note: Using POSIX realtime
./Bostomatic.hal:173: Pin 'hm2_5i25.0.7i77.0.0.input-01' was already linked to signal 'both-y'
2669
Stopping realtime threads
Unloading hal components
RTAPI_PCI: Unmapped 65536 bytes at 0x7fb63f594000
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
-
- Posts: 1947
- Thank you received: 338
eighthaxis wrote: OK Michael I followed your instructions and received the following:
./Bostomatic.hal:173: Pin 'hm2_5i25.0.7i77.0.0.input-01' was already linked to signal 'both-y'
You didnt follow his instructions.
You have:
You can't do that.
You have a switch on both ends. Pos limit and negative limit. So you need to share one of them with Home, but you need an input for both limit switches.So you have positive limit switch share the input with home switch and you have a negative limit switch but it needs its own input. I randomly selected input-08 for y-neg-limit, You need to select an input your not using.
Here is how you do that.
Do that for all your axis that has limit switch on both ends.
Please Log in or Create an account to join the conversation.
- bevins
- Offline
- Platinum Member
-
- Posts: 1947
- Thank you received: 338
Thes two examples do the exact same thing.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
- Posts: 22011
- Thank you received: 7491
All that should be
Please Log in or Create an account to join the conversation.