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
- Open the Numeric Object assigned to the PLC hour, minute, or second value.
- Open the Font tab.
- In the Text Alignment dropdown, select Leading Zero.
- Configure the data display format to allow two numbers to the left of the decimal.
- 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.