Prog-Dev Chap5
Prog-Dev Chap5
Programmable Devices
Pr. H. BENTARZI
V.1 History
V.2 PLC back ground
V.3 PLC hardware
V.4 PLC Software
1
V.1) Brief history:
2
V.2) PLC back ground:
Advantages of PLCs:
•Cost-effective for controlling complex systems.
•Flexible and can be reapplied to control other systems quickly
and easily.
•Computational abilities allow more sophisticated control.
•Trouble shooting aids mocks programming and reduces down
time.
•Reliable components make there likely to operate for years
before failure.
•High power driving.
•Low cost.
•Ease of maintenance
The actual PLC hardware typically consists of an industrially hardened rack mount
system that contains plug-in modules for various functions; the power supply (commonly
12 to 24 VDC), the main processor module, various input and output modules, and
possibly a communication module for networked systems. Connections between the I/O
and the PLC are typically made via banks of screw terminals on the I/O modules.
Typical inputs to a discrete PLC system include limit switches, photo-detector switches,
pulse encoders, and other ON/OFF buttons, inputs from these different devices are
effectively open or closed switches-regardless of the type sensing being performed.
These inputs are powered by the PLC power supply and feed a voltage signal into the
PLC (e.g. 0VDC = OFF /24 VDC = ON).
Typical outputs from a PLC include contactors, triacs, or open collector transistors. In
many applications, the PLC outputs are connected to larger current handling slaved
devices such as motor starters, contactors, or control relays which in turn control high
voltage/current loads.
3
V.3) PLC hardware
4
V.3) PLC hardware
5
V.3) PLC hardware
. Memory
System memory (today mostly implemented in FLASH technology) is used
by a PLC for an process control system. Aside from this operating system it
also contains a user program translated from a ladder diagram to a binary form.
FLASH memory contents can be changed only in case where user program is
being changed. PLC controllers were used earlier instead of FLASH memory
and have had EPROM memory instead of FLASH memory which had to be
erased with UV lamp and programmed on programmers. With the use of
FLASH technology this process was greatly shortened. Reprogramming a
program memory is done through a serial cable in a program for application
development.
6
V.3) PLC hardware
Memory
User memory is divided into blocks having special functions. Some parts of a
memory are used for storing input and output status. The real status of an input
is stored either as "1" or as "0" in a specific memory bit. Each input or output
has one corresponding bit in memory. Other parts of memory are used to store
variable contents for variables used in user program. For example, timer value,
or counter value would be stored in this part of the memory.
Input units
Explanation of PLC controller input and output lines have up to now been
given only theoretically. In order to apply this knowledge, we need to make it a
little more specific. Example can be connection of external device such as
proximity sensor. Sensor outputs can be different depending on a sensor itself
and also on a particular application. Following pictures display some examples
of sensor outputs and their connection with a PLC controller. Sensor output
actually marks the size of a signal given by a sensor at its output when this
sensor is active. In one case this is +V (supply voltage, usually 12 or 24V) and
in other case a GND (0V). Another thing worth mentioning is that sinking-
sourcing and sourcing - sinking pairing is always used, and not sourcing-
sourcing or sinking-sinking pairing.
7
V.3) PLC hardware
Input units
Input units
8
V.3) PLC hardware
Output units
PLC controller output lines usually
can be:
Output units
9
V.4) PLC software:
10
V.4) PLC software:
V.1 PLC
Ladder logic:
11
V.4) PLC software:
Ladder diagram:
There are several languages designed for user communication
with a PLC, among which ladder diagram is the most popular.
Ladder diagram consists of one vertical line found on the left hand
side, and lines which branch off to the right. Line on the left is
called a "bus bar", and lines that branch off to the right are
instruction lines. Conditions which lead to instructions positioned
at the right edge of a diagram are stored along instruction lines.
Logical combination of these conditions determines when and in
what way instruction on the right will execute. Basic elements of a
relay diagram can be seen in the following picture.
12
V.4) PLC software:
Principle is quite simple, normally open switch won't conduct electricity until it is
pressed down, and normally closed switch will conduct electricity until it is pressed.
Good examples for both situations are the doorbell and a house alarm.
If a normally closed switch is selected, bell will work continually until someone pushes
the switch. By pushing a switch, contacts are opened and the flow of electricity towards
the bell is interrupted. Of course, system so designed would not in any case suit the
owner of the house. A better choice would certainly be a normally open switch. This way
bell wouldn't work until someone pushed the switch button and thus informed of his or
her presence at the entrance.
13
V.4) PLC software:
14
Thank You
15