- LinuxCNC
- General LinuxCNC Questions
- Gantry homing move in same direction when siwtch is hit on one side
Gantry homing move in same direction when siwtch is hit on one side
- FrankyBoy
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
31 Mar 2022 15:58 #238918
by FrankyBoy
Gantry homing move in same direction when siwtch is hit on one side was created by FrankyBoy
Hi there,
I've been looking for a while now and I can't find the issue with the homing of my gantry CNC.
Basically what happen is that my Y1 motor goes to the switch then backup and wait for the Y2 motor to do the same but the Y2 motor hit the switch and does not go backward to do the final latch.. it just keep going in the same direction till it goes past that switch (that's what it would seem based on my observation by triggering the switch manually..)
I don't really see why this would happen.I'm running linuxcnc buster 2.8
I've been looking for a while now and I can't find the issue with the homing of my gantry CNC.
Basically what happen is that my Y1 motor goes to the switch then backup and wait for the Y2 motor to do the same but the Y2 motor hit the switch and does not go backward to do the final latch.. it just keep going in the same direction till it goes past that switch (that's what it would seem based on my observation by triggering the switch manually..)
I don't really see why this would happen.I'm running linuxcnc buster 2.8
Attachments:
Please Log in or Create an account to join the conversation.
- BigJohnT
- Offline
- Administrator
Less
More
- Posts: 7000
- Thank you received: 1172
31 Mar 2022 16:13 #238923
by BigJohnT
Replied by BigJohnT on topic Gantry homing move in same direction when siwtch is hit on one side
Did you verify that the Y2 joint home switch is working and connected up in hal?
Open Show Hal Configuration and put the home switch pin in a watch window.
Post the ini file as well.
JT
Open Show Hal Configuration and put the home switch pin in a watch window.
Post the ini file as well.
JT
Please Log in or Create an account to join the conversation.
- snowgoer540
- Offline
- Moderator
Less
More
- Posts: 2396
- Thank you received: 785
31 Mar 2022 16:25 #238926
by snowgoer540
Replied by snowgoer540 on topic Gantry homing move in same direction when siwtch is hit on one side
Are you sure that Joint_1 home switch physically corresponds with Joint_1 motor, and the same for Joint_2?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
31 Mar 2022 17:03 #238928
by tommylight
Replied by tommylight on topic Gantry homing move in same direction when siwtch is hit on one side
Attach the ini file.
Please Log in or Create an account to join the conversation.
- FrankyBoy
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
31 Mar 2022 21:20 #238937
by FrankyBoy
Replied by FrankyBoy on topic Gantry homing move in same direction when siwtch is hit on one side
Sorry I got the wrong file in the first post.. I'll get the .ini file latter on.
I did check that the limit switch was indeed on the right port and that it is working.
One thing that someone proposed is that the switch double trigger when it hit's the magnet (it's a magnet triggered limit switch).
Is it possible that it does not backup due to that?
I did check that the limit switch was indeed on the right port and that it is working.
One thing that someone proposed is that the switch double trigger when it hit's the magnet (it's a magnet triggered limit switch).
Is it possible that it does not backup due to that?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
31 Mar 2022 22:09 #238950
by andypugh
It rather depends on your home search and latch directions. You could try a (software) debounce on the home switches.
I tend to debounce them two different ways, a short debounce for homing and a longer one for hard limits. (because a nuisance trip of the hard limits can spoil your whole day, and a 10mS delay in detection is unlikely to be a problem unless the axis is moving _really_ fast.
Replied by andypugh on topic Gantry homing move in same direction when siwtch is hit on one side
It would surprise me, but it's possible.ng that someone proposed is that the switch double trigger when it hit's the magnet (it's a magnet triggered limit switch).
Is it possible that it does not backup due to that?
It rather depends on your home search and latch directions. You could try a (software) debounce on the home switches.
I tend to debounce them two different ways, a short debounce for homing and a longer one for hard limits. (because a nuisance trip of the hard limits can spoil your whole day, and a 10mS delay in detection is unlikely to be a problem unless the axis is moving _really_ fast.
Please Log in or Create an account to join the conversation.
- FrankyBoy
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
31 Mar 2022 23:22 #238959
by FrankyBoy
Replied by FrankyBoy on topic Gantry homing move in same direction when siwtch is hit on one side
Attachments:
Please Log in or Create an account to join the conversation.
- FrankyBoy
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 1
31 Mar 2022 23:24 #238960
by FrankyBoy
Replied by FrankyBoy on topic Gantry homing move in same direction when siwtch is hit on one side
How would I do a <software debounce>/ can you explain a bit what do you mean?
I am a bit new to linuxcnc
I am a bit new to linuxcnc
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
01 Apr 2022 00:36 #238961
by andypugh
linuxcnc.org/docs/stable/html/man/man9/debounce.9.html
Though that manpage isn't likely to be much help without some context:
linuxcnc.org/docs/stable/html/hal/intro.html
Replied by andypugh on topic Gantry homing move in same direction when siwtch is hit on one side
There is a HAL component for the job.How would I do a <software debounce>
linuxcnc.org/docs/stable/html/man/man9/debounce.9.html
Though that manpage isn't likely to be much help without some context:
linuxcnc.org/docs/stable/html/hal/intro.html
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
01 Apr 2022 00:36 #238962
by tommylight
Replied by tommylight on topic Gantry homing move in same direction when siwtch is hit on one side
Forget debounce for now.
Is the X and Z homing OK?
Is Y1 or Y2 homing OK?
You have to be sure what side is Y1 and make sure the sensor pertaining to it is wired to the correct input referenced in hal..
I went through your files twice, to many things are not at default and/or consistent.
The simplest way to explain gantry/tandem homing is :
-make X axis work properly
-copy the values to Y1 and Y2 from hal and ini files
-put both joints under the AXIS Y section, name them as joint 1 and joint 2 (assuming X is 0)
-set the home_sequence to -1
- if it ends up as Y1 not working, try removing 1, so just Y, leave Y2 as is <<<< i am sure this is how PncConf sets them up. not sure if it matters though.
Is the X and Z homing OK?
Is Y1 or Y2 homing OK?
You have to be sure what side is Y1 and make sure the sensor pertaining to it is wired to the correct input referenced in hal..
I went through your files twice, to many things are not at default and/or consistent.
The simplest way to explain gantry/tandem homing is :
-make X axis work properly
-copy the values to Y1 and Y2 from hal and ini files
-put both joints under the AXIS Y section, name them as joint 1 and joint 2 (assuming X is 0)
-set the home_sequence to -1
- if it ends up as Y1 not working, try removing 1, so just Y, leave Y2 as is <<<< i am sure this is how PncConf sets them up. not sure if it matters though.
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- Gantry homing move in same direction when siwtch is hit on one side
Time to create page: 0.066 seconds