Hi Roger,
Thank you for your reply. The power transducer has an analog output of 0+5V which I can scale no problem. I think most of the way with it but have encountered a problem.
I have the program scaling and converting where needed, when the power is on it seems to be calculating ok. But when the power is off, the power in kWh (because I have the calculation in the program 7CV which is from the voltage output from the transducer to the logger) returns to zero as there is no power consumption or voltage signal because the motor is off.
What I am trying to achieve is a total power consumption from time of setup of logger to motor but the kWh 6CV returns to zero once the motor power switches of, where I need it to store the measurement and continue from each measurement on. Please see below program and excuse the lack of knowledge in programming. I would appreciate your help on this its driving me insane.
'JOB=JOB1
'COMPILED=2007/07/09 00:53:20
'deLogger generated program file for dataTaker 8 series
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
S1=0,100,0,100"KW"
S2=0,10,0,10000"V"
S3=0,100,0,100"Sec"
S4=0,100,0,100"Hrs"
S5=0,100,0,100"KWH"
'Thermistor declarations
'Switches declarations
'Parameter declarations
P31=3
'Global declarations
RS1S
'main schedule definitions
'schedule definition
RA1S LOGONA GA
10CV=0
1V(S2,=1CV)
1CV(S1,0.48,=7CV)
IF(10CV<10)AND
IF(1CV>0.1)"ON ^m^j"{[T(=2CV)10CV=1]}
IF(1CV<0.1)"Off ^m^j"{[T(=3CV)10CV=0]}
2CV(S3,"ON",=2CV)
3CV(S3,"OFF",=3CV)
5CV(S4,"ON TIME HRS")=2CV/3600
6CV(S5,"Power per Time")=5CV*7CV
5CV
7CV
END
'end of program file
Thank you
Stephen
Hi Roger,
Thank you for your reply. The power transducer has an analog output of 0+5V which I can scale no problem. I think most of the way with it but have encountered a problem.
I have the program scaling and converting where needed, when the power is on it seems to be calculating ok. But when the power is off, the power in kWh (because I have the calculation in the program 7CV which is from the voltage output from the transducer to the logger) returns to zero as there is no power consumption or voltage signal because the motor is off.
What I am trying to achieve is a total power consumption from time of setup of logger to motor but the kWh 6CV returns to zero once the motor power switches of, where I need it to store the measurement and continue from each measurement on. Please see below program and excuse the lack of knowledge in programming. I would appreciate your help on this its driving me insane.
````
'JOB=JOB1
'COMPILED=2007/07/09 00:53:20
'deLogger generated program file for dataTaker 8 series
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
S1=0,100,0,100"KW"
S2=0,10,0,10000"V"
S3=0,100,0,100"Sec"
S4=0,100,0,100"Hrs"
S5=0,100,0,100"KWH"
'Thermistor declarations
'Switches declarations
'Parameter declarations
P31=3
'Global declarations
RS1S
'main schedule definitions
'schedule definition
RA1S LOGONA GA
10CV=0
1V(S2,=1CV)
1CV(S1,0.48,=7CV)
IF(10CV<10)AND
IF(1CV>0.1)"ON ^m^j"{[T(=2CV)10CV=1]}
IF(1CV<0.1)"Off ^m^j"{[T(=3CV)10CV=0]}
2CV(S3,"ON",=2CV)
3CV(S3,"OFF",=3CV)
5CV(S4,"ON TIME HRS")=2CV/3600
6CV(S5,"Power per Time")=5CV*7CV
5CV
7CV
END
'end of program file
````
Thank you
Stephen