Hello,
I have an application where we analyse the OPC UA timestamp. I have set the PLC time via a function block, once in standard time and once in UTC. This works well. The OPC UA timestamp always remains the same time and is the PLC timestamp UTC plus 2 hours. But I want to set Timezone = 0 and all timestamps should be the same (Logger = OPC UA Timestamp = PLC time)
Can this be changed in the settings?
Is the OPC calculated correct ?
I make 2 examples
Every time OPC UA Time = PLC UTC + 2 = GMT + 2 → Regardless of the time zone set in the PLC.
PLC time = UTC + Timezone eingestellt = GMT + Timezone eingestellt
PLC Logbuch = PLC Time
Timezone = GMT + 00.00

Every time OPC UA Time = PLC UTC + 2 = GMT + 2 → Regardless of the time zone set in the PLC
logger timestamp
Timezone = GMT + 02.00
In this condition I have a solution. But is there no better solution ?

Every time OPC UA Time = PLC UTC + 2 = GMT + 2 → Regardless of the time zone set in the PLC
logger
Thank you.
But why is OPC UA UTC different to plc UTC from B&R?
UTC B&R f.e 5:18:00
UTC OPC UA = 7:18:00
Timezone = 0
I did a test and it works correctly. Time zone GMT, set PLC time via the Online info, and the time is the same as the CurrentTime in the OPC UA server.
Hi Jürgen,
In one of your screenshots, we see an own application, right?
So is this application running on Windows?
I’m just asking because as I know, by default Windows does not use UTC inside the PC’s real time clock, but set’s the RTC of the PC to the local time - here’s some hint on that, even if the topic is complete different: Time change on AR Embedded
… and because of that, I’m just wondering if the difference could be caused by the Windows PC’s RTC setting?
BG Alex
Hi,
at real plc the problem was the Timestamp of a variable in OPC UA expert. Sometimes it ok. And sometimes not. Tool or Windows problem.
PLC time is also the same at Timezone 0. I don´t have seen the variable for OPC UA inside the OPC Server.
Thats ok now.
I also have Arsim. Here short difference.
OPC UA timestamp and UTC plc timestamp is the same. Ok.
At start of ArSim the ArSim takes the timezone of the PC / Windows. Here I cannot set all to the same time stamp.
That means the logging and all internal things B&R of the plc are in the timestamp with timezone. In my case + 1 h.
That means I must make inside my Windows application a switch ArSim or normalls Plc and then convert back the logbook entries for timezone - in my case -1 h.
Or have we there a other better solution?
thanks.
Hi,
that sounds plausible, because ArSim doesn’t have a “own RTC” but uses the Windows time information as RTC.
So unfortunately I haven’t any better idea then to solve it by application.
BG Alex