Beginners homing woes
- AlessandroEmm
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
14 Aug 2024 21:45 #307749
by AlessandroEmm
Beginners homing woes was created by AlessandroEmm
Hey there
I'm still on the bench testing my Remora NVEM setup before putting the servos and switches on the XYYZ machine.
Servos and Switches seem to work technically speaking. Servos move when jogging and switches go high/positive on contact with metal.
I for now don't plan to use limit switches but may be later.
Thus my configuration should be straight forward.. i thought. But I can't get homing to work. Whenever I start the procedure via UI (AXIS) it either does nothing or seems to "jump" straight to home. I'm sure the problem is within the configuration, but I just cant seem to figure it out, as I dont get any errors. Expected behavior would be servo moving and me triggering the home switch.
Thanks a lot for any hints/pointers,
Alessandro
I'm still on the bench testing my Remora NVEM setup before putting the servos and switches on the XYYZ machine.
Servos and Switches seem to work technically speaking. Servos move when jogging and switches go high/positive on contact with metal.
I for now don't plan to use limit switches but may be later.
Thus my configuration should be straight forward.. i thought. But I can't get homing to work. Whenever I start the procedure via UI (AXIS) it either does nothing or seems to "jump" straight to home. I'm sure the problem is within the configuration, but I just cant seem to figure it out, as I dont get any errors. Expected behavior would be servo moving and me triggering the home switch.
Thanks a lot for any hints/pointers,
Alessandro
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5056
- Thank you received: 1433
15 Aug 2024 20:31 #307839
by Todd Zuercher
Replied by Todd Zuercher on topic Beginners homing woes
The first problems I see are with your joint/axis assignments and your home sequence numbers.
In your [TRAJ] section of your ini file you have
COORDINATES = X Y Y Z
This will assign joint 0 to the X axis, joints 1 and 2 to the Y, and joint 3 to the Z.
That is perfectly acceptable, but it seems to get confused below that in the Joint and Axis sections of the ini file.
To configure the Y axis to use joints 1 and 3 your would need:
COORDINATES = X Y Z Y
First which joints do you actually have connected to which axis?
2nd the joints that are assigned to the Y axis must be given matching negative numbers for their HOME_SEQUENCE = setting.
If you are wanting the Y axis to home 1st, don't use HOME_SEQUENCE = 0. It is not required that zero is used in the home sequence. For a duel joint gantry axis, use HOME_SEQUENCE = -1 for both of the joints assigned to the axis(or -2, or -3...)
Usually the Z axis is homed first in most configurations to make sure that the spindle is out of the way for the other axis to home later.
If you are using joint 3 as the Z axis I would suggest moving the [AXIS_Z] section down just above the [JOINT_3] section in your ini file.
in your hal file it looks like you have Z connected to joint 2. And I don't see a home switch connection for joint3 (both of the Y axis joints must have seperate home switch inputs from each other.)
In your [TRAJ] section of your ini file you have
COORDINATES = X Y Y Z
This will assign joint 0 to the X axis, joints 1 and 2 to the Y, and joint 3 to the Z.
That is perfectly acceptable, but it seems to get confused below that in the Joint and Axis sections of the ini file.
To configure the Y axis to use joints 1 and 3 your would need:
COORDINATES = X Y Z Y
First which joints do you actually have connected to which axis?
2nd the joints that are assigned to the Y axis must be given matching negative numbers for their HOME_SEQUENCE = setting.
If you are wanting the Y axis to home 1st, don't use HOME_SEQUENCE = 0. It is not required that zero is used in the home sequence. For a duel joint gantry axis, use HOME_SEQUENCE = -1 for both of the joints assigned to the axis(or -2, or -3...)
Usually the Z axis is homed first in most configurations to make sure that the spindle is out of the way for the other axis to home later.
If you are using joint 3 as the Z axis I would suggest moving the [AXIS_Z] section down just above the [JOINT_3] section in your ini file.
in your hal file it looks like you have Z connected to joint 2. And I don't see a home switch connection for joint3 (both of the Y axis joints must have seperate home switch inputs from each other.)
The following user(s) said Thank You: Aciera, AlessandroEmm
Please Log in or Create an account to join the conversation.
- AlessandroEmm
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 0
16 Aug 2024 14:56 #307924
by AlessandroEmm
Replied by AlessandroEmm on topic Beginners homing woes
Thanks Todd for looking over my setup.
Your laying out of the not-so-clear configuration led me to move things where they belong. The Z-Axis Configuration is driven by Joint 3. But since I only added the second Y later, it came after the Z's definition.
When I changed the ordering I realised that my homeing Order wasn't correct either. Which led to the situation that LinuxCNC would try to home an axis that i hadn't attached yet (Z's Joint). Which then in turn would lead to a situation where Y and X would never home and me waiting forever. Having now fixed the priorities, axis do home as they should. Thanks for pushing me to it!
That said for the Gantry: does it make sense to use keep the trivial trajectory setup or would I rather use one of the available gantry components to manage Y? I havent really found pros and cons online. Both side of the gantry should are fixed by leadscrews so theres little to no tilting possible.
Thanks again,
Alessandro
Your laying out of the not-so-clear configuration led me to move things where they belong. The Z-Axis Configuration is driven by Joint 3. But since I only added the second Y later, it came after the Z's definition.
When I changed the ordering I realised that my homeing Order wasn't correct either. Which led to the situation that LinuxCNC would try to home an axis that i hadn't attached yet (Z's Joint). Which then in turn would lead to a situation where Y and X would never home and me waiting forever. Having now fixed the priorities, axis do home as they should. Thanks for pushing me to it!
That said for the Gantry: does it make sense to use keep the trivial trajectory setup or would I rather use one of the available gantry components to manage Y? I havent really found pros and cons online. Both side of the gantry should are fixed by leadscrews so theres little to no tilting possible.
Thanks again,
Alessandro
Please Log in or Create an account to join the conversation.
16 Aug 2024 20:59 #307962
by rodw
Replied by rodw on topic Beginners homing woes
Any Gantry components have been made onsolete 2 versions ago with v2.8. Please read homing configuration as the gantry set up is all to do with homing.
The following user(s) said Thank You: AlessandroEmm
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5056
- Thank you received: 1433
19 Aug 2024 14:02 #308137
by Todd Zuercher
Replied by Todd Zuercher on topic Beginners homing woes
No, you should just leave the Kins setting as Trivkins. As Rod was trying to say, the Trivkins machine model was modified to handle slaved joint gantries in version 2.8, as well as handle arbitrary joint to axis assignments. There is no need to to try to use another kins model.
Now a history lesson. (Stop reading if you don't care.) Previous to v2.8 the Trivkins machine model was truly simple. Just assigning each joint 0-8 to each axis x,y,z,a,b,c,u,v,w respectively. Such that if you needed a config that used axis X,Y,Z, and W. you had to set up and configure dummy joints and axis for the unused A,B,C,U,V axis. You could hide the unused axis in the user interface configuration so they were not seen, but they were still there under the skin. There was also no means for attaching multiple joints to an axis or to square a gantry. That necessitated the gantry kins config, it was a bit of a kludge and caused some minor confusion of joints and axis within Linuxcnc most noticeable with some user interfaces. With the merger of the Joints/Axis development branch into 2.8 (while 2.8 was in development as Master) the last version Gangrykins eventually became/was developed into the current version of Trivkins. Previous to Joints/Axis, the defining/separation of a joint and an axis, was not always clear or separated in the Linuxcnc code. This wasn't a big deal for trivial machines or even much of a problem for a gantry, but it could complicate setting up and running non trivial machines where the movement of a joint did not identically match the movement of an axis. Hence the push to clearly separate in the Linuxcnc codebase the difference between a joint and an axis.
Now a history lesson. (Stop reading if you don't care.) Previous to v2.8 the Trivkins machine model was truly simple. Just assigning each joint 0-8 to each axis x,y,z,a,b,c,u,v,w respectively. Such that if you needed a config that used axis X,Y,Z, and W. you had to set up and configure dummy joints and axis for the unused A,B,C,U,V axis. You could hide the unused axis in the user interface configuration so they were not seen, but they were still there under the skin. There was also no means for attaching multiple joints to an axis or to square a gantry. That necessitated the gantry kins config, it was a bit of a kludge and caused some minor confusion of joints and axis within Linuxcnc most noticeable with some user interfaces. With the merger of the Joints/Axis development branch into 2.8 (while 2.8 was in development as Master) the last version Gangrykins eventually became/was developed into the current version of Trivkins. Previous to Joints/Axis, the defining/separation of a joint and an axis, was not always clear or separated in the Linuxcnc code. This wasn't a big deal for trivial machines or even much of a problem for a gantry, but it could complicate setting up and running non trivial machines where the movement of a joint did not identically match the movement of an axis. Hence the push to clearly separate in the Linuxcnc codebase the difference between a joint and an axis.
Please Log in or Create an account to join the conversation.
Time to create page: 0.102 seconds