Home
Help
Search
Login
Register
AdvancedHMI Software
»
General Category
»
Open Discussion
»
scaling
« previous
next »
Print
Pages: [
1
]
Author
Topic: scaling (Read 2319 times)
Darrell
Full Member
Posts: 198
Electrician / PLC Technician
scaling
«
on:
September 28, 2017, 08:00:32 PM »
Is there way to scale a value for digital panel meter , really don't have the option of changing the program to do it , that would be
too simple
example (-32768 to 32767) to (-200 to 850)
Logged
Phrog30
Guest
Re: scaling
«
Reply #1 on:
September 28, 2017, 08:11:41 PM »
I think the circular progress bar has an example of this, at least the one I did, I think Archie kept that part in for the public release.
Logged
Archie
Administrator
Hero Member
Posts: 5320
Re: scaling
«
Reply #2 on:
September 29, 2017, 12:20:39 AM »
Try these settings:
ValueScaleFactor = 0.01602
ValueScaleOffset = 20284
Logged
Darrell
Full Member
Posts: 198
Electrician / PLC Technician
Re: scaling
«
Reply #3 on:
September 29, 2017, 10:26:52 AM »
this is what I'm trying to do , not a big deal my be a nice option for future releases. In some cases the company will not allow me to change the program
this did give me the correct value
thanks archie
«
Last Edit: September 29, 2017, 02:06:39 PM by Darrell
»
Logged
DougLyons
Jr. Member
Posts: 68
scaling
«
Reply #4 on:
September 29, 2017, 10:21:06 PM »
Maybe it would be good to have the formulas to derive the factors above.
ValueScaleFactor = [(scaled max) - (scaled min)]/[(input max) - (input min)]
ValueScaleOffset = [(scaled min)/ValueScaleFactor] - (input min)
Careful attention to the signs must be utilized to get the correct values for these.
Logged
Print
Pages: [
1
]
« previous
next »
AdvancedHMI Software
»
General Category
»
Open Discussion
»
scaling