Keep, Applicable program areas operands, Flags – Omron SYSMAC CP CP1E-N@@D@-@ User Manual
Page 57: Function, 2 instructions, Operand specifications
2-21
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Seq
uen
ce Ou
tp
ut I
n
stru
ctio
ns
2
KEE
P
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
=
C
A
B
A
C
B
Set
Reset
KEEP
C