beautypg.com

2 acpower (from crbasic help), Acpower (from crbasic help) – Campbell Scientific CS11-L Current Transformer User Manual

Page 10

background image

CS11-L Current Transformer

'CR1000 Series Datalogger

' CS11-L_with_ACPower_AmpsOnly.CR1

'date: June 24, 2013

'

' Wiring:

' 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 Amperage

Dim Array1(10)

PreserveVariables

' to store values between power cycles

DataTable (AmpTable,True,-1)

DataInterval (0,1,Min,10)

Average (1,Amperage,FP2,False)

Maximum (1,Amperage,FP2,False,False)

EndTable

BeginProg

Amp_Mult = 200/1000

' 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)

Amperage=Array1(4)

' If Amperage <= 0.15 Then Amperage = 0

CallTable (AmpTable)

NextScan

EndProg

If no potential transformer will be used, the CS11-L and the ACPower
instruction will give you amperage, but not the other values, so you should
ignore all of the other values returned from the ACPower instruction. Most of
these other values will show up as NAN (not a number) when no potential
transformer is used.

5.2 ACPower (from CRBasic Help)

The ACPower instruction measures real AC power and a number of power
quality parameters for single-phase, split-phase, and three-phase ‘Y’
configurations.

Syntax

ACPower ( DestAC, ConfigAC, LineFrq, ChanV, VMult, MaxVrms, ChanI,
IMult, MaxIrms, RepsI
)

The ACPower instruction is suitable for net-metering applications, as well as
variable-frequency (wild AC) applications. Potential and current transformers
must be used to measure the voltage and current using the datalogger.

4