home *** CD-ROM | disk | FTP | other *** search
- '**************************************
- '
- ' C-Control/BASIC ALARM.BAS
- '
- ' Aufgabe:
- '
- ' - Alarmanlage fuer acht Eingaenge
- ' - Anzeige ueber LED
- ' - Ausgabe an Sirene abschaltbar
- '
- '**************************************
- ' --- Definitionen --------------------
-
- define E1 port [9]
- define E2 port [10]
- define E3 port [11]
- define E4 port [12]
- define E5 port [13]
- define E6 port [14]
- define E7 port [15]
- define E8 port [16]
-
- define Sirene port [1]
- define LED port [2]
- define Sperre port [3]
-
- define Alarm byte
-
- ' --- Programmoperationen -------------
-
- #Loop
- 'E1 bis E4 aktiv low
- Alarm = not (E1 and E2 and E3 and E4)
- 'E5 bis E8 aktiv high
- Alarm = Alarm or E5 or E6 or E7 or E8
- 'Ausgabe der Alarmzustands an LED
- LED = Alarm
- 'Ausgabe an Sirene?
- Sirene = Alarm and not Sperre
- goto Loop 'Endlosschleife
-
-
-
-
-
-