Function Function Run1LPFCommand( sInput$ ) As Long
Purpose: Run OneLiner command: Faults |Bus fault summary.
Works in: OneLiner.
Parameters:
sInput [in] XML string, or full path name to XML file, containing XML node as described in Remarks section below.
Return value:
1 Success
0 Failure
Remarks: sInput must include XML node BUSFAULTSUMMARY with attributes in the list below (* denotes required entries, [] denotes default value).
REPORTPATHNAME or
REPFILENAME (*) full valid path to report file
BASELINECASE pathname of base-line bus fault summary report in CSV format
=== Only when BASELINECASE is specified
DIFFBASE Basis for computing current deviation: [MAX3PH1LG] or MAXPHGND
FLAGPCNT [15] Current deviation percent threshold.
=== Only when BASELINECASE is not specified
BUSLIST Bus list, one on each row in format 'BusName',kV
BUSNOLIST Bus number list, coma delimited. This attribute is ignored when BUSLIST is specified
=== Only when no BUSLIST and BUSNOLIST is specified
XGND Fault reactance X
RGND Fault resistance R
NOTAP Exclude tap buses: [1]-TRUE; 0-FALSE
PERUNITV Report voltage in PU
PERUNIT Report current in PU
AREAS Area number range
ZONES Zone number range. This attribute is ignored when AREAS is specified
BUSNOS Additional bus number range
KVS Additional bus kV range
TAGS Additional tag filter
TIERS check lines in vicinity within this tier number
AREAS Check all lines in area range
ZONES Check all lines in zone range
KVS Additional KV filter
Example:
Sub main
sInput$ = "<BUSFAULTSUMMARY " & _
"REPORTPATHNAME=""c:\000tmp\report.csv"" " & _
"BUSNOLIST=""10,20,60""" & _
" />"
If Run1LPFCommand( sInput ) Then
Print "Success"
Else
Print ErrorString()
End If
End Sub