3. Instructions
162
CS/CJ/NSJ Series Instructions Reference Manual (W474)
KEEP
Applicable Program Areas
Operands
z Operand Specifications
*1 CJ2 CPU Units only.
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
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or transition
programs
Usage OK Not allowed OK OK OK OK
Operand Description Data type Size
BBit BOOL ---
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
B OKOKOKOK--- ---
OK*
1
OK*
1
--- --- --- --- --- 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)
B
S(SET)
R(RESET)
B: Bit
Set
Reset
ON
OFF
ON
OFF
ON
OFF
Status of C
S execution condition
R execution condition