beautypg.com

1 example cr1000 program, 2 cr200x-series dataloggers, Example cr1000 program – Campbell Scientific CS11-L Current Transformer User Manual

Page 18: Cr200x-series dataloggers

background image

CS11-L Current Transformer

Below is an example CR1000 program. In the program, a multiplier of 0.2 is
applied to the rms value; see Appendix A.4, Multiplier, for more information.

6.1.1 Example CR1000 Program

'CR1000 Series Datalogger
' CS11-L_with_ACPower_Instruction.CR1
'date: June 12, 2013

'
' Wiring:
' SE1 PT Potential Transformer Signal

' AG PT reference
' SE2 White CS11-L
' AG Black CS11-L

' AG Clear CS11-L
' AG Red CS11-L

PipeLineMode

' must be pipeline mode

Public Batt_volt

Public Amp_Mult
Public Array1(10)
Alias Array1(1) = Real_Power

Alias Array1(2) = Frequency
Alias Array1(3) = Voltage
Alias Array1(4) = Amperage

Alias Array1(5) = Phase_Angle
Alias Array1(6) = V_Harm_Ratio
Alias Array1(7) = I_Harm_Ratio


PreserveVariables

' to store values between power cycles


DataTable (AmpTable,True,-1)
DataInterval (0,1,Min,10)

Totalize (1,Real_Power,IEEE4,False)
Average (1,Frequency,FP2,False)
Average (1,Voltage,FP2,False)

Average (1,Amperage,FP2,False)
Maximum (1,Phase_Angle,FP2,False,False)
Maximum (1,V_Harm_Ratio,FP2,False,False)

Maximum (1,I_Harm_Ratio,FP2,False,False)
EndTable


BeginProg

Amp_mult = 0.2

' 0.2 multiplier for the CS11-L (200Amps/1000mV=0.2)

Scan (500,mSec,0,0)
Battery (Batt_volt)

ACPower (Array1(),1,60,1,0.345345,120,2,.2,200,1)
CallTable (AmpTable)
NextScan
EndProg

6.2 CR200X-series Dataloggers

The CS11-L is compatible with the CR200X-series dataloggers, with slightly
different wiring. The RED wire is connected to a VX terminal and requires an
ExciteV instruction in the program. The voltage excitation creates a positive
reference output that the CR200X-series can measure.

The recommended programming method for CR200X-series dataloggers
(where the scan interval is limited to once per second) is to place the VoltSE
instruction within a loop. The first CR200X example program has a loop that

12