Configuring endstops in series - Error troubleshooting

More
13 Mar 2022 23:08 #237157 by MacLaddy

The shared home signal names don't match so there
is no connection from your hardware to LinuxCNC:

net home-x-y1 <= parport.0.pin-10-in-not
net home-z-y2 <= parport.0.pin-11-in-not
...
net home-x => joint.0.home-sw-in
net home-y1 => joint.1.home-sw-in
net home-y2 => joint.2.home-sw-in
net home-z => joint.3.home-sw-in

should be something like:

net home-x-y1 => joint.0.home-sw-in
net home-x-y1 => joint.1.home-sw-in
net home-z-y2 => joint.2.home-sw-in
net home-z-y2 => joint.3.home-sw-in
 


It worked! Z now homes. I appreciate the help, really. My brain doesn't work in code. Unfortunately, after Z-homed it started homing only Y1. It should have done Y1 and Y2 together. After I manually triggered Y1 it threw this error:

Cannot home while shared home switch is closed J=2.

I'm regretting trying to wire these in series without knowing what I'm doing. Would it be worth it for me to start over and use four pins for four sensors, or would that be like swimming halfway and turning back?

Please Log in or Create an account to join the conversation.

More
13 Mar 2022 23:46 #237166 by tommylight
That last thing you said... :)
From the J2 error, the joint 2 switch was triggered and since booth joints are the same axis, it will not do it.
Make sure the Home_sequence is -1 for both Y joints, the Z is 0 and X is 1.
Also do add some Home_offset to all joints/axis so they do back up a bit after homing and release the switch. This might require a bit of testing with adding or removing a - in front of the value to get the direction right. 2 to 3mm should be enough.
After everything is working properly, adjust the home_offset for Y joints to get the gantry squared after homing.
The following user(s) said Thank You: MacLaddy

Please Log in or Create an account to join the conversation.

More
14 Mar 2022 00:20 #237170 by MacLaddy
Getting closer. It now homes z with a small offset. But then goes on to try and home X, Y1 and Y2 at the same time. This can't work, because X and Y1 share a pin. If X triggers, it also triggers Y1 which racks the machine.

I've tried using Home_Is_Shared = 1 on all four joints. It didn't like it, so I changed it to just the Y joints, then just the X & Y1 joints, etc. It doesn't seem to like anything.

Please Log in or Create an account to join the conversation.

More
14 Mar 2022 00:30 #237171 by PCW
I would think that the joint 1 and 2 (Y1 and Y2) should be -2 so its done last
The following user(s) said Thank You: tommylight, MacLaddy

Please Log in or Create an account to join the conversation.

More
14 Mar 2022 00:42 #237173 by MacLaddy

I would think that the joint 1 and 2 (Y1 and Y2) should be -2 so its done last
 

It worked! I didn't realize I could use the number two. The documentation said I could use 0, -1, & 1. I also added Home_Is_Shared to only the X & Z axis. This configuration works!

Still things to figure out, like homing velocities, directions, and offsets. But at least now I know I won't wrack the machine while testing.
 

Please Log in or Create an account to join the conversation.

More
14 Mar 2022 09:47 #237199 by tommylight

I would think that the joint 1 and 2 (Y1 and Y2) should be -2 so its done last

That is correct, sorry for the confusion.
Thanks PCW.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum