How does axisui work?

More
5 years 7 months ago #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

Attachment not found

Please Log in to join the conversation.

More
5 years 7 months ago #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 :
Code:
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):
Code:
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

Please Log in to join the conversation.

More
5 years 7 months ago #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 to join the conversation.

More
5 years 7 months ago #203382 by Aciera
Replied by Aciera on topic How does jogging work?
Could you post your .hal and .ini files please?

Please Log in to join the conversation.

More
5 years 7 months ago #203410 by tommylight
Replied by tommylight on topic How does jogging work?
Changed the OP title

Please Log in to join the conversation.

More
5 years 7 months ago #203477 by Jialan
Replied by Jialan on topic How does jogging work?

Attachment not found


Attachment not found



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

use halui to hal or ini ?


thank

Please Log in to join the conversation.

More
5 years 7 months ago #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)

Please Log in to join the conversation.

More
5 years 7 months ago #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'
Code:
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?

Please Log in to join the conversation.

More
5 years 7 months ago #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

Please Log in to join the conversation.

More
5 years 7 months ago #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 to join the conversation.

Time to create page: 0.122 seconds
Powered by Kunena Forum