Studio 5000 wall clock hours off

seth9976

Member
Join Date
Jan 2020
Location
tampa
Posts
10
I am using v31 of studio5000 i created a UDT for years months days hours minutes seconds and micro seconds all DINTS like i always do to pull in the time for the wall clock. The hours read 12 when it is actually 8 when i try to use the hours, time but on the actual clock it reads 8 am which is the correct time. Anyone else having this issue?
 
Use LocalDateTime attribute not DateTime. LocaDateTime is adjusted for your time zone and daylight savings where DateTime is based on UTC. Of course assuming those have all been set.

OG
 
I have the exact same problem and while I could never find a solution, I put in a workaround:

I subtract 4 from the Hour value this time of the year, and subtract 5 hours during daylight savings time.

For hours <4 or <5, I just hard coded what the Hour time should be to avoid negative numbers from the subtraction.

This was a couple years ago and I have never needed to micromanage it.


Operaghost: Thanks for your actual solution !
 
Last edited:
(y)

Just FYI, that LocalDateTime attribute was added in version 15. Prior to that the DateTime attribute was your local date and time. There wasn't a local time and UTC. Messed us all up when they did that. They give a warning when converting a pre v15 project to a newer version, but it is easy to overlook or forget about that change.

OG
 
Last edited:
Operaghost said:
...that LocalDateTime attribute was added in version 15...

Hi OG...that's actually version 16...

ID: QA3213 | Access Levels: TechConnect
New ControlLogix Time Settings with v16 and up

Regards,
George
 

Similar Topics

Hi, how do I convert 2x Integer registers to a Real? The two integers are from Modbus registers that contain a floating point value, I need to...
Replies
2
Views
98
What is the best way to extract the hour and minute from the register that comes from Yaskawa VFD. In studio 5000 I have a register saved as INT...
Replies
3
Views
99
I have an Allen Bradley temperature switch that I am trying to use in studio 5000. I am getting the message "Unable to interpret the IODD file"...
Replies
0
Views
64
Hi all. I want to ask what may seem a stupid question, as I have a project to send live data to a Yeacode line printer which will print meterage...
Replies
8
Views
164
Hi guys , I'm new with Allen Bradley, but I have experience with Tia portal (s7 1200 ,s7 1500) I want to convert my project from Tia portal to...
Replies
2
Views
189
Back
Top Bottom