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

thread sensoren Kategorie: CC2-Unit & Appl.Board / CC2-Station (von Mario - 26.10.2004 18:34)
Ich nutze:
C-Control II Station, OSOPT V3.0
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...........
//......................................................................



}


    Antwort schreiben


Antworten:

wo isn das Programm ?? (von reneforster - 26.10.2004 19:26)
    Re: wo isn das Programm ?? (von André H. - 29.10.2004 0:54)
    Das Programm (von Mario - 26.10.2004 19:54)
        Nein, nein (von reneforster - 26.10.2004 20:09)
            Irgentwie sitz ich auf der leitung???? (von Mario - 26.10.2004 20:53)
                genau so (von reneforster - 26.10.2004 21:07)
                    Freu. (von Mario - 26.10.2004 21:13)
                       Re: Freu. (von reneforster - 26.10.2004 21:22)
                    und noch was (von reneforster - 26.10.2004 21:09)
                       etwa so??? (von Mario - 26.10.2004 21:21)
                          Re: etwa so??? (von reneforster - 26.10.2004 21:25)
                             display anzeige (von Mario - 26.10.2004 21:33)
                                geht nich (von reneforster - 26.10.2004 22:06)
                                   Danke (von Mario - 27.10.2004 10:54)
                                     Re: Danke (von reneforster - 27.10.2004 16:22)