Need help transitioning from axis XYZ to XYYZ
- Spezidrohne
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
21 Apr 2026 06:55 #345797
by Spezidrohne
Need help transitioning from axis XYZ to XYYZ was created by Spezidrohne
Hello,
I dont know, if i am in the right folder, but it seemed like the right one. If not, just move the topic.I have already now managed to get my ethercat servos and i/o running, with 3 motors for XYZ. Now that i have everything running, i want to finally add my second motor on the Y axis for my Gantry setup. Connecting the joints with the ethercat is no problem. But if I go in the ini, add joint_3, set the joints =4 and rewrite the coordinates = X Y Z to = X Y Y Z, and start the machine, i get an error, that my joint_3 min and max limits does not match with the min and max limits on the Axis A. but i dont have an A Axis set up. I guess it wants to merge the Joint_3 with the A Axis, but thats not set up. As far as I understand, with XYZ it is mapped the following: Joint_0=X Joint_1=Y Joint_2 =Z. Then when i go with XYYZ it should be the following: Joint_0=X Joint_1=Y Joint_2=Y Joint_3=Z. But somehow it is: Joint_0=X Joint_1=Y Joint_2=Z Joint_3=A? Is there somewhere else except the .ini where i need to join the Joints with the axis? what else do i need to change/set up? I started with the sim Axis mm. If i need to post any files, tell me.
I also managed to crash my PC, when starting LCNC. After double clicking the icon, nothing happened, and after like 30s the whole PC froze. After digging around in my changes, i saw that i wanted to change the number of joint from 3 to 4, but forgot to put 4. so it was accidentally left blank, like this: Joints =
If that helps anyone, here you go.
Thanks
I dont know, if i am in the right folder, but it seemed like the right one. If not, just move the topic.I have already now managed to get my ethercat servos and i/o running, with 3 motors for XYZ. Now that i have everything running, i want to finally add my second motor on the Y axis for my Gantry setup. Connecting the joints with the ethercat is no problem. But if I go in the ini, add joint_3, set the joints =4 and rewrite the coordinates = X Y Z to = X Y Y Z, and start the machine, i get an error, that my joint_3 min and max limits does not match with the min and max limits on the Axis A. but i dont have an A Axis set up. I guess it wants to merge the Joint_3 with the A Axis, but thats not set up. As far as I understand, with XYZ it is mapped the following: Joint_0=X Joint_1=Y Joint_2 =Z. Then when i go with XYYZ it should be the following: Joint_0=X Joint_1=Y Joint_2=Y Joint_3=Z. But somehow it is: Joint_0=X Joint_1=Y Joint_2=Z Joint_3=A? Is there somewhere else except the .ini where i need to join the Joints with the axis? what else do i need to change/set up? I started with the sim Axis mm. If i need to post any files, tell me.
I also managed to crash my PC, when starting LCNC. After double clicking the icon, nothing happened, and after like 30s the whole PC froze. After digging around in my changes, i saw that i wanted to change the number of joint from 3 to 4, but forgot to put 4. so it was accidentally left blank, like this: Joints =
If that helps anyone, here you go.
Thanks
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11886
- Thank you received: 4032
21 Apr 2026 11:40 #345804
by rodw
Replied by rodw on topic Need help transitioning from axis XYZ to XYYZ
You might be better making it a XYZY machine, then just copy down an extra joint in the ini file and copying the joint setup in the hal file to a new joint 3 section which I basically a copy of your existing Y joint (joint 1 ?) Dont forget negative home sequences for your 2 Y joints.
Alternatively, I set up a new XYYZ machine in pncconf/stepconf very roughly ignore scaling etc, then cut and paste the accurate data you have to the right spots.
Anyway that's how I'd do it. I think the first option is probably easier.
Alternatively, I set up a new XYYZ machine in pncconf/stepconf very roughly ignore scaling etc, then cut and paste the accurate data you have to the right spots.
Anyway that's how I'd do it. I think the first option is probably easier.
Please Log in or Create an account to join the conversation.
- Spezidrohne
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
21 Apr 2026 12:04 #345806
by Spezidrohne
Replied by Spezidrohne on topic Need help transitioning from axis XYZ to XYYZ
I have tried both. Setiing it as an XYYZ and as XYZY. copied joint_1 to the end of the ini and named it joint_3, for the XYZY. for the XYYZ i copied Joint_1 and pasted it between Joint_1 and Joint_2. renamed it as Joint_2 and renamed the original Joint_2 to Joint_3. both times with the same error with the limits of A Axis. when i delete the last joint it starts up as normal.
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
- andrax
-
- Offline
- Elite Member
-
Less
More
- Posts: 281
- Thank you received: 71
21 Apr 2026 15:04 #345813
by andrax
Replied by andrax on topic Need help transitioning from axis XYZ to XYYZ
Here is the .ini file for my Gantry.
I think this should help you as a template.
I think this should help you as a template.
Please Log in or Create an account to join the conversation.
- Spezidrohne
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
21 Apr 2026 20:29 - 21 Apr 2026 20:30 #345818
by Spezidrohne
Replied by Spezidrohne on topic Need help transitioning from axis XYZ to XYYZ
Still cant get it to wok.
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.8
Machine configuration directory is '/home/christian/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis_mm.ini'
INIFILE=/home/christian/linuxcnc/configs/sim.axis/axis_mm.ini
VERSION=1.1
check_config:
Unspecified [AXIS_A]MIN_LIMIT, default used: -1e99
Unspecified [AXIS_A]MAX_LIMIT, default used: +1e99
check_config:
[JOINT_3]MIN_LIMIT > [AXIS_A]MIN_LIMIT (-150 > -1e99)
[JOINT_3]MAX_LIMIT < [AXIS_A]MAX_LIMIT (250 < +1e99)
check_config validation failed
Debug file information:
(empty)
.ini atached.
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.8
Machine configuration directory is '/home/christian/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis_mm.ini'
INIFILE=/home/christian/linuxcnc/configs/sim.axis/axis_mm.ini
VERSION=1.1
check_config:
Unspecified [AXIS_A]MIN_LIMIT, default used: -1e99
Unspecified [AXIS_A]MAX_LIMIT, default used: +1e99
check_config:
[JOINT_3]MIN_LIMIT > [AXIS_A]MIN_LIMIT (-150 > -1e99)
[JOINT_3]MAX_LIMIT < [AXIS_A]MAX_LIMIT (250 < +1e99)
check_config validation failed
Debug file information:
(empty)
.ini atached.
Last edit: 21 Apr 2026 20:30 by Spezidrohne.
Please Log in or Create an account to join the conversation.
- Spezidrohne
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 2
22 Apr 2026 21:44 - 22 Apr 2026 21:46 #345860
by Spezidrohne
Replied by Spezidrohne on topic Need help transitioning from axis XYZ to XYYZ
Solved.
The problem was my KINS part of the ini. I had it the following:
[KINS]
KINEMATICS = trivkins
COORDINATES = XYYZ
kinstype=BOTH
JOINTS = 4
And they need to Look like this:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
Thanks for all the help.
The problem was my KINS part of the ini. I had it the following:
[KINS]
KINEMATICS = trivkins
COORDINATES = XYYZ
kinstype=BOTH
JOINTS = 4
And they need to Look like this:
[KINS]
JOINTS = 4
KINEMATICS = trivkins coordinates=XYYZ kinstype=BOTH
Thanks for all the help.
Last edit: 22 Apr 2026 21:46 by Spezidrohne. Reason: Formatting fault
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Time to create page: 0.120 seconds