Chapter 16 PLC Function ApplicationsC2000-HS
16-107
API
TRD
Calendar data read
166
P
Bit device Word device
16-bit command (3 STEP)
TRD Continuous
execution type
TRDP Pulse
execution type
32-bit command
- - - -
Flag signal: none
X Y M K H KnX KnY KnM T C D
D * * *
Notes on operand usage:
Please refer to the function specifications table for each device in
series for the scope of device usage
S
1
: time minuend. S
2
: time augend. D: time sum.
D: device used to store the current calendar time after reading.
The EH/EH2/SV/EH3/SV2/SA/SX/SC main units have a built-in calendar clock, and
the clock provides seven sets of data comprising year, week, month, day, hour,
minute, and second stored in D1063 to D1069. The TRD command function allows
program designers to directly read the current calendar time into the designated
seven registers.
D1063 only reads the two right digits of the Western calendar year.
When X0=On, the current calendar time is read into the designated registers D0 to
D6.
In D1064, 1 indicates Monday, 2 indicates Tuesday, and so on, with and 7 indicating
Sunday.
X0
TRD D0
Special
D
Item Content
General
D
Item
D1063
Year
(Western)
00–99
D0
Year
(Western)
D1064 Weeks 1–7
D1 Weeks
D1065 Month 1–12
D2 Month
D1066 Day 1–31
D3 Day
D1067 Hour 0–23
D4 Hour
D1068 Minute 0–59
D5 Minute
D1069 Second 0–59
D6 Second