' *********************************** ' PROGRAMM: Siebensegment-Anzeige 4 ' *********************************** ' ' Erläuterung: ' Das Programm schaltet die Zahlen 0 bis 9 nacheinander ein. ' Es wird nur der Befehl DOUTS "xxxx ...." zum gleichzeitigen Schalten ' aller Ausgänge benutzt. ' Dabei bedeutet x = unverändert, 1 = ein und 0 = aus ' ' ============================================================== ' Vereinbarungsteil ' ' Modell: CIUS-Aufzug ' ' Anschlussbelegungen des Interfaces: ' Digitale Ausgänge (DOUTs): ' DOUT 1: a ' DOUT 2: b ' DOUT 3: c ' DOUT 4: d ' DOUT 5: e ' DOUT 6: f ' DOUT 7: g ' DOUT 8: ' ================================================================= ' ' Variablendeklaration: ' DIM t ' ' Wertzuweisung: ' t = 0.5 ' ' Start: ' ------ DOUTS "xxxx xxxx 011 1111" 'Zahl 0 WAIT 0.5 DOUTS "xxxx xxxx 0000 0110" 'Zahl 1 WAIT 0.5 DOUTS "xxxx xxxx 0101 1011" 'Zahl 2 WAIT 0.5 DOUTS "xxxx xxxx 0100 1111" 'Zahl 3 WAIT 0.5 DOUTS "xxxx xxxx 0110 0100" 'Zahl 4 WAIT 0.5 DOUTS "xxxx xxxx 0110 1101" 'Zahl 5 WAIT 0.5 DOUTS "xxxx xxxx 0111 1101" 'Zahl 6 WAIT 0.5 DOUTS "xxxx xxxx 0000 0111" 'Zahl 7 WAIT 0.5 DOUTS "xxxx xxxx 0111 1111" 'Zahl 8 WAIT 0.5 DOUTS "xxxx xxxx 0110 0111" 'Zahl 9 WAIT 0.5 ' Ende