Course 2 PLC
Course 2 PLC
2
Course 2 Programmable Logic Controller (PLC)
2.1 Introduction
Programmable logic controllers (PLCs) appeared at the end of the 1960s, at the request of the
American automobile industry (General Motors or GM), which demanded more flexibility
from their control systems.
Figure 2.1: Comparison between the old automobile assembly line and the modern line (nowadays we
can clearly see that human beings are replaced by robots controlled by PLCs)
Before PLCs, electromagnetic relays and pneumatic systems ⇒ ( wired logic) were used to
create the control part (PC).
3
Course 2 Programmable Logic Controller (PLC)
Disadvantages: expensive technology, no flexibility, no communication possible.
Definition :
In French, it's called: AP (Automate Programmable Industriel),
API
In English, PLC (Programming Logic Controller).
4
Course 2 Programmable Logic Controller (PLC)
PLCs have taken the place of relay boxes because of their flexibility (putting into service,
modification, etc.), and also because in complex command automated systems, the costs of
wiring and debugging were becoming prohibitive.
2.2 Historical
Sequential automation based on electromagnetic relays has been produced for a long time.
The downside is that it is a wired system . This requires a complete overhaul of the wiring for
the slightest modification in the sequencing of sequences. At the request of the North
American automobile industry, the first logic control devices appeared easily modifiable
called PLC ( Programmable Logic Controller ) designed by Allen Bradley, Modicom and
Digital Equipment.
Richard MORLEY and his team created the MODICON company (MOdular Digital
CONtrol). The first PLC was named Modicon 084 because it concretized the 84th project of
the company, and was presented at the end of 1969.
Modicon 084 :
256 I/O, 4 KB memory,
LADDER programming,
Dimension L 500 x H 1200 x D 340,
Weight 46 Kg.
5
Course 2 Programmable Logic Controller (PLC)
Modern production machines are practically all controlled by systems programmable . This
means that the operation of this type of machine is completely governed by a program
consisting of a series of instructions stored in a memory.
memory. These instructions are executed
sequentially by a single central processor.
6
Course 2 Programmable Logic Controller (PLC)
- Has languages adapted to automation functions and which do not require any particular
- Used in all industrial sectors; for controlling machines (conveying, packaging, etc.).
- In production chains (automobile, food industry, etc.) where they provide process
regulation functions (metallurgy, chemistry, etc.).
- In the field of tertiary and industrial buildings (control of heating, lighting, security or
alarms, etc.).
7
Course 2 Programmable Logic Controller (PLC)
a) Compact PLCs:
They integrate the processor, power supply, inputs and outputs in the same box. Depending on
the models and manufacturers, they can perform certain additional functions (rapid counting,
analog I/O, etc.) and receive a limited number of extensions. These PLCs, which are simple to
operate, are generally intended for controlling small automation systems.
Figure 2.7: Compact automation systems from SIEMENS (left) and Schneider (right).
8
Course 2 Programmable Logic Controller (PLC)
b) Modular PLC :
The processor, power supply and I/O interfaces reside in separate units (modules) and are
attached to one or more racks. These PLCs are integrated into complex automation systems
where; power, processing capacity and flexibility are required.
Figure 2.8: Branded modular PLCs SIMATIC S7-300 from Siemens (left) and M340 from
Schneider (right).
9
Course 2 Programmable Logic Controller (PLC)
10
Course 2 Programmable Logic Controller (PLC)
Each CPU has a mode switch making it possible to change operating mode. This is essentially
a removable key switch that is used to switch between the RUN and STOP operating modes.
The following operating modes are possible: (PG means Programming console.)
To run the program
RUN-P All the PG functions are enabled
To run the program
RUN Only the PG read functions are enabled
The program is not run.
STOP All the PG functions are enabled
MRES Position in which you can perform a general memory reset.
Input
nput devices are usually switches or sensors that send electrical signals to the CPU through
input channels on input signal modules. Similarly, output devices receive electrical signals
from the CPU through output channels on output signal modules. These output devices are
sometimes called actuators and are used to control a machine or process.
11
Course 2 Programmable Logic Controller (PLC)
PLCs have two broad categories of inputs and outputs (I/O), digital I/O and analog I/O.
Digital I/O devices, also called discrete I/O devices,
devices, are either on or off and are connected to
digital I/O channels. Analog I/O devices use continuously variable voltage or current signals
and are connected to analog I/O channels.
Each analog input signal is converted by an analog input signal modul
module to a stream of
numerical values represented in binary. This is necessary for the CPU to process this
information. Because each analog output device requires a variable voltage or current signal,
the stream of numerical values provided from the CPU is converted
converted by an analog output
signal module to an analog signal compatible with the associated device.
12
Course 2 Programmable Logic Controller (PLC)
2) The analog input module (AI)
The analog input board will allow us to have all the measurements of the following types in
the PLC: Pressure, Flow rate, Temperature, Level, Etc.
13
Course 2 Programmable Logic Controller (PLC)
1) The analog output module (AO)
The analog output board will allow us to regulate all the following actuators:
Regulation valve, Speed variator, Etc.
You must take care, because analog input and out boards look very much alike, you are
therefore advised to examine carefully the references of the boards which are often indicated
on each board.
14
Course 2 Programmable Logic Controller (PLC)
220V AC
PS CPU DI DO AI AO CP
24V DC
15
Course 2 Programmable Logic Controller (PLC)
16
Course 2 Programmable Logic Controller (PLC)
- The Number of inputs/outputs: the number of cards can have an impact on the number of
racks as soon as the number of necessary inputs/outputs becomes high.
- Processor type: memory size, processing speed and special functions offered by the
processor.
- Special functions or modules: certain cards (axis control, weighing, etc.) will “relieve” the
processor.
- Communication functions: the PLC must be able to communicate with other control
systems (PLC, supervision, etc.) and offer communication possibilities with standardized
standards (Profibus, etc.).
2.13 Memory areas of the CPU and the SIMATIC memory card
The memory of the S7-300 CPU can be divided into three areas:
Figure 2.23: Memory areas of the CPU and the SIMATIC memory card.
Note: Loading of user programs and thus operation of the CPU 31xC is possible only with
inserted MMC.
Load memory
The load memory is on a SIMATIC Micro Memory Card (MMC). It is used to store code
blocks, data blocks and system data (configuration, connections, module parameters, etc.).
Blocks that are identified as not runtime-relevant are stored exclusively in the load memory.
You can also store all the configuration data for your project on the MMC.
Work memory
The work memory is integrated in the CPU and cannot be expanded. It is used to execute the
code and process user program data. Program processing takes place exclusively in the work
memory and system memory areas. The work memory of the CPU is retentive with inserted
MMC.
System memory
The system memory is integrated in the CPU and cannot be extended. It contains:
- The bit memory, timer and counter operand areas
- The process image of the inputs and outputs
- The local data
18
Course 2 Programmable Logic Controller (PLC)
19