189
Appendix D
Error and Arithmetic Flag Operation
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)
SR 1906 (EQ)
SR 1905 (GR)
SR 1904 (CY)
SR 1903 (ER)
END(01)
OFF
OFF
OFF
OFF
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)
ON
ON
CLC(41)
OFF
OFF
MLPX(76)
DMPX(77)
SFTR(84)
SBS(91)
Note:
means that the flag is affected by the result of instruction execution.
Содержание SYSMAC C20K
Страница 1: ...Cat No W146 E1 5 Programmable Controllers SYSMAC C20K C28K C40K C60K ...
Страница 2: ...K type Programmable Controllers OPERATION MANUAL Revised July 1999 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 19: ...7 SECTION 2 Hardware Considerations 2 1 Introduction 2 2 Indicators 2 3 PC Configuration ...
Страница 225: ...Cat No W146 E1 5 Note Specifications subject to change without notice Printed in Japan Authorized Distributor ...