![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452581.webp)
E L C P r o g r a m m i n g M a n u a l
F o r
m o r e
i n f o r m a t i o n v i s i t :
w w w. e a t o n . c o m
M N 0 5 0 0 3 0 0 3 E
3 - 4 1 2
API Mnemonic
Operands
Function
166
TRD P
D
Calendar Data Read
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
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32
16
P
32
16
P
32
16
P
32
16
P
32 16
P
Operands:
D
: The starting address of the current clock/calendar data (occupies 7 continuous words)
Description:
1.
The clock/ calendar in ELC-PV/PC/PA/PH series, year, week, month, date, hours, minutes and
seconds, total 7 data words stored in D1319~D1313. The TRD instruction reads the current
clock/calendar information and stores the values in the 7 data registers specified by
D
.
2.
D1319 is read as a two digit number for the year, but can be changed to a four digit number
per the notes below.
3.
The Real Time Clock in the ELCM-PH/PA maintains normal operation only while powered. The
RTC data registers D1319~D1313 are latched. When power is re-applied, the RTC will resume
from where it left off. Therefore, it is recommended that each time the controller is powered
that the current clock/calendar information be moved into D1313-D1319 using the TWR (API
167) instruction. For the ELC-PV/PC/PA/PH series, the clock/calendar information in
D1313-D1319 will continue when power is turned off to the controller. If the RTC information in
D1313-D1319 was correct when the controller was powered down, when power is re-applied
to the unit the RTC information will be correct.
4.
Flags: M1016, M1017, M1076, please see the Notes below.
Program Example:
When X0=ON, read the current time of calendar to the specified register D0~D6.
The content of D1318: 1 is Monday, 2 is Tuesday,…, 7 is Sunday.
X0
TRD
D0
Special D
device
Meaning
Content
General D
device
Meaning
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 Date
1~31
→
D3 Date
D1315 Hour
0~23
→
D4 Hour
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...