|
<< Click to Display Table of Contents >> CreateShuntCap Method
|
![]() ![]()
|
![]()
function CreateShuntCap(
const BusName: WideString;
Status: Integer;
const Name, Number, Descr: WideString;
X, Y: Integer;
const Q: WideString;
Available, InService, Control: Integer;
VpuControl: Double
): WideString;
![]()
Creates a Shunt Capacitor onto a Bus Bar with the parameters passed to the function.
Should there be a name conflict, it returns the actual name of the Shunt Capacitor.
![]()
Parameter |
Usage |
BusName |
Bus Name the Shunt Capacitor should be connected to. |
Status |
Status of the Shunt Capacitor(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 Shunt Capacitorif it is required. |
X |
X Co-ordinate of the Shunt Capacitor(allows placement of the Shunt Capacitor along the length of the bus) |
Y |
Y Co-ordinate of the Shunt Capacitor |
Q |
The Reactive Power of the Shunt Capacitor can be specified for example as either "2000" or "2MVAR" |
Available |
Number of available capacitor banks |
InService |
Capacitor banks in service |
Control |
Allow Automatic Control (1- Allow Control, 0-Disallow Control) |
VpuControl |
p.u. Control voltage |
![]()
Unique Shunt Capacitor Name.
![]()
NewName := PowaMasterObj.CreateShuntCap( BusName1, Status, OldName, NumberStr, DescriptionStr, 10, 110, '2MVAR', 3, 1, 1, 0.9);
if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed');
![]()
![]()