Description of the Function
The R_NTPC
function is available for M340, M580,
Premium and Quantum PLCs. It is used to recover the date and time
for an NTP server in two formats:
A display format.
A calculation format.
The additional
parameters EN
and ENO
can be configured.
FBD Representation
Representation:

LD Representation
Representation:

IL Representation
Representation:
R_NTPC(Display, Calc, Status)
ST Representation
Representation:
R_NTPC(Display, Calc, Status);
Description of the Parameters
The following 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 0:
When the low byte is set to 1:
|
If the processor is When the high byte is set to 1, 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 0, the %S18 bit
is set to 1 by the PLC system.