Lösung Ventilator mit mehreren Schaltstellen
Zuordnungstabelle
Eingangsvariable | Symbole | Datentyp | Logische Zuordnung | Adresse |
---|---|---|---|---|
Schalter 1 Schalter 2 Schalter 3 |
S1 S2 S3 |
Bool Bool Bool |
Schalter ein=1 Schalter ein=1 Schalter ein=1 |
E0.1 E0.2 E0.3 |
Ausgangsvariable | ||||
Ventilator | Q | Bool | Ventilator an=1 | A4.0 |
Schaltwerttabelle
Zeile | S3 | S2 | S1 | Q |
---|---|---|---|---|
00 | 0 | 0 | 0 | 0 |
01 | 0 | 0 | 1 | 1 |
02 | 0 | 1 | 0 | 1 |
03 | 0 | 1 | 1 | 0 |
04 | 1 | 0 | 0 | 1 |
05 | 1 | 0 | 1 | 0 |
06 | 1 | 1 | 0 | 0 |
07 | 1 | 1 | 1 | 1 |
Schaltfunktion in DNF
S1∧¬S2∧¬S3 ∨
¬S1∧S2∧¬S3 ∨
¬S1∧¬S2∧S3 ∨
S1∧S2∧S3
Symboltabelle in Step7
![Symboltabelle Ventilator Symboltabelle Ventilator](typo3temp/fl_realurl_image/symboltabelle-ventilator-0d.jpg)
Funktion FC1 in Step7
![Funktion für den Ventilator Funktion für den Ventilator](typo3temp/fl_realurl_image/funktion-fuer-den-ventilator-61.jpg)
Aufruf der Funktion im OB1
![Funktionsaufruf im OB1 Funktionsaufruf im OB1](typo3temp/fl_realurl_image/funktionsaufruf-im-ob1-1f.jpg)
Schaltfunktion testen in S7 PLCSIM
![Funktion in PLCSIM testen Funktion in PLCSIM testen](typo3temp/fl_realurl_image/funktion-in-plcsim-testen-21.jpg)