How does axisui work?

More
5 years 7 months ago - 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
Last edit: 5 years 7 months ago by Jialan.

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

More
5 years 7 months ago - 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
Last edit: 5 years 7 months ago by Aciera.
The following user(s) said Thank You: Jialan

Please Log in or Create an account 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 or Create an account 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?
The following user(s) said Thank You: Jialan

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

More
5 years 7 months ago #203410 by tommylight
The following user(s) said Thank You: Jialan

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

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

File Attachment:

File Name: MonoPump.hal
File Size:7.71 KB

File Attachment:

File Name: MonoPump.ini
File Size:5.31 KB


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

use halui to hal or ini ?


thank
Last edit: 5 years 7 months ago by Jialan.

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

Time to create page: 0.074 seconds
Powered by Kunena Forum