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 6
API Mnemonic
Operands
Function
160
TCMP P
S
1
, S
2
, S
3
, S, D
Calendar 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
3
*
*
*
*
*
*
*
*
*
*
*
S
*
*
*
D
*
*
*
TCMP, TCMPP: 11 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
: hours of comparison time, range is K0~K23
S
2
: minutes of comparison time, range is K0~K59
S
3
: seconds of comparison time, range is K0~K59
S
: Current clock information (occupies 3
continuous addresses)
D
: Comparison result (occupies 3 continuous addresses)
Description:
1.
S
1
,
S
2
,
S
3
are compared to the current values of the real-time clock
S
and save the comparison
result in
D
.
2.
S
is the hour of the current time and the range is K0~K23.
S
+1 is the minutes of the current
time and the range is K0~K59.
S
+2 is the seconds of the current time and the range is
K0~K59.
3.
The current time of the RTC specified by
S
is read by using the TRD instruction previously in
the program and then compared by using TCMP instruction. If the contents of
S
exceeds the
range, it will result in “operation error”, the instruction will not execute and M1067=ON,
M1068=ON, and the error code 0E1A (HEX) will be in D1067.
Содержание 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...