1. Write real-time seconds TWRS
1. Write real-time seconds TWRS
1.1. Instruction Description
Given the accumulated number of seconds since 2000/1/00:00:00, the instruction calculates the current date and time and writes it to the hardware clock,
1.1.1. Attention:
- Our HMI+PLC ALl-in-one could not use the function below
1.2. The valid operands of the instruction
| Input/Output | Data Type | operand | Description |
|---|---|---|---|
| SEC | 32-bit unsigned integer | D | seconds |
1.3. Example
Command table
NETWORK 000
LDP X000
TWRS D0
图1 TWRS