Author Topic: show decimal in basic label or AnalogValueDisplay read 123 as 12.3  (Read 1835 times)

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
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

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #1 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

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #2 on: April 27, 2017, 05:10:36 AM »
thanks man you are always helpfull
it worked

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #3 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 ?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #4 on: April 27, 2017, 07:19:45 AM »
Set NumericFormat to 0.000

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #5 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?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #6 on: April 27, 2017, 09:33:50 AM »
Is the value your PLC 1.234 or 1234?

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #7 on: April 27, 2017, 01:22:30 PM »
it is 1234
and i need to display it as 1.234

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #8 on: April 27, 2017, 01:31:07 PM »
ScaleFactor = 0.001
NumericFormat = 0.000

oqapsking

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Re: show decimal in basic label or AnalogValueDisplay read 123 as 12.3
« Reply #9 on: April 27, 2017, 05:55:54 PM »
that worked thanks man
now i understand how it works :)