Description of the function

The RRTC_DT function captures the current date from the PLC's real-time clock, it’s the Local Time value.

You have to configure at least once the PLC Time with Control Expert in the PLC Screen (tab Real-time clock).

NOTE: For M580 PLCs, the system words %SW49 to %SW53 give the current time in UTC (Coordinated Universal Time).

The additional parameters EN and ENO can be configured.

FBD representation

Representation:

LD representation

Representation:

IL representation

Representation:

RRTC_DT
ST Result_Date

ST representation

Representation:

RRTC_DT(Result_Date);

Description of the parameters

The following table describes the output parameters:

Parameter

Type

Comment

Result_Date

DT

Result_Date contains the current date value in DT format.