I have a Micrologix 1100, and I need to send all the date & time data from the RTC to a bar code printer. I want each part to consist of 2 digits (02/01/08 11:06:00). However, when any part of the RTC consists of only 1 digit (like 9 for 9am) I need to add the leading zero character. I figured out how to do this by using some math and sending each digit of each part to an individual string, then combining all the digits back together with an ACN, but I was wondering if anyone has a cleaner solution. My customer will look at this part of my program and wonder what is going on - and a confused customer usually means a phone call.
Evan