93
one instruction line, the instruction lines are coded first before the instruction
that they control.
00002
00004
00003
00005
R: reset input
S: set input
KEEP(11)
HR 0000
Address
Instruction
Operands
00000
LD
00002
00001
AND NOT
00003
00002
LD
00004
00003
OR
00005
00004
KEEP(11)
HR
0000
4-7-3
Self-maintaining Bits (Seal)
Although the KEEP instruction can be used to create self-maintaining bits, it
is sometimes necessary to create self-maintaining bits in another way so that
they can be turned OFF when in an interlocked section of a program.
To create a self-maintaining bit, the operand bit of an OUTPUT instruction is
used as a condition for the same OUTPUT instruction in an OR setup so that
the operand bit of the OUTPUT instruction will remain ON or OFF until
changes occur in other bits. At least one other condition is used just before
the OUTPUT instruction to function as a reset. Without this reset, there would
be no way to control the operand bit of the OUTPUT instruction.
The above diagram for the KEEP instruction can be rewritten as shown be-
low. The only difference in these diagrams would be their operation in an in-
terlocked program section when the execution condition for the INTERLOCK
instruction was ON. Here, just as in the same diagram using the KEEP in-
struction, two reset bits are used, i.e., HR 0000 can be turned OFF by turning
ON either IR 00004 or IR 00005.
00002
00003
HR 0000
HR 0000
00004
00005
Address
Instruction
Operands
00000
LD
00002
00001
AND NOT
00003
00002
OR
HR
0000
00003
AND NOT
00004
00004
OR NOT
00005
00005
OUT
HR
0000
4-8
Work Bits (Internal Relays)
In programming, combining conditions to directly produce execution condi-
tions is often extremely difficult. These difficulties are easily overcome, how-
ever, by using certain bits to trigger other instructions indirectly. Such pro-
gramming is achieved by using work bits. Sometimes entire words are re-
quired for these purposes. These words are referred to as work words.
Work bits are not transferred to or from the PC. They are bits selected by the
programmer to facilitate programming as described above. I/O bits and other
dedicated bits cannot be used as works bits. All bits in the IR area that are
not allocated as I/O bits, and certain unused bits in the AR area, are avail-
able for use as work bits. Be careful to keep an accurate record of how and
where you use work bits. This helps in program planning and writing, and
also aids in debugging operations.
Work Bits
Section 4-8