QtPlasmac external pot for jog speed.
- greekart
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 2
09 Feb 2024 14:27 - 09 Feb 2024 14:29 #292938
by greekart
QtPlasmac external pot for jog speed. was created by greekart
Hi everybody,i have trouble find why not the external pot work for jog-speed. Need to look something into files of qtplasmac or need to use a certain pin from plasmac like plasmac.current-velocity?
Feed-override and Rapid-override works as expected.
Thanks a lot Panos
Feed-override and Rapid-override works as expected.
Thanks a lot Panos
Last edit: 09 Feb 2024 14:29 by greekart. Reason: not like how bold look like
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7771
- Thank you received: 2055
09 Feb 2024 23:18 #292963
by cmorley
Replied by cmorley on topic QtPlasmac external pot for jog speed.
What have you tried?
Please Log in or Create an account to join the conversation.
- greekart
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 2
10 Feb 2024 09:54 - 12 Feb 2024 08:05 #292983
by greekart
This is the code i try to use but i had try few pins i see in hal-show with no success and i wonder if is a chain that i need to enable to make it work, if you can point me to the right direction i will appreciate. Thanks a lot
Replied by greekart on topic QtPlasmac external pot for jog speed.
What have you tried?
loadrt hyst names=hyst.jogpot
loadrt scale names=scale.jog
net jogpot-raw hm2_7i96s.0.7i73.0.0.analogin0
#### Jog-Override
addf scale.jog servo-thread
addf hyst.jogpot servo-thread
setp hyst.jogpot.gain 0.05
setp hyst.jogpot.deadband 0.7
setp hyst.jogpot.step 0.01
setp hm2_7i96s.0.7i73.0.0.analogin1-scalemax 32
#setp plasmac.override-jog true **i try with that
net jogpot-raw hyst.jogpot.in
setp scale.jog.in 5000
setp scale.jog.offset 50
net jog-speed-gain hyst.jogpot.out scale.jog.gain
#net jog-speed-gain halui.axis.jog-speed hyst.jogpot.out scale.jog.gain ** something else i try
This is the code i try to use but i had try few pins i see in hal-show with no success and i wonder if is a chain that i need to enable to make it work, if you can point me to the right direction i will appreciate. Thanks a lot
Last edit: 12 Feb 2024 08:05 by greekart. Reason: I forget something
Please Log in or Create an account to join the conversation.
- cmorley
- Away
- Moderator
Less
More
- Posts: 7771
- Thank you received: 2055
11 Feb 2024 04:02 #293054
by cmorley
Replied by cmorley on topic QtPlasmac external pot for jog speed.
I see no HAL jog speed setting pins for Qtplasmac.
HALUI jog speed is separate from Qtplasmac.
If you use HALUI jog speed then you must use HALUI jogging too.
Maybe the Qtplasmac developers have better ideas for you.
HALUI jog speed is separate from Qtplasmac.
If you use HALUI jog speed then you must use HALUI jogging too.
Maybe the Qtplasmac developers have better ideas for you.
Please Log in or Create an account to join the conversation.
- greekart
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 2
11 Feb 2024 18:59 #293106
by greekart
Ok thank you!!
Replied by greekart on topic QtPlasmac external pot for jog speed.
I see no HAL jog speed setting pins for Qtplasmac.
HALUI jog speed is separate from Qtplasmac.
If you use HALUI jog speed then you must use HALUI jogging too.
Maybe the Qtplasmac developers have better ideas for you.
Ok thank you!!
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
12 Feb 2024 01:15 #293121
by phillc54
Replied by phillc54 on topic QtPlasmac external pot for jog speed.
I am not sure how you would want this to work, wouldn't having an external pot require inhibiting any changes from the GUI as they would not be in sync with the pot.
Please Log in or Create an account to join the conversation.
- greekart
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 2
12 Feb 2024 08:11 #293139
by greekart
I wanted to add it as it have it in gui and i prefer that way from the moment i have external axis jog.
So you mean that i should forget it?
I can just add the fast/slow button overall..
Replied by greekart on topic QtPlasmac external pot for jog speed.
I am not sure how you would want this to work, wouldn't having an external pot require inhibiting any changes from the GUI as they would not be in sync with the pot.
I wanted to add it as it have it in gui and i prefer that way from the moment i have external axis jog.
So you mean that i should forget it?
I can just add the fast/slow button overall..
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
13 Feb 2024 01:43 #293182
by phillc54
Replied by phillc54 on topic QtPlasmac external pot for jog speed.
No, we could probably cobble something up but we would need to disable any jog rate adjustments in the GUI as they cannot synchronise an external pot. Fast/Slow could probably stay and the pot would be the only way to adjust the jog rate.I wanted to add it as it have it in gui and i prefer that way from the moment i have external axis jog.
So you mean that i should forget it?
If you were happy with buttons only rather than a pot then it would be easy to add external increment and decrement inputs as well as a scale input.I can just add the fast/slow button overall..
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
13 Feb 2024 05:28 #293197
by phillc54
Replied by phillc54 on topic QtPlasmac external pot for jog speed.
Hopefully this is close to what you want.
It adds a pin qtplasmac.ext_jog_override which takes a float value from 0 to 100 and sets the jog rate to that percentage of the maximum allowed value of the jog slider. It also disable all internal GUI setting of the jog slider.
Copy the attached file into the config directory as qtplasmac_custom.py then start LinuxCNC.
It adds a pin qtplasmac.ext_jog_override which takes a float value from 0 to 100 and sets the jog rate to that percentage of the maximum allowed value of the jog slider. It also disable all internal GUI setting of the jog slider.
Copy the attached file into the config directory as qtplasmac_custom.py then start LinuxCNC.
Attachments:
The following user(s) said Thank You: greekart
Please Log in or Create an account to join the conversation.
- greekart
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 26
- Thank you received: 2
13 Feb 2024 09:49 #293210
by greekart
Is working, i don't have physical button for fast/slow yet but from gui/halshow it looks that work too as expected.
Thanks again!!
Replied by greekart on topic QtPlasmac external pot for jog speed.
Closer than that couldn't be, thanks a lot!!Hopefully this is close to what you want.
It adds a pin qtplasmac.ext_jog_override which takes a float value from 0 to 100 and sets the jog rate to that percentage of the maximum allowed value of the jog slider. It also disable all internal GUI setting of the jog slider.
Copy the attached file into the config directory as qtplasmac_custom.py then start LinuxCNC.
Is working, i don't have physical button for fast/slow yet but from gui/halshow it looks that work too as expected.
Thanks again!!
The following user(s) said Thank You: phillc54
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.088 seconds