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-2
A5E00709327-01
5.2 Reading the Time with SFC 1 "READ_CLK"
Description
With SFC 1 "READ_CLK" (read system clock), you read the current date or current
time of the system clock of the CPU.
Parameter Declaration Data Type Memory Area Description
RET_VAL OUTPUT INT I, Q, M, D, L If an error occurs during the execution of the
function, the return value contains an error
code.
CDT OUTPUT DT D,L The current date and current time are output at
the CDT output.
Error Information
See Chapter Evaluating Errors with Output Parameter RET_VAL