Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - FAQ - Zum CC1-Forum - Zum CC-Pro-Forum

Wichtig: Bevor Du wegen einem Problem mit der CC2 postest, stelle sicher, daß Du
die neueste OS-Version, die neuseste Compiler-DLL und die neuesten Modulversionen benutzt!
Beachte, daß sich auf der CD zur CC2-Unit/Station auch jetzt noch die ältesten Dateien befinden!
Es gelten folgende Anleitung und Regeln: Regeln CC2Net.de-Forum
Zurück zum Artikel  (Blaue Felder sind Pflichtfelder)


Name:   UserID: 
 E-Mail:
Kategorie
Betreff
Homepage:
Link-Titel:
Link-URL:
Cookie für Name, UserID, E-Mail, Homepage-URL setzen
(Erspart die Neueingabe bei Beiträgen und Antworten)
(Zum Löschen des Cookies hier klicken)
Ich nutze:
C-Control II Unit
C164CI-Controllerboard
C-Control II Station
CCRP5 mit CC2-Unit (Conrad Roboter)
CC2-Application-Board
CC2-StarterBoard
CC2-ReglerBoard
eigenes Board
original OS     OSOPT_V2     OSOPT V3.0 OSOPT V3.1

Kommentar:
Einfügen von HTML im Kommentar:

Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a>
Bild einfügen: <img src="BILDURL">
Text formatieren: <b>fetter Text</b>  <i>kursiver Text</i> <u>unterstrichener Text</u>
Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b>
C2 Quellcode formatieren: <code>Quellcode</code>
ASM Quellcode formatieren: <asm>Quellcode</asm>
(Innerhalb eines Quellcodeabschnitts ist kein html möglich.)
Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst !  

> Hallo,das vorherige program war misst tschuldigung nachstehent so wie ich es eigentlich meine, > mir ist nur unklar wie du das meinst eine hilfsvariable anlegen könntest du mir anhand des nachfolgenten programmes > eine beispiel zeigen,? > Mein 2 anliegen ist.Ist e möglich das programm für den mischer,das heist port 10 und 11,in einen eigenen thread zu packen > und cb den ganzen thread (mischer) anzuhalten wenn die temperatur im Puffer speicher zu niedrig ist,damit will ich verhindern > das zu kaltes heizungswasser in den heizkreislauf kommt,und sobald der puffer wieder durch denn kessel erhitzt worden ist sprich > über 35Grad puffer temperatur der thread (mischer) wieder gestartet wird?? > > //............................................................... > //... ........ > //.. Messen der Temperaturen und speichern in variable > //............................................................... > > thread Sensoren > > { > loop > string a,b,c,e,f; > int n,ad,d; > float U,R; > > b=""; > U=0.004*ports.adc(0); > R=(8000/U-1600)/10000; > global.IST1=1000/(math.ln(R)/3.988+1000/298)-273; > str.putfloatf(b,global.IST1,1); > a="Kessel : "; > b=a+b; > > c=""; > U=0.004*ports.adc(1); > R=(8000/U-1600)/10000; > global.IST2=1000/(math.ln(R)/3.988+1000/298)-273; > str.putfloatf(c,global.IST1,1); > a="Heizkreis"; > c=a+c; > > e=""; > U=0.004*ports.adc(2); > R=(8000/U-1600)/10000; > global.IST3=1000/(math.ln(R)/3.988+1000/298)-273; > str.putfloatf(e,global.IST1,1); > a="Boiler : "; > e=a+e; > > f=""; > U=0.004*ports.adc(3); > R=(8000/U-1600)/10000; > global.IST4=1000/(math.ln(R)/3.988+1000/298)-273; > str.putfloatf(f,global.IST1,1); > a="Pufferoben : "; > f=a+f; > } > //....................................................................................................... > //..................................................................................................... > //........................................................................................................ > > > thread Programm1 > { > > > > if global.IST1 {ports.set(8,0); > station_io.LEDoff(1);}//..Ports low wenn temp unter SOLL > if global.IST1 {ports.set(9,0);station_io.LEDoff(2);}//....low wenn temp unter soll+5 Grad > > if global.IST1>=global.SOLL1 > {ports.set(8,1);//..Port high pumpe kessel ein > station_io.LEDon(1);} > if global.IST1>(global.SOLL1+5) > {ports.set(9,1);station_io.LEDon(2);}//..port high wenn temp 3 grad über SOLL > > // Programmteil für Fühler 2 *** Heizkreistemperatur *************************** > > if global.IST2 {ports.set(10,1);station_io.LEDon(6);}//...port high wenn temp niedrig > if global.IST2>=global.SOLL2 > {ports.set(10,0);station_io.LEDoff(6);}//..port low wenn temp=SOLL > if global.IST4 {station_io.LEDoff(6);}// led off bei Puffer oben unter SOLL4 > if global.IST2>global.SOLL2+3 > {ports.set(11,1);station_io.LEDon(7);}//..port high wenn temp über SOLL > > if global.IST2<=global.SOLL2 > {ports.set(11,0);station_io.LEDoff(7);}//..port low wenn temp=SOLL > if global.IST4 {station_io.LEDoff(7);}//..Led off bei Pufferoben unter SOLL4 temp > > > // ................Fühler 3 für Boiler ladung bis 60 Grad........ > > > > if global.IST3>=global.SOLL3 > {ports.set(13,0);station_io.LEDoff(3);}//..Boiler stop bei 60 Grad > if global.IST3 {station_io.LEDoff(3);} > > if global.IST3 {ports.set(13,1);station_io.LEDon(3);}//..boiler Laden > > //.............................................................................. > // ..............Fühler4 Puffer oben ab 40 Grad heizungspumpe P4 ein,freigabe > // freigabe für Boiler REL1,unter 40 Grad Mischerstop und schliessen,Boilerstop, > > > if global.IST4 {ports.set(12,0);station_io.LEDon(4);// Port P4 low unter 40 Grad > station_io.RELon(1);//... freigabe stop Boiler stop,mischer zu ,relais extern > ports.set(10,0);ports.set(11,0);station_io.LEDoff(6);station_io.LEDoff(7); > ports.set(13,0);station_io.LEDoff(3);station_io.LEDoff(5);} > > if global.IST4>global.SOLL4 > {ports.set(12,1);station_io.LEDoff(4);station_io.LEDon(5); > station_io.RELoff(1);}//...freigabe Boiler und Mischer ,relais extern > //..heizungspumpe ein > > > } > > > //....................................................................... > //.................. anzeige der Temperaturen am Display................ > //......................................................................... > thread anzeige > > { > loop > string a,b,c,e,f; > int n,ad,d; > float U,R; > > > //..................................................................... > //....................... > //..... Hier würde dann das programm zur Temperatur anzeige stehn........... > //...................................................................... > > > > }
Dateianhang: (.gif, .png., .jpg, .zip, .rar)
max. 256kB
max. 256kB