Vous êtes sur la page 1sur 21

An: 2019-2020

TD&TP
Automatique industriel

Ce cours est préparé par : Dr. BENDIB RIAD et est destiné aux étudiants 3me année
LICENCE-Automatisation en Industries Pétrochimiques

Nota bene : Ce cours est à usage personnel. Il est strictement interdit de le reproduire ou de le
publier sans mon
autorisation
Département de Pétrochimie et Génie des Procédés

Série 1

EXERCICE N°1

Donner les tables de vérité et les symboles des fonctions logiques suivants :

1. AND
2. OR
3. NOT
4. NAND
5. NOR
6. XOR

EXERCICE N°2

Donner les tables de vérité et les fonctions logiques pour les circuits suivants

A).

B).

C)

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

série 2
EXERCICE N°1

Donner une formule ayant la table de vérité suivante :

x y z F(x, y, z)
0 0 0 1
0 0 1 1
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1

1. Donner le circuit correspondant.


2. Simplifier l’expression et donner le nouveau circuit simplifié .

EXERCICE N° 2

Soit
𝐸 = 𝐴̅ 𝐵̅ 𝐶𝐷 + 𝐴𝐵𝐶̅ 𝐷
̅ + 𝐴𝐵𝐶𝐷
̅ + 𝐴𝐵̅ 𝐶𝐷

• Donner le table de vérité


• Donner le circuit correspondant.
• Simplifier l’expression et donner le nouveau circuit simplifié

EXERCICE N° 3

Soit
𝐷 = 𝐴̅𝐵̅ 𝐶̅ + 𝐴̅𝐵𝐶̅ + 𝐴𝐵̅ 𝐶̅ + 𝐴𝐵𝐶̅

• Donner la tables de vérité


• Donner le circuit correspondant.
• Simplifier l’expression et donner le nouveau circuit simplifié

EXERCICE N° 4

Soit 𝐸 = 𝐴̅𝐵̅ 𝐶̅ 𝐷 + 𝐴̅𝐶𝐷 + 𝐴̅𝐶̅ + 𝐶

 Donner les tables de vérité


 Donner le circuit correspondant.
 Simplifier l’expression et donner le nouveau circuit simplifié.

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

Série 3

EXERCICE N° 1

On donne l’équation logique des variables de sortie

S1 = ( a + b ) . c et

S2 = ( a + b ) . ( a + c )

1. Ecrire la table de vérité correspondant à chacune des équations logiques ci-


dessus.
2. Dessiner le logigramme validant S1’ et S2’ en utilisant des fonctions logiques ET,
OU à deux entrées et des fonctions complémentaires si nécessaire.

EXERCICE N° 2

On donne l’équation logique pour la formule de DeMorgan


̅̅̅̅̅
𝐴. 𝐵 = 𝐴̅ + 𝐵̅

1. Montrer la formule
2. Réaliser la théorème de DeMorgan avec
a. La porte NAND
b. La porte OR et NOT

EXERCICE N° 3

On donne la fonction logique XOR


Donner le circuit correspondant utilisant
a. Les portes AND, OR et NOT
b. seulement les portes NAND.

EXERCICE N° 4

Vous ne disposez que des portes logiques NAND réaliser les fonctions suivantes

a. X=ABC
b. Y=A+B+C

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

Evaluation TD

LE FEU DE CROISEMENT

Nous allons étudier le principe de fonctionnement d’un feu


de croisement.
La figure ci-contre montre l’intersection entre une route
principale et une route secondaire. Des capteurs de voitures
ont été placés le long des voies C et D (route principale) et
des voies A et B (route secondaire).
Les sorties de ces capteurs sont à l’état logique « 0 » quand
il n’y a pas de voitures et à l’état logique « 1 » quand il y en
a.

Le feu de circulation se trouvant à cette intersection est


commandé par les règles suivantes:

