Introduction To PLC
Introduction To PLC
Introduction To PLC
Advantages of PLCs
Less wiring.
Wiring between devices and relay contacts are done in
the PLC program.
Easier and faster to make changes.
Trouble shooting aids make programming easier and
reduce downtime.
Reliable components make these likely to operate for
years before failure.
PLC Origin
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
Major Components of a Common PLC
POWER SUPPLY
I/O MODULES
PROGRAMMING DEVICE
Current Buffer,
FROM Limiting Filter,
OPTO- TO
INPUT Resistor ISOLATOR hysteresis
PROCESSOR
DEVICE Circuits
I/O Module
AC INPUT MODULE
IS NEEDED TO:
CONVERTS THE AC Prevent voltage
INPUT TO DC AND transients from
DROPS THE VOLTAGE damaging the
TO LOGIC LEVEL processor.
Helps reduce the
effects of electrical
noise
Rectifier, Buffer,
FROM Resistor Filter,
OPTO- TO
INPUT Network ISOLATOR Hysteresis
PROCESSOR
DEVICE Circuits
9
10
I/O Module
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 OPTO- TO
PROCESSOR ISOLATOR TRIAC
Circuits OUTPUT
XSISTOR
DEVICE
12
OUTPUTS
INPUTS MOTOR
CONTACTOR
LAMP
PUSHBUTTONS
PLC
Allen-Bradley 1746-1A16
L1 L2 I= Input
Module
I:2 slot # in rack
P. B SWITCH 0 Module
Terminal #
Address I:2.0/0
LADDER PROGRAM
INPUT MODULE
WIRING DIAGRAM
CONTACTOR
L2 L1 N.O
MOTOR
L2
C SOLENOID
L1 VALVES
FIELD WIRING LAMP
BUZZER
OUTPUT MODULE
WIRING
L1 O:4 L2
CONTACTOR 0
LADDER PROGRAM
Discrete Input
A discrete input also referred as digital input is an input that is
either ON or OFF are connected to the PLC digital input. In the
ON condition it is referred to as logic 1 or a logic high and in the
OFF condition maybe referred to as logic o or logic low.
The main function of the microprocessor is to analyze data coming from field
sensors through input modules, make decisions based on the users 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 audible devices.
The memory system in the processor module has two parts: a system memory
and an application memory.
Memory Map Organization
System memory includes an area called the EXECUTIVE,
composed of permanently-stored programs that direct all system
activities, such as execution of the users control program,
communication with peripheral devices, and other system
SYSTEM activities.
The system memory also contains the routines that implement
the PLCs 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
The application memory is divided into the data table area and
Data Table user program area.
The data table stores any data associated with the users control
User Program 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.
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.
PHASE 1
Read Inputs
Scan
PHASE 2
Program
Execution
PHASE 3
Diagnostics/
Comm
PHASE 4
Output
Scan
PLC Communications
Common Uses of PLC Communications Ports
Common Standards
RS 232
baud.
PLC Communications
Local Area Network (LAN)
Manufacturer Network
Allen-Bradley Data Highway
Gould Modicon Modbus
General Electric GE Net Factory LAN
Mitsubishi Melsec-NET
Square D SY/NET
Texas Instruments TIWAY
Specifications
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
Criteria
SCAN TIME