Table 8- 16
Data types for the parameters
Parameter and type
REQ
IN
Timezone
IN
DONE
OUT
BUSY
OUT
ERROR
OUT
STATUS
OUT
The REQ input is not used for SCL.
1
To manually configure the time zone parameters for the CPU, use the "Time of day"
properties of the "General" tab of the device configuration.
Use the SET_TIMEZONE instruction to set the local time configuration programmatically.
The parameters of the "TimeTransformationRule" structure specify the local time zone and
timing for automatic switching between standard time and daylight saving time.
Table 8- 17
"TimeTransformationRule" structure
Parameter
Bias
DaylightBias
DaylightStartMonth
DaylightStartWeek
DaylightStartWeekday
DaylightStartHour
StandardStartMonth
StandardStartWeek
StandardStartWeekday
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05
Data type
Bool
TimeTransformationRule
Bool
Bool
Bool
Word
Data type
Description
Int
Time difference between UTC and local time [min]
Int
Time difference between winter and summer time [min]
USInt
Month of daylight saving time
USInt
Week of daylight saving time:
1 = First occurrence of the weekday in the month
...
5 = Last occurrence of the weekday of the month
USInt
Weekday of daylight saving time:
1 = Sunday
...
7 = Saturday
USInt
Hour of daylight saving time
USInt
Month of switching to winter time
USInt
Week of the changeover to winter time:
1 = First occurrence of the weekday in the month
...
5 = last occurrence of the weekday of the month
USInt
Weekday of winter time:
1 = Sunday
...
7 = Saturday
101BExtended instructions
Description
REQ=1: execute function
Rules for the transformation from system time to
local time
Function complete
Function busy
Error detected
Function result / error message
8.1 Date and time-of-day
239