Dual axis homing
21 Oct 2022 15:52 #254696
by Jurre
Dual axis homing was created by Jurre
Hi,
I am trying to setup homing for my CNC. The Y and Z axis went just fine, but I got some issues with the tandem X axis. On both sides I got a limit switch to prevent potential racking, I use these limit switches as limits and as home position. On X2 the homing works just fine, but on X it doesn't work. I have looked at the HAL show and the limit switch is working fine. When I measure the voltage it is 24V just as it should be. I tried a different input pin but the results are the same. I'm think the issue is somewhere in my HAL or INI files, but I am not sure where. I have set the homing_sequence for both X and X2 to -1 and they both start homing, X just never ends. HAL and INI files are attached. Any help is appreciated!
Jurre
I am trying to setup homing for my CNC. The Y and Z axis went just fine, but I got some issues with the tandem X axis. On both sides I got a limit switch to prevent potential racking, I use these limit switches as limits and as home position. On X2 the homing works just fine, but on X it doesn't work. I have looked at the HAL show and the limit switch is working fine. When I measure the voltage it is 24V just as it should be. I tried a different input pin but the results are the same. I'm think the issue is somewhere in my HAL or INI files, but I am not sure where. I have set the homing_sequence for both X and X2 to -1 and they both start homing, X just never ends. HAL and INI files are attached. Any help is appreciated!
Jurre
Attachments:
Please Log in or Create an account to join the conversation.
21 Oct 2022 16:59 #254698
by PCW
Replied by PCW on topic Dual axis homing
net x-home-sw => joint.0.home-sw-in
should be
net min-home-x => joint.0.home-sw-in
should be
net min-home-x => joint.0.home-sw-in
Please Log in or Create an account to join the conversation.
24 Oct 2022 18:49 #254942
by Jurre
Replied by Jurre on topic Dual axis homing
It worked. Thank you!
Please Log in or Create an account to join the conversation.
27 Nov 2023 14:26 - 27 Nov 2023 15:15 #286623
by vossie001
Replied by vossie001 on topic Dual axis homing - fix
to get it fixed did you generate the initial ini + hal file with PNCconf and then manual change "net x-home-sw => joint.0.home-sw-in" to net min-home-x => joint.0.home-sw-in ?
or was there other settings you also had to fiddle with to get it working?
Rudi
or was there other settings you also had to fiddle with to get it working?
Rudi
Last edit: 27 Nov 2023 15:15 by vossie001.
Please Log in or Create an account to join the conversation.
27 Nov 2023 16:05 - 27 Nov 2023 16:09 #286626
by vossie001
Replied by vossie001 on topic Dual axis homing - working HAL + INI file For XYYZ, Home top-right-back [max]
If anyone has a working HAL + INI file they can share it would be greatly appreciated so that i can compare to mine and play around with
For XYYZ machine [Dual Y Gantry]
Homes at the top right back.
All XYYZ have their own Min Limit Switch + [Max Limit / Home]
Mesa 7i96s but any mesa sample will help.
I can get the X / Z working successfully with the files generated from PNCconf on linuxCNC 2.9.1.
But the second tandem axis on Y just does it own thing when homing and not stop.
The 2 Y's start nicely together when home all but then the second just keeps going.
Rudi
For XYYZ machine [Dual Y Gantry]
Homes at the top right back.
All XYYZ have their own Min Limit Switch + [Max Limit / Home]
Mesa 7i96s but any mesa sample will help.
I can get the X / Z working successfully with the files generated from PNCconf on linuxCNC 2.9.1.
But the second tandem axis on Y just does it own thing when homing and not stop.
The 2 Y's start nicely together when home all but then the second just keeps going.
Rudi
Last edit: 27 Nov 2023 16:09 by vossie001.
Please Log in or Create an account to join the conversation.
27 Nov 2023 16:15 - 27 Nov 2023 16:56 #286627
by pommen
Replied by pommen on topic Dual axis homing - working HAL + INI file For XYYZ, Home top-right-back [max]
Have a look at:
linuxcnc.org/docs/html/config/ini-homing.html#_configuration
chapter 6.11. HOME_SEQUENCE describes what you need to do.
Your two Y axies(joints) need to homed as synchronized, if i remember correctly.
[JOINT_0]HOME_SEQUENCE = 0
[JOINT_1]HOME_SEQUENCE = -1
[JOINT_2]HOME_SEQUENCE = -1
/Peter
edit: added link
linuxcnc.org/docs/html/config/ini-homing.html#_configuration
chapter 6.11. HOME_SEQUENCE describes what you need to do.
Your two Y axies(joints) need to homed as synchronized, if i remember correctly.
[JOINT_0]HOME_SEQUENCE = 0
[JOINT_1]HOME_SEQUENCE = -1
[JOINT_2]HOME_SEQUENCE = -1
/Peter
edit: added link
Last edit: 27 Nov 2023 16:56 by pommen.
Please Log in or Create an account to join the conversation.
28 Nov 2023 10:59 #286687
by vossie001
Replied by vossie001 on topic Dual axis homing - working HAL + INI file For XYYZ, Home top-right-back [max]
It's Working, So happy....
So after 2 days of looking at HAL and INI files it turns out it was a wiring mistake......
i had the Y and Y2 stepper signals swopped around on the MESA card]
By the looks of it the PNCconf tool generated correct INI + HAL files for dual axis...
No need to edit the auto generated config files to get it working,
Million thanks to whoever wrote this tool......
Attached are the HAL files if anyone is interested.
So after 2 days of looking at HAL and INI files it turns out it was a wiring mistake......
i had the Y and Y2 stepper signals swopped around on the MESA card]
By the looks of it the PNCconf tool generated correct INI + HAL files for dual axis...
No need to edit the auto generated config files to get it working,
Million thanks to whoever wrote this tool......
Attached are the HAL files if anyone is interested.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds