- Posts: 335
- Thank you received: 59
Please help me get this Homing Sequence Right
- Michael
- Offline
- Platinum Member
-
Less
More
5 years 5 months ago - 5 years 5 months ago #208966
by Michael
Replied by Michael on topic Please help me get this Homing Sequence Right
I think we need to slow down a second. The best analogy for what your missing is that your wires (hal wording) are not connecting to the correct things. Look at this example:
# --- BOTH-X ---
net both-x <= hm2_5i25.0.7i77.0.0.input-00
This would work functionally the same as:
net i-like-turtles <= hm2_5i25.0.7i77.0.0.input-00
The words after net are just a naming convention and anything can be used for that particular "wire". The parts after the i-like-turtles is what wires connect to. Right now you just have a loose wire with one side connected.
A better way to right connections that visually make sense is:
net both-x hm2_5i25.0.7i77.0.0.input-00 =>
joint.0.home-sw-in
This says that the wire called both-x connects the 7i77 in 00 to the motion control pin for x axis home switch. The below says the same exact thing but written a different way:
net both-x hm2_5i25.0.7i77.0.0.input-00
net both-x joint.0.home-sw-in
Does this make sense? Your physical pins need to be connected to motion control of Linuxcnc.
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html#JOINT%20PINS
You also have this:
net both-home-x <= hm2_5i25.0.7i77.0.0.input-00
which means you have two instances of loose wires for the same input
# --- BOTH-X ---
net both-x <= hm2_5i25.0.7i77.0.0.input-00
This would work functionally the same as:
net i-like-turtles <= hm2_5i25.0.7i77.0.0.input-00
The words after net are just a naming convention and anything can be used for that particular "wire". The parts after the i-like-turtles is what wires connect to. Right now you just have a loose wire with one side connected.
A better way to right connections that visually make sense is:
net both-x hm2_5i25.0.7i77.0.0.input-00 =>
joint.0.home-sw-in
This says that the wire called both-x connects the 7i77 in 00 to the motion control pin for x axis home switch. The below says the same exact thing but written a different way:
net both-x hm2_5i25.0.7i77.0.0.input-00
net both-x joint.0.home-sw-in
Does this make sense? Your physical pins need to be connected to motion control of Linuxcnc.
linuxcnc.org/docs/2.8/html/man/man9/motion.9.html#JOINT%20PINS
You also have this:
net both-home-x <= hm2_5i25.0.7i77.0.0.input-00
which means you have two instances of loose wires for the same input
Last edit: 5 years 5 months ago by Michael.
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
5 years 5 months ago #208969
by tommylight
Check Michael's post to get an idea how things function.
Replied by tommylight on topic Please help me get this Homing Sequence Right
This has to be done for all the joints/axis that use a single switch for home and both limits.eighthaxis wrote: I did what you said Tommy
net y-home-sw <= hm2_5i25.0.7i77.0.0.input-01
net both-y <= hm2_5i25.0.7i77.0.0.input-01
All that should be
net both-home-y <= hm2_5i25.0.7i77.0.0.input-01
Check Michael's post to get an idea how things function.
Please Log in or Create an account to join the conversation.
- Michael
- Offline
- Platinum Member
-
Less
More
- Posts: 335
- Thank you received: 59
5 years 5 months ago #208970
by Michael
Replied by Michael on topic Please help me get this Homing Sequence Right
So the above was just for a single x axis home switch. If you want the same pin to be used as a limit switch then you will need to connect the following:
joint.N.neg-lim-sw-in
and
joint.N.pos-lim-sw-in
Something like the following should make the same input function for negative limits, positive limits and homing switch also:
net both-x hm2_5i25.0.7i77.0.0.input-00
net both-x joint.0.home-sw-in
net both-x joint.0.neg-lim-sw-in
net both-x joint.0.pos-lim-sw-in
I am doing this from my phone and can't view some of the items I normally would but this should work.
joint.N.neg-lim-sw-in
and
joint.N.pos-lim-sw-in
Something like the following should make the same input function for negative limits, positive limits and homing switch also:
net both-x hm2_5i25.0.7i77.0.0.input-00
net both-x joint.0.home-sw-in
net both-x joint.0.neg-lim-sw-in
net both-x joint.0.pos-lim-sw-in
I am doing this from my phone and can't view some of the items I normally would but this should work.
The following user(s) said Thank You: eighthaxis
Please Log in or Create an account to join the conversation.
- eighthaxis
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 8
5 years 5 months ago #208981
by eighthaxis
Replied by eighthaxis on topic Please help me get this Homing Sequence Right
Thank you for the continual input. I will give it a try and get back to you.
Please Log in or Create an account to join the conversation.
- eighthaxis
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 8
5 years 5 months ago #209002
by eighthaxis
Replied by eighthaxis on topic Please help me get this Homing Sequence Right
Hurray I have had some success thanks to your Help!
It will now Autohome XYZ successfully after adding your HAL entries and modifying the ini file a few times.
A and B are not homing correctly.
I keep getting joint following errors.
I can JOG B around with no joint following errors (although the scaling is wrong) but when homing it moves to the switch backs off about 25 degrees then give the joint following error
A-axis I can't jog at all because I can't figure out how to get the A jog buttons to appear in GMOCCAPY: forum.linuxcnc.org/gmoccapy/39723-edit-j...tons?start=10#208997
A-Axis moves fine when tested in PncConf
It will now Autohome XYZ successfully after adding your HAL entries and modifying the ini file a few times.
A and B are not homing correctly.
I keep getting joint following errors.
I can JOG B around with no joint following errors (although the scaling is wrong) but when homing it moves to the switch backs off about 25 degrees then give the joint following error
A-axis I can't jog at all because I can't figure out how to get the A jog buttons to appear in GMOCCAPY: forum.linuxcnc.org/gmoccapy/39723-edit-j...tons?start=10#208997
A-Axis moves fine when tested in PncConf
Please Log in or Create an account to join the conversation.
- eighthaxis
- Offline
- Premium Member
-
Less
More
- Posts: 84
- Thank you received: 8
5 years 5 months ago #209015
by eighthaxis
Replied by eighthaxis on topic Please help me get this Homing Sequence Right
OK I have got rid of the Joint Following Errors
I still need to figure out how to get the rotary index's A and B to be scaled correctly.
I still need to figure out how to get the rotary index's A and B to be scaled correctly.
Please Log in or Create an account to join the conversation.
Time to create page: 0.264 seconds