Displaying Date and Time in Codesys

ajith picture ajith · Mar 18, 2015 · Viewed 7.5k times · Source

I am trying to display system time in Codesys Visualization.
I am using "#dt" to get the time and displaying it in Text field using

%t[ddd MMM dd.MM.yyyy HH:mm:ss] place holder.

I want to get display the local time. But I am getting in 'UTC' time stander.

What I should do to get the local time?

Answer

lmm picture lmm · Jun 26, 2015

I am not sure if the #dt is really necessary. I just typed the expression %t[ddd MMM dd.MM.yyyy HH:mm:ss] in the Text field of a rectangle object and it displays your PC's local time.