D - Error And Arithmetic Flag Operation - Omron SYSMAC C20P Operation Manual

Sysmac programmable controllers
Hide thumbs Also See for SYSMAC C20P:
Table of Contents

Advertisement

The following table shows which instructions affect the ER, CY, GT, LT 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
compared value is larger than some standard, LT that it is smaller; and EQ, that it is the same. EQ also indi-
cates a result of zero for arithmetic operations. Refer to subsections of 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 in-
struction.
Although TIM, CNT, and CNTR 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.
Instructions
SR 1907 (LE)
END(01)
OFF
TIM
TIMH(15)
CNT
CNTR(12)
WSFT(16)
CMP(20)
MOV(21)
MVN(22)
BIN(23)
BCD(24)
ADD(30)
SUB(31)
MUL(32)
DIV(33)
STC(40)
CLC(41)
MLPX(76)
DMPX(77)
SFTR(84)
SBS(91)
Note:
means that the flag is affected by the result of instruction execution.
Appendix D
Error and Arithmetic Flag Operation
SR 1906 (EQ)
OFF
SR 1905 (GR)
SR 1904 (CY)
OFF
OFF
ON
OFF
SR 1903 (ER)
OFF
ON
OFF
181

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c28pSysmac c40pSysmac c60p

Table of Contents