PX C 3891291
PX C 3891291
PX C 3891291
Keywords
Automation, Ladder Logic, SCADA, Control Loop, Scan
Cycle, EEPROM Power Supply
1. INTRODUCTION Signals Signals to
In the past, humans were the main methods for controlling a from
Memory solenoids,
system. Over the years, control engineering has evolved to
sensors, motors
include electricity in control systems. Previously,
switches CPU etc.
electromechanical relay based control systems were used. Input Output
These systems obviated the use of switches for power on and etc
power off actions. Elementary logic control decisions are
predominantly undertaken by relays.
The advancement of economical computers has brought about
a modern revolution, the Programmable Logic Controller Programming Device
(PLC). The PLC has its origins around the 1970s in the
automation and motor manufacturing industries.
Figure 1: Block diagram of a PLC
2. DESCRIPTION
Programmable Logic Controllers (PLCs), also referred to as 3.1 I/O Modules
programmable controllers, are a classification in computers. It I/O modules physically connect to field devices. Since there
is a device that performs discrete or continuous control logic are different types of input and output devices, the process
in process plant or factory environments. PLCs are used in determines the type of input or output module selected, digital
commercial and industrial applications. They have become or analog.
popular since their inception in a wide variety of operations Inputs give the controller real-time status of variables in the
from boiler control to robot control. form of real world signals. These variables can be analog,
The Allen-Bradley Company (Rockwell Automation) coined register or discrete. Typical analog inputs can be from
the term Programmable Logic Controllers as well as the thermocouples, RTDs, flow, pressure, and temperature
corresponding acronym PLC. Both of these are therefore transmitters. These inputs are transmitted over the I/O bus to
registered trademarks of the company. The National Electrical the central processor unit after being converted into digital
Manufacturers Association (NEMA) defines a programmable data. The input module is entrusted with the operation of
logic controller as: converting electrical signals flowing in from input field
devices like push buttons to electrical signals that the PLC can
A digitally operating electronic apparatus which uses a understand.[2] Examples of input modules include limit
programmable memory for the internal storage of instructions switches, proximity switches and push buttons.
for implementing specific functions such as logic, sequencing,
27
International Journal of Computer Applications (0975 8887)
Volume 77 No.11, September 2013
28
International Journal of Computer Applications (0975 8887)
Volume 77 No.11, September 2013
4. PROGRAMMING A PLC
PLCs are programmed in two ways. One is to directly connect
the PLC to a computer and the other is to make use of a Figure 5: Scan Cycle
programming panel. Logical commands are used to program Control circuits have been conventionally described using
the PLC in both scenarios. The panels used in programming a ladder diagrams. Ladder diagrams consist of rungs; each one
PLC differ greatly in their intricacies, ranging from simple of these is a program statement. A program statement is
keypads to hand-held computers with a screen for graphics. basically a condition, or a set of conditions (input). Each one
The programming software is operated on computers with of these conditions has an action (output) associated with
graphics, simulators, diagnostics and auditing. After the them that is executed if the condition is satisfied. Elementary
software programmer develops the program, it is tested and logic operators like AND, OR and NOT are used to perform
then sent to the PLC. This can be done using magnetic tapes, logical operations required by the PLC. They combine the
compact disks, and communication links. However, the most instructions in the program statement (present on a PLC rung)
common method for the transfer of a program to the PLC is thus making the result of each run either true or false (1 or
by using a chip to which the program is written, commonly 0).[10]
known as an EEPROM. After this, the chip is plugged into the
PLC. The memory can be erased by exposure to UV light and The instructions entered using a programming device
reused but it cannot be overwritten.[6] determine what action will be performed by the PLC for a
particular input. A device acting as an operator interface
The PROGRAM mode of the processor is used when the displays process information and provides for the addition of
program has to be entered into the PLC. The instructions are new process parameters to increase or decrease level of
entered sequentially, one at a time with the help of the control.
programming device. The controller is made to work in the
RUN state (or operating cycle) when the program has to be 6. COMPARISON OF PLCs WITH
carried out. As a consequence of each operating cycle, the
controller reviews the status of the input devices, executes the
OTHER CONTROL SYSTEMS
program that has been entered and alters the outputs PLCs are predominantly used in industrial processes where
accordingly. the development and maintenance costs of the automation
system exceeds the total cost of automation and where it
5. WORKING OF A PLC might be necessary to alter the system during its operational
The main components of a PLC are input modules, a Central life, examples of these include motion and positioning control.
Processing Unit (CPU), and output modules. A variety of Also, they cater to applications where the system required is
digital or analog signals are accepted from various field highly customized. However, PLCs lack the capability
devices by the input module. They are then converted into a requisite of highly complex algorithmic processes, like in the
logic signal that the CPU can use. The program instructions chemical industry.
stored in the memory form the basis upon which the CPU Different techniques entailing the use of microcontrollers,
makes decisions. These decisions eventually result in relay systems, minicomputers, solid-state controls, digital
execution of the control instructions as required by the logic control systems and electronic continuous control
program. Control instructions from the CPU are converted systems, among many others, are preferred for high volume or
into a digital or analog signal by the output module. This simple fixed automation tasks.
signal can be used to control various field devices. A PLC
works by scrutinizing a program, instruction by instruction, Relays can construct complicated control systems by linking
continuously. This process is also known as scanning. One an array of logic components. On the other hand, a typical
scan time is defined as the time taken to complete the three relay system has hundreds of switching contacts, presenting
steps. The control loop is a continuous cycle of the PLC the design engineer with a daunting task especially when the
reading inputs, solving the ladder logic, and then changing the control function of a panel has to be changed, eventually
outputs.[9] resulting in complete re-wiring of the system. They do not
provide the troubleshooting exibility offered by modern
programmable control systems. Relays also take up more
space and require regular maintenance.[11] In addition, the
high cost, low speed and lack of reliability has resulted in the
replacement of relay systems by modern substitutes. Relays
remain optimal for reconstruction of small control signals to
higher current or higher voltage driving signals. This explains
their comprehensive usage as output devices for other control
systems.
29
International Journal of Computer Applications (0975 8887)
Volume 77 No.11, September 2013
PLCs have a logic called PID (proportional, integral, makes it possible to condense more functions into smaller and
derivative) controller. Usually, PLCs are constructed with less expensive packages. The cost of a PLC is recovered in a
very less analog loops; processes that require a large number short period, hence making it highly economical.
of loops are based on distributed control system (DCS). With
time, as the power of the PLC increases, the gap between When changes are made to the program circuit or sequence
applications of PLCs and DCSs has lessened greatly.[12] design or when a programming fault has to be revised in the
ladder diagram, the necessary amendments can be made easily
Digital Logic Control Systems use logic gates to process by just typing it in using a keyboard. This results in faster, and
information (exclusively encompassing binary signals). Logic at the same time, convenient troubleshooting.
gates run at much higher speeds, cause lesser power
consumption and occupy considerably lesser space than a If the need arises, an instantaneous printout of the original
corresponding relay circuit. Nonetheless, they are incapable of PLC circuit can be made available effortlessly, hence making
switching to higher power driving signals. documentation very efficient. The PLC prints out the actual
circuit in operation at a given moment.[7] There is no need to
Operational amplifiers, a part of Electronic Continuous look for the blueprint of the circuit in remote files. Due to
Control Systems involve the performance of mathematical their solid-state nature, PLCs are extremely compact and
operations like integration, differentiation, etc. They were much more reliable when compared with hardwired
utilized in the field of continuous control and lead to the controllers. Ergo, the costs of maintaining PLC based control
simplification of complex control functions with discrete systems are low.[13]
electronic systems. Largely built on linear integrated circuits,
analog control is efficient with high speed. The fine-tuning of A PLC can form networks to communicate with other devices
such systems during designing coupled with their fixed nature like controllers. They can be correlated to perform operations
continues to cause hindrances. such as supervisory control, data gathering, monitoring
devices and process parameters, and downloading and
A design based on microcontrollers is pertinent in systems uploading of programs. PLCs consume only 10% of the power
where hundreds or thousands of units are to be produced consumed by an equivalent relay logic controller and hence
where the end-user would not have to alter the control and the also save energy.
development costs are large. They can be a part of sequence
and continuous control systems. Both microprocessors and 8. DISADVANTAGES
microcontrollers simplify connection requirements due to The stop button is employed to disconnect a circuit in relay
their small size, making them easily locatable at the point of system; the system stops if the power fails. The PLC can be
final control. programmed to perform this function; although, in certain
programs, to stop a device, one may have to apply an input
7. ADVANTAGES voltage. Being fail-safe is not one of the features of this
To implement changes in control logic of a PLC no rewiring system.
is required which saves considerable time. PLCs can carry out
complex functions such as generation of time relays, counting, Some applications are single-function applications. It does not
comparing, arithmetic operations, etc. Increased technology pay to use a PLC that includes multiple programming
capabilities if they are not needed. One of the conspicuous
30
International Journal of Computer Applications (0975 8887)
Volume 77 No.11, September 2013
31
IJCATM : www.ijcaonline.org