2 Instructions
2-22 CP1E CPU Unit Instructions Reference Manual(W483)
Hint
KEEP(011) has an immediate refreshing variation (!KEEP(011)). When a CPU Unit built-in output bit
has been specified for R in a !KEEP(011) instruction, any changes to R will be refreshed when
!KEEP(011) is executed and reflected immediately in the output bit.
KEEP(011) operates like the self-maintaining bit, but a self-maintaining bit programmed with
KEEP(011) requires one less instruction.
Self-maintaining bits programmed with KEEP(011) will maintain status even in an interlock program
section, unlike the self-maintaining bit programmed without KEEP(011).
KEEP(011) can be used to create flip-flops as shown below.
0.02
0.03
KEEP
100.00
100.00
0.02
5.00
0.03
C
CAB
A
B
KEEP
C
IL
ILC
IL
ILC
Output bit C will maintain its
previous status in an interlock.
Output bit C will be turned
OFF in an interlock.
A
A
B
B
KEEP
B
A
B