Professional Documents
Culture Documents
Chapter 5 - Mnemonic Programming Code LD Enter OR Not In7 Enter and LD Enter
Chapter 5 - Mnemonic Programming Code LD Enter OR Not In7 Enter and LD Enter
4.
5.
6.
LD
IN2
OR NOT IN7
AND LD
ENTER
ENTER
ENTER
Line 4 places the previous expression in the stack and begins the new expression and line
5 completes the new expression. Line 6 causes the stack logic to be retrieved and AND'ed
with the active area with the result left in the active area. Referring to Equation 5-3 notice
that the expression now located in the active area must now be OR'ed with IN5. This is a
simple OR command since the first part of the OR is already in the active area. The
command to accomplish this is:
7.
OR
IN5
ENTER
LD
IN4
OR NOT IN9
AND LD
ENTER
ENTER
ENTER
Line 8 transfers the previous expression to the stack and begins input of the new
expression, line 9 completes entry of the new expression and line 10 AND's the stack with
the new expression. The active area now contains:
(((IN1' + IN3 + IN8') (IN2 + IN7')) + IN5) (IN4 + IN9')
As may be seen in Figure 6-1 - all that remains is to OR this expression with IN6 and add
the coil command. The command lines for this are:
11.
12.
OR IN6
STO OUT1
ENTER
ENTER
Combining all the command lines into one set is shown below:
5-10
LD
OR
OR
LD
OR
AND
OR
LD
OR
AND
OR
STO
NOT IN1
IN3
NOT IN8
IN2
NOT IN7
LD
IN5
IN4
NOT IN9
LD
IN6
OUT1
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
ENTER
The previous example should be reviewed to be sure operation involving the stack
is thoroughly understood.
5-11
Draw the ladder diagram and write the mnemonic code for a program that will
accept inputs from switches IN1, IN2, IN3, IN4 and IN5 and energize coil
OUT123 when one and only one of the inputs is ON.
2.
Draw the ladder diagram and write the mnemonic code for an oscillator
named CR3.
3.
4.
Draw the ladder diagram, assign contact and coil numbers and write the
mnemonic code for a T Flip Flop.
5.
Write the mnemonic code for the ladder diagram of Figure 5-7.
5-12