Keep - Keep(11) - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Bit Control Instructions
Precautions
Flags
Examples
00000
00001
00002
5-9-3
KEEP – KEEP(11)
Limitations
Description
Flags
The status of operand bits for SET and RSET programmed between IL(02)
and ILC(03), or JMP(04) and JME(05), will not change when the interlock or
jump condition is met (i.e., when IL(02) or JMP(04) is executed with an OFF
execution condition).
There are no flags affected by these instructions.
The following examples demonstrate the difference between OUT and SET/
RSET. In the first example (Diagram A), IR 10000 will be turned ON or OFF
whenever IR 00000 goes ON or OFF.
In the second example (Diagram B), IR 10000 will be turned ON when IR
00001 goes ON and will remain ON (even if IR 00001 goes OFF) until IR
00002 goes ON.
Diagram A
Diagram B
Ladder Symbol
S
R
Any output bit can generally be used in only one instruction that controls its
status.
KEEP(11) is used to maintain the status of the designated bit based on two
execution conditions. These execution conditions are labeled S and R. S is
the set input; R, the reset input. KEEP(11) operates like a latching relay that is
set by S and reset by R.
When S turns ON, the designated bit will go ON and stay ON until reset,
regardless of whether S stays ON or goes OFF. When R turns ON, the desig-
nated bit will go OFF and stay OFF until reset, regardless of whether R stays
ON or goes OFF. The relationship between execution conditions and
KEEP(11) bit status is shown below.
S execution condition
R execution condition
Status of B
There are no flags affected by this instruction.
Address Instruction
10000
00000
LD
00001
OUT
SET 10000
Address Instruction
00000
LD
RSET 10000
00001
SET
00002
LD
00003
RSET
Operand Data Areas
KEEP(11)
IR, SR, AR, HR, LR
B
Section 5-9
Operands
00000
10000
Operands
00001
10000
00002
10000
B: Bit
225

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents