CreateCoGen Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

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

CreateCoGen Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

 
function CreateCoGen(

const BusName: WideString; Status: Integer;

const Name, Number, Descr: WideString;

X, Y, VControl, AControl, MotorMode: Integer;

Vpu, VAngle: Double;

P, Q, PLimit, QLimit, LoadCategory: WideString

): WideString;

Section

Description

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

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

Section

Parameters

 

Parameter

Usage

BusName

Bus Name the Generator should be connected to.

Status

Generator Status. (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 Generator if it is required.

X

X Co-ordinate

Y

Y Co-ordinate

VControl

Use Voltage Control (1-Yes,0-No)

AControl

Use Angle Control (1-Yes,0-No)

MotorMode

Use Motor Mode (1-Yes,0-No)

Vpu

The p.u. control voltage

VAngle

The p.u. control angle

P

Generator real power ("100kW")

Q

Generator reactive power ("100kVar")

PLimit

Generating power limit

QLimit

Generating reactive power limit

Load Category

Generators Load Category

 

Section

Method Result

Unique Generator Name.

Section

Example
 

NewName := PowaMasterObj.CreateCoGen(

BusName1, Status, OldName, NumberStr, DescriptionStr, X, Y, VControl, AControl, MotorMode, Vpu, VAngle, '100kW', '30kVAR', '1MW', '500kVAR', LoadCategory

);

 

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

Section

See Also

CreateBus

CreateGenerator

CreateLoad

CreateMotor

CreateInductionMotor

CreateShuntCap

CreateHarmonicSource

CreateBranch

CreateBranchSection

CreateTrfrBranch

CreateProtectionDevice

CreateSeriesCap

CreateSeriesReactor

Section