QtPlasmac external pot for jog speed.

More
2 years 8 months ago #292938 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

Please Log in to join the conversation.

More
2 years 8 months ago #292963 by cmorley
What have you tried?

Please Log in to join the conversation.

More
2 years 8 months ago #292983 by greekart

What have you tried?
Code:
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

Please Log in to join the conversation.

More
2 years 8 months ago #293054 by cmorley
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.

Please Log in to join the conversation.

More
2 years 8 months ago #293106 by greekart

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 to join the conversation.

More
2 years 8 months ago #293121 by phillc54
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 to join the conversation.

More
2 years 8 months ago #293139 by greekart

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 to join the conversation.

More
2 years 8 months ago #293182 by phillc54

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?
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 can just add the fast/slow button overall..

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.

Please Log in to join the conversation.

More
2 years 8 months ago #293197 by phillc54
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.
 

Attachment not found


 

Please Log in to join the conversation.

More
2 years 8 months ago #293210 by greekart

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.
 

Attachment not found


 
Closer than that couldn't be, thanks a lot!!
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!!

Please Log in to join the conversation.

Time to create page: 0.105 seconds
Powered by Kunena Forum