what is the difference between DateTime and LocalTime

Abn

Member
Join Date
Nov 2019
Location
Fl
Posts
37
Hi , I'm using GSV and SSV instruction set and read dates but I see there are 2 attributes for the wallclock object.

DateTime and LocalTime.

What is the difference?

Regards
 
I believe the DateTime uses UTC time, and LocalTime will use the timezone and daylight savings if they are configured.
 
Full answer.....


The DateTime values are what the WallTimeClock is running on. The RTC runs on UTC only, and has no concept of DST (Daylight Savings Time). Rockwell sells their products globally, and to deal with DST internationally would be a nightmare. Google DST and you will see what I mean, many countries have different ideas.....


The LocalDateTime is an adjusted time, dependent upon the values you set (using SSV) in DST_Offset. This is a value (in minutes) that you can define, and adjusts the DateTime value by the number of minutes you program it to.

Also bear in mind that the PLCs clock will not "apply" DST to the Local Date/Time automatically, you have to tell it, programatically, when to do so, dependent on the dates involved.

I have a working solution, UK based, that keeps the operators view of the DST adjusted clock correct. You may be able to use this in your application. PM me if you are interested.
 

Similar Topics

Hello, I have a problem with AO- and AA-Tags. When I use for example the tag AO_Test with the address 200 and type the value 1,2 in, the AA-Tag...
Replies
7
Views
1,410
As per the title. This might seem like a basic question to many, but I'm unclear about the difference between a coil ( ) and an application...
Replies
28
Views
4,023
Good Morning , I have 2 Frequency Drive panels to build and commission . It is for 2 pump systems . Just wondering , what is the...
Replies
4
Views
1,968
Hi Experts, Good day! What are the differences between PCS7 SIMATIC Batch and PM Control? Do you have any manual like "Getting Started "...
Replies
0
Views
809
I have a Automation Direct Click Plus that you can buy option CPU slot modules for input/outputs. The slot modules have the options of sinking...
Replies
9
Views
2,816
Back
Top Bottom