![background image](http://html1.mh-extra.com/html/omron/sysmac-c200h/sysmac-c200h_operation-manual_742423118.webp)
105
Flags
There are no flags affected by these instructions.
5-7-2
DIFFERENTIATE UP and DOWN – DIFU(13) and DIFD(14)
B: Bit
IR, AR, HR, LR
Ladder Symbols
Operand Data Areas
DIFU(13) B
B: Bit
IR, AR, HR, LR
DIFD(14) B
Any output bit can generally be used in only one instruction that controls its
status. Refer to 3-3 IR Area for details.
DIFU(13) and DIFD(14) are used to turn the designated bit ON for one cycle
only.
Whenever executed, DIFU(13) compares its current execution with the previ-
ous execution condition. If the previous execution condition was OFF and the
current one is ON, DIFU(13) will turn ON the designated bit. If the previous
execution condition was ON and the current execution condition is either ON
or OFF, DIFU(13) will either turn the designated bit OFF or leave it OFF (i.e.,
if the designated bit is already OFF). The designated bit will thus never be
ON for longer than one cycle, assuming it is executed each cycle (see Pre-
cautions, below).
Whenever executed, DIFD(14) compares its current execution with the previ-
ous execution condition. If the previous execution condition was ON and the
current one is OFF, DIFD(14) will turn ON the designated bit. If the previous
execution condition was OFF and the current execution condition is either
ON or OFF, DIFD(14) will either turn the designated bit OFF or leave it OFF.
The designated bit will thus never be ON for longer than one cycle, assuming
it is executed each cycle (see Precautions, below).
These instructions are used when differentiated instructions (i.e., those pre-
fixed with an @) are not available and single-cycle execution of a particular
instruction is desired. They can also be used with non-differentiated forms of
instructions that have differentiated forms when their use will simplify pro-
gramming. Examples of these are shown below.
Flags
There are no flags affected by these instructions.
DIFU(13) and DIFD(14) operation can be uncertain when the instructions are
programmed between IL and ILC, between JMP and JME, or in subroutines.
Refer to 5-8 INTERLOCK and INTERLOCK CLEAR – IL(02) and ILC(03), 5-9
JUMP and JUMP END – JMP(04) and JME(05), and 5-20 Subroutines and
Interrupt Control for details.
In diagram A, below, whenever CMP(20) is executed with an ON execution
condition it will compare the contents of the two operand words (HR 10 and
DM 0000) and set the arithmetic flags (GR, EQ, and LE) accordingly. If the
execution condition remains ON, flag status may be changed each cycle if
the content of one or both operands change. Diagram B, however, is an ex-
Limitations
Description
Precautions
Example 1:
When There is No
Differentiated Instruction
Bit Control Instructions
Section 5-7
Содержание SYSMAC C200H
Страница 1: ...OPERATION MANUAL C200H CPU01 E 03 E 11 E SYSMAC Programmable Controllers Cat No W130 E1 05 ...
Страница 2: ...C200H Programmable Controllers CPU01 E 03 E 11 E Operation Manual Revised June 2003 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 8: ...TABLE OF CONTENTS ix Glossary 345 Index 363 Revision History 369 ...
Страница 342: ...336 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 374: ...Cat No W130 E1 05 C200H Programmable Controllers CPU01 E 03 E 11 E OPERATION MANUAL ...