How does axisui work?

More
23 Mar 2021 08:48 - 23 Mar 2021 09:07 #203364 by Jialan
hii
I need an external signal to control the X axis forward and backward,
I use linuxcnc.org/docs/html/man/man9/motion.9.html#AXIS%20PINS ,but it any action
how to jog work for hal
thank
Attachments:
Last edit: 23 Mar 2021 09:07 by Jialan.

Please Log in or Create an account to join the conversation.

More
23 Mar 2021 10:15 - 23 Mar 2021 10:22 #203372 by Aciera
Replied by Aciera on topic How does jogging work?
If I understand this correctly then you want to use an external signal to jog the x axis.
For that you could use 'halui.axis.x.plus' and 'halui.axis.x.minus' linuxcnc.org/docs/html/man/man1/halui.1.html:
net jog-x-pos     <= your_signal_plus => halui.axis.x.plus
net jog-x-neg     <= your_signal_minus => halui.axis.x.minus

Note this will only let you jog after homing. If you need jogging before homing as well you would need to add 'halui.joint.N.plus' and 'halui.joint.N.minus' as well (with N being the joint number for your x-axis):
net jog-x-pos     <= your_signal_plus => halui.axis.x.plus => halui.joint.N.plus
net jog-x-neg     <= your_signal_minus => halui.axis.x.minus => halui.joint.N.minus
Last edit: 23 Mar 2021 10:22 by Aciera.
The following user(s) said Thank You: Jialan

Please Log in or Create an account to join the conversation.

More
23 Mar 2021 10:33 #203375 by Jialan
Replied by Jialan on topic How does jogging work?
I am fairly new to LinuxCNC,the code How to use ,I need to one clack to forward or backward

Please Log in or Create an account to join the conversation.

More
23 Mar 2021 12:16 #203382 by Aciera
Replied by Aciera on topic How does jogging work?
Could you post your .hal and .ini files please?
The following user(s) said Thank You: Jialan

Please Log in or Create an account to join the conversation.

More
23 Mar 2021 17:02 #203410 by tommylight
Replied by tommylight on topic How does jogging work?
Changed the OP title
The following user(s) said Thank You: Jialan

Please Log in or Create an account to join the conversation.

More
24 Mar 2021 01:08 - 24 Mar 2021 06:46 #203477 by Jialan
Replied by Jialan on topic How does jogging work?

File Attachment:

File Name: MonoPump.hal
File Size:8 KB

File Attachment:

File Name: MonoPump.ini
File Size:5 KB


I want to use check code(.hal 39row) to control motor

use halui to hal or ini ?


thank
Attachments:
Last edit: 24 Mar 2021 06:46 by Jialan.

Please Log in or Create an account to join the conversation.

More
24 Mar 2021 01:44 - 24 Mar 2021 06:45 #203478 by Jialan
Replied by Jialan on topic How does jogging work?
What is the difference between (halui.axis.jog-speed) and (halui.joint.jog-speed)
Last edit: 24 Mar 2021 06:45 by Jialan.

Please Log in or Create an account to join the conversation.

More
24 Mar 2021 05:58 #203484 by Aciera
Replied by Aciera on topic 慢跑是如何工作的?

What is the difference between (halui.axis.jog-speed) and (halui.joint.jog-speed)


halui.joint.jog-speed is the jog speed before homing and halui.axis.jog-speed is the jog speed after homing.

See this recent thread for more on the difference between joint-mode and axis-mode:
forum.linuxcnc.org/show-your-stuff/41926...axis?start=10#203212

use halui to hal or ini ?


It's done in hal

Note that you will need some sort of binary signal to replace 'your_signal_plus' and another signal to replace 'your_signal_minus'
net jog-x-pos     <= your_signal_plus => halui.axis.x.plus
net jog-x-neg     <= your_signal_minus => halui.axis.x.minus

Do you want to use external buttons to jog? How to you bring the signals into LinuxCNC?
The following user(s) said Thank You: Jialan

Please Log in or Create an account to join the conversation.

More
24 Mar 2021 06:26 - 24 Mar 2021 06:45 #203485 by Jialan
Replied by Jialan on topic How does jogging work?
yes I want to two button to jog forward and backward
I'll try it

thank
Last edit: 24 Mar 2021 06:45 by Jialan.

Please Log in or Create an account to join the conversation.

More
24 Mar 2021 06:45 #203486 by Jialan
Replied by Jialan on topic How does jogging work?
I write net jog-x-pos <= HATBUS.Axis0-enable(my signals) => halui.axis.x.plus
but linuxcnc error code 'halui.axis.x.plus' does not exist

so what to work

Please Log in or Create an account to join the conversation.

Time to create page: 0.114 seconds
Powered by Kunena Forum