AdvancedHMI Software

General Category => Open Discussion => Topic started by: bowman@bcs4support.com on April 19, 2021, 04:02:18 PM

Title: Digital counter Display
Post by: bowman@bcs4support.com 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.
Title: Re: Digital counter Display
Post by: Archie on April 19, 2021, 04:35:44 PM
With a BasicLabel you can set the ValueScaleFactor to 0.0001
Title: Re: Digital counter Display
Post by: bowman@bcs4support.com 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
Title: Re: Digital counter Display
Post by: Godra 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).

Title: Re: Digital counter Display
Post by: Vitor 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