Description of the Function
The RRTC_DT_MS
function is used to recover the
PLC date and time in UTC (Coordinated Universal Time) with a 10 ms
precision. The function result will be returned by two outputs that
have different format:
A display format.
A calculation format.
RRTC_DT
function.The additional parameters EN
and ENO
can be configured.
FBD Representation
Representation:

LD Representation
Representation:

IL Representation
Representation:
RRTC_DT_MS(Display, Calc, Status)
ST Representation
Representation:
RRTC_DT_MS(Display, Calc, Status);
Description of the Parameters
This table describes the output parameters:
Parameter |
Type |
Comment |
---|---|---|
Display |
|
The
|
Calc |
|
The
|
STATUS |
|
The low byte is managed by the CPU. When the low byte is set to 1:
When the low byte is set to 0:
|
If the processor is When the high byte is set to 0, the updated date/time received from server and sent to module is:
|
||
For a valid time in
CPU, the low and high bytes of the |
Runtime errors
If the low byte or the high byte of STATUS
output is set to 1, the %S18 bit is set to
1 by the PLC system.