You are on page 1of 5

Journal of Industrial Technology • Volume 15, Number 3 • May 1999 to July 1999 • www.nait.

org

Volume 15, Number 3 - May 1999 to July 1999

A Systematic Procedure for Designing


State Combination Circuits in PLCs
By Dr. Chien-Pen Chuang, Ms. Xing Lan, & Dr. Joseph C. Chen

KEYWORD SEARCH

CIM
Computer Programming

Reviewed Article

The Official Electronic Publication of the National Association of Industrial Technology • www.nait.org
© 1999

1
Journal of Industrial Technology • Volume 15, Number 3 • May 1999 to July 1999 • www.nait.org

A Systematic Procedure
for Designing State
Combination Circuits
Dr. Chien-Pen Chuang is an associate professor in
the Department of Industrial Education at National
Taiwan Normal University. His research interests
in PLCs
are in digital signal processing, image processing, By Dr. Chien-Pen Chuang, Ms. Xing Lan, & Dr. Joseph C. Chen
digital communication and computerized skill test.
He has been an experienced researcher for National
Science Council of Taiwan and a patent reviewer
in the field of electronic technology after his gradu- Introduction problems (How the PLC, 1997). Many
ation from Iowa State University. A Programmable Logic Controller other issues have been discussed in the
(PLC) is a user-friendly, microproces- literature, including: a standard pro-
sor-based, specialized computer that gramming resource for PLCs (Babb,
can carry out control functions of many 1996), an explanation of PLC functions
types at many different levels of and where they can be employed
complexity. They can operate any (Martin, 1996), and a new friendly
system with output devices that turn on operator interface system (Morris,
and off, as well systems with variable 1996). However, the literature is weak
outputs. On-off devices or variable in describing any systematic way of
analog sensors can serve as input, and designing ladder logic circuits in PLCs.
PLC can be programmed, controlled,
Ms. Xing Lan is a Ph.D student in the Department
of Industrial Education and Technology of Iowa and operated by any individual with a Purpose
State University. She received a B.S. at 1985 and basic computer background. Due to its Fievet stated that “Because the
M.E. at 1990 at Hefei University of Technology at
China. She has ten years teaching experience and easy operation and powerful functions, number of potential faults and combi-
taught many courses on Computer Language, Da- PLC has become widely used in nations of faults is infinite, any system
tabase, Artificial Intelligence, Data Structure, and
Computer Graphics. industry. that relies on preprogrammed scenarios
The advantages of PLC make it the will eventually encounter a situation
brain of modern industrial control that it does not recognize” (Fievet,
systems. Its annual sales have reached 1997, p. 195). However, if a logical
the billion-dollar mark and continued relationship between inputs and outputs
steady growth is expected (Webb & can be achieved and a ladder diagram
Reis, 1995). For these reasons, can be drawn based on Boolean theory,
learning PLC operations is integral for many potential faults and combinations
modern Industrial Technologists. of faults can be avoided.
A variety of applications of the It is important to understand the
PLC in industrial control have been basic procedure used to construct a
Dr. Joseph C. Chen, PE is an associate professor in published. One example showed how ladder diagram. Webb (1995) proposed
the Department of Industrial Education and Tech-
nology at Iowa State University. Recently, he re- to use the PLC in the paper mill load- a method for building a large-process
ceived Early Achievement in Teaching Award from shed system (Fievet, 1997). In the ladder diagram construction (Fievet,
the Iowa State University. His research interests
are in cellular manufacturing systems, machine paper mill-shed system, the control 1997):
tool dynamics, and intelligent control as it relates process consists of three basic parts: 1. Define the process to be
to neural networks and fuzzy control.
sensing, deciding, and responding. controlled.
Sensing focuses on determining if there 2. Make a sketch of the process
All right reserved. This study, or parts is an event requiring load-shedding, operation.
thereof, may not be reproduced in any deciding controls decisions about the 3. Create a written sequence listing
form without written permission of the
appropriate loads to shed, and respond- the process step by step.
authors. This paper has not been
published nor it been submitted for
ing conducts the load-shedding task 4. On the sketch, add the sensors
publication elsewhere. consequentially. needed to carry out the control
Other topics addressed include an sequence.
analysis of the concepts and functions 5. Add manual controls needed
of PLCs in order to achieve greater for the process-setup or for
teaching effectiveness (Reis, 1996), operational checks.
and the properties and advantages of
PLCs when applied to automation

