Date and time instructions
874
Part III FP Instructions
GET_RTC_DTBCD
Read the Real-Time Clock
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
Description
Use this PLC independent instruction to read the real-time clock data from the PLC. When the
instruction is carried out, the values from the special data registers DT90054 to DT90056 (DT9054
to DT9056) are transferred to the data unit type DTBCD. You can also use the system variables to
set the RTC. For detailed information on using system variables, please refer to data transfer to
and from special data registers (see page 859).
Example: