Error And Arithmetic Flag Operation - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

The following table shows the instructions that affect the OF, UF, ER, CY, GR, LE and EQ flags.
In general, 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 calcula-
tion 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 instruc-
tion.
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 7 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
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)
Appendix B

Error and Arithmetic Flag Operation

25504 (CY)
25505 (GR)
---
---
---
---
OFF
OFF
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
25506 (EQ)
25507 (LE)
---
---
---
---
OFF
OFF
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
25404 (OF)
25405 (UF)
---
---
---
---
OFF
OFF
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
---
Page
234
235
227
237
238
262
280
269
270
291
292
263
263
264
264
372
317
318
320
321
373
374
374
519

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF