2-21

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)

Sequence Output Instructions

2

KEEP

KEEP
Applicable Program Areas
Operands
Operand Specifications
Flags

No flags are affected by KEEP(011).

Function

Instruction Mnemonic Variations Function

code Function

KEEP KEEP !KEEP 011 Operates like a latching relay.

Symbol
KEEP
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
R Bit BOOL ---
Area Word addresses Indirect DM addresses Constants CF Pulse bits TR bits
CIO WR HR AR T C DM @DM *DM
R OK OK OK OK --- --- --- --- --- --- --- --- OK

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 designated bit will go OFF. The

relationship between execution conditions and

KEEP(011) bit status is shown below on the

right.

KEEP(011)
R
S(SET)
R(RESET)
R: Bit
ON
OFF
ON
OFF
ON
OFF
Status of C
S execution condition
R execution condition
=CA
B
A
C
B
Set
Reset
KEEP
C