Appendix D
Error and Arithmetic Flag Operation
The following table shows the instructions that affect the Error (ER), Carry (CY), Greater Than (GT), Equals
(EQ), and Less Than (LT) Flags. Vertical arrows in the table indicate the flags that are turned ON and OFF
according to the result of the instruction. Instructions not shown do not affect any of the flags in the table.
In general, ER indicates that operand data is not within requirements. CY indicates arithmetic or data shift re-
sults. GT indicates that a compared value is larger than some standard, LT that it is smaller, and EQ, that it is
the same. The status of these flags is maintained until another instruction that affects the flag is executed.
Although ladder diagram instructions, TIM, TIMH(15), CNT, and CNTR(12) are executed when ER is ON, oth-
er instructions with a vertical arrow under the ER column are not executed if ER is ON. All of the other flags in
the following table will also not operate when ER is ON.
The status of these flags cannot be monitored from the Programming Device, because the flags are turned
OFF when the END(01) instruction is executed.
Instructions
1303 (ER)
1304 (CY)
1305 (GR)
1306 (EQ)
1307 (LE)
TIM
Unaffected
Unaffected
Unaffected
Unaffected
CNT
END(01)
OFF
OFF
OFF
OFF
OFF
CNTR(12)
Unaffected
Unaffected
Unaffected
Unaffected
TIMH(15)
CMP(20)
Unaffected
Unaffected
MOV(21)
Unaffected
Unaffected
Unaffected
Unaffected
MVN(22)
BIN(23)
Unaffected
Unaffected
Unaffected
BCD(24)
ASL(25)
Unaffected
Unaffected
Unaffected
ASR(26)
ROL(27)
ROR(28)
COM(29)
Unaffected
Unaffected
Unaffected
Unaffected
ADD(30)
Unaffected
Unaffected
SUB(31)
ANDW(34)
Unaffected
Unaffected
Unaffected
Unaffected
ORW(35)
XORW(36)
XNRW(37)
INC(38)
Unaffected
Unaffected
Unaffected
DEC(39)
STC(40)
Unaffected
ON
Unaffected
Unaffected
Unaffected
CLC(41)
Unaffected
OFF
Unaffected
Unaffected
Unaffected
SLD(74)
Unaffected
Unaffected
Unaffected
Unaffected
SRD(75)
MLPX(76)
DMPX(77)
Содержание C500-LDP01-V1
Страница 1: ...C500 LDP01 V1 Ladder Program I O Unit Operation Manual Revised January 1992...
Страница 2: ......
Страница 4: ......
Страница 5: ...0 1 1 1 2 1 2 1 3 2 2 2 4 12 2 1 56 7 02 5 1 8 1 1 7 5 2...
Страница 7: ...02 4 8 02 3 3 3 8 8 3 4 3 3 4...
Страница 11: ...8 9 4 8 8...
Страница 18: ...8 3 8 02 5 02 5 8 02 2 2 3 0 5 0 1 1...
Страница 29: ...8 4 6 6 02 8 2 4 12 2 1 56 7 02 02...
Страница 37: ...3 8 4 8 4 3 5 1 8 1...
Страница 56: ...1 6 0 0 1 7 8 8 02 1 7 8 1 02 3 0 5 02 02 02 2 02 2 02 5 02 02 6 7 12 2...
Страница 57: ...3 4 6 2 1 3 0 3 4 7 02 6 7 6 02 8 2 8 0 5 7...