- Posts: 14
- Thank you received: 0
How does axisui work?
5 years 7 months ago #203488
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
but linuxcnc error code 'halui.axis.x.plus' does not exist
Please Log in to join the conversation.
5 years 7 months ago #203498
by Jialan
Replied by Jialan on topic How does jogging work?
thank Aciera
I think I understand
thank
I think I understand
thank
Please Log in to join the conversation.
5 years 7 months ago #203521
by Aciera
Ah yes you are missing the entry 'HALUI = halui' in the [HAL]-section of your ini. So add it like this:
After that the halui pins should be available.
Replied by Aciera on topic How does jogging work?
but linuxcnc error code 'halui.axis.x.plus' does not exist
Ah yes you are missing the entry 'HALUI = halui' in the [HAL]-section of your ini. So add it like this:
Code:
[HAL]
# Add the halui user interface
HALUI = halui
# The run script first uses halcmd to execute any HALFILE
# files, and then to execute any individual HALCMD commands.
# list of hal config files to run through halcmd
# files are executed in the order in which they appear
HALFILE = MonoPump.hal
# list of halcmd commands to execute
# commands are executed in the order in which they appear
#HALCMD = save neta
After that the halui pins should be available.
Please Log in to join the conversation.
5 years 7 months ago #203661
by Jialan
Replied by Jialan on topic How does axisui work?
By the way ,I use axisui.jog.increment net to halui.joint.0.increment
but linuxcnc is don't exist ,Why
but linuxcnc is don't exist ,Why
Please Log in to join the conversation.
5 years 7 months ago #203674
by Aciera
Replied by Aciera on topic How does axisui work?
The axisui. pins don't exist until after the axis-gui has been loaded so all your hal code that requires pins from GUIs, like axisui pins, need to be in a postgui.hal file.
1. Create a file in your 'config' folder. For example 'MonoPump_postgui.hal'
2. Copy your line inside 'MonoPump_postgui.hal' :
3. Save 'MonoPump_postgui.hal'
4. Add this line to the [HAL] section in your INI-file:
This line makes sure that MonoPump_postgui.hal is executed after the GUI (ie AXIS in your case) has been loaded.
1. Create a file in your 'config' folder. For example 'MonoPump_postgui.hal'
2. Copy your line inside 'MonoPump_postgui.hal' :
Code:
net yoursignalnamehere axisui.jog.increment halui.joint.0.increment
4. Add this line to the [HAL] section in your INI-file:
Code:
POSTGUI_HALFILE = MonoPump_postgui.hal
This line makes sure that MonoPump_postgui.hal is executed after the GUI (ie AXIS in your case) has been loaded.
Please Log in to join the conversation.
5 years 7 months ago #203678
by Jialan
Replied by Jialan on topic How does axisui work?
I will try it ,thank Aciera
Please Log in to join the conversation.
5 years 6 months ago #205055
by Jialan
Replied by Jialan on topic How does axisui work?
my jog is working,but how does my jog is end
Please Log in to join the conversation.
5 years 6 months ago #205070
by Aciera
Not sure what you mean there. Does the jog movement not end when you release the button?
Replied by Aciera on topic How does axisui work?
but how does my jog is end
Not sure what you mean there. Does the jog movement not end when you release the button?
Please Log in to join the conversation.
5 years 6 months ago #205226
by Jialan
Replied by Jialan on topic How does axisui work?
when i release the button ,jog working to halui code(halui.joint.0.increment 5 and halui.joint.0.increment-plus TRUE) .
How know was end ,use linuxcnctop.py 'state' = (1 or 2 )?
How know was end ,use linuxcnctop.py 'state' = (1 or 2 )?
Please Log in to join the conversation.
Time to create page: 0.064 seconds
