Gantry homing move in same direction when siwtch is hit on one side

More
31 Mar 2022 15:58 #238918 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 

 

File Attachment:

File Name: FRC6.hal
File Size:6 KB
 

File Attachment:

File Name: FRC6_2022-03-31.hal
File Size:6 KB
Attachments:

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

More
31 Mar 2022 16:13 #238923 by BigJohnT
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

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

More
31 Mar 2022 16:25 #238926 by snowgoer540
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
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
31 Mar 2022 17:03 #238928 by tommylight
Attach the ini file.

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

More
31 Mar 2022 21:20 #238937 by FrankyBoy
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?

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

More
31 Mar 2022 22:09 #238950 by andypugh

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 would surprise me, but it's possible. 

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.

More
31 Mar 2022 23:22 #238959 by FrankyBoy
Here is the .ini file

 

File Attachment:

File Name: FRC6.ini
File Size:4 KB
Attachments:

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

More
31 Mar 2022 23:24 #238960 by FrankyBoy
How would I do a <software debounce>/ can you explain a bit what do you mean?
I am a bit new to linuxcnc :)

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

More
01 Apr 2022 00:36 #238961 by andypugh

How would I do a <software debounce>

There is a HAL component for the job. 

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
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
01 Apr 2022 00:36 #238962 by tommylight
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.

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

Time to create page: 0.066 seconds
Powered by Kunena Forum