273
4
4 Instructions 4.8.4 Clock Read/Write
◆
Application
The seconds in D100 are converted to the
hours:minutes:seconds
format. The result is stored in R100,
R101, and R102.
4.8.4 Clock Read/Write
TRD: Clock data read
◆
Overview
The TRD instruction reads the current time and date of the internal real-time clock of the PLC. The time
and date include the year, month, date, hours, minutes, seconds, and day, which are stored in designated
registers.
TRD D
Clock data read Applicable model:
H3U
D
Time
storage
head
address
Head address of seven consecutive variable units that store
the year, month, date, hours, minutes, seconds, and day from
the smallest to largest addresses
16-bit instruction
(3 steps)
TRD: Continuous
execution
TRDP: Pulse
execution
◆
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
D X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
◆
Function
The current time and date of the internal real-time clock of the PLC are read and stored in designated
registers. The time and date include the year, month, date, hours, minutes, seconds, and day.
D is the head address of seven consecutive variable units that store the year, month, date, hours, minutes,
seconds, and day from the smallest to largest addresses.