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 0 8
API Mnemonic
Operands
Function
161
TZCP P
S
1
, S
2
, S, D
Calendar Zone Compare
Bit Devices
Word devices
Program Steps
Type
OP
X Y M S K
H KnX
KnY
KnM KnS T
C
D
E
F
S
1
*
*
*
S
2
*
*
*
S
*
*
*
D
*
*
*
TZCP, TZCPP: 9 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:
S
1
: Lower limit time data
S
2
: Upper limit time data
S
: Current time of the RTC
D
: Comparison result (occupies 3 continuous addresses)
Operands
S
1
,
S
2
,
S
occupy 3 continuous addresses
S
1
should be less than
S
2
Description:
1.
S
is compared to the time of
S
1
~
S
2
and the comparison result is stored in
D
.
2.
S
1
,
S
1
+1,
S
1
+2: represents “Hour”, “Minute”, “Second” of the lower limit time data.
3.
S
2
,
S
2
+1,
S
2
+2: represents “Hour”, “Minute”, “Second” of the Upper limit time data
。
4.
S
,
S
+1,
S
+2: represents “Hour”, “Minute”, “Second” of the current time of calendar.
5.
The current time of the calendar specified by
S
is read by using the TRD instruction previously
in the program and then compared by using TZCP instruction. If the content of
S
,
S
1
,
S
2
exceeds the range, it will result in “operation error”. At this time, the instruction will not be
executed and M1067=ON, M1068=ON, and error code 0E1A (HEX) will be written to D1067.
6. If
S
<
S
1
and
S
<
S
2
,
D
is ON. If
S
>
S
1
and
S
>
S
2
,
D
+2 is ON. Except for these two situations,
D
+1 is ON. (Lower limit
S
1
should be less than upper limit
S
2
.)
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...