Hi
I am currently trying to set up a program with counter inputs from an energy meter. I have setup the inputs fine and also used +CV command to accumulate the kWh.
What i want to do now is to setup another schedule to calculate the daily kWh reading whereby I read the counter input every second and add this to a +cv and run another schedule at 1 day interval to give the one daily reading.
However if i reset the counter input in one schedule the other schedule does not see the counts. here is a copy of the program created with delogger 5 DT85 series 3.
'JOB=JOB1
'COMPILED=2012/12/14 00:11:54
'TYPE=dt80
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
S1=0,1000,0,10"W/m2"
S2=0,60,0,100"m/sec"
S3=0,360,0,100"Degrees"
S4=0,1,0,100"kWh"
'Thermistor declarations
'Switches declarations
'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:100MB)15M LOGONA GA
1TT("TCP01")
1+TT("TCP02")
1-TT("PV01")
2TT("PV02")
2+TT("PV03")
2-TT("PV04")
3TT("JB01")
3+TT("JB02")
3-TT("JB03")
4TT("JB04")
4+TT("AAT")
5*L(S2,"WS01")
5+L(S3,"WD01")
6V(S1,"RS01")
here is the counter inputs
3C(R,"M1",W,+=1CV)
4C(R,"M2",W,+=2CV)
1CV(S4,"EM01")
2CV(S4,"EM02")
ALARM1(3ST("Logon")><8.,19.)"Logon"{[LOGON]}
ALARM2(3ST("Logoff")<>8.,19.)"Logoff"{[LOGOFF]}
'schedule definition
RB("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONB GB
here is the counter inputs
3C(R,"M1-1sec",W,+=5CV)
4C(R,"M2-1sec",W,+=6CV)
6V(S1,"RS01",+=10CV)
ALARM3(3ST("Logon")><8.0000,19.0000)"Logon"{[LOGON]}
ALARM4(3ST("Logoff")<>8.0000,19.0000)"Logoff"{[LOGOFF]}
'schedule definition
RC"PV Daily"("B:",ALARMS:OV:100KB,DATA:OV:50MB)1D LOGONC GC
20SV
21SV
22SV
here is the counter inputs
5CV(S4,"EM01 Daily",R)
6CV(S4,"EM02 Daily",R)
10CV("RS01 Daily Kw/h",R)
5L(S2,"WS01 Daily",AV)(MX)
1TT("TCP01 Daily",AV)(MX)
1+TT("TCP02 Daily",AV)(MX)
1-TT("PV01 Daily",AV)(MX)
2TT("PV02 Daily",AV)(MX)
2+TT("PV03 Daily",AV)(MX)
2-TT("PV04 Daily",AV)(MX)
3TT("JB01 Daily",AV)(MX)
3+TT("JB02 Daily",AV)(MX)
3-TT("JB03 Daily",AV)(MX)
4TT("JB04 Daily",AV)(MX)
4+TT("AAT Daily",AV)(MX)
5L(S2,"WS01 Daily",AV)(MX)
ALARM5(3ST("Logon")><8.0000,19.0000)"Logon"{[LOGON]}
ALARM6(3ST("Logoff")<>8.0000,19.0000)"Logoff"{[LOGOFF]}
END
'end of program file
can you advise how i might program this so i can record accumulated kWh and also a daily kWh.
thank you
Stephen
Hi
I am currently trying to set up a program with counter inputs from an energy meter. I have setup the inputs fine and also used +CV command to accumulate the kWh.
What i want to do now is to setup another schedule to calculate the daily kWh reading whereby I read the counter input every second and add this to a +cv and run another schedule at 1 day interval to give the one daily reading.
However if i reset the counter input in one schedule the other schedule does not see the counts. here is a copy of the program created with delogger 5 DT85 series 3.
'JOB=JOB1
'COMPILED=2012/12/14 00:11:54
'TYPE=dt80
DT=\d
BEGIN"JOB1"
CATTN
'Spans and polynomial declarations
S1=0,1000,0,10"W/m2"
S2=0,60,0,100"m/sec"
S3=0,360,0,100"Degrees"
S4=0,1,0,100"kWh"
'Thermistor declarations
'Switches declarations
'Parameter declarations
'Global declarations
RS1S
'schedule definition
RA("B:",ALARMS:OV:100KB,DATA:OV:100MB)15M LOGONA GA
1*TT("TCP01")
1+TT("TCP02")
1-TT("PV01")
2*TT("PV02")
2+TT("PV03")
2-TT("PV04")
3*TT("JB01")
3+TT("JB02")
3-TT("JB03")
4*TT("JB04")
4+TT("AAT")
5*L(S2,"WS01")
5+L(S3,"WD01")
6V(S1,"RS01")
here is the counter inputs
3C(R,"M1",W,+=1CV)
4C(R,"M2",W,+=2CV)
1CV(S4,"EM01")
2CV(S4,"EM02")
ALARM1(3ST("Logon")><8.,19.)"Logon"{[LOGON]}
ALARM2(3ST("Logoff")<>8.,19.)"Logoff"{[LOGOFF]}
'schedule definition
RB("B:",ALARMS:OV:100KB,DATA:OV:1MB)1S LOGONB GB
here is the counter inputs
3C(R,"M1-1sec",W,+=5CV)
4C(R,"M2-1sec",W,+=6CV)
6V(S1,"RS01",+=10CV)
ALARM3(3ST("Logon")><8.0000,19.0000)"Logon"{[LOGON]}
ALARM4(3ST("Logoff")<>8.0000,19.0000)"Logoff"{[LOGOFF]}
'schedule definition
RC"PV Daily"("B:",ALARMS:OV:100KB,DATA:OV:50MB)1D LOGONC GC
20SV
21SV
22SV
here is the counter inputs
5CV(S4,"EM01 Daily",R)
6CV(S4,"EM02 Daily",R)
10CV("RS01 Daily Kw/h",R)
5*L(S2,"WS01 Daily",AV)(MX)
1*TT("TCP01 Daily",AV)(MX)
1+TT("TCP02 Daily",AV)(MX)
1-TT("PV01 Daily",AV)(MX)
2*TT("PV02 Daily",AV)(MX)
2+TT("PV03 Daily",AV)(MX)
2-TT("PV04 Daily",AV)(MX)
3*TT("JB01 Daily",AV)(MX)
3+TT("JB02 Daily",AV)(MX)
3-TT("JB03 Daily",AV)(MX)
4*TT("JB04 Daily",AV)(MX)
4+TT("AAT Daily",AV)(MX)
5*L(S2,"WS01 Daily",AV)(MX)
ALARM5(3ST("Logon")><8.0000,19.0000)"Logon"{[LOGON]}
ALARM6(3ST("Logoff")<>8.0000,19.0000)"Logoff"{[LOGOFF]}
END
'end of program file
can you advise how i might program this so i can record accumulated kWh and also a daily kWh.
thank you
Stephen