PLC Component and Systems
PLC Component and Systems
I M O M
N O
P D U O
U U PROCESSOR T D
T L P U
From E U L
To
SENSORS T E
OUTPUT
Pushbuttons, Solenoids,
contacts, contactors,
limit switches, alarms
etc. etc.
PROGRAMMING
DEVICE
2.2. Input/output Module
•The I/O interface section of a PLC connects it to
external field devices.
•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 PLC’s processor.
•Output modules converts signal from the processor to
levels
capable of driving the connected discrete or analog output
devices.
•The voltage and current signals generated by the sensors,
transducers, limit switches, pushbuttons etc are applied to
the terminals of the input module.
• The input module helps in the following ways:
It converts the field signal into a standard control signal for
processing by PLC. The standard control signal delivered
by input module could be 5V or 9V whereas the field
signal received by it, could be 24V DC, 230V AC or 115V
AC.
If required, it isolates the field signal from the CPU.
It sends one input at a time to CPU by multiplexing action.
Depending upon the nature of input signal coming from the
field the input module could be:
Analog input module
Digital input module
• The typical analog current input modules are 4 to +- 20mA, 0 to
+- 50 mA and analog voltage input modules are 0 to
+- 50mV, 0 to +- 500mV and 0 to +- 10 V
• The typical digital input modules are 24V DC, 115V AC and
230V AC.
• The output module acts as a link between the CPU and the output
devices located in the field.
• The field devices could be relays, contactors, lamps, motorized
potentiometers, actuators, solenoid valves, control valves
dampers etc. these devices actually control the process.
• The out put module converts the output signal delivered by CPU
into an appropriate voltage level suitable for the output field
device. The voltage signal provided by CPU could be 5V or 9V,
but the output module converts this voltage level into say 24V
DC, or 115V AC or 230V AC etc.
• Thus the output module on receiving signal from the processor
switches voltage to the respective output terminals. This
makes the actuators (i.e. contactors, relays etc.) or indicating
lights etc. connected to the terminal to become ON or OFF.
• Like input module, an output module could be an analog or
digital.
• The selection is based on the voltage rating of the field output
devices. If the output device is analog then analog output
module is required and if it is digital like contactor coil or a
lamp then digital output module is required.
• Typical analog output modules have the ratings of 4mA to +-
20 mA or 0 to +-10V and the digital output modules have 24V
DC, 115V AC and 230V AC output.
DC INPUT MODULE
IS NEEDED TO:
· Prevent voltage
USE TO
DROP THE transients from
VOLTAGE damaging the
TO LOGIC processor.
·Helps reduce
LEVEL
the effects of
electrical noise
Current Buffer,
FROM Limiting Filter,
OPTO- TO
INPUT Resistor ISOLATOR hysteresis
PROCESSOR
DEVICE Circuits
AC INPUT MODULE
IS NEEDED TO:
CONVERTS THE AC · Prevent voltage
INPUT TO DC AND transients from
DROPS THE damaging the
VOLTAGE TO LOGIC processor.
LEVEL ·Helps reduce
the effects of
electrical noise
Rectifier, Buffer,
FROM Resistor Filter,
OPTO- TO
INPUT Network ISOLATOR Hysteresi
PROCESSOR
DEVICE s Circuits
DC / AC OUTPUT MODULE
IS NEEDED TO:
· Prevent voltage
transients from
damaging the
processor.
·Helps reduce
the effects of
electrical noise
Amplifier
FROM RELAY
TTL(trans OPTO- TO
PROCESSOR ISOLATOR TRIAC
istor- OUTPUT
X’SISTOR
transistor DEVICE
logic)
Circuits
2.3. Input/output Circuits
3. Discrete Inputs
Circuits of this type are used to sense the status of limit
switches, push buttons, and other discrete sensors. Noise
suppression is of great importance in preventing false
indication of inputs turning on or off because of noise.
4. Analog I/O
INPUTS MOTOR
CONTACTOR
LAMP
PUSHBUTTONS
PLC
Allen-Bradley 1746-1A16
L2 I= Input
L1
Module
I:2 slot # in rack
0
P. B SWITCH Module
Terminal #
Address I:2.0/0
LADDER PROGRAM
INPUT MODULE
WIRING DIAGRAM
CONTACTOR
L1 N.
L2 O
MOTOR
L2
C •SOLENOI
L1 D
FIELD •VALVES
•LAMP
WIRING
•BUZZER
OUTPUT MODULE
WIRING
L1 O:4
L2
CONTACTOR 0
LADDER PROGRAM
Discrete Input
Normally Open
Pushbutton
Normally Closed
Pushbutton
Normally Open switch
OFF PLC
Logic 0
Input
Module
24 V dc
IN
OFF PLC
Logic 1
Input
Module
24 V dc
Analog Input
Level Transmitter IN
PLC
Analog
Tank Input
Module
Digital Output
OUT
PLC
Lamp
Digital
Output
Module
Analog Output
OUT
E Supply air
PLC 0 to 10V P
Analog
Output
Module
Pneumatic control valve
2.4. CPU with processor and program memory
Central Processing Unit
• The central processing unit or CPU consists of the following blocks.
Arithmetic Logic unit
Program memory
Process image memory (i.e. internal memory of CPU)
Internal timers and counters
Flags
The brain of CPU is its microprocessor/microcontroller chip.
• The main function of the microprocessor is to analyze data coming from
field sensors through input modules, make decisions based on the user’s
defined control program and return signal back through output modules to
the field devices. Field sensors: switches, flow, level, pressure, temp.
transmitters, etc. Field output devices: motors, valves, solenoids, lamps, or
devices.
• The working of CPU is fully controlled by the instructions/ program stored
in “user program memory”.
• The user program directs and controls the CPU’s working.
• The program is prepared by the user based on the control logic
required for the control and automation task.
Memory
• The most important characteristic of a programmable controller
is the user’s ability to change the control program quickly and
easily. The PLC’s architecture makes this programmability
feature possible
• The memory system is the area in the PLC’s CPU where all of
the sequences of instructions, or programs, are stored and
executed by the processor to provide the desired control of field
devices.
• The memory sections that contain the control programs can be
changed, or reprogrammed, to adapt to manufacturing line
procedure changes or new system start-up requirements.
The memory system in the processor module has two parts:
a system memory and an application memory
•System memory includes an area called the EXECUTIVE,
composed of permanently-stored programs that direct all system
SYSTEM activities, such as execution of the users control program,
communication with peripheral devices, and other system activities.
•The system memory also contains the routines that implement the
PLC’s instruction set, which is composed of specific control
functions such as logic, sequencing, timing, counting, and
arithmetic.
•System memory is generally built from read-only memory devices.
APPLICATION
•Data Table •The application memory is divided into the data table area and
•User Program user program area.
•The data table stores any data associated with the user’s control
program, such as system input and output status data, and any
stored constants, variables, or preset values. The data table is
where data is monitored, manipulated, and changed for control
purposes.
•The user program area is where the programmed instructions
entered by the user are stored as an application control program.
Memory Types
• Memory can be separated into two categories: volatile and
nonvolatile.
1. 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.
•It is easily altered and quite suitable for most
applications
when supported by battery backup and possibly a disk
copy
of the program
Common Type of Volatile Memory
RAM. Random Access Memory(Read/Write)
•The words random access refer to the ability of any
location (address) in the memory to be accessed or used.
•RAM memory is used for both the user memory (ladder
diagrams) and storage memory in many PLC’s.
•RAM memory must have battery backup to retain or protect
the stored program.
Several Types of RAM Memory:
1.MOS
2.HMOS
3.CMOS
•The CMOS-RAM (Complimentary Metal Oxide
Semiconductor)
is probably one of the most popular. CMOS-RAM is popular
because it has a very low current drain when not being accessed
(15microamps.), and the information stored in memory can be
retained by as little as 2Vdc.
2. 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.
PROM, Programmable Read Only Memory
•Allows initial and/or additional information to be written into
the chip.
•PROM may be written into only once after being received
from
the PLC manufacturer; programming is accomplish by pulses
•The current melts the fusible links in the device, preventing it
from being reprogrammed. This type of memory is used to
prevent unauthorized program changes
EPROM, Erasable Programmable Read Only Memory
•Ideally suited when program storage is to be semi-
permanent or additional security is needed to prevent
unauthorized program changes.
•The EPROM chip has a quartz window over a silicon
material that contains the electronic integrated circuits.
This window normally is covered by an opaque material,
but when the opaque material is removed and the circuitry
exposed to ultra violet light, the memory content can be
erased.
•The EPROM chip is also referred to as UVPROM.
EEPROM, Electrically Erasable Programmable Read Only
Memory
• Also referred to as E2PROM, is a chip that can be programmed
using a standard programming device and can be erased by the
proper signal being applied to the erase pin.
• EEPROM is used primarily as a non-volatile backup for the
normal RAM memory. If the program in RAM is lost or
erased, a copy of the program stored on an EEPROM chip can
be down loaded into the RAM
2.5. Arithmetic Logic Unit
I/O
bus CPU
Field
signal Input
s Module
PII PIQ
3. Storing the results of processing in the internal
memory
• The results of the user program scan are then stored in the
internal memory of CPU. This internal memory is called
Process Output Image or PIQ
User program
memory
Internal Timers
CPU
Internal counters
PII PIQ Flags
Internal Relays (Flags)
• Internal relays are imaginary programmed relays that are not
connected to any real output but have coils and contacts. Since
they are not addresses for real outputs, internal relays cannot
have addresses that start with "Q".
• Instead they have addresses of the user selection that starts
with "M" like "M0.0" or "M1.3".
• Of course there is a certain number of coils allowed to be
programmed in SIMATIC S7 software which is 2048 internal
relay. Internal relays have many uses.
• One of their common uses is the case when a certain condition
must be used in the operation of more than one rung
(network).
4. Sending process output to output module
• At the end of the program run i.e. at the end of scanning cycle,
the CPU transfers the signal states in the process image output
to the output module and further to field controls.
CPU
Output Field
Module Control
PII PIQ s
Selecting a PLC
Several factors are used for evaluating the quality and
performance of programmable controllers when selecting a unit
for a particular application. These are listed below.
Number of I /O Ports
This specifies the number of I/O devices that can be connected to
the controller. There should be sufficient I/O ports to meet
present requirements with enough spares to provide for moderate
future expansion.