Author Topic: Digital counter Display  (Read 1086 times)

bowman@bcs4support.com

  • Newbie
  • *
  • Posts: 10
    • View Profile
Digital counter Display
« on: April 19, 2021, 04:02:18 PM »
I have a pulse counter for a flow meter that totalizes pulses to display in gallons.  The accuracy of the counter in the PLC is to 5 decimal places.  I only want to see he hole number portion in the HMI display.

How to display only the hole number portion of the PLC data?

Thanks is advance.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Digital counter Display
« Reply #1 on: April 19, 2021, 04:35:44 PM »
With a BasicLabel you can set the ValueScaleFactor to 0.0001

bowman@bcs4support.com

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Digital counter Display
« Reply #2 on: April 20, 2021, 08:34:22 AM »
I am using the AnalogValueDisplay if that makes any difference.  The values in the memory location in the PLC can be 608.59756.  I only want to display the 608 portion.

Sorry if I got you confused.  Any suggestions?

Thanks

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
Re: Digital counter Display
« Reply #3 on: April 20, 2021, 04:23:19 PM »
Use its NumericFormat property and set it to "0000" (the number of 0 characters can be equivalent to the number of digits of the highest rounded received value but can also be more or less than that number).

« Last Edit: April 20, 2021, 08:27:41 PM by Godra »

Vitor

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Digital counter Display
« Reply #4 on: April 21, 2021, 03:02:18 PM »
In the NumericFormat property just put N0.
This way it follows the numeric format of your system.
If you want 1 decimal place it will be N1, N2 for 2 decimals and so on