CreateMotor Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

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

CreateMotor Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

 

function CreateMotor(

const BusName: WideString;

Status: Integer;

const Name, Number, Descr: WideString;

X, Y: Integer;

const LoadCategory, MotorCategory, P, Q: WideString;

CF, SF: Double

): WideString;

Section

Description

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

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

Section

Parameters

Parameter

Usage

BusName

Bus Name the Motor should be connected to.

Status

Status of the Motor (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 Motor if it is required.

X

X  Co-ordinate of the Motor (allows placement of the load along the length of the bus)

Y

Y Co-ordinate of the Motor

LoadCategory

Load Category of the Motor

MotorCategory

Motor Category of the Motor

P

The Active Power of the Motor can be specified for example as either 2000 or 2MW

Q

The Reactive Power of the Motor can be specified for example as either 100 or 0.1kVAR

CF

Co-incident Factor of the Motor with respect to System Peak.

SF

Scale Factor of the Motor.

Section

Method Result

Unique Motor Name.

Section

Example

NewName := PowaMasterObj.CreateMotorLoad( BusName1,Status,OldName, Number, Description, 10, 110, 'General', 'Motor1', '2MW', '100kVAR', 0.9, 1);
 

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

Section

See Also

CreateBus

CreateGenerator

CreateLoad

CreateInductionMotor

CreateShuntCap

CreateCoGen

CreateHarmonicSource

CreateBranch

CreateBranchSection

CreateTrfrBranch

CreateProtectionDevice

CreateSeriesCap

CreateSeriesReactor

Section