75
5-6
Bit Control Instructions
There are five instructions that can be used generally to control individual bit
status. These are OUT, OUT NOT, DIFU(13), DIFD(14), and KEEP(11).
These instructions are used to turn bits ON and OFF in different ways.
5-6-1
OUTPUT and OUTPUT NOT – OUT and OUT NOT
B: Bit
IR, HR, TR
Ladder Symbol
Operand Data Areas
OUTPUT – OUT
B
B: Bit
IR, HR, TR
Ladder Symbol
Operand Data Areas
OUTPUT NOT –
OUT NOT
B
Any output bit can be used in only one instruction that controls its status. See
3-3 Internal Relay (IR) Area for details.
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 a ON execution condition, and turns
OFF the designated bit for an OFF execution condition. OUT with a TR bit
appears at a branching point rather than at the end of an instruction line.
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 when a
complex set of conditions can 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.
5-6-2
DIFFERENTIATE UP and DIFFERENTIATE DOWN –
DIFU(13) and DIFD(14)
B: Bit
IR, HR
Ladder Symbol
Operand Data Areas
DIFU(13) B
B: Bit
IR, HR
Ladder Symbol
Operand Data Areas
DIFD(14) B
Limitations
Description
Flags
Bit Control Instructions
Section 5-6
Summary of Contents for SYSMAC C20K
Page 1: ...Cat No W146 E1 5 Programmable Controllers SYSMAC C20K C28K C40K C60K ...
Page 2: ...K type Programmable Controllers OPERATION MANUAL Revised July 1999 ...
Page 3: ...iv ...
Page 5: ...vi ...
Page 19: ...7 SECTION 2 Hardware Considerations 2 1 Introduction 2 2 Indicators 2 3 PC Configuration ...