2
Journal of Industrial Technology • Volume 15, Number 3 • May 1999 to July 1999 • www.nait.org

6. Consider the safety of the ample has three inputs and two outputs. equation is the sum of these subsets. In
operating personnel and make The task is to design a control circuit this example, there are two outputs, X
additions and adjustments as where any combination of two input and Y, and the Boolean Equation for
needed. signals causes the output switch L1 to the X output is computed first.
7. Add master stop switches turn on, and one or no input signals are There are three rows with “1” output
required for safe shutdown. identified by L2. and the three subsets are:
8. Create a ladder logic diagram Step 1: Identify inputs and outputs.
that will be used as a basis for The task is to give each input and ROW4: L4=A . B . C
the PLC program. output device a specified name, so it ROW6: L6=A . B . C
9. Consider the possible points can be conveniently represented later.
where the process-sequence may Three inputs: ROW7: L7=A . B . C.
go astray. PB1: The first push button
PB2: The second push button Therefore, the completed Boolean
The control task can be defined PB3: The third push button equation for the X output becomes
completely by following steps 1-7. An Two outputs:
important issue for PLC users to L1: The first light X=L4+L6+L7=A . B . C + A . B . C + A . B . C .
consider is how to obtain the ladder L2: The second light
diagram from a specified control task.
Thus, a detailed procedure of the Step 2: Build an input State Table.
method used to construct ladder The key to designing a state combina-
diagrams is a useful complement to the tion circuit is to construct a State Table.
procedure outlined before. This paper The Input State Table contains all
expands upon step 8 above to provide a possible combinations of the input
new procedure for ladder diagram state. A two-input system, for ex-
construction. ample, has a total of 4 (or 22) combina-
The ladder logic program in a tions of input states. Likewise, a four-
computer takes the place of much of input system would have a total of 16
the external wiring required for control (or 24) possible combinations of input
of a process; thus it can be seen as a states. In this example, a three-input
control circuit within a PLC. Basically, system will have total of 8 (or 23)
there are two types of logic control possible combinations of input states
circuits: state combination and sequen- (Figure 1).
tial. The feature distinguishing state Figure 1. Input State Table
combination from sequential control Step 3: Determine the output
circuits is whether the control depends states. The Output State of each
solely on a combination of the inputs possible input combination is deter-
or includes a sequence of events. mined by the control task. In this case,
State combination circuits are L1 signal when only two of the three
solely determined by input states, inputs have an input of “1”. Thus, for
whereas sequential control circuits are output X/L1, row 4, row 6 and row 7
determined by both state combination have “1” values and the other rows
and a sequence of occurring events. In have “0”. L2 will be “on” when just
essence, two types of ladder programs one of the three inputs is “1” or all of
exist: one is developed from a state the three inputs are “0”. Next, for
combination of logic control circuits, output Y/L2, row 1, row 2, row 3 and
and the other is developed from a row 5 have “1” values and the other
sequential logic control circuit. The rows have “0”. Figure 2 depicts a Figure 2. Completed State Table
focus of this paper is to provide a completed State Table that includes all
procedure that demonstrates how to logic control task relationships, which
develop state combination circuits in are then used to derive a Boolean
the PLC. equation.

Methodology Step 4: Derive the Boolean


In order to explain the procedure equations. The rows of the state table
clearly, a detailed procedure accompa- which have “1” output state are used to
nied by an example showing how to develop the Boolean equations. Each
use the procedure to build a ladder of these rows represents a subset of the Figure 3.
logic diagram is outlined. This ex- Boolean equations. The complete
A Karnaugh Map of the Output X

3
Journal of Industrial Technology • Volume 15, Number 3 • May 1999 to July 1999 • www.nait.org

