Delta Electronics Programmable Logic Controller DVP-PLC User Manual
Page 515
![background image](/manuals/75807/515/background.png)
9 Application Instructions API 150-199
DVP-PLC Application Manual
9-43
API Mnemonic Operands
Function
166
TRD P
Time Read
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX KnY KnM KnS T
C
D
E
F
D
*
*
*
TRD, TRDP: 3 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
D: The device for storing the current time read in RTC
Explanations:
1.
D will occupy 7 consecutive devices.
2.
See the specifications of each model for their range of use.
3.
Flags: M1016, M1017, M1076. See remarks for more details.
4.
The built-in RTC in EH/EH2/SV/SA/SX/SC series MPU offers 7 data (year, week, month, day, hour, minute,
second) stored in D1319 ~ D1313. TRD instruction is for program designers to read the current data in RTC
and store the data to the 7 registers designated.
5.
D1319 only reads the 2-digit year in A.D. If you wish D1319 to read the 4-digit year, see remarks for more
information.
Program Example:
1.
When X0 = On, the instruction will read the current time in RTC to the designated registers D0 ~ D6.
2.
The content of D1318: 1 = Monday; 2 = Tuesday … 7 = Sunday.
TRD
X0
Special D
Item
Content General D
Item
D1319 Year
(A.D.) 00~99
D0 Year
(A.D.)
D1318
Day
(Mon ~ Sun)
1~7
D1
Day
(Mon ~ Sun)
D1317 Month 1~12
D2 Month
D1316 Day 1~31
D3 Date
D1315 Hour 0~23
D4 Hour
D1314 Minute 0~59
D5 Minute
D1313 Second 0~59
D6 Second