EasyBuilder Pro: Configuring Leading Zeros for Time

Karen Mitchell1 min read
HMI ProgrammingOther ManufacturerTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

On a Weintek cMT3162 running EasyBuilder Pro V6.09.02.451, configure each Numeric Object to show a leading zero when its PLC clock value is less than 10. This produces a two-character hour, minute, or second field without modifying the USint data in the PLC.

Required display configuration

Setting Required value Purpose
Object type Numeric Object Displays the USint clock component
Font tab, Text Alignment Leading Zero Fills the unused tens position with zero
Display format Two digits left of the decimal Reserves both digit positions

Configure the Numeric Objects

  1. Open the Numeric Object assigned to the PLC hour, minute, or second value.
  2. Open the Font tab.
  3. In the Text Alignment dropdown, select Leading Zero.
  4. Configure the data display format to allow two numbers to the left of the decimal.
  5. Apply the same configuration to all three clock fields.

Verify the time display

Test each field with a value below 10 and confirm that the tens position displays zero. Then test a value of 10 or greater and confirm that both digits display normally. The setting changes presentation only; the underlying hour, minute, and second values remain USint data.

Troubleshoot a missing zero

If Leading Zero is selected but the field still shows one digit, recheck the display format. The Numeric Object must permit two numbers to the left of the decimal; otherwise, it does not have room to render the zero-filled tens position.

FAQ

How do I show 05 instead of 5 in EasyBuilder Pro?

Open the Numeric Object, select Leading Zero from the Text Alignment dropdown on the Font tab, and allow two digits to the left of the decimal.

Why does EasyBuilder Pro not display the leading zero?

Confirm both required settings: Leading Zero must be enabled and the display format must reserve two positions to the left of the decimal.

Do I need to change the PLC clock values from USint?

No. Keep the hour, minute, and second values in USint format and apply the leading-zero configuration to their HMI Numeric Objects.

Back to blog