You are on page 1of 3

Chapter 5 - Mnemonic Programming Code

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

Now the active area contains:


{(IN1' + IN3 + IN8') (IN2 + IN7')} + IN5
This must be AND'ed with (IN4 + IN9'). To input this expression we must transfer the logic
in the active area to the stack, input the new expression, retrieve the stack and AND it with
the expression in the active area. These commands are:
8.
9.
10.

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

Chapter 5 - Mnemonic Programming Code


1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.

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

Chapter 5 - Mnemonic Programming Code


Chapter 5 Review Question and Problems
1.

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.

Write the mnemonic code for the J-K Flip Flop.

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.

Figure 5-7 - Ladder for Problem 5

5-12

You might also like