Programmable Logic Controllers PLC and Its Programming IJERTV3IS11042
Programmable Logic Controllers PLC and Its Programming IJERTV3IS11042
ISSN: 2278-0181
Vol. 3 Issue 1, January - 2014
Abstract: - This paper describes the important personal computers (PC) PLCs are designed such that
concepts of PLC and its applications. The main they can withstand different physical conditions such
difference between PC and PLC is that latter is as temperatures, electrical noises according to
capable of functioning in severe conditions (such as requirements in industry. The development of PLC
dust, moisture, heat, cold, etc.) and have the facility has brought a revolution in seventies [2].
for input/output (I/O) arrangements. PLC is highly
customized system so the cost of package PLC is low II. WHAT IS PLC?
as compared to other control systems. A PLC is an A PLC (Programmable Logic Controller) is a
example of a hard real time system since output small computer with a built in operating system. A
results must be produced in response to input PLC has input lines where sensors are placed to
conditions within a bounded time, otherwise notify upon incoming event (e. g., temperature level,
unintended operation will result. In industrial liquid level) and output lines to signal any reaction to
sector PLCs offers several advantages over other incoming events. These are real time devices. It was
control systems, hence it is widely used. designed to replace relay logic systems as the
RT
technicians needed to rewire the relays to change the
Keywords: - Automation, PLC, Ladder logic.
logic. But with PLC, logic can be changed by making
I. INTRODUCTION changes in program. PLC has a programmable
IJE
Fig. 2 illustrates the basic working of PLC. PLC. Fig.3 shows the front panel of 2A power
Irrespective of the manufacturer of the PLC this supply module. Power supply modules are available
block diagram remains the same. for different current ratings ranging from 2A to 10A
[6].
transferred from input modules to PII region; at the 4.5) Rack: All above mentioned modules along with
end of the each program scan signal states are interface module are placed on the rectangular
transferred from the PIQ region to output modules. support known as Rack. Number of modules on a
The size of each timer and counter is 16 bit (word). particular rack are fixed and decided by the
They can be accessed by user program by means of manufacturer.
instruction. Their number depends on CPU. Bit
memory is used to store the intermediate results. Bit 4.6) Interface Module: This module is used for
memory is accessible everywhere in program. Unlike interfacing the racks. It allows number of PLCs and
bit memory system memory also has local stack other intelligent device to communicate and pass
which is valid for particular part of the program only. PLC data over high speed local area communication
network. Any device may interface with the network,
To ensure the fast execution of the user because the network is not restricted to the product
program and to avoid the unnecessary load on the designed by the network’s manufacturer. The
work memory, only parts of the program relevant for receiving network interface accepts the transmission,
program execution are loaded in the work memory. passes the information to the CPU and if necessary
The parts of the block which are not required for the sends a command to the intended field device.
executing the program are retained in the load
memory. V. P ROGRAMMING ON PLC
The front panel of CPU has status and line As the name suggests PLC is a
indicator LEDs, Slot for MMC, Operating Mode programmable device, programming is mainly done
switch, MAC Address and 2D barcode, connection on Programming device (PG). Different softwares are
for voltage supply and various interface ports for available for programming depending on the
RT
MPI(multi point interface), PPI(point to point manufacturer of PLC (e. g., Software SIMATIC
interface), PROFInet Industrial Ethernet etc. These Manager STEP 7 is used to program the Siemens
PLC).
IJE
The left half of the fig. 4 shows the directory the entire program can be stored in OB1 that is
structure of the folders and files and it is an example cyclically called by operating system. The OBs such
of object hierarchy. The above directory has a project as OB100, OB101 and OB102, have startup program
name CPU314C_2DP which can be changed. stored in them and is executed only once when CPU
Programmer needs to install a station (mentioned on is turned ON. Fig. 5 shows cyclic program execution.
CPU) on which he is working; station can be installed
by clicking on + box next to project name. The ii) Functions (FC):
SIMATIC Manager displays the hardware object in A function contains the partial functionality of
the right half of the window. Programmer needs to the program. It is a logic block “without memory”.
configure hardware network. Configuring means Temporary variables belonging to FC are saved in the
inserting the configuration of the actual hardware Local data stack (L-Stack). Temporary variables are
modules that programmer has used in PLC on the deleted after the associated block is executed. An FC
software. Hardware configuration table gives the is always executed by calling it in another block.
information about MLFB (Machine Readable Product Number of FCs applicable will be CPU specific. FC
Designation) number, MPI address of CPU, can be used to return a value to calling block (for
addresses of analog and digital I/O modules. System example, mathematical functions signal control with
data in fig. 4 saves the hardware configuration. binary logic operations). There are different types of
The programming software provides various functions used in programming they are,
types of blocks in which the user program and the
User Functions (User needs to insert)
related data can be stored. Depending on the
Standard Functions (User needs to import it
requirement of the process, program can be
from std. library of software)
RT
structured in different blocks. Different blocks
System Functions (It is an integrated part of
available for programming in PLC are as follows:
the CPU user needs to call it in logic blocks,
abbreviated as SFC) such as Timer and
IJE
Elementary, Complex and User defined data In this process PLC is the Controller, which
types (UDT) are the available data types. The decides controlling action. PLC receives number of
data types determine the amount of memory inputs from different devices located at different parts
space required. Elementary data types are of the plants. PLC then decides controlling action on
never more than 32bits long (BOOL, byte, the basis of status of inputs & logic written in its
word, etc.); while complex can be longer memory. According to the controlling action the
than 32bits (array, structure, date & time). output device operates. As it uses programming logic
UDT are special data structures user creates to control the process, called as Programmable Logic
that can be used in the program once defined. Controller. PLC takes decisions without interference
of man; hence it is used for automation.
iv) Function Blocks (FB):
VI. WORKING OF PLC
They belong to the blocks that need to be
programmed by the user. A FB is block “with According to the requirements on the field,
memory”. It is assigned a data block as its memory programmer designs the logic in the software. The
(instance DB). A FB contains a program that is designed programme needs to be downloaded on the
always executed when a different logic block calls load memory of the PLC. Load memory may be
the FB. FB makes it much easier to program RAM or EPROM. Now, as the program is loaded in
frequently occurring complex functions. They can be CPU of PLC it can be executed by processor of the
called by OBs, FCs and FBs. Unlike FCs, FBs are CPU. The sensors present at the field sense the
initialised i.e., a FB is assigned its own private data incoming signal and converts into electrical signal
area in which FB can remember process states. FBs and this signal is further sent to input modules of the
PLC. Corresponding data of input signal is stored in
RT
can have static as well as temporary variables. Static
variable are retained even after the block is executed PII region of system memory. This data is further
and is accessible throughout the programme. processed in work memory according to the logic
IJE
The fig. 6 shows an example of a small control VII. COMPARISONS OF PLC WITH OTHER
system. A tank is to be filled with water it also has a CONTROL SYSTEMS
lamp connected to it. Owner of the plant has
demanded that lamp should be on if water level is PLCs are well-adapted to a range of automation
within limits. tasks. This industrial process is mainly used where
changes to the system would be expected during its
operational life. PLC applications are typically highly
customized systems so the cost of a packaged PLC is
low compared to the cost of a specific custom-built
controller design. Very complex process control,
such as used in the chemical industry, may require
algorithms and performance beyond the capability of
even high-performance PLCs. Very high-speed or
precision controls may also require customized
solutions. PLC and other control devices such as method, the amount of retraining needed for
Remote Terminal Units (RTU) and distributed engineers and trades people was greatly reduced.
control system (DCS) are increasingly beginning to Modern control systems still include relays, but these
overlap in responsibilities [4]. The above figure are rarely used for logic.
shows the comparison of PLC with other control
systems. References
RT
[1] D. Morley, looks back on the 40 th anniversary of the
VII. APPLICATIONS OF PLC
PLC Manufacturing Automation, 12 September, 2008.
Depending on the type of technology used,
IJE