LINEAR POTENTIOMETERS

More
27 Feb 2020 20:48 #158688 by cmorley
Replied by cmorley on topic LINEAR POTENTIOMETERS
#============================================================
#---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
The following user(s) said Thank You: COlger81

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

More
27 Feb 2020 20:52 #158690 by cmorley
Replied by cmorley on topic LINEAR POTENTIOMETERS

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
The following user(s) said Thank You: COlger81

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

More
27 Feb 2020 21:04 #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 or Create an account to join the conversation.

More
27 Feb 2020 21:05 #158692 by COlger81
Replied by COlger81 on topic LINEAR POTENTIOMETERS
I ended up using the Gmoccapy override pins.

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

Moderators: newbynobiHansU
Time to create page: 0.064 seconds
Powered by Kunena Forum