I have to display the date and time on a 2711R-T10T.
I've seen the system tags $SysClockMonth, $SysClockDay, $SysClockYear, $SysClockHour, $SysClockMinute & $SysClockSecond. I was thinking of setting up numeric display fields for each and aligning them on screen with some '/' & ':" text labels used as separators so that it read like a traditionally formatted date & time - MM/DD/YYYY hh:mm:ss.
I don't have an HMI available to try it on but I'm worried I'm going to run into problems with the formatting because of the change from two digit values to one digit values. I think this will leave big, ugly gaps in the display field.
Is there a better way to do it? I'd like to be able to concatenate them into two strings and display them using string display fields, but I can't see how to do it. If I could get the HMI date & time tag values into the PLC, I could probably concatenate them there and display the PLC value but I can't see how to get the values out.
The PLC is a Micro850 (two actually, plus a Micro820 - I have three systems to update).
Thanks for any help you're able to offer.
I've seen the system tags $SysClockMonth, $SysClockDay, $SysClockYear, $SysClockHour, $SysClockMinute & $SysClockSecond. I was thinking of setting up numeric display fields for each and aligning them on screen with some '/' & ':" text labels used as separators so that it read like a traditionally formatted date & time - MM/DD/YYYY hh:mm:ss.
I don't have an HMI available to try it on but I'm worried I'm going to run into problems with the formatting because of the change from two digit values to one digit values. I think this will leave big, ugly gaps in the display field.
Is there a better way to do it? I'd like to be able to concatenate them into two strings and display them using string display fields, but I can't see how to do it. If I could get the HMI date & time tag values into the PLC, I could probably concatenate them there and display the PLC value but I can't see how to get the values out.
The PLC is a Micro850 (two actually, plus a Micro820 - I have three systems to update).
Thanks for any help you're able to offer.