- Le feu E–O est vert quand il y a des voitures dans les deux voies C et D.
- Le feu E–O est vert quand il y a des voitures dans C ou D et quand il y en a dans A ou B (ou pas
du tout) mais pas dans les deux.
- Le feu N–S est vert quand il y a des voitures dans les voies A et B et qu’il y en a dans C ou dans
D mais pas dans les deux.
- Le feu N–S est aussi vert quand il y a des voitures dans A ou B et qu’il n’y a pas de voitures
dans C et D.
- Le feu E–O est vert quand il n’y a pas de voiture du tout.

 En utilisant les tensions de sorties des capteurs A,B,C et D comme entrées, concevez un circuit
logique qui commande le feu de circulation. Ce circuit a deux sorties, E–O et N–S, qui prennent la valeur
HAUTE quand le feu doit être vert.

Suivez la démarche suivante pour mener à bien ce problème:

1. Etablir la table de vérité pour les sorties E–O et N–S.


2. Dessinez les tableaux de Karnaugh pour les sorties E–O et N–S.
3. A partir des tableaux de Karnaugh, établissez l’équation logique la plus simple possible pour
chacune des sorties.
4. Dessinez le logigramme pour les sorties E–O et N–S avec les entrées A,B,C et D.
5. Vous ne disposez que de circuits 7400(un circuit intégré a quatre portes logiques NAND).
Proposez le logigramme correspondant.

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

série 5
EXERCICE N° 1

Donner le programme LADDER équivalent au circuit logique suivant

EXERCICE N° 2

Donner le programme LADDER équivalent au circuit logique suivant

EXERCICE N° 3

A. Donner les schémas des circuits logiques équivalents aux programmes


LADDER suivants

B. Donner une brève description pour le procédé commandé par le programme


sachant que M1= motopompe.

EXERCICE N° 4

Donner les schémas des circuits logiques équivalents aux programmes LADDER
suivants

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

série6

EXERCICE N° 1

1. écrire les conditions nécessaire pour énergisé la bobine CR1 .


2. déduire le tableau de vérité correspondant à ce programme.
EXERCICE N° 2

Soit le programme LADDER montré dans la figure


1. Définir les I/O.
2. Etablir les adresses physique pour chaque entrée/sortie.
3. Définir cette opération

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

Série 7
EXERCICE N°1

Le tableau en dessus représente le principe de franchissabilité d’une


transition compléter le tableau.
EXERCICE N° 2

Ce palan fonctionne comme suite :

1ère impulsion sur le bouton MA1 fait monter la


charge qui une fois en haut se dirige vers la
droite, arrivée à droite tout s’arrête pour laisser
un opérateur décharger la palette. Une fois la
palette déchargée, l’opérateur appuie sur
bouton MA2 et refais partir la palette vers la
gauche. Une fois à gauche, la palette redescend
et s’immobilise en bas pour être de nouveau chargée et le cycle recommence.
Q1. Donner la liste des entrées/sorties.
Q2. Donner le grafcet qui indique le fonctionnement du palan

EXERCICE N° 3

LA PERCEUSE AUTOMATISEE

Suite à une impulsion sur le bouton poussoir


départ cycle (DCY ), la broche est mise en
rotation et le mandrin descend à grande vitesse
du capteur P0 jusqu’au capteur P1.

Puis il termine sa descente en petite vitesse afin


d’effectuer le perçage jusqu’au capteur P2 de fin
de perçage. Puis à la fin du perçage, le mandrin
remonte à grande vitesse jusqu’au capteur P0 et la rotation de la broche s’arrête.

Q1. Donner la liste des entrées/sorties.


Q2. Donner le grafcet qui indique le fonctionnement de la perceuse point de vie
système.
Q3. Donner le grafcet qui indique le fonctionnement de la perceuse point de vie
partie de commande

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

Série8
EXERCICE N° 1

La figure montre un Four industriel utilisé pour chauffer la charge avant leur injection
au niveau de la colonne de distillation, le système de sécurité est géré par un automate
programmable de type (Dual) avec alimentation redondant.
Dans le cas d’arrêt d’urgence L’automate ordre :
 La fermeture des deux vannes UV1&UV2 et après 20 SEC l’ouverture de la
