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: Print Befehle welcher Syntaxfehler ? Kategorie: Programmierung Basic (von MaPi - 7.11.2011 18:19)
 Als Antwort auf Re: Print Befehle welcher Syntaxfehler ? von Pohl - 7.11.2011 9:39
MaPi nutzt:  CC1-Unit V1.1, CC1-M-Unit V1.1, CC1-Station V1.1, C-Control 2
Hallo Bernhard,

laut Deiner Angabe nutzt Du CControl1.1 und nicht den Nachfolger CControl1 V2.0.
Das ist okay, Du bist beim richtigen Foruim und sollst auch die richtigen Tools nutzen...

Die SW, die Du mit Version 1.0 bzw. 2006 beschreibts ist höchstwahrscheinlich Basic++ und aus meiner Sicht für CControl1.1 nicht wirklich brauchbar. ALso vergiß Basic++. Wenn Du allerdings CControl1 V2.0 nutzt, dann kann ich Dir mit CCBAsic1.33 nicht weiterhelfen.

Die frei verfügbare Version CCBASIC 1.33 von Conrad kannst Du unter folgendem Link downloaden:
http://www.pubeam.de/software.htm

Also versuchs mal.

Beste GRüsse,
MaPi


> Hallo Mapi,
>
> ich habe die Version 1.0 und dann das 2006. Waere froh wenn es bei mir so waere das er uebersetzt. Wo kann ich denn denn notfalls deine Version bekommen ?
>
> Gruss Bernhard
> > > Hallo , ich weiss nicht woran es liegt. Kann mir vielleicht jemand helfen ? Ab Print ..... Gruss B.Pohl
> > > ' Definitonen *******************************************************
> > > ' Ports
> > > 'Define P1 Port[1]
> > > 'Define P2 Port[2]
> > > Define P3 Port[3]
> > > Define P4 Port[4]
> > > Define P5 Port[5]
> > > Define P6 Port[6]
> > >
> > > Define K1 Port[7]
> > > Define K2 Port[8]
> > >
> > > Define F1 Port[9]
> > > Define F2 Port[10]
> > > Define F3 Port[11]
> > > Define F4 Port[12]
> > >
> > > Define Led1 Port[13]
> > > Define Led2 Port[14]
> > > Define Led3 Port[15]
> > > Define Led4 Port[16]
> > >
> > > Define A1 Ad[1]
> > > Define A2 Ad[2]
> > > Define A3 Ad[3]
> > > Define A4 Ad[4]
> > >
> > > Define T1 Ad[5]
> > > Define T2 Ad[6]
> > >
> > > 'DEFINE U1 AD[7]
> > > 'DEFINE U2 AD[8]
> > >
> > > 'Variablen
> > > Define Bit1 Bit[1]
> > > Define Bit2 Bit[2]
> > > Define Bit3 Bit[3]
> > > Define Bit4 Bit[4]
> > > Define Bit5 Bit[5]
> > > Define Bit6 Bit[6]
> > > Define Bit7 Bit[7]
> > > Define Bit8 Bit[8]
> > >
> > > Define B1 Byte
> > > Define B2 Byte
> > > Define B3 Byte
> > > Define B4 Byte
> > > Define B5 Byte
> > > Define B6 Byte
> > > Define B7 Byte
> > > Define B8 Byte
> > >
> > > Define W1 Word
> > > Define W2 Word
> > > Define W3 Word
> > > Define W4 Word
> > > Define W5 Word
> > > Define W6 Word
> > > Define W7 Word
> > > Define W8 Word
> > >
> > > ' Start des Programms **********************************************************
> > > #start
> > >   B1 = 0
> > >   If Rxd Then Get B1
> > >   If B1 = 0 Then Goto Step
> > >   ' if b1 <> 0 then alles ausgeben und eventuell b1 interpretieren
> > >   Print ">"
> > >   Print "bit=" , Bit1 , Bit2 , Bit3 , Bit4 , Bit5 , Bit6 , Bit7 , Bit8
> > >   Print "b=" , B1 , B2 , B3 , B4 , B5 , B6 , B7 , B8
> > >   Print "w=" , W1 , W2 , W3 , W4 , W5 , W6 , W7 , W8
> > >   Print "P=" , P1 , P2 , P3 , P4 , P5 , P6
> > >   Print "A=" , A1 , A2 , A3 , A4
> > >   Print "T=" , T1 , T2
> > >   Print "K=" , K1 , K2
> > >   Print "F=" , F1 , F2 , F3 , F4
> > >   Print "LED=" , Led1 , Led2 , Led3 , Led4
> > >
> > > '*******************************************************************************
> > > ' Hier kann man b1 interpretieren
> > > '*******************************************************************************
> > > #interpret
> > >
> > > '*******************************************************************************
> > > ' Hier kommt das SPS Programm
> > > '*******************************************************************************
> > > #step
> > >   If F1 = -1 Then Led1 = 0
> > >   If F2 = -1 Then Led2 = 0
> > >   If F3 = -1 Then Led3 = 0
> > >   If F4 = -1 Then Led4 = 0
> > >   If F1 = 0 Then Led1 = 1
> > >   If F2 = 0 Then Led2 = 1
> > >   If F3 = 0 Then Led3 = 1
> > >   If F4 = 0 Then Led4 = 1
> > >   Goto Start
> > >
> > > ' Ende des Programms ***********************************************************
> > > #ende
> > >   End

 Antwort schreiben

Bisherige Antworten:

Re: Print Befehle welcher Syntaxfehler ? (von Pohl - 8.11.2011 10:44)
    Re: Print Befehle welcher Syntaxfehler ? (von MaPi - 8.11.2011 18:42)
        Re: Print Befehle welcher Syntaxfehler ? (von MaPi - 8.11.2011 18:43)
    Re: Print Befehle welcher Syntaxfehler ? (von MaPi - 8.11.2011 18:32)
    Re: Print Befehle welcher Syntaxfehler ? (von MaPi - 8.11.2011 18:29)
        Re: Print Befehle welcher Syntaxfehler ? (von MaPi - 8.11.2011 19:39)