Saint Jérôme de Douala . Institut Supérieur des Sciences Religieuses et Sociales Institut Supérieur des Sciences de Gestion Appliquée Saint Jérôme Polytechnique Saint Jerome Douala . University Institute of Social and Religious Sciences University Institute of Applied Management Sciences Saint Jerome Polytechnic Année Académique 2019-2020 Saint Jérôme Polytechnique EC : Programmation des API Contrôle Continu #3 Niveau : SJP 4 GME Q1 : API 16 entrées/9 sorties fréquences min: 2KhZ Schéma de raccordement des entrées et sorties à l API Vérin D Vérin C 24V DC N L Vérin B Vérin A 230V AC N L 24V AC N L KM1 Moteur M1 M L L L L L L L L N N N N N N N N N L C0 0 C1 Distributeur B Distributeur A KM1 1 C2 2 C3 3 C4.7 4 5 6 7 C8.11 8 Distributeur C 9 10 11 20 22 23 110V 240V Outputs Programmable Logic Controller 0.25A DC 0V 24V PWR STA RUN ERR Inputs 0 DCY 1 2 CU/CR m 3 4 a1 5 6 7 a2 b1 b2 8 c1 9 10 c2 11 d1 12 d2 p2 13 p3 14 p1 15 16 17 18 19 Distributeur D Grafcet point de vue PC 0 Dcy 1 4 a0 a0 2 b0 b0 A- 7 5 a0 c0 c0 B- 8 b0 3 10 d0 d0 C- 11 c0 6 Dd0 9 12 =1 13 KM m 19 14 p2 p1 15 23 A+ 20 a1 B+ 24 b1 16 21 t/X16/10s 17 p3 c1 B- 25 b0 (t/X24/2s).c1 C- 26 c0 A- D+ d1 27 a0 18 C+ Dd0 22 28 =1 29 KM m.CU m.CR Grafcet point de vue API 0 %I1.0 1 4 %I1.5 %I1.5 2 %I1.7 %I1.7 %Q1.5 7 5 %I1.5 %I1.9 %I1.9 %Q.17 8 %I1.7 3 10 %I1.11 %Q1.9 11 %I1.9 6 %I1.11 %Q1.11 %I1.11 9 12 =1 13 %Q1.1 %I1.3 19 14 %I1.12 %I1.14 15 %Q1.4 23 20 %I1.4 %Q1.6 24 %I1.6 16 21 t/X16/10s 17 %I1.13 %I1.8 %Q1.7 25 %I1.7 %Q1.9 (t/X24/2s).%I1.8 26 %I1.9 %Q1.5 %Q1.10 %I1.10 27 %I1.5 18 %Q1.8 %Q1.11 %I1.11 22 28 =1 29 %Q1.1 (%I1.3).(%I1.1) (%I1.3).(%I1.2) Programme API en langage LADDER Désactivation des étapes %M1 %M4 %M7 %M2 %M10 %M0 R %M1 %M15 R %M2 R %M4 R %M5 R %M7 R %M8 R %M10 R %M11 R %M3 R %M6 R %M9 R %M12 R %M13 R %M14 %M16 R %M15 %M17 R %M16 %M18 R %M17 %M20 %M19 %M21 R %M20 %M22 R %M21 %M24 R %M23 %M25 R %M24 %M3 %M5 %M6 %M8 %M9 %M11 %M12 %M13 %M14 %M20 %M23 Activation des étapes %I1.3 %M0 S %I1.1 %M29 %M1 S %M4 S %M7 S %M10 S %M2 S %M0 %I1.5 %M1 %I1.5 %M1 %M3 S %M2 %I1.7 %M4 %M5 S %I1.7 %M4 %M6 S %I1.9 %M7 %M8 S %I1.9 %M7 %M9 S %M8 %I1.11 %M10 %M11 S %I1.11 %M10 %M12 S %M11 %M3 %M6 %M9 %M12 %I1.14 %M14 %I1.4 %M15 %M16 IN %M13 S %M14 S %M19 S %M23 S %M15 S %M16 S %M17 S %I1.3 %M13 Q TYPE TON TB 1s %TM0 Time:10 %M26 %M27 %M26 %I1.5 %M17 %M18 S %M28 R %M25 %I1.12 %M19 %M20 S %I1.6 %M20 %M29 R %M27 R %M18 %M0 R %M22 R %M28 R %M29 %M21 S %M22 S %M24 S %M25 S R %Q1.1 %M15 %Q1.4 %M2 %Q1.5 %M17 %M20 %Q1.6 %M5 %Q1.7 %M21 %M24 %Q1.8 %M8 %Q1.9 %M25 %M5 R R %M13 %M29 %I1.15 %I1.0 Mise à jour des sorties %I1.7 %M21 %I1.13 %M23 %M24 %I1.8 %I1.8 IN Q TYPE TON TB 1s %TM1 Time:2 %I1.9 %M25 %M27 S %M28 S %I1.11 %M27 %M18 %M22 %M28 %M29 S %M26 %Q1.10 %M11 %Q1.11 %M27 Programme en langage LIST Désactivation des étapes (pas fini) //étape 0// LD %M1 AND %M4 AND %M7 AND %M10 R %M0 //Etape 1// LD %M2 R %M1 //Etape 2// LD %M3 R %M2 //Etape 4// LD %M5 R %M4 //Etape 5// LD %M6 R %M5 //Etape 7// LD %M8 R %M7 //Etape 8// LD %M9 R %M8 //Etape 10// LD %M11 R %M10 //Etape 10// LD %M11 R %M10 //Etape 11// LD %M12 R %M11 //Etape 3,6,9,12// LD %M12 R %M3 R %M6 R %M9 R %M12 //Etape 13// LD AND AND R %M14 %M20 %M23 %M13 Activation des étapes (pas fini) //étape 0// LD %I1.3 AND %I1.1 AND %IM29 OR %I1.15 S %M0 //Etapes 1, 4, 7, 10// LD %I1.0 AND %M0 S %M1 S %M4 S %M7 S %M10 //Etape 2// LDN %I1.5 AND %M1 S %M2 //Etape 3// LD %I1.5 AND( %M1 OR %M2 ) S %M3 //Etape 5// LDN %I1.7 AND %M4 S %M5 //Etape 6// LD %I1.7 AND( %M4 OR %M5 ) S %M6 //Etape 8// LDN %I1.9 AND %M7 S %M8 //Etape 9// LD %I1.9 AND( %M7 OR %M8 ) S %M9 Mise à jour des sorties //sortie %Q1.1// LD %M13 OR %M29 ST %Q1.1 //Sortie Q1.4// LD %M15 ST %Q1.4 //sortie %Q1.5// LD %M15 OR %M17 ST %Q1.5 //Sortie Q1.6// LD %M20 ST %Q1.6 //sortie %Q1.7// LD %M5 OR %M21 ST %Q1.7 //Sortie Q1.8// LD %M24 ST %Q1.8 //sortie %Q1.9// LD %M8 OR %M25 ST %Q1.9 //Sortie Q1.10// LD %M26 ST %Q1.10 //sortie %Q1.11// LD %M11 OR %M27 ST %Q1.11