Hello Rudy,
Previous question I understand, but I have problem - in my program I use two HSC (high speed counters) - 3HSC and 4HCS, but only one counter (4HSC) count pulses. Please see my program and tell me what I do wrong.
BEGIN"HALOGAD"
/D
/T
/k
P41=0
S1=0,1034.25,4.0,20.0"Atm" 'Pressure gauge 0 (Passenger side)
S3=0,3000,4.00,20.00"kg/m3" 'Density (RCM)
S4=0.0,55.947998,0,2000 'Flow meter 0 (Driver side pump) litters per second
S5=0.0,55.947998,0,2000 'Flow meter 1 (Passenger side pump) litters per second
S6=0,100"m3/min" 'Total flow from FM0+FM1
S7=0,100"m3" 'Total volume of pumped fluid (m3)
1..9CV(W)=0.0
11..19CV(W)=0.0
24CV(W)=4.0
25..27CV(W)=0.0
28..40CV(W)=0.0
RA1S
1#I(W,=26CV) 'Assighn analog channel for pressure gauge 0
2#I(W,=27CV) 'Assighn analog channel for pressure gauge 1
3#I(W,=28CV) 'Assighn analog channel for densometr
2C(R,W,=25CV) 'Assighn digital input 2 as low frequency counter for reset total value of pumped fluid
3HSC(S4,R,W,=29CV) 'Assighn High speed counter #3 for FM0
4HSC(S5,R,W,=15CV) 'Assighn High speed counter #3 for FM1
12CV(W)=13CV
13CV(W)=14CV
16CV(W)=15CV/1000 'Calculate m3/sec from l/sec for FM1
17CV(W)=16CV60 'Calculate m3/min from m3/sec for FM1, result stored to 17CV
31CV(W)=29CV/1000 'Calculate m3/sec from l/sec for FM0
32CV(W)=31CV60 'Calculate m3/min from m3/sec for FM0, result stored to 32CV
33CV(W)=16CV+31CV 'Summ of pumped fluid (m3) from both pumps
34CV(W)=17CV+32CV 'Summ of flow speed (m3/min) from both pump
36CV(S1,W)=27CV-24CV+4.0 'Calculate volume of pressure from Pressure gauge 1
1CV(S1,FF0)=36CV 'Total pressure from both pumps
2CV(S3,FF0)=28CV 'Calculate density
3CV(S6,FF3)=34CV 'Calculate and show flow rate (m3/min)
4CV(S7,FF3)=(4CV+33CV)*(25CV=0.0) 'Calculate and show total volume of pumped fluid
RC1-E 1#I(W,=24CV) 1DSO=1 'Enable data out from RS232
LOGONA 'Enable logging to internal disk "A"
END
Thank you.
Hello Rudy,
Previous question I understand, but I have problem - in my program I use two HSC (high speed counters) - 3HSC and 4HCS, but only one counter (4HSC) count pulses. Please see my program and tell me what I do wrong.
BEGIN"HALOGAD"
/D
/T
/k
P41=0
S1=0,1034.25,4.0,20.0"Atm" 'Pressure gauge 0 (Passenger side)
S3=0,3000,4.00,20.00"kg/m3" 'Density (RCM)
S4=0.0,55.947998,0,2000 'Flow meter 0 (Driver side pump) litters per second
S5=0.0,55.947998,0,2000 'Flow meter 1 (Passenger side pump) litters per second
S6=0,100"m3/min" 'Total flow from FM0+FM1
S7=0,100"m3" 'Total volume of pumped fluid (m3)
1..9CV(W)=0.0
11..19CV(W)=0.0
24CV(W)=4.0
25..27CV(W)=0.0
28..40CV(W)=0.0
RA1S
1#I(W,=26CV) 'Assighn analog channel for pressure gauge 0
2#I(W,=27CV) 'Assighn analog channel for pressure gauge 1
3#I(W,=28CV) 'Assighn analog channel for densometr
2C(R,W,=25CV) 'Assighn digital input 2 as low frequency counter for reset total value of pumped fluid
3HSC(S4,R,W,=29CV) 'Assighn High speed counter #3 for FM0
4HSC(S5,R,W,=15CV) 'Assighn High speed counter #3 for FM1
12CV(W)=13CV
13CV(W)=14CV
16CV(W)=15CV/1000 'Calculate m3/sec from l/sec for FM1
17CV(W)=16CV*60 'Calculate m3/min from m3/sec for FM1, result stored to 17CV
31CV(W)=29CV/1000 'Calculate m3/sec from l/sec for FM0
32CV(W)=31CV*60 'Calculate m3/min from m3/sec for FM0, result stored to 32CV
33CV(W)=16CV+31CV 'Summ of pumped fluid (m3) from both pumps
34CV(W)=17CV+32CV 'Summ of flow speed (m3/min) from both pump
36CV(S1,W)=27CV-24CV+4.0 'Calculate volume of pressure from Pressure gauge 1
1CV(S1,FF0)=36CV 'Total pressure from both pumps
2CV(S3,FF0)=28CV 'Calculate density
3CV(S6,FF3)=34CV 'Calculate and show flow rate (m3/min)
4CV(S7,FF3)=(4CV+33CV)*(25CV=0.0) 'Calculate and show total volume of pumped fluid
RC1-E 1#I(W,=24CV) 1DSO=1 'Enable data out from RS232
LOGONA 'Enable logging to internal disk "A"
END
Thank you.