CreateShuntCap Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

Navigation:  Additional Resources > OLE/COM Automation > Methods > Create >

CreateShuntCap Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

 

function CreateShuntCap(

const BusName: WideString;

Status: Integer;

const Name, Number, Descr: WideString;

X, Y: Integer;

const Q: WideString;

Available, InService, Control: Integer;

VpuControl: Double

): WideString;

Section

Description

Creates a Shunt Capacitor onto a Bus Bar with the parameters passed to the function.

Should there be a name conflict, it returns the actual name of the Shunt Capacitor.

Section

Parameters

Parameter

Usage

BusName

Bus Name the Shunt Capacitor should be connected to.

Status

Status of the Shunt Capacitor(1 - in service, 0 - out of service)

Name

Unique Name. If not unique, it will be changed and the new name returned by the method.

Number

Unique Number

Description

A Description for the Shunt Capacitorif it is required.

X

X  Co-ordinate of the Shunt Capacitor(allows placement of the Shunt Capacitor along the length of the bus)

Y

Y Co-ordinate of the Shunt Capacitor

Q

The Reactive Power of the Shunt Capacitor can be specified for example as either "2000" or "2MVAR"

Available

Number of available capacitor banks

InService

Capacitor banks in service

Control

Allow Automatic Control (1- Allow Control, 0-Disallow Control)

VpuControl

p.u. Control voltage

Section

Method Result

Unique Shunt Capacitor Name.

Section

Example

NewName := PowaMasterObj.CreateShuntCap( BusName1, Status, OldName, NumberStr, DescriptionStr, 10, 110, '2MVAR', 3, 1, 1, 0.9);
 

if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed');

Section

See Also

CreateBus

CreateGenerator

CreateLoad

CreateMotor

CreateInductionMotor

CreateCoGen

CreateHarmonicSource

CreateBranch

CreateBranchSection

CreateTrfrBranch

CreateProtectionDevice

CreateSeriesCap

CreateSeriesReactor

Section