halui.joint.*.plus do not work
19 Oct 2021 11:07 - 19 Oct 2021 11:13 #223549
by ikkuh
halui.joint.*.plus do not work was created by ikkuh
Been trying to get this working again in qtDragon, it works in gmoccapy and it seems to work in qtDragon before homing (although no real movement, just warnings about not being homed). After homing nothing happens.
The pins do function after homing, watching the halui.joint.*.minus/plus pins I can see that the values change when I use the switches. There seems to be a blockage from halui to qtDragon?
What am I doing wrong here?
The pins do function after homing, watching the halui.joint.*.minus/plus pins I can see that the values change when I use the switches. There seems to be a blockage from halui to qtDragon?
What am I doing wrong here?
LINUXCNC - 2.9.0-pre0-4784-g397bb2413
[/code][code] net Jog-Z-Plus <= halui.joint.2.plus <= input.0.btn-base5 net Jog-Z-Minus <= halui.joint.2.minus <= input.0.btn-base6 net Jog-X-Plus <= halui.joint.0.plus <= input.0.abs-x-is-pos net Jog-X-Minus <= halui.joint.0.minus <= input.0.abs-x-is-neg net Jog-Y-Plus <= halui.joint.1.plus <= input.0.abs-y-is-neg net Jog-Y-Minus <= halui.joint.1.minus <= input.0.abs-y-is-pos
[/code][/code][code][code]command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on command (EMC_JOG_STOP) cannot be executed until the machine is out of E-stop and turned on Cannot jog joint 2 because home_sequence is synchronized (-1) Cannot jog joint 2 because home_sequence is synchronized (-1) Cannot jog joint 2 because home_sequence is synchronized (-1) Cannot jog joint 2 because home_sequence is synchronized (-1) Cannot jog joint 2 because home_sequence is synchronized (-1) Cannot jog joint 2 because home_sequence is synchronized (-1) [QTvcp.QTVCP.QT_ACTION][INFO] Homing Joint: -1 (qt_action.py:99)
Last edit: 19 Oct 2021 11:13 by ikkuh. Reason: added that halui pins function even after homing
Please Log in or Create an account to join the conversation.
19 Oct 2021 11:35 #223552
by ikkuh
Replied by ikkuh on topic halui.joint.*.plus do not work
Doesn't work in qtDragon git version github.com/persei802/QtDragon_hd
Please Log in or Create an account to join the conversation.
19 Oct 2021 12:47 #223554
by cmorley
Replied by cmorley on topic halui.joint.*.plus do not work
Before homing (if allowed) you jog joints.
after homing you must jog axes.
linuxcnc.org/docs/devel/html/gui/halui.html#_axis
after homing you must jog axes.
linuxcnc.org/docs/devel/html/gui/halui.html#_axis
Please Log in or Create an account to join the conversation.
19 Oct 2021 13:21 #223557
by ikkuh
The signal pins do function after homing, watching the halui.joint.*.minus/plus pins I can see that the values change when I use the switches. There seems to be a blockage from halui to qtDragon?
Replied by ikkuh on topic halui.joint.*.plus do not work
I read and reread the above but it doesn't make sense. What are you trying to say? I am a mechanic, not a programmer.Before homing (if allowed) you jog joints.
after homing you must jog axes.
linuxcnc.org/docs/devel/html/gui/halui.html#_axis
The signal pins do function after homing, watching the halui.joint.*.minus/plus pins I can see that the values change when I use the switches. There seems to be a blockage from halui to qtDragon?
Please Log in or Create an account to join the conversation.
19 Oct 2021 13:56 #223559
by cmorley
Replied by cmorley on topic halui.joint.*.plus do not work
Before homing the motors are jogged as joints
After homing the motors are moved as axes.
In a typical xyz machine they are the same thing. But linuxcnc treats them differently anyways.
But if you think of a tandem motor axis..each motor is a joint but together they move an axis.
Bottom line is before homing you jog joints after homing you jog axes and that means you must use the right halo pins
Same for mpg jogging.
After homing the motors are moved as axes.
In a typical xyz machine they are the same thing. But linuxcnc treats them differently anyways.
But if you think of a tandem motor axis..each motor is a joint but together they move an axis.
Bottom line is before homing you jog joints after homing you jog axes and that means you must use the right halo pins
Same for mpg jogging.
Please Log in or Create an account to join the conversation.
19 Oct 2021 14:10 - 19 Oct 2021 14:36 #223560
by ikkuh
Replied by ikkuh on topic halui.joint.*.plus do not work
Bottom line is before homing you jog joints after homing you jog axes and that means you must use the right halo pins
Same for mpg jogging.
would it be terribly difficult to just name the right signals?
I am tired, please forgive me.
I changed the names to
net jog-z-plus <= halui.axis.z.plus <= input.0.btn-base5
net jog-z-minus <= halui.axis.z.minus <= input.0.btn-base6
net Jog-X-Plus <= halui.axis.x.plus <= input.0.abs-x-is-pos
net Jog-X-Minus <= halui.axis.x.minus <= input.0.abs-x-is-neg
net Jog-Y-Plus <= halui.axis.y.plus <= input.0.abs-y-is-neg
net Jog-Y-Minus <= halui.axis.y.minus <= input.0.abs-y-is-pos
But doing that clashes with the same names in qt.hal So not a step further. I commented out the declarations in the qt.hal file, and I can see the halui.axis.*.minus switching, but there is no movement at all from the machine.
strange thing is that when I watch axis.x.kb-jog-active I can see it change if I use one of the on-screen buttons and it changes when I use the joystick. So why does the machine move when using the on-screen qtDragon button, and does not move when using a hardware button?
Same for mpg jogging.
I am tired, please forgive me.
I changed the names to
net jog-z-plus <= halui.axis.z.plus <= input.0.btn-base5
net jog-z-minus <= halui.axis.z.minus <= input.0.btn-base6
net Jog-X-Plus <= halui.axis.x.plus <= input.0.abs-x-is-pos
net Jog-X-Minus <= halui.axis.x.minus <= input.0.abs-x-is-neg
net Jog-Y-Plus <= halui.axis.y.plus <= input.0.abs-y-is-neg
net Jog-Y-Minus <= halui.axis.y.minus <= input.0.abs-y-is-pos
But doing that clashes with the same names in qt.hal So not a step further. I commented out the declarations in the qt.hal file, and I can see the halui.axis.*.minus switching, but there is no movement at all from the machine.
strange thing is that when I watch axis.x.kb-jog-active I can see it change if I use one of the on-screen buttons and it changes when I use the joystick. So why does the machine move when using the on-screen qtDragon button, and does not move when using a hardware button?
Attachments:
Last edit: 19 Oct 2021 14:36 by ikkuh. Reason: stupid dumb editor on this forum, it keeps messing with my texts.
Please Log in or Create an account to join the conversation.
21 Oct 2021 01:37 #223738
by cmorley
Replied by cmorley on topic halui.joint.*.plus do not work
Ok you got alot going on in your zipped file - I quickly looked in it.
Looks like some of it is from 2.7? code (or 2.7 examples).
That was before joints and axes were separated in linuxcnc.
At that time you set a jogsped in halui and jogged an axis no matter the homing status.
Now you must set a joint.jog-speed and jog a joint (before homing)
after homing you must set a axis.jog-sped and jog an axis.
i see in both the custom_postgui and joystick files you have commented out:
#setp halui.jog-speed 2000
Probably because it errored, because that is not right for version 2.8/master
You could set it directly by adding these lines
or you could use QtDragon's setting from the slider (must be in postgui file):
Hope that gets you closer.
Looks like some of it is from 2.7? code (or 2.7 examples).
That was before joints and axes were separated in linuxcnc.
At that time you set a jogsped in halui and jogged an axis no matter the homing status.
Now you must set a joint.jog-speed and jog a joint (before homing)
after homing you must set a axis.jog-sped and jog an axis.
i see in both the custom_postgui and joystick files you have commented out:
#setp halui.jog-speed 2000
Probably because it errored, because that is not right for version 2.8/master
You could set it directly by adding these lines
setp halui.joint.jog-speed 2000
setp halui.axis.jog-speed 2000
or you could use QtDragon's setting from the slider (must be in postgui file):
net linear-jog-speed qtdragon_hd.slider_jog_linear halui.joint.jog-speed halui.axis.jog-speed
Hope that gets you closer.
The following user(s) said Thank You: ikkuh
Please Log in or Create an account to join the conversation.
21 Oct 2021 01:45 #223740
by cmorley
Replied by cmorley on topic halui.joint.*.plus do not work
It might help to understand that halui is an entity all on it's own.
It has nothing to do with any other screen unless you connect it to the screen with pins.
It really is a like a qtdragon/gmoccapy/AXIS without the screen.
Meaning it has it's own idea about jogging speeds jogging axes, etc.
This is why kb jogging works (because that is handled in Qtdragon) but not in HALUI.
Linuxcnc has no internal (global?) concept of jog settings - every screen has their own.
It has nothing to do with any other screen unless you connect it to the screen with pins.
It really is a like a qtdragon/gmoccapy/AXIS without the screen.
Meaning it has it's own idea about jogging speeds jogging axes, etc.
This is why kb jogging works (because that is handled in Qtdragon) but not in HALUI.
Linuxcnc has no internal (global?) concept of jog settings - every screen has their own.
The following user(s) said Thank You: ikkuh
Please Log in or Create an account to join the conversation.
21 Oct 2021 06:44 #223783
by ikkuh
Replied by ikkuh on topic halui.joint.*.plus do not work
Thank you very much. This is the kinda help that gets people moving forward, you are very kind to look at my specific case.
I started years ago with Axis, then gmoccapy and now qtDragon. So yes, there might be some old settings in the ini and hal files. Nice of you to notice. You might have noticed my frustration at not being able to get things working and trying examples from all over the Internet.
So what you are basically saying is that the way the axis are moved changed totally from the previous LinuxCNC version? No wonder then that all the examples I could find do not work at all. Yesterday I read the Hal documentation and it sort of dawned on me that there might have been massive changes. Thanks for confirming that.
Yesterday I started to edit and update the documentation with missing stuff and examples that is available for qtDragon ( is there a reason btw why the 'old' name (silverdragon) is still used in the file?). I will do a pr pretty soon. Examples will be marked with the version of LinuxCNC they are supposed to work with.
Thanks once again. You gave me the incentive and courage to try again, this time with a little more knowledge. Will post my findings here, if and when I get it all working again.
I started years ago with Axis, then gmoccapy and now qtDragon. So yes, there might be some old settings in the ini and hal files. Nice of you to notice. You might have noticed my frustration at not being able to get things working and trying examples from all over the Internet.
So what you are basically saying is that the way the axis are moved changed totally from the previous LinuxCNC version? No wonder then that all the examples I could find do not work at all. Yesterday I read the Hal documentation and it sort of dawned on me that there might have been massive changes. Thanks for confirming that.
Yesterday I started to edit and update the documentation with missing stuff and examples that is available for qtDragon ( is there a reason btw why the 'old' name (silverdragon) is still used in the file?). I will do a pr pretty soon. Examples will be marked with the version of LinuxCNC they are supposed to work with.
Thanks once again. You gave me the incentive and courage to try again, this time with a little more knowledge. Will post my findings here, if and when I get it all working again.
The following user(s) said Thank You: cmorley
Please Log in or Create an account to join the conversation.
21 Oct 2021 11:35 #223810
by ikkuh
[/code][/code]
Replied by ikkuh on topic halui.joint.*.plus do not work
[/code][/code]or you could use QtDragon's setting from the slider (must be in postgui file): [code][code]net linear-jog-speed qtdragon_hd.slider_jog_linear halui.joint.jog-speed halui.axis.jog-speed
[code][code]
Wow it works!!!
Turns out all I needed was:
net step-all qtdragon_hd.slider_jog_linear halui.joint.jog-speed halui.axis.jog-speed
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.102 seconds