Omron C200HS Manuel D’Utilisation

Page de 504
449
Appendix C
Error and Arithmetic Flag Operation
The following table shows the instructions that affect the ER, CY, GR, LE and EQ flags. In general, ER indicates
that operand data is not within requirements. CY indicates arithmetic or data shift results. GT indicates that a com-
pared value is larger than some standard, LT that it is smaller, and EQ, that it is the same. EQ also indicates a result
of zero for arithmetic operations. Refer to 
Vertical arrows in the table indicate the flags that are turned ON and OFF according to the result of the instruction.
Although ladder diagram instructions,TIM, and CNT are executed when ER is ON, other 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.
Instructions not shown do not affect any of the flags in the table. Although only the non-differentiated form of each
instruction is shown, differentiated instructions affect flags in exactly the same way.
The ER, CY, GR, LE and EQ Flags are turned OFF when END(01) is executed, so their status cannot be monitored
with a Programming Console.
Instructions
25503 (ER)
25504 (CY)
25505 (GR)
25506 (EQ)
25507 (LE)
Page
TIM
Unaffected
Unaffected
Unaffected
Unaffected
CNT
END(01)
1
OFF
OFF
OFF
OFF
OFF
STEP(08)
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
SNXT(09)
CNTR(12)
Unaffected
Unaffected
Unaffected
Unaffected
TIMH(15)
WSFT(16)
CMP(20)
Unaffected
MOV(21)
Unaffected
Unaffected
Unaffected
MVN(22)
BIN(23)
BCD(24)
ASL(25)
Unaffected
Unaffected
ASR(26)
ROL(27)
ROR(28)
COM(29)
Unaffected
Unaffected
Unaffected
ADD(30)
Unaffected
Unaffected
SUB(31)
MUL(32)
Unaffected
Unaffected
Unaffected
DIV(33)
ANDW(34)
ORW(35)
XORW(36)
XNRW(37)
INC(38)
DEC(39)
STC(40)
Unaffected
ON
Unaffected
Unaffected
Unaffected
CLC(41)
Unaffected
OFF
Unaffected
Unaffected
Unaffected
MSG(46)
Unaffected
Unaffected
Unaffected
Unaffected
ADB(50)
1
Unaffected
Unaffected
SBB(51)
1