LINEAR POTENTIOMETERS

More
6 years 8 months ago #158688 by cmorley
Replied by cmorley on topic LINEAR POTENTIOMETERS
Code:
#============================================================ #---SPINDLE-OVERRIDE-POT---START--- net spindle-analogue hm2_7i92.0.7i77.0.0.analogin1 => spindle-scale.in net spindle-override spindle-scale.out halui.spindle.0.override.scale setp halui.spindle.0.override.counts 1 setp halui.spindle.0.override.direct-value 1 setp spindle-scale.gain 4.18 #===POT INPUT IS LINEAR 0-23.915v=== setp spindle-scale.offset 0 #---SPINDLE-OVERRIDE-POT---END--- #============================================================

Looking here I see you are using direct value but counts is hard coded to 1.
counts is how you adjust the rate.

counts * scale = SO percentage

You also seem to have a second scale component - halui.spindle.0.oveeride has it's own scale setting

Chris

Please Log in to join the conversation.

More
6 years 8 months ago #158690 by cmorley
Replied by cmorley on topic LINEAR POTENTIOMETERS

bbsr_5a wrote: hi there is a HALUI section in the ini and also inside the POSTgui HAL
your in i loads up a Coustom_postgui file that is inside the machine fiolder

THERE you need to connect to a halui pin NOT IN THE MAIN HAL
see here the pinnames for spindle override
linuxcnc.org/docs/html/man/man1/halui.1.html


You can connect pins anywhere you like provided they are available.

postgui file was made because gui pins tend to come late into the process.

Following convention makes it easier for others to follow - but it's not required.

Chris

Please Log in to join the conversation.

More
6 years 8 months ago #158691 by COlger81
Replied by COlger81 on topic LINEAR POTENTIOMETERS
Thanks Chris, i got it sorted and working. I understand the flow now and the need for postgui.

Please Log in to join the conversation.

More
6 years 8 months ago #158692 by COlger81
Replied by COlger81 on topic LINEAR POTENTIOMETERS
I ended up using the Gmoccapy override pins.

Please Log in to join the conversation.

Time to create page: 0.040 seconds
Powered by Kunena Forum