FRO and SSO with encoders

More
26 Jul 2019 01:08 - 26 Jul 2019 01:09 #140602 by Vmax549
I have FRO and SSO working with encoders now BUT I need to be able to hook to teh sliders. I am using this code and it does adjust teh FRO/SSO just fine BUT you cannot see how much adjustment you have applied other than teh Feedrate goes up and down.

HOW could I connect teh encoder output to teh sliders ??

# ---feed override signals to mesa encoder - mpg---
net fo-count <= hm2_7i80.0.encoder.03.count
setp hm2_7i80.0.encoder.03.filter true
setp hm2_7i80.0.encoder.03.counter-mode false
# connect feed overide increments - MPG
setp halui.feed-override.direct-value false
setp halui.feed-override.scale .001
net fo-enable => halui.feed-override.count-enable
net fo-count => halui.feed-override.counts

(;-) TP
Last edit: 26 Jul 2019 01:09 by Vmax549.

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

More
26 Jul 2019 06:33 #140619 by smgvbest
Replied by smgvbest on topic FRO and SSO with encoders
for this since PP doesn't support external control of FRO and SSO you'll have to modify the python code to add this ability.

Looking at the tormach_mill.glade file the sliders are named
feedrate_override_scale & feedrate_override_label
spindle_override_scale & spindle_override_scale
the label to the right of the slider also should be updated which shows the percent value

These sliders are updated in ui_common.py
and it looks like it's done in apply_newest_override_slider_values but that's for when you move the sliders,
what you're going to likely have to do is add new code into the 50ms routine to check the encoder and if it's changed and update the slider.


same for the spindle

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

More
26 Jul 2019 12:54 #140651 by Vmax549
Replied by Vmax549 on topic FRO and SSO with encoders
Interesting that Tormach does use an outside pendant and does do FRO and SSO. I wonder how they did it.

I did see where peopl had done this in LinuxCNC and it did update teh slider when applied.

(;-) TP

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

More
26 Jul 2019 14:22 #140654 by smgvbest
Replied by smgvbest on topic FRO and SSO with encoders
if your referring to their puck USB controller yes they do but that is not a encoder or mpg type input.

what you've done so far is tell LINUXCNC not PathPilot to use a encoder for FRO/SSO. LinuxCNC is happy to do this and works as you see. you need to think of the GUI and LinuxCNC as separate components. LinuxCNC can run without a GUI, but the GUI can not run without LinuxCNC

in the GUI's like AXIS they have this coded in the GUI to allow for these to be handled by the encoders, PP only has for their puck as thats what they provide customers

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

More
26 Jul 2019 14:51 #140658 by Vmax549
Replied by Vmax549 on topic FRO and SSO with encoders
I also found people who have made encoders use teh sliders in PathPilot but there were no code examples. It must be top secret (;-)

Yes Tormach does use a game controller as a pendant.


Maybe I can find a code example on how to make it all work.

Thanks (;-) TP

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

Moderators: cncbasher
Time to create page: 0.146 seconds
Powered by Kunena Forum