CreateGenerator Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

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

CreateGenerator Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

 

function CreateGenerator(

const BusName: WideString;

Status: Integer;

const Name, Number, Descr: WideString;

X, Y: Integer;

VM, VA,

F3PhSTM, F3PhSTA, F1PhSTM, F1PhSTA,

F3PhTM, F3PhTA, F1PhTM, F1PhTA,

F3PhM, F3PhA, F1PhM, F1Ph: Double;

RatingP, RatingQ: 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

VM

The per unit scheduled voltage of the Generator.

VA

The scheduled voltage angle of the Generator in degrees.

F3PhSTM

The Sub Transient Three Phase Fault level Magnitude in kA.

F3PhSTA

The Sub Transient Three Phase Fault level Angle in degrees.

F1PhSTM

The Sub Transient Single Phase Fault level Magnitude in kA.

F1PhSTA

The Sub Transient Single Phase Fault level Angle in degrees.

F3PhTM

The Transient Three Phase Fault level Magnitude in kA.

F3PhTA

The Transient Three Phase Fault level Angle in degrees.

F1PhTM

The Transient Single Phase Fault level Magnitude in kA.

F1PhTA

The Transient Single Phase Fault level Angle in degrees.

F3PhM

The Steady State Three Phase Fault level Magnitude in kA.

F3PhA

The Steady State Three Phase Fault level Angle in degrees.

F1PhM

The Steady State Single Phase Fault level Magnitude in kA.

F1PhA

The Steady State Single Phase Fault level Angle in degrees.

RatingP

Active Power Rating of the Generator specified for example as either 1000 or 1MW

RatingQ

Reactive Power Rating of the Generator specified for example as either 1000 or 1MVAR

 

Section

Method Result

Unique Generator Name.

Section

Example

NewName := PowaMasterObj.CreateGenerator( BusName1, Status, OldName, NumberStr, DescriptionStr, X, Y, Vpu, Vangle, ThreePhSTm, ThreePhSTa, SinglePhSTm, SinglePhSTa, ThreePhTm, ThreePhTa, SinglePhTm, SinglePhTa, ThreePhm, ThreePha, SinglePhm, SinglePha, RatingP, RatingQ );

 

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

Section

See Also

CreateBus

CreateLoad

CreateMotor

CreateInductionMotor

CreateShuntCap

CreateCoGen

CreateHarmonicSource

CreateBranch

CreateBranchSection

CreateTrfrBranch

CreateProtectionDevice

CreateSeriesCap

CreateSeriesReactor

Section