vanne UV3.
 l’ouverture du damper ( le volet une vanne spéciale ).
 L’arrêt de la pompe d’alimentation MP.
 L’Allumage de la lampe LP2 sur site et la lampe LP1 au niveau de la salle control
principale (DCS)
Parmi les causes qui provoquent l’arrêt d’urgence du four :
 Très bas débit du produit (FSL)
 Très haut pression du Fuel gaz et pour éviter les perturbations dans les
mesures des pressions un vote 2oo3 (entre les trois PSH) est exigé
avant l’exécution de l’arrêt.

QUESTIONS
a. Donner le tableau d’affectation pour les entrées et les sorties sachant que chaque
RACK contient 8 modules.
b. Tracer le diagramme LADDER pour l’arrêt d’urgence sachant que dans le cas où
une des pressostats a une valeur différent une alarme (LP3) est affiché au DCS

Dr.BENDIB
Département de Pétrochimie et Génie des Procédés

Série 8
EXERCICE N°2

Le niveau d'une cuve est contrôlé par 2 capteurs de niveau (nb, nh) et 2 capteurs de
température (th, tb). Une vanne V permet le remplissage de la cuve tant que le niveau
haut n'est pas atteint. Une résistance chauffante assure le chauffage jusqu’à la
température maximale. Une sécurité de fonctionnement interdit le chauffage si le
niveau bas est atteint, de même le remplissage est arrêté si la température minimale
est atteinte.
Les capteurs nb, nh sont à l’état « 1 » si le liquide est présent devant le capteur. Les
capteurs de température th, tb sont à l’état « 1 » si la température du liquide est
supérieure à th, tb.
 Décrire le fonctionnement du système par une table de vérité.
 Déterminer les équations de fonctionnement.

Dr.BENDIB
TP
Using TRISTATION SOFTWARE
Département de Pétrochimie et Génie des Procédés

TP2-implementation of a TIMER in Tristation PLC.

LAB 2 Creating a timer


This is a tutorial for creating a Timer. An alarm is set after a delay of preset length of
time.

Inputs are connected to an AND function. The output of the AND function is connected to
the IN terminal of an on-delay (TON) function block. The TON function block delays
setting the alarm by a Preset Time (PT). when both inputs to the AND gate go true, the
output is true the Timer starts the Elapsed Time ET. When the Elapsed time reaches the
time specified by PT input the output Q goes true, and the alarm is set.

 CREATE FUNCTION BLOCK DIAGRM


1. On the File menu, click New Project
2. Select Tricon as the platform, and then click OK
3. Enter Safe_Test as the name of the project. Click save
The libraries are attached to the project and the application workspace is displayed.
 CREATE A NEW PROGRAM
1. In the APPLICATION tree , right click User Document and then click New
Document the new document screen is displayed
2. Enter Timer for the file name. Keep the defaults: Program, Function block
diagram, and Control . Click OK
The Application tree displays the timer function under the Program folder.
 SETUP WORK SHEET
1. On the Sheets menu, click Select Sheet template
2. Click Sheet Template A, and then click Ok
3. On the Project menu, click Project Options
4. Click the Annotation tab, Check Annotation on by default and Monitor Value
on by Default, and then click Ok
5. On the Document menu, click Properties. The Document Properties screen is
displayed.
6. Click the Attributes tab. Check Enable Color Monitoring in program
documents, and then click Ok.
 PLACE AND Function ON LOGIC SHEET

Dr. BENDIB 1
Département de Pétrochimie et Génie des Procédés

1. Click the Select Function (Block) on the tool bar. The Select Element screen is
displayed.
2. In the FIND field, enter AND,and then click Ok
3. Move the pointer to the logic sheet. The pointer changes to the function graphic.
Click one to place the function on the logic sheet.
4. Double-click the AND function. The Item properties screen is displayed.
5. Check Double-space. This increases the size of the element on the sheet, which
makes it easier to connect variables. Close the Item Properties screen.
 PLACE TAG NAMES ON LOGIC SHEET
