|
<< Click to Display Table of Contents >> CreateCoGen Method
|
![]() ![]()
|
![]()
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;
![]()
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.
![]()
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 |
![]()
Unique Generator Name.
![]()
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');
![]()
![]()