Differentiate Up And Differentiate Down - Difu(13) And Difd(14) - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Bit Control Instructions
Description
Flags
5-7-2
DIFFERENTIATE UP and DIFFERENTIATE DOWN –
DIFU(13) and DIFD(14)
Limitations
Description
110
OUT and OUT NOT are used to control the status of the designated bit ac-
cording to the execution condition.
OUT turns ON the designated bit for an ON execution condition, and turns
OFF the designated bit for an OFF execution condition. With a TR bit, OUT
appears at a branching point rather than at the end of an instruction line. Re-
fer to 4-6-7 Branching Instruction Lines for details.
OUT NOT turns ON the designated bit for a OFF execution condition, and
turns OFF the designated bit for an ON execution condition.
OUT and OUT NOT can be used to control execution by turning ON and OFF
bits that are assigned to conditions on the ladder diagram, thus determining
execution conditions for other instructions. This is particularly helpful and al-
lows a complex set of conditions to be used to control the status of a single
work bit, and then that work bit can be used to control other instructions.
The length of time that a bit is ON or OFF can be controlled by combining the
OUT or OUT NOT with TIM. Refer to Examples under 5-11-1 TIMER – TIM
for details.
There are no flags affected by these instructions.
Ladder Symbols
DIFU(13) B
DIFD(14) B
Any output bit can generally be used in only one instruction that controls its
status. Refer to 3-2 IR Area for details and to 5-20 Block Instructions for in-
formation on using output bits in SET<07> and RSET<08>.
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 is 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).
Section 5-7
Operand Data Areas
B: Bit
IR, AR, HR, LR
B: Bit
IR, AR, HR, LR

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents