C Error And Arithmetic Flag Operation - Omron SYSMAC C200HS Operation Manual

Programmable controllers
Hide thumbs Also See for SYSMAC C200HS:
Table of Contents

Advertisement

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 Section 5 Instruction Set for details.
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)
TIM
CNT
1
END(01)
OFF
STEP(08)
Unaffected
SNXT(09)
CNTR(12)
TIMH(15)
WSFT(16)
CMP(20)
MOV(21)
MVN(22)
BIN(23)
BCD(24)
ASL(25)
ASR(26)
ROL(27)
ROR(28)
COM(29)
ADD(30)
SUB(31)
MUL(32)
DIV(33)
ANDW(34)
ORW(35)
XORW(36)
XNRW(37)
INC(38)
DEC(39)
STC(40)
Unaffected
CLC(41)
Unaffected
MSG(46)
1
ADB(50)
1
SBB(51)
Appendix C
Error and Arithmetic Flag Operation
25504 (CY)
Unaffected
OFF
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
ON
OFF
Unaffected
25505 (GR)
25506 (EQ)
Unaffected
Unaffected
OFF
OFF
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
Unaffected
25507 (LE)
Page
139
Unaffected
145
OFF
138
Unaffected
266
266
Unaffected
148
143
157
170
Unaffected
159
159
180
181
Unaffected
154
154
155
155
Unaffected
249
Unaffected
205
207
Unaffected
211
212
250
251
252
253
204
204
Unaffected
205
Unaffected
205
Unaffected
278
Unaffected
219
221
449

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents