Omron C200HX Operation Manual page 545

Hide thumbs Also See for C200HX:
Table of Contents

Advertisement

Error and Arithmetic Flag Operation
The following table shows the instructions that affect the N, OF, UF, ER, CY, GR, LE and EQ flags.
In general, N indicates a negative result, OF indicates that the result of a 16-bit calculation is greater than 32,767
(7FFF) or the result of a 32-bit calculation is greater than 2,147,483,647 (7FFF FFFF). UF indicates that the result
of a 16-bit calculation is less than –32,768 (8000) or the result of a 32-bit calculation is less than –2,147,483,648
(8000 0000). Refer to Section 5 Instruction Set for details.
ER indicates that operand data is not within requirements. CY indicates arithmetic or data shift results. GR indi-
cates that a compared 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.
All 8 flags are turned OFF when END(01) is executed, so their status cannot be monitored with a Programming
Console.
Mnemonic
25503
(ER)
µ
TIM
µ
CNT
END (01)
OFF
SFT(10)
OFF
µ
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)
---
Appendix C
25504
25505
25506
(CY)
(GR)
(EQ)
---
---
---
---
---
---
OFF
OFF
OFF
---
---
---
---
---
---
---
---
---
---
---
---
µ
---
---
---
---
---
---
---
---
---
µ
---
µ
---
µ
---
µ
---
---
---
µ
---
µ
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
ON
---
---
25507
25404
(LE)
(OF)
---
---
---
---
OFF
OFF
---
---
---
---
---
---
---
---
µ
µ
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
µ
---
---
---
---
25405
25402
Page
(UF)
(N)
---
---
159
---
---
166
OFF
OFF
158
---
---
171
---
---
169
---
---
164
---
---
178
---
---
193
µ
---
180
µ
---
180
---
OFF
204
---
---
205
µ
---
175
---
OFF
175
µ
---
176
µ
---
176
µ
---
277
---
---
229
---
---
231
---
---
235
---
---
236
µ
---
278
µ
---
279
µ
---
280
µ
---
281
---
---
228
---
---
228
---
---
229
527

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200hgC200he

Table of Contents