13 - Chapter 3
13 - Chapter 3
3.1 Introduction
The control systems before 1960’s were based on relay control. These
systems faced the problem of flexibility in the expansion of process, occupied
large space in the control room and taken longer duration of time during the
changes and troubleshooting of control process. To overcome these difficulties
Bedford Associates team Richard Morley, Mike Greenberg, Jonas Landau,
George Schwent and Tom Boissevain, introduced the first Programmable Logic
Controller (PLC) in the year 1969 called as Modicon Modular Digital
Controller (Modicon 084). The initial machine had 125 words of memory,
occupied large space and there were no considerations for speed. Later this was
modified with some changes in the control design by the engineers of Allen-
Bradley, named as Odo Struger and Ernst Dummermuth. Current processors
have the ability to scan a 100,000 steps program in one millisecond, small and
light weight with a built-in Ethernet port [1-5].
26
located controlling capability, millisecond or fast response time, simplified
wiring, cost saving, improved maintenance, increased reliability, more
flexibility, communication capabilities, easy of programming and trouble
shooting, lower cost, higher level of performance, expandability, modularity
and withstand against harsh environments [6-8].
27
instructions in the memory and controls the output based on the input statuses
and program instructions. Therefore CPU is said to be a brain of a
programmable logic controller. Generally personal computer (PC) is used as a
Programming unit of a PLC and is removed after software testing or execution
of the program. Memories of a PLC are used to store the instructions and data.
These are organized as program memory and data memory to store the logic
program and variable data of the program respectively. The storage of
information in these memories is tracked by an addressing system, to indicate
the location of memory contents. The input module receives both digital and
analog signals from the field devices and the output module sends the control
signals to the devices to be controlled by the PLC based on the control
program. Thus the inputs are the switches and/or sensors (both digital and
analog) and the outputs are either discrete signals (ON/OFF signals) or analog
control signals which provide the analog voltage/current proportional to the
physical parameters to be controlled. A PLC can be used to send/receive the
information over a communication network via local area network (LAN) or
through Ethernet by using a communication interface ports [9, 10].
POWER
SUPPLY
O M
M
I U O
O CENTRAL PROCESSING UNIT
N T D
D
P P U
U
U
L
(CPU) U L
T T E
E
PROGRAMMING
DEVICE
28
3.3 Architecture of PLC
The paths which connect different parts of PLC are called as buses.
These are tracks on Printed Circuit Boards (PCB) for controlling data flow
between the control elements. The data bus is used to send the data, address bus
is used to send the location of addresses and control bus is used to control these
data and address bus information within the PLC for the internal operation. The
data bus has 8 bit words and address bus has 8 address lines of 8 bit words.
Thus the possible addresses are 28 = 256 address lines. Similarly 65,536
addresses can be used for 16 address lines. The data between memory devices
and input/output is controlled by the control bus signals.
29
Fig. 3.2: Architecture of PLC
The PLCs are classified, based on their size as single box and modular
types. Single box type is also known as brick and consists of integrated
components such as power supply, memory, input/output units and processor.
Modular types of PLCs are more than one such bricks and are plugged in a
common rack. These are of different sizes with special features of variable
power supply and computing capabilities.
Modular PLCs are further divided into small, medium and large based
on their memory size and the number of I/O. Small PLC is mini-sized and is
limited for one or two expansion modules. They use instruction list or relay
ladder diagram programming languages. Medium sized PLCs are used in
industrial applications. They have many modules for connecting I/O and
communication ports. Large sized PLCs are preferred for complex process
control applications which require higher capacities of work as compared to
medium PLCs.
30
Manufacturers of modular type PLCs are Rockwell Automation,
Siemens, Omron, Mitsubishi, Hitachi, Delta, ABB (Asea Brown Boveri),
General Electric (GE), Honeywell, Modicon, Schneider Electric and Bosch.
Brand name of Rockwell Automation of USA PLC is Allen-Bradley
(MicroLogix). Among various types of PLCs, MicroLogix programmable
controllers are widely used for implementing real time control of automation
applications. MicroLogix programmable logic controller is used for the
proposed work. Hence details of the same are discussed.
31
side views of MicroLogix 1100, 1763-L16BBB PLC and The hardware
features of the controller are listed in Table 3.1. The detailed discussions of real
time clock and memory module, communication ports, input and output blocks,
and LCD Screen of MicroLogix 1100, 1763-L16BBB PLC and its expansion
I/O module 1762-IF20F2 are presented here.
1763 – L 16 B B B
Power Supply
Bulletin Number
A = 120/240 V AC
Base Unit B = 24V DC
D = 12…24V DC
Number of digital I/O
Input Type:
Output Type:
A = 120 V AC
B = Relay/24V DC
B = 24V DC
W = Relay
C = 12…24V DC
32
Fig. 3.4a: Top View
33
Table 3.1: Hardware features of MicroLogix 1100, 1763-L16BBB PLC
Top View
Feature Description
2 Battery connector
4 Battery
6 LCD
9 Memory module
Side View
Feature Description
12 Ethernet port
34
3.6.1 Real Time Clock and Memory Module
The output block from 18 to 34 are grouped as Group 0 (22 and 23),
Group 1 (24 and 25) and Group 2 (28-33). Group 0 has two terminals labeled
as output O/0 and VAC/VDC (24V DC Common). Group 1 has two terminals
35
labeled as output O/1 and VAC/VDC. Group 2 has six terminals. Four
terminals labeled from O/2 to O/5 are the outputs and two terminals +24V and -
24V are the power supply terminals. The output terminal grouping is shown
Table 3.2b. Terminal 20 is common ground. Terminals 18 and 19 are used to
connect external 24V DC power supply. Remaining terminals, that are 16 and
17 at input block and 21, 26, 27 and 34 at output block are not used. Table 3.3
shows I/O description along with the specifications [14].
36
Table 3.2: I/O terminal groupings of MicroLogix 1100, 1763-L16BBB PLC
Inputs
Outputs
37
Table 3.3: I/Os of MicroLogix 1100, 1763-L16BBB PLC
Description Specification
(2)24V DC FET
The MicroLogix 1100 controller has Liquid Crystal Display (LCD) and
keypad as shows in Fig.3.6a. The startup screen of the controller display the
controller name “MicroLogix 1100” for 3 seconds and is followed by the I/O
status screen shown in Fig. 3.6b. First row of LCD screen indicates modes of a
controller. Second row indicates input (I) states, third row indicates number of
input and output variables (ten digits from 0 to 9) and fourth row indicates
output (O) states of a PLC. The darkened squares show the ON status and
empty squares show the OFF status of the control variables. The main menu
objects of LCD screen are shown in Table 3.4.
38
Fig. 3.6a: LCD Screen and Key pad Fig. 3.6b: I/O status Screen
Fig. 3.6: LCD and default I/O status screen of MicroLogix 1100, 1763-L16BBB PLC
Monitoring Allows to view and change data value of a bit and an integer file.
39
3.6.5 Expansion I/O module 1762-IF20F2
40
3.7 Programming languages
PLC has its own design methods and programming languages and has
been standardized by the International Electro technical Commission (IEC) as
IEC standard 61131. These standards are instruction list (IL), function block
diagram (FBD), structured text (ST), sequential function chart (SFC) and
ladder diagram (LD) program.
FBD is a very common to the process industry and uses the graphical
blocks during the programming. These blocks are used to execute functional
operations and require large screen space for programming. For large scale
control applications, it is difficult to trace the error in the program because the
program becomes clumsy to make any corrections.
ST and SFC are the graphical languages used for the control system and
control process respectively. ST is the high level textual language and uses the
instructions as similar to the instructions used in BASIC, PASCAL or C
languages. SFC uses flowcharts to control the process in its program which
simplifies the control logic programming and organizes functional
specifications of a system. It is easier to read and add notes to clarify steps or
capture important information for later use. The language utilizes reduced time
to design and debug the program with faster and repeated execution of
individual pieces of logic with simple screen display.
41
LD a graphical language has its roots in USA and is the most widely
used programming language. It is based on the relay control logic. One can
understand and troubleshoot a program with some basic ideas of Boolean logic
operations [17, 18]. Following discusses the LD programme in detail since this
one is used in our proposed systems.
Basic symbols used in the ladder diagram are Examine If Closed (XIC),
Examine If Open (XIO) and Output Energize (OTE). These are shown in Fig.
3.8. XIC and XIO represent input instructions of the control logic and OTE is
the output instruction of the control logic. The XIC instruction is said to be
TRUE when the input is closed (1) and is FALSE when the input is open (0).
Reverse is the case in case of XIO instruction. The status of the OTE
instruction depends upon the input statuses of the instructions. Thus the
symbols XIC, XIO and OTE resemble the normally open, normally closed and
the output coils of the relay logic circuit respectively.
The symbols are labeled with bit addresses. The notations of addressing
vary with the manufacturers accordingly as suggested in Mitsubishi, Siemens,
Allen-Bradley, Telemecanique etc. The switching actions of the elements are
similar to the action of ON and OFF of electrical switches. The output action is
equivalent to the status of the output coil based on the control logic program. In
the ladder diagrams, these symbols are connected in horizontal lines and are
placed between two vertical lines. Each horizontal line is called as ‘rung’. Thus
the term ‘Ladder’ is used because the program looks the shape of a ladder with
42
horizontal rungs between two vertical lines. During the program scan, ladder
diagrams are read from left to right and from top to bottom. In each scan, the
contents of a program are updated as per the control logic. Time period of
10ms to 50ms is taken by the controller for the program scan. During the
execution of a cycle, all the rungs are scanned and the error is noticed if any at
end of last rung, called end rung [19, 20].
43
windows operating system. RSLinx Classic is the software used to configure
RS Logix 500 software and PLC for control operations. The basic techniques
used in switching control operations of the ladder diagram programming are
AND, OR, NOT, NAND, NOR and Exclusive OR (XOR) which are discussed
one by one. Apart from these basic programming techniques special logical
operations, latching and multiple outputs are explained at the end.
3.8.1 AND
44
Table 3.5: Truth Table for AND operation
Inputs
Output
A B
0 0 0
0 1 0
1 0 0
1 1 1
3.8.2 OR
Input A Output
Input B
45
Table 3.6: Truth Table for OR operation
Inputs
Output
A B
0 0 0
0 1 1
1 0 1
1 1 1
3.8.3 NOT
Fig. 3.11 shows a ladder diagram for NOT or inverter logic ladder
symbol. The input contact A is shown by XIO symbol ‘|/|’ and is terminated
with the output. If the input A is 0, which resembles normally closed switch,
then the output is 1 due to flow of power from the left-hand vertical to the
right-hand vertical of a rung. When the input A is 1, which resembles closed
switch becomes open, then the output is 0, because the power flow from left-
hand vertical to right-hand vertical of a rung disconnects. This resembles NOT
gate. The logical operations are given in Truth Table 3.7.
Input A Output
46
Table 3.7: Truth Table for NOT operation
Input
Output
A
0 1
1 0
3.8.4 NAND
Fig. 3.12 shows NAND logic ladder diagram. Here two normally closed
inputs A and B (NOT ladder logic), are connected in parallel. When either of
the upper branch and lower branch inputs A or B are 0 or both are 0, the output
is 1 due to power flow from left-hand vertical to the right-hand vertical by the
inputs in 0 states. When both input A and input B are 1, the output is 0, because
the inputs normally closed becomes open on both the arms to break the flow of
power from left-hand vertical to right-hand vertical. Truth Table 3.8 shows the
NAND logic.
Input A Output
Input B
47
Table 3.8: Truth Table for NAND operation
Inputs
Output
A B
0 0 1
0 1 1
1 0 1
1 1 0
3.8.5 NOR
Fig. 3.13, shows a ladder diagram of NOR logic. Here two NOT gate
ladder inputs A and B are used. These are connected in series to produce
logical NOR operation. If both the inputs A and B are 0, then power flow from
left-hand to right-hand side of the rung to get output 1. When either of the
inputs and both of the inputs are 1, power flow disconnects and the output
becomes 0. The result is shown in Truth Table 3.9.
48
Table 3.9: Truth Table for NOR operation
Inputs
Output
A B
0 0 1
0 1 0
1 0 0
1 1 0
3.8.6 XOR
49
Input A Input B Output
Input A Input B
Inputs
Output
A B
0 0 0
0 1 1
1 0 1
1 1 0
50
Input A Input B Output
Output
Ladder diagrams can be designed for more than one output called as
multiple outputs as shown in Fig. 3.16. Ladder diagram having two outputs is
shown in Fig. 3.16a. Here, both outputs A and B are energized when the input
A is closed. Fig. 3.16b shows the sequence of operations with two inputs and
two outputs. In this diagram, output A is energized when input A is closed. For
output B to be energizing both input A and input B must close. That is such an
arrangement enables a sequence of outputs to be produced, based on the input
contact actions. Fig. 3.16c illustrates this idea for multiple inputs and outputs.
Outputs A, B, and C are switched on by sequential closing of contacts input A,
input B, and input C [21, 22].
Input Output A
Output B
Fig. 3.16a: Ladder diagram with one input and two outputs
51
Input A Output A
Output B
Input B
Fig. 3.16b: Ladder diagram with two inputs and two outputs
Input A Output A
Input B Output B
Input C Output C
Fig. 3.16c: Ladder diagram with three inputs and three outputs
52
information at any instant of time and can be retrieved for analysis and
controlling devices interfaced to the PLCs. The software displays the data in
tables, pie charts or line plots for the analysis [23-26].
53
performance, and is more appropriately called as comprehensive database. In
such a database various types of networks are used to communicate between
the programmable controllers and from PLC to computers. Communication of
data is communicated through Data Highway (DH), RS-232, DH+, Control
Net, Device Net, Ethernet, MODBUS, Field bus and PROFI BUS. Features of
these networks are given below.
3.9.1 Data Highway: Data High way (DH) - 485 is a communication network
used with the Allen-Bradley SLC-500 processor. This supports interconnection
of maximum 32 devices and has a maximum network length of 4000 feet.
Different PLC families from the same manufacturer may not be able to
communicate with other processor or devices, because they have different
protocols. For instance, Allen-Bradley PLC-5 processor requires a bridge, in
order to communicate with Allen-Bradley SLC-500 processor.
3.9.4 Control Net: Control Net is an open and high-speed network that
transfers I/O updates, controller-to-controller data interlocking, and data
monitoring of the network. The data delivered will be predicted for their
consistency and reliability. The network specifications and protocol are open,
which means that users are not required to purchase hardware, software, or
licensing rights to connect devices to a system.
54
3.9.5 Device Net: Sometimes it may not be practical to separately wire each
sensor and actuator directly into I/O modules. A Device Net is a network which
allows connecting devices directly to a plant-floor controller without the need
to hardwire each device into I/O modules. This direct connectivity reduces the
cost and saves time in wiring. As PLCs have become more powerful, they are
being used to control production in increasingly larger areas.
3.9.8 Field Bus: Field Bus network interconnects measurements and control
equipments such as sensors, actuators, and controllers. At the base level in the
hierarchy of plant networks, it serves as a LAN for instruments used in process
control and manufacturing automation applications and has a built-in capability
to distribute the control application across the network. Thus field bus is an
55
open, nonproprietary protocol available to any company that wishes to
implement it.
3.10 Conclusion
56
References
2. V.R Seovia and Alfred Theorin, “History of Control History of PLC and
DCS”, Jun.2015
4. Biography for Dick Morley, Motion Control and Motor Ass. 900 Victors
Way, A. Arbor, Michigan, USA, 2016
57
11. Rockwell Automation, MicroLogix – One family of micro controllers
for every application and budget, 2009, http:// plccompare.com/ wp -
content/ uploads/2011/01/Rockwell-MicroLogix.pdf
20. Hugh Jack, Automating Manufacturing Systems with PLCs, Ver. 4.5,
Boston, Free Software Foundation, 2004
58
21. W. Bolton, Programmable Logic Controllers, 5th ed. Burlington,
Elsevier, 2006
26. David Bailey, and Edwin Wright, “Practical SCADA for Industry”, 1st
ed. Burlington, Elsevier,2003
30. F.D. Petruzella, “Programmable Logic Controllers”, 3rd Ed. New York,
McGraw Hill, 2005
59