Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
- Cerezas
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 3
19 Jul 2025 17:02 - 19 Jul 2025 17:02 #332026
by Cerezas
Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant was created by Cerezas
Hello,
I'm on LinuxCNC 2.9.4 on Debian. I want to invert the jogging sense of the X axis on a lathe, so that when I rotate the pendant wheel clockwise, the X axis moves in the X- direction. I just changed this in the vc-p1as.hal:
net jog.0.cont-minus vc-p1as.jog.0.minus => halui.axis.x.minus halui.joint.0.plus
net jog.0.cont-plus vc-p1as.jog.0.plus => halui.axis.x.plus halui.joint.0.minus
(On the first line I changed to .plus at the end and in the second I put .minus at the end)
This works only for the Velocity mode. In Step mode, the clockwise rotation moves the axis in the X+ direction.
How can I change the X axis direction in Step mode?
One year ago the X axis was moving in the direction I wanted in both Step and Velocity modes (probably on 2.9.2, I don't know anymore). I don't think this is related, but I moved from a parallel port to a mesa card. With only a very basic knowledge of the HAL, I commented out the halui. signal section in the taig_lathe_v2.hal file to make the pendant work.
I'm attaching the relevant files.
Thanks
I'm on LinuxCNC 2.9.4 on Debian. I want to invert the jogging sense of the X axis on a lathe, so that when I rotate the pendant wheel clockwise, the X axis moves in the X- direction. I just changed this in the vc-p1as.hal:
net jog.0.cont-minus vc-p1as.jog.0.minus => halui.axis.x.minus halui.joint.0.plus
net jog.0.cont-plus vc-p1as.jog.0.plus => halui.axis.x.plus halui.joint.0.minus
(On the first line I changed to .plus at the end and in the second I put .minus at the end)
This works only for the Velocity mode. In Step mode, the clockwise rotation moves the axis in the X+ direction.
How can I change the X axis direction in Step mode?
One year ago the X axis was moving in the direction I wanted in both Step and Velocity modes (probably on 2.9.2, I don't know anymore). I don't think this is related, but I moved from a parallel port to a mesa card. With only a very basic knowledge of the HAL, I commented out the halui. signal section in the taig_lathe_v2.hal file to make the pendant work.
I'm attaching the relevant files.
Thanks
Last edit: 19 Jul 2025 17:02 by Cerezas. Reason: grammar
Please Log in or Create an account to join the conversation.
- Benb
-
- Offline
- Elite Member
-
Less
More
- Posts: 178
- Thank you received: 58
19 Jul 2025 23:57 #332044
by Benb
Replied by Benb on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
Try to change both the joint and the axis to the same sign:
net jog.0.cont-minus vc-p1as.jog.0.minus => halui.axis.x.plus halui.joint.0.plus
net jog.0.cont-plus vc-p1as.jog.0.plus => halui.axis.x.minus halui.joint.0.minus
net jog.0.cont-minus vc-p1as.jog.0.minus => halui.axis.x.plus halui.joint.0.plus
net jog.0.cont-plus vc-p1as.jog.0.plus => halui.axis.x.minus halui.joint.0.minus
Please Log in or Create an account to join the conversation.
- Cerezas
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 3
20 Jul 2025 14:36 #332060
by Cerezas
Replied by Cerezas on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
Thanks Benb, I did that and unfortunately nothing changed. I guess what really determines the direction of the axes is halui.joint.N.[plus|minus]. I even took halui.axis.X.plus and minus out of the configuration line, and the pendant works with just halui.joint.0.[plus|minus].
In my tests I even commented out all the lines that have halui.joint.N.[plus|minus] and Velocity mode stops working, but to my surprise, Step mode still works. It is as if Step mode is set up somewhere else but I can't figure out where.
In my tests I even commented out all the lines that have halui.joint.N.[plus|minus] and Velocity mode stops working, but to my surprise, Step mode still works. It is as if Step mode is set up somewhere else but I can't figure out where.
Please Log in or Create an account to join the conversation.
- Benb
-
- Offline
- Elite Member
-
Less
More
- Posts: 178
- Thank you received: 58
20 Jul 2025 16:50 #332068
by Benb
Replied by Benb on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
As far as joint/axis being uncoupled that is possible with the newer version of LNC you may only need joint mode. However, for position mode still active I don't see it anywhere in the hal files you have posted.
There is this line in your configuration, which I don't know what it does
net motion-in-position motion.in-position => vc-p1as.is-moving.
This line uses motion.in=position from the motion component not halui. so you have a mix of halui component and motion component for jogging I wonder why they choose this complicated route. I am going to the gym now I will have look at your hal files later and report back.
There is this line in your configuration, which I don't know what it does
net motion-in-position motion.in-position => vc-p1as.is-moving.
This line uses motion.in=position from the motion component not halui. so you have a mix of halui component and motion component for jogging I wonder why they choose this complicated route. I am going to the gym now I will have look at your hal files later and report back.
Please Log in or Create an account to join the conversation.
- Cerezas
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 3
20 Jul 2025 23:32 - 20 Jul 2025 23:44 #332089
by Cerezas
Replied by Cerezas on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
I'm recalling a message where I stated that the problem was solved. It is not. I'm attaching the present state of the relevant .ini and .hal files.
Last edit: 20 Jul 2025 23:44 by Cerezas. Reason: Problem is not solv
Please Log in or Create an account to join the conversation.
- Benb
-
- Offline
- Elite Member
-
Less
More
- Posts: 178
- Thank you received: 58
21 Jul 2025 04:03 #332098
by Benb
Replied by Benb on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
I looked at the official site for this pendant and the hal file is similar to yours.
Try this: I just flipped vc-p1as.jog.0.minus and vc-p1as.jog.0.plus
net jog.0.cont-plus vc-p1as.jog.0.minus halui.axis.x.plus halui.joint.0.plus
net jog.0.cont-minus vc-p1as.jog.0.plus halui.axis.x.minus halui.joint.0.minus
I this does not work perhaps you could double check the pendant configuration for errors.
Try this: I just flipped vc-p1as.jog.0.minus and vc-p1as.jog.0.plus
net jog.0.cont-plus vc-p1as.jog.0.minus halui.axis.x.plus halui.joint.0.plus
net jog.0.cont-minus vc-p1as.jog.0.plus halui.axis.x.minus halui.joint.0.minus
I this does not work perhaps you could double check the pendant configuration for errors.
Please Log in or Create an account to join the conversation.
- Cerezas
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 3
21 Jul 2025 17:22 #332136
by Cerezas
Replied by Cerezas on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
Thanks Ben, I tried your suggestion but the behaviour is the same. Works in Velocity mode but not in Step mode.
I spent the morning looking at signals with halmeter but I cannot figure this out.
Thanks for taking your time to look into this.
I spent the morning looking at signals with halmeter but I cannot figure this out.
Thanks for taking your time to look into this.
Please Log in or Create an account to join the conversation.
- Benb
-
- Offline
- Elite Member
-
Less
More
- Posts: 178
- Thank you received: 58
22 Jul 2025 14:04 - 22 Jul 2025 14:09 #332181
by Benb
Replied by Benb on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
You need to keep name for axis z as joint2. I noticed in your ini file you using the name joint 1 that should 2.
For the exposed pin from the vista pedant keep the names of the axis as number example vc-p1as.axis.0,
I attached revised hal file check for typos
revise your own ini file for joint names (numbers)
edit:
have read through this thread:
forum.linuxcnc.org/38-general-linuxcnc-q...ling-to-share#261003
For the exposed pin from the vista pedant keep the names of the axis as number example vc-p1as.axis.0,
I attached revised hal file check for typos
revise your own ini file for joint names (numbers)
edit:
have read through this thread:
forum.linuxcnc.org/38-general-linuxcnc-q...ling-to-share#261003
Last edit: 22 Jul 2025 14:09 by Benb.
Please Log in or Create an account to join the conversation.
- Cerezas
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 3
23 Jul 2025 16:38 #332229
by Cerezas
Replied by Cerezas on topic Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
Since this is for a lathe, there are only 2 joints in the HAL parameters. LinuxCNC requires that the joints are numbered from 0 consecutively, that is, I can only have joints 0 and 1. The association between joint 1 and the z axis is done in the HAL files. With that association, GCode works properly.
As I mentioned before, the pendant was jogging the X axis as I wanted in Step, Velocity and Continuous mode before I moved to the mesa card. I was using exactly the same vc-p1as.hal file as the one I'm trying to use now. Something very subtle changed and that's what I'm trying to figure out.
I tried debugging with halmeter and see what signals were triggered when I used the pendant, but that didn't help much. I'm still learning about the HAL.
Thanks once again for looking into this issue.
As I mentioned before, the pendant was jogging the X axis as I wanted in Step, Velocity and Continuous mode before I moved to the mesa card. I was using exactly the same vc-p1as.hal file as the one I'm trying to use now. Something very subtle changed and that's what I'm trying to figure out.
I tried debugging with halmeter and see what signals were triggered when I used the pendant, but that didn't help much. I'm still learning about the HAL.
Thanks once again for looking into this issue.
Please Log in or Create an account to join the conversation.
Time to create page: 0.092 seconds