AdvancedHMI Software

General Category => Support Questions => Topic started by: oqapsking on April 26, 2017, 03:31:47 PM

Title: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: oqapsking on April 26, 2017, 03:31:47 PM
hello

what i need is the plc value is for example 234 and i wanna display it in the basic label or Analog Value Display as 23.4

when i use Digital Panel Meter i just put "1" inside decimal position property

but there is no such property in  basic label or AnalogValueDisplay
so can you guys tell me how to do it?

with thanks
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: Archie on April 26, 2017, 05:10:27 PM
After you enter a value in PLCAddressValue, it will let you expand it down. You can then set ScaleFactor to 0.1
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: oqapsking on April 27, 2017, 05:10:36 AM
thanks man you are always helpfull
it worked
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: oqapsking on April 27, 2017, 05:21:23 AM
ok when i have a value 1.234 and i want it to display 1.234
how ?
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: Archie on April 27, 2017, 07:19:45 AM
Set NumericFormat to 0.000
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: oqapsking on April 27, 2017, 08:50:16 AM
i tried this

value scale factor (0.1 )
numeric format 0.000

the display is 123.400

i tried

value scale factor (1 )
numeric format 0.000

the display is 1234.000


any ideas?
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: Archie on April 27, 2017, 09:33:50 AM
Is the value your PLC 1.234 or 1234?
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: oqapsking on April 27, 2017, 01:22:30 PM
it is 1234
and i need to display it as 1.234
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: Archie on April 27, 2017, 01:31:07 PM
ScaleFactor = 0.001
NumericFormat = 0.000
Title: Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
Post by: oqapsking on April 27, 2017, 05:55:54 PM
that worked thanks man
now i understand how it works :)