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 Hans - 30.10.2006 21:58)
 Als Antwort auf Re: Serial problem von H.J.W. - 30.10.2006 20:08
Hans nutzt:  CC1-M-Unit V1.2/2.0
Thanks for your answer
Your right For next is not nescesarry

#Start
IF MINUTE>4 THEN GOTO GeenOntvangst
IF NOT RXD THEN GOTO Verder
GET Var1
IF Var1=68 THEN GOTO Ontvang
#Verder
GOTO Start

BUT too bad the problem stay
I hope that you have a new idea

Hans


> Hello Hans,
>
> #OpStart
> > Minute = 0
> >
> >
> > #Start
> > FOR I = 1 to 200
>
> > IF MINUTE>4 THEN GOTO GeenOntvangst
> Here is the first problem.
> If minute is higher then 4 it jumps to routine GeenOntvangst
> When GeenOntvangst is done then it jumps to Opstart but.... what about the For I = 1 to 200 loop??
> Your software does not allow the For I loop to complete, "NEXT", and this is where the problems begin.
>
>
> > IF NOT RXD THEN GOTO Verder
> > GET Var1
> > IF Var1=68 THEN GOTO Ontvang   '83 is "S" van Start
> Next problem, is the same problem as above.
>
> > #Verder
> > NEXT
> > GOTO Start
>
> As i wrote before, you must be careful when using "for" "next" "goto" and "gosub".
> I'm not sure why you are using the FOR I = 1 to 200 but i think your software would work without it.
> Greetings,
> H.J.W.

 Antwort schreiben

Bisherige Antworten:

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