Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: Serial problem Kategorie: Programmierung Basic (von H.J.W. - 31.10.2006 7:08)
 Als Antwort auf Re: Serial problem von Hans - 30.10.2006 21:58
Hello Hans,

>#GeenOntvangst
>E=ON
>print"#ON_LCD#";

>print"#INIT#";
You don't need to initialize the LCD everytime you want to print, this only needs to be done once at the begining of your software.

>print"#L101#";
>print "******       Geen ontvangst       ******";
>print"#L201#";
>print"Storing Kijk of de afzender goed aangeslo";
>E=OFF

>print"#ON_LCD#";
This line in not necessary.


>print"#INIT#";
This line in not necessary.

>print"#L101#";
should this not be print"#L121#"; ?

>print "ten is. Spanning aangesloten           ";

>print"#L201#";
Should this not be print"#L221#"; ?

>print"of draadbreuk in de data kabel          ";

You forgot a PRINT"#OFF#"; here!
This could be the remaining problem.

>GOTO Opstart


>#Display            'Display 4x40
>aanTal=AanTal+1
>E=ON
>print"#ON_LCD#";

>print"#INIT#";
This line is not necessary

>print"#CLR";
This should be print"#CLR#";

>print"#L101#";
>PRINT "Getal1=";Var1;
>print"#L201#";
>PRINT "Getal2=";Var2;
>print"#L121#";
>PRINT "Getal3=";Var3;
>print"#L221#";                         'Regel 4, POSITON 1
>PRINT "Getal4=";Var4;
>E=OFF

>print"#INIT#";
This line is not necessary


For testing, put a pause here, otherwise you will not be able to read the data.

>print"#CLR";
This line should be print"#CLR#";

>print"#L101#";
>PRINT "Getal5=";Var5;
>print"#L201#";
>PRINT "Getal6=";Var6;
>print"#L221#";
>PRINT Aantal;

>print"#OFF#";
HEY! you remembered this! ;)

>pause 150

>GOTO Opstart

Greetings,
H.J.W.

 Antwort schreiben

Bisherige Antworten:

Re: Serial problem (von H.J.W. - 31.10.2006 7:47)