1- Introduction
Industrial Programmable Logic Controllers (PLCs) appeared in the United States around 1969 where they responded to the desire of the automotive industries to develop automated production lines that could keep up with changing techniques and models.
An Industrial Programmable Logic Controller (PLC) is an electronic machine programmable by non-IT staff and intended to control industrial processes in real time in an industrial environment. A programmable logic controller can be adapted to a maximum of applications, from a processing, component and language point of view. This is why it is of modular construction.
It is generally handled by electromechanical personnel. The development of the industry leading to a constant increase in the electronic functions present in an automatic system is why the PLC has replaced relay cabinets due to its flexibility in implementation, but also because in cabling and maintenance costs were getting too high.
2- Why automation?
Automation makes it possible to add additional elements to the value added by the system. These elements can be expressed in terms of objectives by:
- Increase the productivity (profitability, competitiveness) of the system
- Improve production flexibility;
- Improve product quality
- Adaptation to particular contexts such as environments hostile to humans (toxic environment, dangerous … nuclear …), adaptation to physical or intellectual tasks painful for humans (handling heavy loads, parallel repetitive tasks. ..),
- Increase security, etc …
3– General structure of PLCs:
The main characteristics of an industrial programmable logic controller (PLC) are:
cabinet, rack, bay or cards
- Compact or modular
- Supply voltage
- Memory size
- Backup (EPROM, EEPROM, battery, …)
- Number of inputs / outputs
- Complementary modules (analog, communication, ..)
- Programming language
PLCs in sealed boxes are used for difficult environments (temperature, dust, risk of projection, etc.) thus supporting a wide range of temperature, humidity, etc. The industrial environment comes in three forms:
- physical and mechanical environment (dust, temperature, humidity, vibrations);
- chemical pollution;
- electrical disturbance. (electromagnetic interference)
4- Internal structure of an industrial programmable logic controller (PLC):
PLCs have four main parts:
- A processing unit (a processor CPU);
- A memory ;
- Input-output modules;
- Input-output interfaces;
- A power supply 230 V, 50/60 Hz (AC) – 24 V (DC).
The internal structure of an industrial programmable logic controller (PLC) is quite similar to that of a simple computer system. The central unit is the grouping of the processor and the main memory. It controls the interpretation and execution of program instructions. The instructions are carried out one after the other, sequenced by a clock.
Two types of memory coexist:
- The Program memory where the programming language is stored. It is generally fixed, that is to say in read-only mode. (ROM: read only memory)
- The data memory that can be used in read-write during operation is RAM (random access memory). It is part of the input-output system. It freezes the values (0 or 1) present on the input lines, each time this is taken into account, it stores the calculated values to be placed on the outputs.
5- Operation:
The programmable controller receives the information relating to the state of the system and then controls the pre-actuators according to the program written in its memory.
Generally, industrial programmable logic controllers operate cyclically. The microprocessor performs all the logical AND, OR, timing, counting, calculation functions, etc. It is connected to the other elements (memory and I / O interface) by parallel links called ‘BUS’ which convey the information. in binary form. When the operation is said to be synchronous with respect to the inputs and outputs, the processing cycle begins by taking into account the inputs which are frozen in memory for the entire cycle.
The processor then executes the program instruction by instruction, each time storing the results in memory. At the end of the cycle, the outputs are assigned a binary state, by placing in communication with the corresponding memories. In this case, the response time to a change in state of an input can be between one or two cycle times.
There are other, less common modes of operation:
- synchronous with respect to the inputs only;
- asynchronous.
6– Description of the elements of an API:
6.1- Memory :
It is designed to receive, manage and store information from the different sectors of the system, namely the programming terminal (PC or console) and the processor, which manages and executes the program. It also receives information from the sensors.
There are two types of memories in PLCs which fulfill different functions:
- The language memory where the programming language is stored. It is generally fixed, that is to say in read-only mode. (ROM: read only memory)
- The work memory that can be used in read-write during operation is RAM (random access memory). It is automatically cleared when the PLC stops (requires a backup battery).
Distribution of memory areas:
- Image table of entries
- Image table of outputs
- Internal bit memory
- Application program memory
6.2- The processor :
Its role consists on the one hand in organizing the various relationships between the memory area and the input and output interfaces and on the other hand in executing the program instructions.
6.3- Interfaces and I / O cards:
The input interface has input addresses. Each sensor is linked to one of these addresses. The output interface has output addresses similarly. Each preactuator is linked to one of these addresses. The number of these inputs is output varies according to the type of PLC. The I / O cards have modularity of 8, 16 or 32 channels. The available voltages are standardized (24, 48, 110 or 230V direct or alternating …).
6.3.1- Inputs cards :
They are intended to receive information from the sensors and adapt the signal by shaping it, eliminating interference and electrically isolating the control unit from the operating part.
6.3.2- Outputs cards:
They are intended to control the pre-actuators and signaling elements of the system and adapt the voltage levels of the control unit to that of the operating part of the system, ensuring galvanic isolation between them.
6.4- Example of cards:
- Fast counting cards: they allow the acquisition of high frequency information incompatible with the processing time of the PLC. (signal from a position encoder)
- Axis control cards: They allow the precise positioning of a mechanical element along one or more axes. The card makes it possible for example to control a servomotor and to receive positioning information by an encoder. Position control can be carried out in a closed loop.
- Analog input / output cards: They allow the acquisition of an analog signal and its digital conversion (ADC) essential to ensure processing by the microprocessor. The reverse function (analog output) is also performed. The analog quantities are standardized: 0-10V or 4-20mA.
- PID regulation cards
- Weighing cards
- Communication cards (RS485, Ethernet …)
- Remote input / output cards
6.5- Power supply:
All current PLCs are equipped with a 240 V 50/60 Hz, 24 V DC power supply. The inputs are 24 V DC and an earth must also be provided.
7- Set of instructions :
The processor can perform a number of logical operations; the set of Boolean instructions of the additional program management instructions (jump, storage, addressing …) constitute an instruction set.
Each automaton has its own set of instructions. But on the other hand, the manufacturers all offer a programming software interface meeting the IEC1131-3 standard. This standard defines five programming languages that can be used, which are:
- Graphic languages:
– LD: Ladder Diagram
– FBD: Function Block Diagram (Logigrams)
– SFC: Sequential Function Chart (Grafcet) - Textual languages:
– IL: Instruction List.
– ST: Structured Text.
Ladder Diagram language is based on a symbolism very close to that used for classic wiring diagrams. The most used symbols are given in the following table:
8- Security :
Automated systems are, by nature, the source of many dangers (tensions used, mechanical movements, jets of material under pressure, etc.).
Placed at the heart of the automated system, the automaton must be a reliable element because a malfunction of this one could have serious repercussions on the safety of the people, moreover the costs of repairs and a stop of the production can have serious financial consequences.
Also, the controller is subject to numerous provisions to ensure safety:
- External constraints: the controller is designed to withstand the various constraints of the industrial world and has undergone numerous standardized tests.
- Power cuts: the PLC is designed to withstand power cuts and allows, by program, to ensure correct operation during the resupply (cold or hot restart)
- RUN / STOP mode: Only a technician can start or stop a PLC and the restart is done by an initialization procedure (programmed)
Cyclic checks:
- Self-checking procedures for memories, clocks, battery, supply voltage and inputs / outputs
- Verification of the scanning time at each cycle called Watchdog (watchdog), and triggering of an alarm procedure if this is exceeded (set by the user)
– Visualization: The PLCs offer a visualization screen where you can see the evolution of inputs / outputs
The standards prohibit the management of emergency stops by the PLC; this must be carried out in wired technology.
9- PLC networks
9.1- Principle
With the development of automated systems and electronics, the search for lower costs and the current need to be able to better manage production and from the moment when all the equipment is of the computer type, it becomes interesting to interconnect them. to a mini-computer or to a supervision PLC.
The interconnection between two PLCs can be achieved very simply by connecting one or more outputs of one PLC to inputs of the other and vice versa.
This method does not allow internal variables to be transferred directly from one PLC to another, so these must be converted by program into output variables before their transfer. It becomes expensive in terms of the number of inputs / outputs mobilized for this use and heavy from the point of view of cabling, when the number of variables that must be exchanged becomes large.
9.2- Field bus
To reduce the costs of wiring the inputs / outputs of PLCs, field buses have appeared. The use of remote I / O blocks first of all made it possible to meet this requirement.
The input / output interfaces are deported as close as possible to the sensors. With technological development, sensors, detectors … have become intelligent “and have made it possible to connect directly to a bus.
Several communication protocols and standards have appeared to ensure the “multiplexing” of all the information coming from the sensors / preactuators, for example the ASi bus (Actuators Sensors interface) is a bus of sensors / actuators of the Master / Slave type which makes it possible to connect 31 slaves (sensors or preactuators) on a specific cable (two wires) carrying data and power.
This bus is completely standardized and allows the use of technologies from several manufacturers
Advantages of fieldbuses:
- Reduction of cabling costs and possibility of reusing existing equipment
- Reduction of maintenance costs
Disadvantages of fieldbuses:
- Limited network size
- Latency in time critical applications
- Global cost
9.3- Different types of PLC networks :
8.3.1- Star network :
A common processing center exchanges with each of the other stations. Two stations cannot directly exchange with each other. Example of the BITBUS field network of the company INTEL
Benefits :
- High exchange speed.
- Different types of transmission media.
- No management of access to the support.
Disadvantages :
- High overall cost.
- Limited evolutions.
- Everything depends on the central station.
9.3.2- Réseau en anneau :
Each station can communicate with its neighbor. This solution is useful when a station must receive information from the previous station or transmit it to the next one.
Benefits :
- Regenerated signal therefore reliable.
- Easy control of exchanges (the message returns to the sender).
Disadvantages :
- Each station is blocking.
- An extension temporarily interrupts the network.
9.3.3- Hierarchical network :
It is the most efficient form of networks. It offers great flexibility of use, the information being able to circulate between stations of the same level or circulate from the most advanced station (usually a computer) to the simplest, and vice versa.
9- Criteria for choosing a PLC
The choice of a PLC is generally based on:
- Number of inputs / outputs: the number of cards can have an impact on the number of racks as soon as the number of inputs / outputs required becomes high.
- Processor type: the memory size, the processing speed and the special functions offered by the processor will allow the choice in the often very wide range.
- Special functions or modules: certain cards (axis control, weighing, etc.) will make it possible to “relieve” the processor and must offer the desired characteristics (resolution, etc.).
- 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.).
10- Implementation and diagnosis of an API:
10.1 – Function check
During its first implementation, the system must be tuned.
- Familiarize yourself with the system (technical file, GRAFCETS and GEMMA, allocation of inputs / outputs, control and power diagrams of inputs and outputs).
- Start program execution (RUN or ON)
- View the status of GRAFCETs, variables …
There are two ways to check operation:
- In simulation (without Operative Part).
- In real condition (with Operative Part).
Simulation without Operative Part | Simulation with Operative part (Real conditions) |
Operation will be verified by simulating the behavior of the Operative Part, ie the state of the sensors, by validating inputs only. Validate the entries corresponding to the initial state (position) of the Operative Part. Validate the entries corresponding to the operating conditions of the cycle. Check the evolution of grafcets (active steps). Check the orders issued (output LEDs). Modify the state of the inputs according to the orders issued (transient state of the P.O.). Modify the state of the inputs according to the orders issued (final state of the P.O.). All developments of GEMMA and grafcets must be checked. | Operation will be checked by following the behavior of the P.O. Position the P.O. in its initial position. Validate the operating conditions of the cycle. Check the evolution of grafcets and the behavior of the P.O. All the evolutions of GEMMA and grafcets must be checked. |
10.2 : Search for malfunctions
A malfunction can be caused by:
- A faulty mechanical component (preactuator, actuator, detector, etc.).
- Incorrect or faulty wiring (inputs, outputs).
- A faulty electrical or electronic component (input or output interface).
- A programming error (assignment of inputs / outputs, or writing).
- An uninitialized system (step, initial conditions …).
- ……..
Fault finding method:
Common Ground Input Wiring Check Method:
This check is carried out using a voltmeter-ohmeter and a shunt (piece of electric wire).
- Check the input power supply using a voltmeter.
- To check the sensor and its wiring, test at the various points indicated, sensor contact open, sensor contact closed.
- To check the input interface short-circuit the sensor with a shunt, the input LED must light up.
11- Principaux automates programmables industriels :
The programming of these PLCs is done either from their own console, or from the programming software specific to the brand.
OMRON :
- CQM1 – CPU 11/21/41
- E – 192 Inputs / Outputs (relay, triac, transistor or TTL);
- 32 K RAM data on Board;
- multifunction structure;
- multitasking structuring;
- SYSWIN 3.1, 3.2… 3.4 and CX_Programmer (Literal, Ladder);
- communication on RS 232 – C;
- programming on IBM PC / PS.
TELEMECANIQUE :
- TSX 17/20 :
- Number of variable inputs and outputs: 20 to 160 I / O.
- 8031 microprocessor.
- PL7.2 programming language.
- TSX 67.20 : The compactness of a high-end PLC, with remote I / O by optical fiber:
- 1024 I / Os in six bins of eight modules;
- extension of remote bins by optical fiber to 2000 m;
- 16 smart couplers;
- 24 K RAM data on Board;
- 32 K RAM / EPROM user cartridge;
-multifunctional structure; - multitasking structuring;
- PL7.3 language (Grafcet, Literal, Ladder);
- programming on IBM PC / PS.
- FESTO : Modular architecture: base card; processor card; memory card; I / O card.
- FPC 202:
- 16 24 V DC inputs;
- 16 outputs 24 V DC – 1 A;
- 8K RAM, 8K EPROM;
- serial interface, 20 mA current loop for printer;
- external programming console: console or IBM PC;
- programming: grafcet, Festo language, ladder diagram.
SIEMENS:
- S7 – 200.
- 64 24 V DC inputs;
- 64 outputs 24 V DC – 1 A;
- 8 AEW0 analog inputs
- AEW14; – 8 analog outputs AAW0
- AAW6; – serial interface,
- external programming console: PG 702;
- STEP7 programming: relay diagram, Ladder.