Function Function Run1LPFCommand( sInput$ ) As Long
Purpose: Run OneLiner command: Relay | Check relay loadability
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 CHECKRELAYOPERATIONPRC023 with attributes in the list below (* denotes required entries, [] denotes default value).
REPORTPATHNAME (*) full valid pathname of report file
REPORTCOMMENT Report comment string. 255 char or shorter
SELECTEDOBJ:
PICKED Check devices in selected relaygroup
BNO1;'BNAME1';KV1;BNO2;'BNAME2';KV2;'CKT';BTYP; location string of branch to check(OneLiner Help section 10.2)
TIERS check relaygroups in vicinity within this tier number
AREAS Check all relaygroups in area range
ZONES Check all relaygroups in zone range
KVS Additional KV filter
TAGS Additional tag filter
USETAGFLAG [0]-AND;[1]-OR
DEVICETYPE [OCP DSP] Devide type to check. Space delimited
APPENDREPORT Append report file: 0-False; [1]-True
LINERATINGTYPE [3] Line rating to use: 0-first; 1-second; 2-Third; 3-Fourth
XFMRRATINGTYPE [2] Transformer rating to use: 0-MVA1; 1-MVA2; 2-MVA3
FWRLOADLONLY [0] Consider load in forward direction only
VOLTAGEPU [0.85] Per unit voltage
LINECURRMULT [1.5] Line load current multiplier
XFMRCURRMULT [1.5] Transformer load current multiplier
PFANGLE [30] Power factor angle
Example:
Sub main
sReportFile$ = GetOlrFileName() & “_PRC23.CSV”
sInput$ = "<CHECKRELAYOPERATIONPRC023 " & _
"REPORTPATHNAME=""" & sReportFile & """ " & _
"SELECTEDOBJ=""0; 'CLAYTOR'; 132; 0; 'NEVADA'; 132; '1'; 1;"" " & _
"LOADAMPS=""1000"" " & _
" />"
Print sInput
If Run1LPFCommand( sInput ) Then
Print "Success Report in " & sReportFile
Else
Print "Error: " & ErrorString()
End If
End Sub