Dual Y with 1 home switch?
30 Jan 2024 12:26 - 30 Jan 2024 12:39 #291976
by 0jw
Dual Y with 1 home switch? was created by 0jw
Hello, I'm having some trouble trying to figure out how to set up dual y axis on a router with only 1 home switch.
Most of the info I can find is about auto-squaring which at the moment is not an option for me.
I'm running Linuxcnc 2.9 and using a mesa 7i92tm with a cheap 5 axis bob. I flashed the 7i92t with the 7i92_5ABOBx2D.bit and have G540x2 selected in PnCConf.
I tried using two Y stepgens but it doesn't generate a second Y axis or joint then tried editing to make another Y axis with no luck.
So I set it up as Y and tandem Y and tried to edit the ini and hal to use the same home switch using the info on this thread.
forum.linuxcnc.org/49-basic-configuratio...ne-home-limit-switch
But the tandem axis doesn't stop when homing.
Does anyone know how to do this in linuxcnc 2.9?
I've attached my hal and ini files if anyone can let me know what I need to edit.
Most of the info I can find is about auto-squaring which at the moment is not an option for me.
I'm running Linuxcnc 2.9 and using a mesa 7i92tm with a cheap 5 axis bob. I flashed the 7i92t with the 7i92_5ABOBx2D.bit and have G540x2 selected in PnCConf.
I tried using two Y stepgens but it doesn't generate a second Y axis or joint then tried editing to make another Y axis with no luck.
So I set it up as Y and tandem Y and tried to edit the ini and hal to use the same home switch using the info on this thread.
forum.linuxcnc.org/49-basic-configuratio...ne-home-limit-switch
But the tandem axis doesn't stop when homing.
Does anyone know how to do this in linuxcnc 2.9?
I've attached my hal and ini files if anyone can let me know what I need to edit.
Last edit: 30 Jan 2024 12:39 by 0jw.
Please Log in or Create an account to join the conversation.
30 Jan 2024 19:27 #292005
by CNC_ANDI
Replied by CNC_ANDI on topic Dual Y with 1 home switch?
do not use HOME_SEQUENCE = -3
you don´t have 2 home switches
so use HOME_SEQUENCE = 3
for your twice y Joints
you don´t have 2 home switches
so use HOME_SEQUENCE = 3
for your twice y Joints
The following user(s) said Thank You: 0jw
Please Log in or Create an account to join the conversation.
30 Jan 2024 19:55 - 30 Jan 2024 20:17 #292009
by PCW
Replied by PCW on topic Dual Y with 1 home switch?
Since there is only one y home switch,
(connected to the signal home-y), both Y joints
must use it.
so:
net y2-home-sw => joint.2.home-sw-in
should be:
net home-y => joint.2.home-sw-in
(connected to the signal home-y), both Y joints
must use it.
so:
net y2-home-sw => joint.2.home-sw-in
should be:
net home-y => joint.2.home-sw-in
Last edit: 30 Jan 2024 20:17 by PCW.
The following user(s) said Thank You: 0jw
Please Log in or Create an account to join the conversation.
31 Jan 2024 02:15 #292035
by 0jw
Replied by 0jw on topic Dual Y with 1 home switch?
It still seems to be acting the same. should I also be changing the other two like this?
net home-y => joint.2.home-sw-in
net y-neg-limit => joint.2.neg-lim-sw-in
net y-pos-limit => joint.2.pos-lim-sw-in
I'm only trying to use Tandem Y because using a second Y wasn't working. It was like pncconf just ignored it.
When I use pncconf to set it up as Y and Tandem Y it generates joint 1 and 2.
if I use pncconf to set it up as normal Y Y it only sets up as a XYZ and not XYYZ.
I've seen it work with different mesa cards to set up the XYYZ so I think it has something to do with the .bit file or selecting G540x2
If I were to add the second Y after using pncconf, I mostly understand how to in the ini. But I'm a bit lost on how to do it in the hal file.
This is my hal and ini file when I tried setting it up as XYYZ without using Tandem Y.
net home-y => joint.2.home-sw-in
net y-neg-limit => joint.2.neg-lim-sw-in
net y-pos-limit => joint.2.pos-lim-sw-in
I'm only trying to use Tandem Y because using a second Y wasn't working. It was like pncconf just ignored it.
When I use pncconf to set it up as Y and Tandem Y it generates joint 1 and 2.
if I use pncconf to set it up as normal Y Y it only sets up as a XYZ and not XYYZ.
I've seen it work with different mesa cards to set up the XYYZ so I think it has something to do with the .bit file or selecting G540x2
If I were to add the second Y after using pncconf, I mostly understand how to in the ini. But I'm a bit lost on how to do it in the hal file.
This is my hal and ini file when I tried setting it up as XYYZ without using Tandem Y.
Please Log in or Create an account to join the conversation.
31 Jan 2024 02:50 - 31 Jan 2024 02:54 #292037
by PCW
Replied by PCW on topic Dual Y with 1 home switch?
If I use pncconf with 7i92/g540 and setup a Y tandem axis (Y2)
It does seem to create all the proper joint and stepgen connections
(but of course you need to use you single home switch for both Y and Y2)
It even sets up the kins type:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
[TRAJ]
COORDINATES = XYYZ
It does seem to create all the proper joint and stepgen connections
(but of course you need to use you single home switch for both Y and Y2)
It even sets up the kins type:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
[TRAJ]
COORDINATES = XYYZ
Last edit: 31 Jan 2024 02:54 by PCW.
Please Log in or Create an account to join the conversation.
31 Jan 2024 03:07 #292039
by 0jw
Replied by 0jw on topic Dual Y with 1 home switch?
Yes, my ini has the same settings in [KINS] and [TRAJ]
I also set HOME_SEQUENCE = 3 for joint 1 and 2.
In hal edited under
Tandem AXIS Y2 JOINT 2
From
net y2-home-sw => joint.2.home-sw-in
net y2-neg-limit => joint.2.neg-lim-sw-in
net y2-pos-limit => joint.2.pos-lim-sw-in
To
net home-y => joint.2.home-sw-in net
y-neg-limit => joint.2.neg-lim-sw-in net
y-pos-limit => joint.2.pos-lim-sw-in
However Y2 is still not stopping when homing.
I also set HOME_SEQUENCE = 3 for joint 1 and 2.
In hal edited under
Tandem AXIS Y2 JOINT 2
From
net y2-home-sw => joint.2.home-sw-in
net y2-neg-limit => joint.2.neg-lim-sw-in
net y2-pos-limit => joint.2.pos-lim-sw-in
To
net home-y => joint.2.home-sw-in net
y-neg-limit => joint.2.neg-lim-sw-in net
y-pos-limit => joint.2.pos-lim-sw-in
However Y2 is still not stopping when homing.
Please Log in or Create an account to join the conversation.
31 Jan 2024 15:21 #292073
by PCW
Replied by PCW on topic Dual Y with 1 home switch?
The homing setup parameters for joint 2/Y2 probably need to
be looked at to make sure they are present and identical to the
joint1/Y axis settings.
In addition it may be that you want a homing sequence of -3 to indicate
that those are tandem axis.
(but I'm not very knowledgeable about gantry systems)
be looked at to make sure they are present and identical to the
joint1/Y axis settings.
In addition it may be that you want a homing sequence of -3 to indicate
that those are tandem axis.
(but I'm not very knowledgeable about gantry systems)
Please Log in or Create an account to join the conversation.
31 Jan 2024 18:40 - 31 Jan 2024 18:49 #292089
by 0jw
Replied by 0jw on topic Dual Y with 1 home switch?
I had some typos, It seems to be working now.
I attached the new hal and ini files if anyone can let me know if this looks correct? Maybe someone else will find this useful.
I had the Y axis reversed with -80 during testing so It wouldn't crash.
This is a HUGE boost in rapids!
Although I still have things set slow and the servo_period set to 2000000 because I'm getting (hm2/hm2_7i92.0 error finishing read!).
I thought it was the power cable and probably is. Hoping a dedicated RS-15-5 psu will help.
I'm also using a q1900b-itx which has a Realtek RTL8111GR.
So I tried installing the r8168-dkms driver. But it missed 1 packet and i'm not sure if it's actually being used.
From what I've read disabling IRQ coalescing won't help. Maybe isolcpus will help.
I attached the new hal and ini files if anyone can let me know if this looks correct? Maybe someone else will find this useful.
I had the Y axis reversed with -80 during testing so It wouldn't crash.
This is a HUGE boost in rapids!
Although I still have things set slow and the servo_period set to 2000000 because I'm getting (hm2/hm2_7i92.0 error finishing read!).
I thought it was the power cable and probably is. Hoping a dedicated RS-15-5 psu will help.
I'm also using a q1900b-itx which has a Realtek RTL8111GR.
So I tried installing the r8168-dkms driver. But it missed 1 packet and i'm not sure if it's actually being used.
From what I've read disabling IRQ coalescing won't help. Maybe isolcpus will help.
Last edit: 31 Jan 2024 18:49 by 0jw.
Please Log in or Create an account to join the conversation.
01 Feb 2024 07:12 #292124
by CNC_ANDI
Replied by CNC_ANDI on topic Dual Y with 1 home switch?
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ
kinstype=BOTH
should be like this:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ
kinstype=BOTH
should be like this:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
Please Log in or Create an account to join the conversation.
Time to create page: 0.082 seconds