Using the same method as above, the Y are parallel in the ladder diagram. If
Boolean equation can be derived: two parts are connected by the “and”
operator in the Boolean equation, these
Y= A . B . C + A . B . C + A . B . C + A . B . C. two parts should be connected serially
in the ladder diagram.
Step 5: Simplify the Boolean A ladder diagram can be easily
equation. In most cases, the Boolean made according to the Boolean equa-
equations derived from the State Table tion. Figure 5 is the ladder diagram for
can be simplified with Boolean laws or this example. In Figure 5, relays A, B,
the Karnaugh map method. In the X and C are used for direct control by Figure 4.
output equation, no further simplifica- PB1, PB2 and PB3. A Karnaugh Map of the Output Y
tion can be achieved because there are
no adjacent pairs in the Karnaugh map. Step 7: Verify the results. Review
The Karnaugh map for the output X is the state diagram. Trace the circuit
illustrated in Figure 3. through each of the possible input
combinations and verify that the result is
In the Karnaugh map of the Y the same as indicated in the state table.
output (Figure 4), there are three
adjacent pairs in the group able to Step 8: Add the Memory Element
simplify the logical equation: to the circuit. In many applications
“momentary” switches are used as the
1. A . B . C and A . B . C input device. In this case, if the
actuation of an output must be main-
2. A . B . C and A . B . C tained, even after the input element has
been released, a memory element is
3. A . B . C and A . B . C normally added to provide the main-
taining function. The memory is
The three pairs have (A . B . C)in usually an open contact controlled by Figure 5. Ladder Diagram
common, so only one of the pairs needs the output relay, as shown in Figure 6.
to be selected in order to simplify the When the output relay CR is energized
Boolean equation. Any pair can be by pressing PB, the normally open
selected for this purpose. The third contact CR is closed to form a holding
pair is used to simplify the Boolean circuit to continuously energize the
equation of Y in this example. The output relay.
simplified output can be figured by The memory circuit shown in
using Boolean laws, however, using a Figure 6 needs to be improved because
Karnaugh map is a more direct method. there is no way to de-energize the relay
coil CR. A normally closed PB needs
Y=A.B .C+A.B. C +A .B. C+A. B. C to be added to the system to build a
= (A+A) . B . C+A . (B . C+B . C) complete memory circuit (Figure 7).
This circuit is often referred to as the Figure 6. Power-holding Circuit
= B . C + A . (B . C + B . C).
power-holding circuit.
If the circuit needs to be trans-
Step 6: Construct the ladder
ferred in order to maintain the power-
diagram and the PLC circuit. In a
holding function, the above method can
Boolean equation, there are three logic
be used to make the transfer. Suppose
operators: (1) the “×” is the “and”
the X-output of the previously men-
operator; (2) the “+” is the “or”
tioned circuit needs to be transferred in
operator; and (3) the “-” is the “not”
order to hold power. A normal closed
operator. If the input has a “not”
relay and a memory unit must be
operator in the Boolean equation, a
connected to the ladder diagram
normal closed relay should be selected
(Figure 8).
to represent it; otherwise, a normal
open relay is selected to denote the
input in the ladder diagram. If two
Conclusion
The logical relationships within the
input parts are connected by the “or”
specified control task can be repre-
operator in the Boolean equation, these
sented directly by the State Table. The Figure 7.
two parts should be connected so they
State Table is straightforward, so that
Completed Power-holding Circuit

4
Journal of Industrial Technology • Volume 15, Number 3 • May 1999 to July 1999 • www.nait.org

any mistakes of the control logic can be resource for PLCs. Control Engineer-
easily avoided and any complications ing, 67-8.
can also be easily represented. Based Fievet, J. P. (1997). The use of
on the completed State Table, the PLCs in paper mill load shed systems.
Boolean equation can be obtained Tappi-Journal, 80(3), 105-9.
easily and correctly. By using a How PLC opens new automation
Karnaugh map and Boolean laws, the opportunities. (1997, February).
Boolean equation can be simplified Electrical World, 46-7.
directly from the State Table. Using Martin, V. D. (1996, April).
these simplified Boolean equations to Programmable Logic Controllers.
draw a ladder diagram is very easy, Electronics Now, p. 37-8.
using the Boolean operation of “×”, Morris, H. M. (1996, April).
“+”, and “-“ to represent series connec- Operator interfaces let users and PLCs
tion, parallel connection, or closed ‘Talk’ to each other. Control Engineer-
contacts respectively. In essence, this ing, 69-70.
procedure makes the construction of a Reis, R. A. (1996, September). A
ladder diagram easier and more reliable mini-course for introducing PLCs. Tech
for Industrial Technologists. Directions, 42-45.
Webb, J. W., & Reis, R. A. (1995).
References Programmable logic controllers: Figure 8.
Babb, M. (1996, February) IEC Principles and applications (3rd Ed.). Ladder Diagram with Memory Element
1131-3: A standard programming Englewood Cliffs, NJ: Prentice Hall, Inc.

You might also like