EasyManuals Logo

Siemens Simatic S7 Series System Manual

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #168 background imageLoading...
Page #168 background image
Program instructions
7.2 Clock
S7-200 SMART
168 System Manual, 09/2015, A5E03822230-AC
Format of 19 byte time buffer, beginning at byte address T
Note
T bytes (9 to18) or (9 to 20) are used only when a time correction mode is assigned in byte
8. Otherwise, the last values written
to bytes (9 to18) or (9 to 20) by
STEP
7-Micro/WIN SMART or the SET_RTCX instruction are returned.
You must assign all date and time values in BCD format (for example, 16#12 for the year
2012). The BCD value range of 00 to 99 can assign the year in the range of 2000 to 2099.
T byte
Description
Data value
0 Year 00 to 99 (BCD value) Year 20xx: where xx is the two digit BCD
value in T-byte 0
1
Month
01 to 12 (BCD value)
2
Day
01 to 31 (BCD value)
3
Hour
00 to 23 (BCD value)
4
Minute
00 to 59 (BCD value)
5
Second
00 to 59 (BCD value)
6
reserved
Always set to 00
7 Day of week Value ignored when written with the SET_RTCX / TODWX in-
struction.
Value reports correct day of week when read with the
READ_RTCX / TODRX instruction based upon current
Year/Month/Day values.
1 to 7, 1 = Sunday, 7 = Saturday (BCD value)
8 Correction mode:
For Daylight saving time
(DST)
00H = correction disabled
01H = EU (time zone offset from UTC = 0 hrs)
1
02H = EU (time zone offset from UTC = +1 hrs)
1
03H = EU (time zone offset from UTC = +2 hrs)
1
04H-07H = reserved
08H = EU (time zone offset from UTC = -1 hrs)
1
09H-0FH = reserved
10H = US
2
11H = Australia
3
12H = reserved
13H = New Zealand
4
14H-EDH = reserved
EEH = user defined (day of week) (using values in bytes 9-20)
EFH-FDH reserved
FEH = reserved
FFH = user defined (day of month) (using values in bytes 9-18)
The following bytes 9-18 are used only for correction mode = FFH (legacy user assigned)
9
DST correction hours
0 to 23 (BCD value)
10
DST correction minutes
0 to 59 (BCD value)
11
DST beginning month
1 to 12 (BCD value)
12
DST beginning day
1 to 31 (BCD value)
13 DST beginning hour 0 to 23 (BCD value)
14
DST beginning minute
0 to 59 (BCD value)

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals