|
<< Click to Display Table of Contents >> CreateLoad Method
|
![]() ![]()
|
![]()
function CreateLoad(
const BusName: WideString;
Status: Integer;
const Name, Number, Descr: WideString;
X, Y: Integer;
const LoadCategory, P, Q: WideString;
ConstP, ConstI, ConstZ, CF, SF: Double
): WideString;
![]()
Creates a Load onto a Bus Bar with the parameters passed to the function.
Should there be a name conflict, it returns the actual name of the Load.
![]()
Parameter |
Usage |
BusName |
Bus Name the Load should be connected to. |
Status |
Status of the load (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 Load if it is required. |
X |
X Co-ordinate of the load (allows placement of the load along the length of the bus) |
Y |
Y Co-ordinate of the load |
LoadCategory |
Specifies the Load Category this Load belongs to |
P |
The Active Power of the Load can be specified for example as either 10000 or 10MW |
Q |
The Reactive Power of the Load can be specified for example as either 2000 or 2MVAR |
ConstP |
Percentage Constant Power Load Type the Load consists of. |
ConstI |
Percentage Constant Current Load Type the Load consists of. |
ConstP |
Percentage Constant Impedance Load Type the Load consists of. |
CF |
Co-incident Factor of the Load with respect to System Peak. |
SF |
Scale Factor of the Load. |
![]()
Unique Load Name.
![]()
NewName := PowaMasterObj.CreateLoad( BusName1, 1,OldName, NumberStr, DescriptionStr, 10, 110, 'General', '10MW', '2MVAR', 60, 30, 10, 0.9, 1);
if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed');
![]()
![]()