1. Click Tagname Tool button and move the pointer to the logic sheet .
Connect it to the top input terminal of the AND by clicking once.
2. Redo the same with the bottom input.
3. Double click the top and bottom tag tagnames.
4. Click input_1 in the variable name field. Click apply. The declaration tab is
displayed.
5. Enter Sample text in the Description field. Confirm BOOL as the data type and
Control as the application Type. Click Apply and then close the declaration tab.
6. Redo the same with the bottom tagname ( the name is input_2)
 PLACE TON FUNCTION BLOCK ON LOGIC SHEET
redo the same procedure for AND function however now you have to choose
name TON.
 PLACE VARIABLES ON LOGIC SHEET

1. Click Local Variable Tool button and Connect the variable to the PT( Preset
time) input of TON function block
2. Double click on the local variable
3. Click the Preset_Time in the variable name field. Click apply. The declaration tab
is displayed.
4. Select time as data type and enter T#20s in the initial value field Click Apply and
then close .
5. Redo the same with the second variable and connect it to ET( Elapsed time) of
TON ( the variable name should be Elapsed_Time, time as data type, and no initial
value.
6. Click Tagname tool and connect the Variable to Q output terminal on TON ( the
name should be Alarm and the type should be bool .

 COMPILE THE PROGRAM.


 SPECIFY PROGRAM EXECUTION (in the execution list browse the name TIMER to
the execution list)

 TEST PROGRAM LOGIC in Emulator Panel


1. Double click Emulator Panel
2. Click the connect button
3. Click Download All button
4. Click Run button
5. Click Display Program Document button P to diplay the program.
6. You can force the inputs to check the function .

Dr. BENDIB 2
Département de Pétrochimie et Génie des Procédés

TP2-implementation of a TIMER in Tristation PLC.

LAB 2 Creating a timer


This is a tutorial for creating a Timer. An alarm is set after a delay of preset length of
time.

Inputs are connected to an AND function. The output of the AND function is connected to
the IN terminal of an on-delay (TON) function block. The TON function block delays
setting the alarm by a Preset Time (PT). when both inputs to the AND gate go true, the
output is true the Timer starts the Elapsed Time ET. When the Elapsed time reaches the
time specified by PT input the output Q goes true, and the alarm is set.

 CREATE FUNCTION BLOCK DIAGRM


1. On the File menu, click New Project
2. Select Tricon as the platform, and then click OK
3. Enter Safe_Test as the name of the project. Click save
The libraries are attached to the project and the application workspace is displayed.
 CREATE A NEW PROGRAM
1. In the APPLICATION tree , right click User Document and then click New
Document the new document screen is displayed
2. Enter Timer for the file name. Keep the defaults: Program, Function block
diagram, and Control . Click OK
The Application tree displays the timer function under the Program folder.
 SETUP WORK SHEET
1. On the Sheets menu, click Select Sheet template
2. Click Sheet Template A, and then click Ok
3. On the Project menu, click Project Options
4. Click the Annotation tab, Check Annotation on by default and Monitor Value
on by Default, and then click Ok
5. On the Document menu, click Properties. The Document Properties screen is
displayed.
6. Click the Attributes tab. Check Enable Color Monitoring in program
documents, and then click Ok.
 PLACE AND Function ON LOGIC SHEET

Dr. BENDIB 1
Département de Pétrochimie et Génie des Procédés

1. Click the Select Function (Block) on the tool bar. The Select Element screen is
displayed.
2. In the FIND field, enter AND,and then click Ok
3. Move the pointer to the logic sheet. The pointer changes to the function graphic.
Click one to place the function on the logic sheet.
4. Double-click the AND function. The Item properties screen is displayed.
5. Check Double-space. This increases the size of the element on the sheet, which
makes it easier to connect variables. Close the Item Properties screen.
 PLACE TAG NAMES ON LOGIC SHEET
1. Click Tagname Tool button and move the pointer to the logic sheet .
Connect it to the top input terminal of the AND by clicking once.
2. Redo the same with the bottom input.
3. Double click the top and bottom tag tagnames.
4. Click input_1 in the variable name field. Click apply. The declaration tab is
displayed.
5. Enter Sample text in the Description field. Confirm BOOL as the data type and
Control as the application Type. Click Apply and then close the declaration tab.
6. Redo the same with the bottom tagname ( the name is input_2)
 PLACE TON FUNCTION BLOCK ON LOGIC SHEET
redo the same procedure for AND function however now you have to choose
name TON.
 PLACE VARIABLES ON LOGIC SHEET

1. Click Local Variable Tool button and Connect the variable to the PT( Preset
time) input of TON function block
2. Double click on the local variable
3. Click the Preset_Time in the variable name field. Click apply. The declaration tab
is displayed.
4. Select time as data type and enter T#20s in the initial value field Click Apply and
then close .
5. Redo the same with the second variable and connect it to ET( Elapsed time) of
TON ( the variable name should be Elapsed_Time, time as data type, and no initial
value.
6. Click Tagname tool and connect the Variable to Q output terminal on TON ( the
name should be Alarm and the type should be bool .

 COMPILE THE PROGRAM.


 SPECIFY PROGRAM EXECUTION (in the execution list browse the name TIMER to
the execution list)

 TEST PROGRAM LOGIC in Emulator Panel


1. Double click Emulator Panel
2. Click the connect button
3. Click Download All button
4. Click Run button
5. Click Display Program Document button P to diplay the program.
6. You can force the inputs to check the function .

Dr. BENDIB 2
Département de Pétrochimie et Génie des Procédés

TP3-implementation of some logic functions under Tristation PLC.

1. Implement the following function under Tristation software

 Execute the program and deduce the truth table.

2. Implement the following function under Tristation software

 Execute the program and deduce the truth table.

 Compare the two truths tables what is your conclusion.

Dr. BENDIB 1
Département de Pétrochimie et Génie des Procédés

LAB _4 ANALOG INPUT FUNCTIONS AIN cond

A_IN :Converts an analog input to a real number. The range is from 819-to 4095 type DIN.

Max_EU=100, MIN_EU=0 type real. SC=4295, OC=737 (type :DIN). HH_SP=80 H_SP=60,
LL_SP=20, L_SP=30 ( type real). DB=2 (real ). T_IN=T#2.0s (Time). HFT & MIS= false (type
bool). TX_type=2 ( type DINT)
Département de Pétrochimie et Génie des Procédés

Use the above block functions to control the following process .

Such a voting between the three transmitters that will start the pump and close the valve in
case HH level . The reverse should be done in case LL level

LT1 LT2 LT3


Département de Pétrochimie et Génie des Procédés

LAB 5- Auto-indust

Exercise 1

Implement and test the above program

Exercise 2

1. Implement and test the program shown in the below picture


2. Describe in few words what is the function of this program is.

Dr. BENDIB
Département de Pétrochimie et Génie des Procédés

TP-6 SV= 7 bar


SV= 6 bar SV= 8 bar SV= 9 bar

PS 4 PS 3 PS 2
PS 1

LMP 1

LMP 2

LMP 3 LSL

LMP 4

FIG 01

Dr. R.BENDIB
Département de Pétrochimie et Génie des Procédés

LAB 3

Implement the operation described herein in Tristation software in the same time perform the
hardware configuration deduce the I/O allocation table .

In Figure 01 it is shown a simplified drawing of a fire fighting system, the pressure in the circuit is 10 bar
and it is assured by two jokey pumps (not shown in the figure).

In case there is a fire the fire man will open one of the valves which will result to a pressure drop in the
line so when the pressure reaches 9 bar the PLC will start the pump MP1 ( electrical pump) and in the
same time will activate the corresponding alarm (Lamp ) to inform that the pump is running .

In case where the pressure still dropping and reach 8 bar the PLC will start the second pump and putting
on the second alarm and the same will happen with the third pump.

NB.

1. In case where there is a low level in the tank the PLC will activate one alarm (LMP4) to indicate that
there is a low level in the Tank.

2. The control circuit of any of the three pumps consists of one circuit Breaker that will be closed when a
relay is activated.

Dr. R.BENDIB

Vous aimerez peut-être aussi