Professional Documents
Culture Documents
Lecture # 1
Introduction to
PLC
Introduction
Programmable Logic Controller (PLC)
PLC Architecture
The CPU
Address, Data & Control Bus
Hardware configuration
PLC Communications
Introduction
PLCs are similar to computers except, computers are
optimised for calculation and display, PLCs are optimised
for control tasks and the industrial environment. Thus PLCs
are:
Rugged
and designed to withstand vibrations,
temperature, humidity and noise.
Programmable Logic
Controller (PLC)
A programmable logic controller (PLC) is special form
of microprocessor-based controller that uses a
programmable memory to store instructions and to
implement function such as logic, sequencing, timing,
counting, and arithmetic in order to control machines
and processes.
Program
Inputs
Outputs
PLC
4
PLC Architecture
Typically a PLC system has five basic
Programming components. These are the processor
Device
unit, memory, the power supply unit,
input/output interface section and the
programming device. Figure shows
Memory
the basic arrangement.
Input
Interface
Processor
Power
Supply
Output
Interface
PLC Architecture
CPU
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 memory, communicating decisions as a action signals to the
output.
PLC Architecture
Programming Device
The Programming device is used to enter/edit 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.
Memory Unit
Program is stored in memory unit, and is used for the control actions
to be exercised by the microprocessor.
The input and output sections are where the processor receives
information form external devices and communicates information to
external devices
The CPU
The essential elements of a CPU are:
Registers
A register is a byte (8 bits), word ( 16 bits ) or long word (32 bits) of memory which is part
of the microprocessor as opposed to general purpose memory. A register is used for
temporary storage of data and addresses within the CPU.
ALU
The ALU performs arithmetic and logical operations such as addition and subtraction on
data stored in registers.
Control Unit
The control unit is basically a set of counters and logic gates which is driven by the block.
Its function is to control the units within the microprocessor to ensure that operations are
carried out in the correct order.
Automation and Control Engineering Project
Hardware
Configuration
10
Input area
Output area
Work area
SR area
TR area
HR area
11
Words
Bits
Function
IR 02000 to IR 04915, IR
20000 to IR 22715 (928
bits)
SR 22800 to SR 25515
(448 bits)
TR 0 to TR 7 (8 bits)
---
HR 00 to HR 19 (20
words)
These bits store data and retain their ON/ OFF status
when power is turned OFF, or operation starts or
stops. They are used in the same way as work bits.
Words
Bits
Function
AR area
AR 00 to AR 23 (24
words)
LR area
LR 00 to LR 15
LR 0000 to LR 1515
(16 words)
(256 bits)
Timer/Counter area
DM area
DM 0000 to DM 1999 DM
2022 to DM 2047 (2,026
words)
Read/write
---
12
Error log
---
Read-only
DM 6144 to DM 6599
(456 words)
---
PC Setup
---
PLC Communications
CPM2A
The following types of communications can be
executed through the ports of the CPM2A/CPM2C.
Host
Link Communication
No Protocol Communication
One-to-One NT Link Communication
One-to-One PC Link Communication
13
Host Link
Communication
Host Link communications are a conversational-type communications
protocol, in which the PC sends responses to commands issued from a
host computer and can be used to read or write data in the PCs data areas
and control some PC operations. There is no need for a communications
program in the PC. Host Link communications can be used through the
peripheral port or the CPM2A/ CPM2Cs RS-232C port
14
No Protocol
Communication
When no-protocol communications are used, data can
be exchanged with serial devices such as bar code
readers and serial printers using TXD(48) and
RXD(47). No-protocol communications can be used
with either an RS-232C port or peripheral port.
15
One-to-One NT Link
Communication
The NT Link allows a CPM2A/CPM2C PC to be
connected directly to an OMRON Programmable
Terminal. There is no need for a communications
program on the PC. The NT Link can be used with an
RS-232C port.
16
One-to-One PC Link
Communication
A 1:1 PC Link of up to 256 bits (LR0000 to LR1515) can be
created with the data area of another CPM2A/CPM2C, CQM1,
CPM1, CPM1A, SRM1(-V2), or a C200HX/HG/HE PC, where one
serves as the Master, the other as a Slave. There is no need for a
communications program on the PC. The 1:1 PC Link can be
used with an RS-232C port.
17