Probe Basic spindle load bar off by a decimal

More
4 years 1 month ago #251364 by masterjuggler
I've got my spindle VFD controlled by an rs485 usb dongle. Looking at halshow, I get the correct current draw reported, and Probe Basic's load bar seem to properly reflect the current draw as a proportion of the max current I have set with the qtpyvcp.spindle-load-indicator.max-val signal. For some reason though, the percent shown seems to be off by a factor of 10. When at about 50% load it shows me 5%. Is this something I have misconfigured?

 

I attached my custom_postgui.hal showing how I have that configured. I'm using the latest master branch, compiled from source, and LinuxCNC 2.9 master.

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

More
4 years 1 month ago #251371 by Lcvette
Looks like you set max value to 9, that should be the max value percentage you are going to use. 

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

More
4 years 1 month ago #251375 by masterjuggler
I set it to 9 because I have the VFD set to max out at 9 amps. Changing the value to 100 doesn't change the displayed percentage at all, but it does change the bar's scale. So now when the FVD pulls 6 amps, Probe Basic shows me 6% and the bar barely moves.

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

More
4 years 1 month ago - 4 years 1 month ago #251376 by Lcvette
You need to add a scale for the vfd output. And translate it to the range you want to use. The max value your changing is for the max percentage display range of the bar, most will run 150-200% to allow for short term over loading which many drives allow for. You need to scale the analog to match that percentage your drive allows for.
Last edit: 4 years 1 month ago by Lcvette.

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

More
4 years 1 month ago #251377 by masterjuggler
OK, I see what you mean. Could I ask for either an example or a link to one so I can see how it needs to be set up? I'm unsure how to go about scaling the analog.

When I was running LinuxCNC 2.8 and Probe Basic from the installer, I had it set up with the Hal I attached above with the value set to 9 and it figured out the scale. I guess the behavior changed somewhere along the line.

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

More
4 years 1 month ago - 4 years 1 month ago #251378 by Lcvette
setp hm2_7i76e.0.7i76.0.0.analogin0-scalemax 363

Taken from here:

forum.linuxcnc.org/22-pyvcp/39322-scaling-an-analog-value
Last edit: 4 years 1 month ago by Lcvette.

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

Moderators: KCJ, Lcvette
Time to create page: 0.424 seconds
Powered by Kunena Forum