Inverting jogging sense of X Axis on a VistaCNC P1A-S pendant
- Cerezas
- Offline
- New Member
-
Less
More
- Posts: 14
- 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: 168
- 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: 14
- 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: 168
- 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: 14
- 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: 168
- 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.
Time to create page: 0.192 seconds