Technical data

Table Of Contents
SFCs for Handling the System Clock
System Software for S7-300/400 System and Standard Functions - Volume 1/2
5-4
A5E00709327-01
5.4 Setting the Time-of-Day and the TOD Status with
SFC 100 "SET_CLKS"
Description
Set the TOD and the TOD status for your CPU with SFC 100 "SET_CLKS".
Caution
Only use SFC 100 if the TOD for your CPU is not going to synchronized.
Otherwise, with every synchronization the master’s TOD status would be applied.
This would overwrite the value specified per SFC.
Via the MODE parameter you can specify whether to change only the TOD, only
the TOD status or both. This is explained in the table below:
MODE
(B#16#...)
Meaning
01 Setting the TOD
The SFC call corresponds with the call of SFC 0 "SET_CLK".
The input parameters CORR, SUMMER and ANN_1 are not evaluated.
02 Setting the TOD status
The input parameter PDT is not evaluated. The remaining input parameters form the
following TOD status elements:
Correction value including the sign
Announcement hour
Summer/Winter Time indicator
The TOD resolution is matched to that of your CPU. The bit synchronization failure of
the TOD status is indicated with FALSE.
The TOD remains unchanged.
03 Setting the TOD and the TOD status
Note
You can determine the current TOD status of your CPU by reading SSL ID
W#16#0132 index W#16#0008 using SFC 51 "RDSYSST".