General PLC Architecture
General PLC Architecture
RS 232
CPU
Real-Time
Clock
ROM
flash
EPROM
Ethernet
parallel bus
fieldbus
controller
field bus
buffers
analogdigital
converters
digitalanalog
converters
Digital Output
Digital
Input
signal
conditionin
g
power
amplifiers
relays
signal
conditioning
external
I/Os
Logical sequence
Timing
Counting
Arithmetic
Memory
VOLATILE.
A volatile memory is one that loses its stored information
when power is removed.
Even momentary losses of power will erase any information
stored or programmed on a volatile memory chip.
Common Type of Volatile Memory
RAM. Random Access Memory(Read/Write)
Read/write indicates that the information stored in the
memory can be retrieved or read, while write indicates that
the user can program or write information into the memory.
NON-VOLATILE
Has the ability to retain stored information when power
is removed, accidentally or intentionally. These
memories do not require battery back-up.
Common Type of Non-Volatile Memory
ROM, Read Only Memory
Read only indicates that the information stored in
memory can be read only and cannot be changed.
Information in ROM is placed there by the manufacturer
for the internal use and operation of the PLC.
INPUT/OUTPUT MODULE
The main purpose of the I/O interface is to condition the various signals
received from or sent to the external input and output devices.
Input modules converts signals from discrete or analog input devices to logic
levels acceptable to PLCs processor.
Output modules converts signal from the processor to levels capable of driving
the connected discrete or analog output devices.
12
I/O Module
DC INPUT MODULE
IS NEEDED TO:
Prevent voltage
transients from
damaging the
processor.
Helps reduce the
effects of electrical
noise
USE TO
DROP THE
VOLTAGE
TO LOGIC
LEVEL
FROM
INPUT
DEVICE
Current
Limiting
Resistor
OPTOISOLATOR
Buffer,
Filter,
hysteresis
Circuits
TO
PROCESSOR
13
I/O Module
AC INPUT MODULE
IS NEEDED TO:
Prevent voltage
transients from
damaging the
processor.
Helps reduce the
effects of electrical
noise
CONVERTS THE AC
INPUT TO DC AND
DROPS THE VOLTAGE
TO LOGIC LEVEL
FROM
INPUT
DEVICE
Rectifier,
Resistor
Network
OPTOISOLATOR
Buffer,
Filter,
Hysteresis
Circuits
TO
PROCESSOR
14
Ladder Diagram
Ladder logic uses graphic symbols similar to
relay schematic circuit diagrams.
Ladder diagram consists of two vertical lines
representing the power rails.
Circuits are connected as horizontal lines
between these two verticals.
19
1.
2.
3.
4.
5.
Example
1.Double acting cylinder is used to
perform
machinng
operation.
Pneumatic cylinder is advanced by
pressing
two
push
buttons
simultaneously. If any one of the
push button is released, cylinder
comes back to start position. Draw
the pneumatic circuit, PLC wiring
diagram and ladder diagram to
implement this task.
Functional block
The term function block diagram (FBD) is used for PLC
programs described in terms of graphical blocks. It is
described as being a graphical language for depicting
signal and data flows through blocks, these being
reusable software elements. A function block is a
program instruction unit which, when executed, yields
one or more output values.
27
PLC operation
Basic Function of a Typical PLC
Read all field input devices via the input
interfaces, execute the user program stored in
application memory, then, based on whatever
control scheme has been programmed by the
user, turn the field output devices on or off, or
perform whatever control is necessary for the
process application.
This process of sequentially reading the inputs,
executing the program in memory, and
updating the outputs is known as scanning.
PLC operation
PHASE 1
Read Inputs
Scan
PHASE 2
Program
Execution
PHASE 3
Diagnostics/
Comm
PHASE 4
Output
Scan
29
30
31