SSV Instruction for LocalDateTime

cwal61

Member
Join Date
Jan 2011
Location
NC
Posts
1,239
RS5000

Is it Possible to use the SSV Instruction To Change the WallClockTime / PLC Clock.

Attribute > LocalDateTime?

I can get the PLC Clock Values but have been unsucessful setting the PLC Clock Values.

From 5000 Help File
Wall Clock Time
A device located in the controller used to set and track the time of day. It is a 64-bit counter that counts in microseconds. Its CurrentValue is the number of microseconds from 0000 hours, January 1, 1970, coordinated universal time (UTC).
The SSV and GSV instructions can be used to set and read the Wall Clock Time in human readable format (i.e., Year, Month, Day, Hour, Minute, Second and Microsecond).
 
The Wall Clock Time is always in UCT (commonly called Greenwich Mean Time or Zulu Time). LocalDateTime is calculated from the Wall Clock Time.

So you can set the WallClockTime but you can't directly set the LocalDateTime.

You need to send a whole block of DINT values to the WallClockTime object; you can't independently set the Hour or the Day just by sending that individual value.
 
I use the DateTime attribute. It's a DINT[7] array containing

DateTime[0] Year
DateTime[1] Month
DateTime[2] Day of Month
DateTime[3] Hour
DateTime[4] Minute
DateTime[5] Second
DateTime[6] Millisecond
 

Similar Topics

This Set System Value (SSV) instruction is not setting the new time. The clock time simply does not change. Time1 is the common date/time...
Replies
5
Views
4,189
All I am studying a PLC program from another facility. It uses an SSV instruction and a GSV. Data in SSV, GSV as follows...
Replies
4
Views
7,404
I am monitoring "Axis.ConfigUpdateinProcess" bit. It seems to be High all the time since I am trying to dynamically set torque limit for that...
Replies
2
Views
2,755
Hello guys and gals. I have a processor instruction being used in one of my compactlogix called GET SYSTEM VALUE with the following info...
Replies
4
Views
7,406
I'm picking apart an existing machine file tonight, and I'm curious about a command I haven't used yet... SSV. I did a screen print of a portion...
Replies
8
Views
1,465
Back
Top Bottom