WallClockTime RSLogix 5000 GSV questions

gbradley

Lifetime Supporting Member
Join Date
Apr 2002
Location
Corona, Ca.
Posts
1,637
I am trying to get the Wall clock time with GSV.
I was looking at this you tube video Here,
I noticed that the Data type that they picked was Date_And_Time.
Is it possible that I don’t have this Data Type?
I am using 1769-L30ERM
Is there another way to get the Date, and time?
Maybe I can use Data type DINT?
Thanks

DateTime.jpg
 
The first comment on YouTube asks the same question, so it's clear that the video maker skipped over the fact that he created a User-Defined Data Type to hold the 7 DINT values that you get when reading the DateTime attribute with a GSV.

I usually just use a DINT[7] type array tag, rather than creating a UDT.
 
We do the same as Ken, 7 DINT array.

If you want a good bit to flash something on/off (like an indicator) DINT[6].19 works good. :)
 
Got it,
The Video added a few extra items;
TS_Second
TS_Hour
Second_Sent_Back
I don't think those were necessary, but I put them in just in case, and it all worked out OK.
Thanks
 
UTC Warning

DateTime is UTC and it should be noted does not use daylight savings time.

LocalDateTime includes a regional offset (such as eastern standard time) and often includes daylight savings time.

Select the one that makes sense for you. I generally use DateTime and add the offset and DST myself in my UDT.
 

Similar Topics

Hello, I am doing a PLC5-Contrologix plant migration. So far with the same exact GSV WallClockTime to DateTime array half of my controllers...
Replies
2
Views
1,575
Found a minor error generated on a rung which holds an SSV instruction for WallClockTime. Parameters for the instruction are as follows: Set...
Replies
4
Views
2,602
Hello: Before posting had a look to previous posts for Logix Studio's GSV WallClockTime, but did not see anything that could help me. Would be...
Replies
4
Views
1,877
I am using the GSV bit to retrieve the PLC time, but it says the year is 1970. I haven't been able to find anyway to change the PLC's clock. I'm...
Replies
9
Views
4,502
Hi. I hope you could give me some advise here. I'm ongoing with a project which has many plates that are glued individual and put into a...
Replies
10
Views
2,536
Back
Top Bottom