1. Read real-time seconds TRDS

ในหน้านี้4 หัวข้อ

1.1. Instruction Description#

The instruction reads the current time and date from the hardware clock, converts it into the accumulated number of seconds since 2000/1/1 00:00:00, and writes it into the specified doubleword D register.

1.1.1. Attention:#

  1. 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

LD X000

TRDS D0 // Assuming the current time is 12:00:00 on January 1, 2001, and the number of seconds passed is (366/24+12)/; 60* 60=31,665,600

TRDS

图1 TRDS

อุปกรณ์ที่ใช้กับคู่มือนี้
2 รายการ
FAT-16MT-DC-E
FAT-16MT-DC-E

PLC 16 I/O 24V DC Transistor Output รองรับ Modbus RTU/RS485 TCP/IP

฿2,590

FAs-32MR-AC-E
FAs-32MR-AC-E

PLC 32 I/O 220V AC Relay Output รองรับ Modbus RTU/RS485 TCP/IP

฿3,690