WRTC: Updating the system date
Original instructions
Description of the function
The WRTC function updates the current date in the PLC real-time clock. It is a function used to convert PL7 applications.
The additional parameters EN and ENO can be configured.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
LD Date1
WRTC
Representation in ST
Representation:
WRTC(Date1);
Description of parameters
The following table describes the input parameters:
Parameter
Type
Comment
Date1
ARRAY [0...3] OF INT
Date1 must contain the current value of the date in PL7 DT format (table of 4 integers). The contents of this variable must be assigned by program before launching the function.