0% found this document useful (0 votes)
61 views6 pages

PLC Programming Strategy: Presented By: Engr. Ojay DL. Santos, M.Eng

This document discusses strategies for deriving ladder logic diagrams from truth tables, including the sum-of-products and product-of-sums methods. It provides examples of applying each method to a sample truth table and minimizing the resulting logic expressions. Finally, it presents three application problems involving designing PLC programs for drilling, lighting, and switch control systems.

Uploaded by

Eliel Basco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views6 pages

PLC Programming Strategy: Presented By: Engr. Ojay DL. Santos, M.Eng

This document discusses strategies for deriving ladder logic diagrams from truth tables, including the sum-of-products and product-of-sums methods. It provides examples of applying each method to a sample truth table and minimizing the resulting logic expressions. Finally, it presents three application problems involving designing PLC programs for drilling, lighting, and switch control systems.

Uploaded by

Eliel Basco
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

PLC Programming Strategy

Presented by:

Engr. Ojay DL. Santos, M.Eng.

Deriving a Ladder Diagram


from a Truth Table
 Any combinational logic process can be described
by a truth table which lists the logic values of the
outputs for all possible combinations of the
input.
 A truth table with one output and n inputs
consists of 2n rows.
 Given a truth table, an output function can be
derived by using either the sum-of-products
method or the product-of-sums method.

1
Sum-of-products method
RULES:
 Pick out all the rows that contain a logic 1 in the

output column.
 For each row that has an output equal to logic 1,
logically AND the corresponding inputs together
using a negation whenever an input is zero.
 Take all the row products and OR them together.

Sum-of-products method
EXAMPLE: Draw the ladder diagram of the given truth table.
A B C f
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1

2
f  A B C  AB C  ABC

Sum-of-products method
EXAMPLE: Draw the ladder diagram of the given truth table.
A B C f
0 0 0 0 Solution:
0 0 1 1
Using the laws of Boolean
0 1 0 0
algebra or Karnaugh
0 1 1 0 mapping, the output can be
1 0 0 0 minimized to
1 0 1 1
1 1 0 0
1 1 1 1

Product-of-sums method
RULES:
 Pick out all the rows that contain a logic 0 in the

output column.
 For each row that has an output equal to logic 0,

logically OR the inputs together using negation


whenever an input is logic 1.
 Take all the row sums and AND them together.

3
Product-of-sums method
EXAMPLE: Draw the ladder diagram of the given truth table.
A B C f
0 0 0 0
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 1
1 1 0 0
1 1 1 1

f  A B C  AB C  ABC

Product-of-sums method
EXAMPLE: Draw the ladder diagram of the given truth table.
A B C f
0 0 0 0 Solution:
0 0 1 1
Using the laws of Boolean
0 1 0 0
algebra or Karnaugh
0 1 1 0 mapping, the output can be
1 0 0 0 minimized to
1 0 1 1
1 1 0 0
1 1 1 1

4
Application Problems
1. The figure shows the sketch of a
drilling process that requires the drill
press to turn on only if there is a part
present and the operator has one hand
on each of the start switches. This
precaution will ensure that the
operator’s hands are not in the way of
the drill. The sequence of operation
requires that switches 1 and 2 and the
part sensor all be activated to make the
drill motor operate. Write a PLC
program that will implement this.

Application Problems
2. It is desired to implement a switch system (using
SPST) similar to a three-way switch in house
wiring; that is, a light may be turned on or off from
either of two switches at doors on opposite ends of
the room. If the light is turned on at one switch, it
may be turned off at the other switch and vice
versa. Design and simulate a PLC program that will
provide this.

5
Application Problems
3. Design and simulate a PLC program for a lighting
control system controlled by four switches – S1, S2,
S3, and S4. The lighting will be ON when only two
switches are closed.

Design Problem No. 1

You might also like