User manual

Publication LOGIX-AP010B-EN-P - May 2010 103
Conversion of System Functions Chapter 5
Example: Reading the Time
The following ladder diagram shows how the GSV function is used to set the
system clock.
The following window shows the result of the above GSV instruction with the
date and time stored in the elements of the array GetDateTime[7].
GetDateTime[0] - year
GetDateTime[1] - month
GetDateTime[2] - day
GetDateTime[3] - hour
GetDateTime[4] – min
GetDateTime[5] – sec
GetDateTime[6] - microsecond