1 / 10

Proposition de correction des exercices de cours Automatismes séquentiels II

Proposition de correction des exercices de cours Automatismes séquentiels II. Langage IL: Exercice1. 1°) Ecrire le programme IL qui code l’équation combinatoire suivante: Résultat=a1+(a2*(a3-a4)*a5)+a6. LD a1 ADD( a2 MUL( a3 SUB a4 ) MUL a5 ) ADD a6 ST Résultat.

angus
Télécharger la présentation

Proposition de correction des exercices de cours Automatismes séquentiels II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Proposition de correction des exercices de cours Automatismes séquentiels II

  2. Langage IL: Exercice1 1°) Ecrire le programme IL qui code l’équation combinatoire suivante: Résultat=a1+(a2*(a3-a4)*a5)+a6 LD a1 ADD( a2 MUL( a3 SUB a4 ) MUL a5 ) ADD a6 ST Résultat

  3. Langage IL: Exercice2 2°) Ecrire le programme IL qui code les instructions FDB suivantes LD auto_mode ANDstart_cmd ST MemoireCommande.S LD stop_cmd ST MemoireCommande.R CAL MemoireCommande LD MemoireCommande.Q ST Command

  4. Langage IL: Exercice3 FUNCTION_BLOCK AFFECTE VAR_INPUT selecteur: INT; END_VAR VAR_IN_OUT Bs0:BOOL;BS1:BOOL;Bs2:BOOL; END_VAR LDselecteur JMPC test1 LD TRUE ST bs0 RET Test1: LD selecteur SUB 1 JMPC test2 LD TRUE ST bs1 RET Test2: SUB 1 RETCN LD TRUE ST bs2 END_FUNCTION_BLOCK 3°) Ecrire un bloc fonctionnel AFFECTE qui a pour argument un entier non signé « Selecteur » et qui si Selecteur=i i∈{0,1,2} positionne un bit de sortie bsi à TRUE i∈{0,1,2} sans modifier les autres bits Ecrire une séquence d’instruction IL qui appelle ce bloc et lit un des 3 bits de sortie

  5. Langage FDB: Exercice1/2 Partie déclarative Code FDB

  6. Langage FDB: Exercice2/2 Instanciation : ffg

  7. Proposition 1 Grafcet: Exercice de base 3 possibilités… parmi d’autres encore. Le Grafcet est un langage de description. Ce langage permet de décrire un même fonctionnement de différentes manières. Proposition 2 Proposition 3

  8. Grafcet: Jeux des 7 erreurs 1°) Pas d’étape initiale 2°) Etape 22 fugace, pas d’action continue sur Etape22 3°) La transition 24->25 ne sera jamais franchie 4°) Erreur de Syntaxe: Convergence en ET Fausse 5°) 2 fronts decorrélés ne peuvent survenir en même temps. Transition 32->21 jamais franchie 6°) Réceptivité X29 jamais franchie (Synchronisation avec un état futur…) 7°) Erreur de Syntaxe: Divergence en ET puis Convergence en OU

  9. GrafcetTranscription en LD/IL 1/2 Réseau LD correspondant: Equations correspondantes à transcrire

  10. LD M0 OR M1 OR M2 JMPC L1 LD TRUE ST M0 L1: LD C ANDN M100 ST fmc LD C ST M100 LD M0 AND a ST t0 LD M1 AND b ST t1 LD M2 AND fmc ST t2 LD M0 ANDN t0 OR t2 ST M0 LD M1 ANDN t1 OR t0 ST M1 LD M2 ANDN t2 OR t1 ST M2 LD M2 AND d OR M1 ST A LD M2 ST B GrafcetTranscription en LD/IL 2/2 Code IL correspondant: Equations correspondantes à transcrire

More Related