PLC CHP 2 Hardware Searchable
PLC CHP 2 Hardware Searchable
PLC CHP 2 Hardware Searchable
Programming |.
device “m& | Program & data Communications >
Memory interface <_|—_
fy FF
_ 5) Beet ke—| Output
reve
vs inter- Processor inter-
—p| face jt —h face
fe Power t _f
The processor unit or central processing unit (CPU) is the unit
containing the microprocessor and this interprets the input signals and
carries out the control actions. according to the program stored in its
inemory,. communicating the decisions as action signals to the
outputs.
The power supply unit is needed to convert the mains a.c. voltage to
ho
the low d.c. voltage (5 V) necessary for the processor and the circuits
in the input and output interface modules.
The programming device is used to enter the required program into
the memory of the processor. The program is developed in the device
and then transferred to the memory unit of the PLC.
The memory unit is where the program is stored that 1s to be used for
the control actions to be exercised by the microprocessor and data
stored from the input for processing and for the output for outputting.
The input and output sections are where the processor receives
information from external devices and commmmicates mformation to
external devices. The inputs might thus be from switches, or
or other sensors such as photo-electric cells, temperature sensors, or
flow sensors, ete. The outputs might be to motor starter coils.
solenoid valves. etc. Input and output devices can be
classified as giving signals which are discrete, digital or analogue
Devices giving discrete or digital signals are ones where
the signals are either off or on. Thus a switch is a device giving a
discrete signal, either no voltage or a voltage. Digifal devices can be
considered to be essentially discrete devices which give a sequence of
on—off signals. Analogue devices give signals whose size 1s
proportional to the size of the variable being monitored. For example,
a temperature sensor may give a voltage proportional to the
te mMper ature.
ah)
£ |
o =
| VAT
(a) a $
Time © Time
a
oh
So |
(c) Time
= =
Supervisory
system
Communications
network
PLC 1 PLO 2
Machine! Machine/
plant plant
(Control bus co
~~ = > Sear Sek SS Program panel
> User x System Data Input! ZN
g program CPU S ROM RAM output =<
3 RAM O unit \—7
Data bus |
OQ system bus
10
| Buffer | |
ab
Latch |
+P SZ
Opto- Driver
coupler interface
TT
Input channels
e.g. relays
Output channels.
The CPU
The internal structure of the CPU depends on the mucroprocessor
concemed. In general they have:
1 <An arithmetic and logic unit (ALU) which 1s responsible tor data
manipulation and carrying out arithmetic operations of addition and
subtraction and logic operations of AND, OR, NOT and
EXCLUSIVE-OR.
Memory. termed registers, located within the microprocessor and
bh
1 The data bus carries the data used in the processing carried out by the
CPU. A microprocessor termed as being 8-bit has an internal data bus
which can handle 8-bit numbers. It can thus perform operations
between 8-bit numbers and deliver results as 8-bit values.
The address bus is used to carry the addresses of memory locations.
ba
Processor Communication module for VO adapter module for connecting WO modules to provide the means
module communication to computers the backplane to a processor at to convert input signals to backplane
VO adapters and other PLC another location levels and backplane signals to
processors output circuit levels.
Power
supply
13
a
Programming PLCs
Programming devices can be a hand-held device, a desktop console or a
computer. Only when the program has been designed on the programming
device and 1s ready 1s it transferred to the memory unit of the PLC.
14
Cassette recorder Central processor
for program storage
Programming
cb— Cable linking
terminal
processor to
racks
Lf.
| Connections
° SN to plant
and operator
CT [ controls
Ltt
1 2 3 4 5 6 7 8
a
DC Dc @ AC) AC| AC ]/AC |) AC
in }out| w@ lin | in | in |out| out
15
Pump
running
Ci
Fwd
lenoid
Oo Rev. Fwd
al!
/ N LSS
AC
AC Hydraulic i —
PLC output
input valve
card
card
Rev.
solenoid
16
Inputs/Output devices:
OUTPUTS
INPUTS
— A
oF
si
PUSHBUTTONS
17
Input / Output modules in PLC
(1) Digital |1/O0 module
(2) Analog I/O module
Digital 1/0 module
L2
Plant 4k L1
supply —F PLC
supply
PLC
central
processor
N2 ——
i f N1
Barrier
Na
Input card
21
DC input module:
IS NEEDED TO:
USE TO e Prevent voltage
transients from
DROP THE
VOLTAGE damaging the
TO LOGIC processor.
LEVEL eHelps reduce the
effects of
electrical noise
FROM TO
INPUT PROCESSOR
DEVICE
22
Single channel DC input card
Plant
DC +
Protection (
breaker
or fuse
PLC
internal
+ve supply
Signal
to PLC cantral
Processor
PLC
internal
-ve supply
AC input module:
IS NEEDED TO:
CONVERTS THE AC e Prevent voltage
INPUT TO DC AND transients from
DROPS THE damaging the
VOLTAGE TO LOGIC processor.
LEVEL eHelps reduce the
effects of
electrical noise
FROM TO
INPUT PROCESSOR
DEVICE
24
Single channel AC input card
Plant AC supply
| L
Protection
breaker (
or fuse Pe
o—+ +ve supply
|
Plant signal |
To other |
| ipl Signal to
Input signals Signal PLC cantral
indicator ~ processor
|
Plant AC supply -ve supply
|
| —— eS ee ee eee ie aia
DC/AC Output module:
IS NEEDED TO:
e Prevent voltage
transients from
damaging the
processor.
eHelps reduce the
effects of
electrical noise
FROM TO
DEVICE
Single channel DC output card
I Plant
PLC T DC+
internal — =. Load |
supply switching | Output
| ¥~ transistor Current flow load
| ———»
| Plant
Energize “Opto- ~ Fuse eX) pe.
DI . 4 4
PLC _ indication
internal | Plant
Supply LED! | Dc-
Single channel AC output card
| Plant
+
| supply
Fi |
|
PLC |
internal
——- c | |
supply — !
|
yak |l
| load
Fuse |
Energize iJ
Plant
output Opto-isolator
| N
PLC
internal
~ Output
indication
supply * Plant
| N
28
Sourcing and Sinking
The temms sourcing and sinking are used to desembe the way m which dc.
devices are connected to a PLC. With sourcing. usimg the conventional
current flow direction as from positive to negative, an input device
recerves current from the input module, 1-2. the input module is the source
of the current If the current flows from the output
module to an output load then the output module 1: referred to as sourcing
With smkmz. usme the conventonal current flow
dmechon as from positive to negative, an mput device supplies current to
the input module, 1.¢ the mut module 1s the smk for the current
If the current flows to the output module from an output load
then the output module 1s referred to as sinking
+
Input rept
module module
Qo
=> ah -
Inport
fa} device (b) ti
Sourcing
+ —L_H>
Input lngpart lingourt
a HO-:
device nmeodule module
Sinking
Input / Output Identification/Addressing
Input Output _h an
X400 rs 10.
HE CHgee
(a)
(
» Rack 2
0:26/05
Y}—n
Output 5
—* of card 6
T/P2 in rack 2
Rack 3
1:35/02
aOL
Input 2
of card 5
in rack 3
Program Scan / Scan Cycle
Y
Program
Update
all outputs
The PLC program can be considered to behave
as a permanent running loop. The’ user’s
instructions are obeyed sequentially, and when
the last instruction has been obeyed the
operation starts again at the first instruction. A
PLC does not, therefore, communicate
continuously with the outside world, but acts
rather by taking snapshots.
The action in figure is called program scan or
scan cycle of PLC. And the period of the loop is
called the program scan time. This depends on
the size of the PLC program and the speed of the
processor, but is typically 2-5 ms per K of
program. Average scan time are usually around
10-50 ms.
PLC Communications:
Common Uses of PLC Communications Ports
eMonitoring data and alarms, etc. via printers or Operator Interface Units
(OlUs).
PLC Communications:
Serial Communications
Common Standards
RS 232
Local Area Network provides a physical link between all devices plus
providing overall data exchange management or protocol, ensuring that each
device can “talk” to other machines and understand data received from them.
Manufacturer Network
Allen-Bradley Data Highway