Batch
Batch
Batch
October 2002
TABLE OF CONTENTS
PSS/E-29
TABLE OF CONTENTS
1.37
1.38
1.39
1.40
1.41
1.42
1.43
1.44
1.45
1.46
1.47
1.48
1.49
1.50
1.51
1.52
1.53
1.54
1.55
1.56
1.57
1.58
1.59
1.60
1.61
1.62
1.63
1.64
1.65
1.66
1.67
1.68
1.69
1.70
1.71
1.72
1.73
1.74
1.75
1.76
1.77
1.78
1.79
1.80
1.81
ii
EXTRNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-54
FACTAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-55
FDNSAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-56
FILE_OVERWRITE_API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-58
FINDAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-59
FLATAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-60
FNSLAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-61
GCAPNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-63
GDIFAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-64
GENSNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-65
GEOLNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-66
GNETNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-67
GSDFLT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-68
IMPCAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-69
INLFAPI. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-70
INTANW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-72
INTZNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-73
JOINAPI/JOINNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-74
LAMPNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-76
LINE_SHUNT_REPORTING_API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-77
LINES_PER_PAGE_API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-78
LISTNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-79
LLRFAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-80
LOUTNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-82
LTAPAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-83
MATRIX_GROWTH_FACTOR_API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-84
MBID2DC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-85
MBID3WND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-86
MBIDATRN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-87
MBIDBRN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-88
MBIDFACTS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-89
MBIDLOAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-90
MBIDMAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-91
MBIDMDC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-92
MBIDMSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-93
MBIDVSC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-94
MCREAPI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-95
MODRNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-96
MOVE3WND. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-97
MOVEBRN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-98
MOVELOAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-99
MOVELOADS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-100
MOVEMAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-101
MOVEPLNT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-102
MOVESWS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-103
PSS/E-29
TABLE OF CONTENTS
PSS/E-29
iii
TABLE OF CONTENTS
iv
PSS/E-29
TABLE OF CONTENTS
PSS/E-29
TABLE OF CONTENTS
3.4
3.5
3.6
3.7
3.8
3.9
3.10
3.11
3.12
3.13
3.14
vi
PSS/E-29
3.15
3.16
3.17
3.18
3.19
3.20
3.21
TABLE OF CONTENTS
PSS/E-29
CHSBNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-1
DOCUNW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-4
DYDANW. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-5
RSTRNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-7
SNAPNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-8
LDLIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-9
LDMOD_STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-10
LDMOD_STATUS2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-11
LDMOD_REMOVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-12
LDMOD_UNCONNECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-13
LDMOD_PACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-14
LDMOD_USER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-15
CHANGE_LDMOD_DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-16
ADD_LOAD_MODEL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-17
MLSTNW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-19
CHANGE_PLMOD_DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-20
ADD_PLANT_MODEL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-21
PLMOD_STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-23
PLMOD_REMOVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-24
PLMOD_UNCONNECTED. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-25
PLMOD_PACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-26
PLMOD_USER. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-27
PLMOD_CONSISTENCY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-28
RLLIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-29
CHANGE_RLMOD_DATA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-30
ADD_RELAY_MODEL. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-31
RLMOD_STATUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-32
RLMOD_REMOVE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-33
RLMOD_UNCONNECTED . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-34
RLMOD_PACK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-35
vii
TABLE OF CONTENTS
4.31
4.32
4.33
4.34
4.35
4.36
RLMOD_USER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-36
SET_NETFRQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-37
SET_OSSCAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-38
SET_RELANG. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-39
SET_RELSCN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-40
SET_VLTSCN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-41
5.3
5.4
5.5
6.2
viii
PSS/E-29
6.3
6.4
6.5
PSS/E-29
TABLE OF CONTENTS
ix
PSS/E-29
CHAPTER
1
POWER FLOW APIS
This document defines the Application Program Interfaces (APIs) to various engineering functions in
PSS/E. Eventually, all of PSS/Es functionality will be available through an API. For now, only those
activities that operate with area, bus, owner, and zone subsystems have been modified to use an API.
APIs are defined in two ways. The first method defines the use of the API within a FORTRAN or
C program. The API is described as a call to a subroutine with the number of arguments, their types,
and expected values defined. The API will return an IERR value, as defined, that will tell whether
invocation of the API was successful or not.
The second method defines the use of the API within a response file. This format would be produced
if a user executed the API from the Graphical User Interface (GUI) with ECHO on. This API can
be entered by hand in a text file and run through activity IDEV to automate the operation of the program, if so desired.
This document is used as a reference for both internal PTI developers and end users. The Fortran function calls described within are for use only by internal PTI developers. Their use by
end users is not supported. The BAT_ commands described are for use by the end user in writing
and modifying IDEV files created by PSS/E-28.
PSS/E-29
1-1
1.2 ACCCAPI
This API executes activity ACCC. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
ACCCAPI(TOL, OPTIONS, DFXFILE, ACCFILE, THRFILE, IERR, NERR)
or
BAT_ACCC
TOL OPTIONS(1) OPTIONS(2) OPTIONS(3) OPTIONS(4)
OPTIONS(5) OPTIONS(6) OPTIONS(7) DFXFILE ACCFILE THRFILE
where:
Real TOL
Integer OPTIONS(7)
1-2
PSS/E-29
Character DFXFILE*260
Character ACCFILE*260
Character THRFILE*260
Is the name of Load Throwover Data file; blank for none (input).
Integer IERR
Integer NERR
PSS/E-29
1-3
1.3 ALPHNW
This API is used to print an alphabetically sorted table of all buses in a specified subsystem of the
working case. The API is invoked by use of the statement:
ALPHNW(SID, ALL, IERR)
or:
BAT_ALPH
SID
ALL
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-4
PSS/E-29
1.4 ANSIAPI
This API calculates fault currents according to the ANSI standard. To designate fault specification
data as part of the APIs calling sequence, INARG must be positive; to designate fault specification
data in an ANSI Fault Data input file, INARG must be zero and the filename specified as FILARG.
This API uses the default element specification as described in Section 1.1. The API is invoked by
the use of the statement:
ANSIAPI(OPTIONS, VALUES, INARG, BUSARY, VLTARY, CPTARY, FILARG,
IERR, NERR)
or
BAT_ANSI
VALUES(2)
VLTARY(1)
where:
Integer OPTIONS(3)
Real VALUES(4)
Integer INARG
PSS/E-29
1-5
Integer BUSARY
Real VLTARY
Real CPTARY
Is an array of INARG elements specifying contact parting times in seconds; ignored if INARG = 0 (input).
Character FILARG*260 Is the filename of ANSI Fault Data input file; ignored if INARG > 0 (input).
Integer IERR
Integer NERR
1-6
PSS/E-29
1.5 AREA_INTERCHANGE_CONTROL_API
This API is used to set the value of the area interchange control option setting to either "disabled",
"enabled with tie lines only" or "enabled with tie lines and loads". The API is invoked by the use of
the statement:
CALL AREA_INTERCHANGE_CONTROL_API(IVAL, IOCODE, IERR, NERR)
or
BAT_AREA_INTERCHANGE_CONTROL
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-7
1.6 AREANW
This API is used to provide a tabulation by area interchange of the desired area net interchange. The
API is invoked by the use of the statement:
AREANW(SID, ALL, IERR)
or:
BAT_AREA
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
1-8
PSS/E-29
1.7 ARNMNW
This API is used to reassign the buses and loads in a selected subsystem of the working case from
their original area to a designated area. The API is invoked by the use of the statement:
ARNMNW(SID, ALL, STATUS, IANEW, IERR)
or:
BAT_ARNM
SID
ALL
STATUS(1)
STATUS(2)
IANEW
where:
Integer SID
Integer ALL
Integer STATUS(2)
Integer IANEW
Is the new area to assign the selected buses to. IANEW must be between 1 and
AREAS.
Integer IERR
PSS/E-29
1-9
1.8 ASCCNW
This API is used to apply a series of faults at various locations in the working case. The API is
invoked by the use of the statement:
ASCCNW(SID, ALL, STATUS, RFILE, FFILE, IERR)
or:
BAT_ASCC
SID ALL STATUS(1) STATUS(2) STATUS(3) STATUS(4)
STATUS(5) STATUS(6) STATUS(7) STATUS(8) STATUS(9) STATUS(10)
RFILE FFILE
where:
Integer SID
Integer ALL
Integer STATUS(10)
1-10
PSS/E-29
Integer IERR
PSS/E-29
1-11
1.9 BASE_FREQUENCY_API
This API is used to set the value of the base frequency option setting. The API is invoked by the use
of the statement:
CALL BASE_FREQUENCY_API(RVAL, IOCODE, IERR, NERR)
or
BAT_BASE_FREQUENCY
RVAL
where:
Real IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-12
PSS/E-29
1.10 BGENNW
This API is used to convert the mismatch at boundary buses to equivalent load and/or generation.
It is intended to be used following the removal of a subsystem from a solved working case, with the
flows to the deleted subsystem replaced by load and/or generation at those retained buses that were
directly connected to the removed subsystem. The API is invoked by the use of the statement:
BGENNW(SID, ALL, STATUS, IERR)
or:
BAT_BGEN
SID
ALL
STATUS
where:
Integer SID
Integer ALL
Integer STATUS
Integer IERR
PSS/E-29
1-13
1.11 BKDYNW
This API is used to calculate and report circuit breaker interrupting duty for 3-phase faults at all
buses in a specified subsystem of the working case. The API is invoked by the use of the statement:
BKDYNW(SID, ALL, APIOPT, LVLBAK, FLTTIM, BFILE, FFILE, IERR)
or:
BAT_BKDY
SID
ALL
APIOPT
LVLBAK
FLTTIM
BFILE
FFILE
where:
Integer SID
Integer ALL
Integer APIOPT
Integer LVLBAK
Real FLTTIM
Integer IERR
1-14
PSS/E-29
1.12 BMATAPI
This API executes activity BMAT. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
BMATAPI(OPTIONS, OUT, OFILE, FILARG, IERR, NERR)
or
BAT_BMAT
FILARG
OPTIONS(1)
OPTIONS(2)
OPTIONS(3)
OUT
OFILE
where:
Integer OPTIONS(3)
Integer OUT
Integer NERR
PSS/E-29
1-15
1.13 BRCHNW
This API is used to tabulate those branches whose impedances or other characteristics are such that
they may be detrimental to the rate of convergence of one or more of the power flow solution activities. The API is invoked by the use of the statement:
BRCHNW(SID, ALL, DOTEST, TOLVAL, IERR)
or:
BAT_BRCH
DOTEST(5)
TOLVAL(1)
TOLVAL(7)
where:
Integer SID
Integer ALL
Integer DOTEST(10)
Real TOLVAL(7)
1-16
PSS/E-29
Integer IERR
PSS/E-29
1-17
1.14 BSNMNW
This API is used to change the bus numbers of selected network buses in the working case and retain
a tabulation, in file form, of bus number changes made. The API is invoked by the use of the
statement:
BSNMNW(SID,ALL, OPT, STATUS, BUSRNG, OLDNAM, TFILE, OUT, OFILE, IERR)
or:
BAT_BSNM
TFILE OUT
SID ALL
OFILE
OPT
STATUS
BUSRNG(1)
BUSRNG(2)
OLDNAM
where:
Integer SID
Integer ALL
Integer OPT
Integer STATUS
1-18
PSS/E-29
Integer BUSRNG(2)
Character OLDNAM*16 Is the name of the bus to be renumbered. This must be an existing bus
name. OLDNAM is only used If OPT = 1 and TFILE = , that is, bus
name translation has been specified and no translation file has been
provided.
Character TFILE*260 Is the bus name/number translation file. This file is only used if OPT = 1 or
OPT = 2. Data in the translation file must be in the form specified in the PSS/E
Program Operation Manual.
Integer OUT
PSS/E-29
1-19
1-20
PSS/E-29
1.15 BUS_INPUT_API
This API is used to set the value of the bus input option setting to either "numbers" or "names". The
API is invoked by the use of the statement:
CALL BUS_INPUT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_BUS_INPUT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-21
1.16 BUS_OUTPUT_API
This API is used to set the value of the bus output option setting to either "numbers" or "names".
The API is invoked by the use of the statement:
CALL BUS_OUTPUT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_BUS_OUTPUT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-22
PSS/E-29
1.17 BUSNAPI
This API executes activity BUSN. The API is invoked by the use of the statement:
BUSNAPI(BUSLO, BUSHI, IERR, NERR)
or
BAT_BUSN
BUSLO
BUSHI
where:
Integer BUSLO
Integer BUSHI
Integer IERR
Integer NERR
PSS/E-29
1-23
1.18 CASENW
This API is used to open a PSS/E Saved Case file. The API is invoked by the use of the statement:
CASENW(SFILE, IERR)
or:
BAT_CASE
SFILE
where:
Character SFILE*260
Is the PSS/E Saved Case. If SFILE is "*", CASENW will attempt to reopen
the last Saved Case file opened. If none exists, CASENW will return an IERR
value.
Integer IERR
1-24
PSS/E-29
1.19 CMPRNW
This API is used to provide a tabulation of certain case totals, as contained in the working case, with
those of a designated Saved Case. Either system totals, area totals, owner totals, or zone totals may
be compared. The API is invoked by the use of the statement:
CMPRNW(SID, APIOPT, STATUS, THRSH, CFILE, IERR)
or:
BAT_CMPR
STATUS(4)
SID
THRSH
APIOPT
CFILE
STATUS(1)
STATUS(2)
STATUS(3)
where:
Integer SID
Integer APIOPT
Integer STATUS(4)
Real THRSH
PSS/E-29
1-25
Character CFILE*260 Is the Saved Case file to be compared against the working case.
Integer IERR
1-26
PSS/E-29
1.20 CNTBNW
This API is used to tabulate the voltage setpoints or desired bands of voltage-controlling equipment
in the working case, and allows the user to specify new scheduled voltages. The API is invoked by
the use of the statement:
CNTBNW(SID, ALL, APIOPT, STATUS, NEXT, BUS, CKT, V, IERR)
or:
BAT_CNTB
V(1) V(2)
SID
ALL
APIOPT STATUS(1)
STATUS(2)
STATUS(3)
where:
Integer SID
Integer ALL
Integer APIOPT
Integer BUS(3)
Real V(2)
Integer IERR
PSS/E-29
1-27
Integer NEXT
Character CKT*2
Real V(2)
Integer IERR
1-28
PSS/E-29
Integer NEXT
When APIOPT = 3, specify voltage band for load drop compensating transformer.
Integer STATUS(3)
Real V(2)
Integer IERR
PSS/E-29
1-29
Integer NEXT
1-30
PSS/E-29
1.21 CONNECTIVITY_CHECK_API
This API is used to set the value of the solution connectivity checking option setting to either "no"
or "yes". The API is invoked by the use of the statement:
CALL CONNECTIVITY_CHECK_API(IVAL, IOCODE, IERR, NERR)
or
BAT_CONNECTIVITY_CHECK
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-31
1.22 CONGAPI
This API executes activity CONG. The API is invoked by the use of the statement:
CONGAPI(OPT, IERR, NERR)
or
BAT_CONG
OPT
where:
Integer OPT
Integer IERR
Integer NERR
1-32
PSS/E-29
1.23 CONLNW
This API is used to convert the constant MVA load for a selected grouping of network loads to a
specified mixture of the constant MVA, constant current, and constant admittance load characteristics. The API is invoked by the use of the statement:
CONLNW(SID, ALL, APIOPT, STATUS, LOADIN, RLODS, IERR)
or:
BAT_CONL
LOADIN(2)
STATUS(2) LOADIN(1)
where:
Integer SID
Integer ALL
Integer APIOPT
Integer STATUS(2)
Real LOADIN(4)
Integer RLODS
PSS/E-29
1-33
Integer IERR
1-34
PSS/E-29
1.24 DC_TAP_ADJUSTMENT_API
This API is used to set the value of the dc tap adjustment option setting to either "disabled" or
"enabled". The API is invoked by the use of the statement:
CALL DC_TAP_ADJUSTMENT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_DC_TAP_ADJUSTMENT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-35
1.25 DCCCAPI
This API executes activity DCCC. The API is invoked by the use of the statement:
DCCCAPI(OPTIONS, TOLS, DFXFILE, IERR, NERR)
or:
BAT_DCCC
OPTIONS(5)
where:
Integer OPTIONS(6)
Real TOLS(3)
1-36
PSS/E-29
Character DFXFILE*260 Is the name of Distribution Factor Data input file (input).
Integer IERR
Integer NERR
PSS/E-29
1-37
1.26 DCLFNW
This API is used to apply the dc analogy network solution algorithm to the network modeled in the
working case. The API is invoked by the use of the statement:
DCLFNW(SID, ALL, STATUS, BRNCH, CKT, IERR)
or:
BAT_DCLF
BRNCH(2)
STATUS(2)
STATUS(3)
BRNCH(1)
where:
Integer SID
Integer ALL
Integer STATUS(3)
Integer BRNCH(2)
Is an array of two elements. The use of each element is as follows. The values
can both be zero is no branch is to be changed for the solution.
BRNCH(1), is the from bus of the branch whose status is to be changed for
the solution.
BRNCH(2), is the to bus of the branch whose status is to be changed for
the solution.
BRNCH(3), is the third bus connected by a three-winding transformer, or
zero for a nontransformer branch or a two-winding transformer.
Character CKT*2
1-38
Is the circuit ID of the branch whose status is to be changed for the solution.
PSS/E-29
Integer IERR
PSS/E-29
1-39
1.27 DFAXAPI
This API executes activity DFAX. The API is invoked by the use of the statement:
DFAXAPI(OPTIONS, SUBFILE, MONFILE, CONFILE, DFXFILE, IERR, NERR)
or:
BAT_DFAX
DFXFILE
OPTIONS(1)
OPTIONS(2)
SUBFILE
MONFILE
CONFILE
where:
Integer OPTIONS(2)
Character SUBFILE*260 Is the name of the Subsystem Description Data input file; blank for none
(input).
Character MONFILE*260Is the name of Monitored Element Data input file (input).
Character CONFILE*260 Is the name of Contingency Description Data input file (input).
Character DFXFILE*260 Is the name of Distribution Factor Data input file (input).
Integer IERR
Integer NERR
1-40
PSS/E-29
1.28 DFTIAPI
This API performs a case comparison of tie lines (activity DFTI). It must be referenced using one
of the following procedures:
One reference with APIOPT=0. This automatically combines the processing of one
APIOPT 1 reference, followed by one APIOPT 2 reference, followed by one APIOPT
3 reference.
This API uses the default element specification as described in Section 1.1. The API is invoked by
the use of the statement:
DFTIAPI(SID, APIOPT, STATUS, THRESH, CFILE, SEQFLG, IERR, NERR)
or
BAT_DFTI
STATUS(4)
STATUS(2)
STATUS(3)
where:
Integer SID
Is the valid subsystem ID (0 to 3). Subsystem SID must have been previously defined (input).
Integer APIOPT
Integer STATUS(5)
PSS/E-29
1-41
= 2, line R, X, B
= 4, line ratings
= 6, line length
= 8, flow (from bus)
= 10, line losses
= 12, zero sequence line shunts
Real THRESH
= 1, RATEA
= 3, RATEC
Character CFILE*260 Is the name of Saved Case File whose tie lines are to be compared to those
of the working case (input).
Logical SEQFLG(2)
Integer IERR
Integer NERR
1-42
PSS/E-29
1.29 DIFFNW
This API is used to provide a tabulation comparing certain power flow data and solution results, as
contained in the working case, with those of a designated Saved Case. The API is invoked by the
use of the statement:
DIFFNW(SID, ALL, APIOPT, STATUS, THRSH, CFILE, SEQFLG, IERR)
or:
BAT_DIFF
STATUS(4)
STATUS(3)
where:
Integer SID
Integer ALL
Integer APIOPT
Integer STATUS(4)
PSS/E-29
1-43
Character CFILE*260 Is the saved case to be compared against the data currently in the working case.
1-44
PSS/E-29
Logical SEQFLG(2)
Integer IERR
PSS/E-29
1-45
1.30 DSCNAPI
This API executes activity DSCN. The API is invoked by the use of the statement:
DSCNAPI(BUS, IERR, NERR)
or
BAT_DSCN
BUS
where:
Integer BUS
Integer IERR
Integer NERR
1-46
PSS/E-29
1.31 DYN_UNBAL_FAULT
This API executes activities SEQD and SCMU to calculate the equivalent positive sequence fault
admittance which can be added to the bus shunt at the faulted bus to model a line-to-ground or lineto-line-to-ground fault in dynamic simulation calculations. The API is invoked by the use of the
statement:
DYN_UNBAL_FAULT(OPTIONS, RVAL, IERR, NERR)
where:
Integer OPTIONS(6)
Is an array of six elements specifying options and input values (input). The
first three elements of OPTIONS define options to be used in the construction of the sequence admittance matrices. The remaining entries
define the fault to be applied. The value of each element is as follows.
OPTIONS(1), double precision option.
OPTIONS(1) = 1, use single precision in calculating admittance matrix
terms.
OPTIONS(1) = 2, use double precision in calculating admittance matrix
terms.
OPTIONS(2), dc line and FACTS device option.
OPTIONS(2) = 0, block and ignore.
OPTIONS(2) = 1, convert to constant admittance load.
OPTIONS(3), transformer impedance correction table option.
OPTIONS(3) = 0, do not apply to zero sequence tranformer impedances.
OPTIONS(3) = 1, apply same factor used in the positive sequence to
each tranformers zero sequence impedance.
OPTIONS(4), unbalanced type.
OPTIONS(4) = 0, line-to-ground fault.
OPTIONS(4) = 1, line-to-line or line-to-line-to-ground fault.
OPTIONS(5), bus to be faulted.
OPTIONS(6), faulted (if OPTIONS(4) is 1) or excluded (it OPTIONS(4)
is 2) phase.
OPTIONS(6) = 0, phase A.
OPTIONS(6) = 1, phase B.
OPTIONS(6) = 2, phase C.
Real RVAL(6)
PSS/E-29
1-47
Integer NERR
1-48
PSS/E-29
1.32 ECDINW
This API is used to place machines in a specified subsystem on or off line to satisfy a given subsystem minimum capacity. The in-service machines in the subsystem are then dispatched on the
basis of incremental cost to meet a specified total subsystem generation. The API is invoked by the
use of the statement:
ECDINW(SID, ALL, APIOPT, GFILE, PROFILE, DESPWR, CAPCTY, IERR)
or:
BAT_ECDI
SID
ALL
APIOPT
GFILE
PROFILE
DESPWR
CAPCTY
where:
Integer SID
Integer ALL
Integer APIOPT
Real DESPWR
Real CAPCTY
Integer IERR
PSS/E-29
1-49
1.33 ECHOAPI
This API executes activity ECHO. The API is invoked by the use of the statement:
ECHOAPI(IDVFILE, IERR, NERR)
or
BAT_ECHO
IDVFILE
where:
Character IDVFILE*260 Is the name of Response File to be constructed (blank to disable) (input).
Integer IERR
Integer NERR
1-50
PSS/E-29
1.34 EEQVNW
This API is used to construct an electrical equivalent of a subsystem of the network contained in the
working case. The API is invoked by the use of the statement:
EEQVNW(SID, ALL, STATUS, DVAL, IERR)
or:
BAT_EEQV
STATUS(5)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(6)
Real DVAL(2)
Integer IERR
PSS/E-29
1-51
1.35 EQRDNW
This API is used to equivalence radial and, optionally, "two point" type one buses in specified subsystems of the working case. The API is invoked by the use of the statement:
EQRDNW(SID, ALL, STATUS, IERR)
or:
BAT_EQRD
STATUS(5)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(8)
Integer IERR
1-52
PSS/E-29
1.36 EXAMNW
This API is used to provide a tabulation of all power flow data pertaining to a selected bus. The API
is invoked by the use of the statement:
EXAMNW(SID, ALL, IERR)
or:
BAT_EXAM
SID
ALL
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0-3. A subsystem
must have been previously defined (input).
Integer ALL
Integer IERR
PSS/E-29
1-53
1.37 EXTRNW
This API is used to purge specified buses and all branches connected to them from the working case.
The API is invoked by the use of the statement:
EXTRNW(SID, ALL, STATUS, IERR)
or:
BAT_EXTR
SID
ALL
STATUS(1)
STATUS(2)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(2)
Is an array of two elements. They are used to control purging options. A value
of 0 means the option is not enabled. A value of 1 means the option is enabled.
They are as follows.
STATUS(1), remove generator entries for out of service plants.
STATUS(2), change codes of boundary buses.
Integer IERR
1-54
PSS/E-29
1.38 FACTAPI
This API executes activity FACT. The API is invoked by the use of the statement:
FACTAPI(IERR, NERR)
or
BAT_FACT
where:
Integer IERR
Integer NERR
PSS/E-29
1-55
1.39 FDNSAPI
This API executes activity FDNS. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
FDNSAPI(OPTIONS, IERR, NERR)
or
BAT_FDNS
OPTIONS(5)
OPTIONS(4)
where:
Integer OPTIONS(8)
1-56
PSS/E-29
Integer NERR
PSS/E-29
1-57
1.40 FILE_OVERWRITE_API
This API is used to set the value of the file overwrite option setting to either "ask first" or "overwrite". The API is invoked by the use of the statement:
FILE_OVERWRITE_API(IVAL, IOCODE, IERR, NERR)
or
BAT_FILE_OVERWRITE
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-58
PSS/E-29
1.41 FINDAPI
This API executes activity FIND. The API is invoked by the use of the statement:
FINDAPI(NAME, BSKV, IERR, NERR)
or
BAT_FIND
NAME, BSKV
where:
Character NAME
Character BSKV
Integer IERR
Integer NERR
PSS/E-29
1-59
1.42 FLATAPI
This API executes activity FLAT. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
FLATAPI(OPTIONS, VALUES, IERR, NERR)
or
BAT_FLAT
VALUES(1)
OPTIONS(1)
VALUES(2)
OPTIONS(2)
OPTIONS(3)
OPTIONS(4)
where:
Integer OPTIONS(4)
Real VALUES(2)
Integer IERR
Integer NERR
1-60
PSS/E-29
1.43 FNSLAPI
This API executes activity FNSL. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
FNSLAPI(OPTIONS, IERR, NERR)
or
BAT_FNSL
OPTIONS(5)
OPTIONS(4)
where:
Integer OPTIONS(8)
PSS/E-29
1-61
Integer NERR
1-62
PSS/E-29
1.44 GCAPNW
This API is used read a data file containing capability curve data and prints a report of machine
loading and limit data. Optionally, machine reactive power limits in the working case may be
updated. The API is invoked by the use of the statement:
GCAPNW(SID, ALL, OPT, GFILE, IERR)
or:
BAT_GCAP
SID
ALL
OPT
GFILE
where:
Integer SID
Integer ALL
Integer OPT
PSS/E-29
1-63
1.45 GDIFAPI
This API calculates differences between the working case and a designated Saved Case. Results
may be programmatically accessed via the "fetch" routines DIFTXT, DIFBUS, DIFBRN, DIF3WN,
DIF2DC, DIFMDC and DIFFCT.
Usage is:
or:
BAT_GCAP
SID
ALL
APIOPT
NAMARG
FILARG
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined (input).
Integer ALL
Is the "all" buses or selected subsystem flag for calculating differences (input).
ALL = 0, only buses in subsystem "SID".
ALL = 1, all buses in the working case.
Integer APIOPT
Integer NAMARG
Is the flag indicating how to match up buses in the two cases (input).
NAMARG = 0, by bus number only.
NAMARG = 1, by extended bus name only.
NAMARG = 2, by both number and name.
Character FILARG*260Is the name of Saved Case File to be compared to the working case (input).
Integer IERR
Integer NERR
1-64
PSS/E-29
1.46 GENSNW
This API is used to tabulate the loading and voltage conditions at plant buses. The API is invoked
by the use of the statement:
GENSNW(SID, ALL, OPT, VREV, IERR)
or:
BAT_GENS
SID
ALL
OPT
VREV
where:
Integer SID
Integer ALL
Integer OPT
Integer VREV
Is used to change voltage output units from the default units to the alternate
units.
VREV = 0, use default voltage units.
VREV = 1, use alternate voltage units.
Integer IERR
PSS/E-29
1-65
1.47 GEOLNW
This API is used to tabulate the loading and voltage conditions at the generator terminals for online
machines at type two and three buses in the working case. The API is invoked by the use of the
statement:
GEOLNW(SID, ALL, OPT, IERR)
or:
BAT_GEOL
SID
ALL
OPT
where:
Integer SID
Integer ALL
Integer OPT
Integer IERR
1-66
PSS/E-29
1.48 GNETNW
This API is used to change the in-service generation to negative MVA load at all type two and three
buses within the subsystem specified by the user. The API is invoked by use of the statement:
GNETNW(SID, ALL, IERR)
or:
BAT_GNET
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
PSS/E-29
1-67
1.49 GSDFLT
This subroutine returns the default solution options for the Gauss-Seidel solution activities SOLV
and MSLV. The API is invoked by the use of the statement:
GSDFLT(TAPOPT, INTOPT, DCOPT, SWSOPT)
where:
Integer TAPOPT
Integer INTOPT
Integer DCOPT
Integer SWSOPT
1-68
PSS/E-29
1.50 IMPCAPI
This API executes activity IMPC. The API is invoked by the use of the statement:
IMPCAPI(EVENT, DFXFILE, ATCFILE, IERR, NERR)
or
BAT_IMPC
where:
Integer EVENT
Character DFXFILE*260 Is the name of Distribution Factor Data input file (input).
Character ATCFILE*260 Is the name of ATC update input file; blank for none (input).
Integer IERR
Integer NERR
PSS/E-29
1-69
1.51 INLFAPI
This API executes activity INLF. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
INLFAPI(OPTIONS, FILE, IERR, NERR)
or
BAT_INLF
OPTIONS(5)
OPTIONS(4)
where:
Integer OPTIONS(7)
1-70
PSS/E-29
Is the name of Inertia and Governor Response Data file; blank for none
(input).
Integer IERR
Integer NERR
PSS/E-29
1-71
1.52 INTANW
This API is used to summarize tie flows between an interchange area and all other areas in the
working case. The API is invoked by the use of the statement:
INTANW(SID, ALL, IERR)
or:
BAT_INTA
SID
ALL
where:
Integer SID
Is a valid area subsystem ID. Valid subsystem IDs range from 0 to 3. An area
subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-72
PSS/E-29
1.53 INTZNW
This API is used to summarize tie flows between each zone and all other zones in the working case.
The API is invoked by the use of the statement:
INTZNW(SID, ALL, IERR)
or:
BAT_INTZ
SID
ALL
where:
Integer SID
Is a valid zone subsystem ID. Valid subsystem IDs range from 0 to 3. A zone
subsystem must have been previously defined (input).
Integer ALL
Integer IERR
PSS/E-29
1-73
1.54 JOINAPI/JOINNW
The API is invoked by the use of the statement:
JOINAPI(RBUS, JBUS, STATUS, NID, IDTRNS, IERR, NERR)
or
JOINNW(RBUS, JBUS, STATUS, IERR)
or
BAT_JOIN
RBUS
JBUS
STATUS
where:
Integer RBUS
Integer JBUS
Integer STATUS
Integer NID
Character IDTRNS*18 Is the ID translation array of NID entries (output). Contains information on
identifier changes of elements originally connected to bus JBUS. IDTRNS
contents:
Columns
Content
LD for load.
BR for non-transformer branch.
1-2
MC for machine.
T2 for two-winding transformer.
T3 for three-winding transformer.
For BR and T2 records, bus number at
the other end of the branch.
3-8
1-74
9-14
15-16
Old identifier.
17-18
New identifier.
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
1-75
1.55 LAMPNW
This API is used to print power flow and amp data in a wide format, greater than 80 columns. The
API is invoked by the use of the statement:
LAMPNW(SID, ALL, IERR)
or:
BAT_LAMP
SID
ALL
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-76
PSS/E-29
1.56 LINE_SHUNT_REPORTING_API
This API is used to set the value of the line shunt reporting option setting to either "no" or "yes".
The API is invoked by the use of the statement:
LINE_SHUNT_REPORTING_API(IVAL, IOCODE, IERR, NERR)
or
BAT_LINE_SHUNT_REPORTING
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-77
1.57 LINES_PER_PAGE_API
This API is used to set the values of the four output device page length limits option settings. The
API is invoked by the use of the statement:
CALL LINES_PER_PAGE_API(IVAL, DEVNAM, IOCODE, IERR, NERR)
or
BAT_LINES_PER_PAGE
IVAL
where:
Integer IVAL
Is an array of four elements containing the value of the option setting (input
it IOCODE is 0 or BAT_command, output if IOCODE is 1).
IVAL(1), lines per page for disk files.
IVAL(2), lines per page for the "report" window.
IVAL(3), lines per page for the first primary hard copy output device.
IVAL(4), lines per page for the second primary hard copy output device.
Character DEVNAM*40 Is an array of four elements set to the device names of the four output
devices (output if IOCODE is 1, not used if IOCODE is 0 or BAT_
command).
DEVNAM(1), FILE OUTPUT.
DEVNAM(2), CRT TERMINAL.
DEVNAM(3), name of first primary hard copy output device.
DEVNAM(4), name of second primary hard copy output device.
Integer IOCODE
Integer IERR
Integer NERR
1-78
PSS/E-29
1.58 LISTNW
This API is used to tabulate the power flow working case in a form suitable for problem data documentation. The API is invoked by the use of the statement:
LISTNW(SID, ALL, OPT, VREV, IERR)
or:
BAT_LIST
SID
ALL
OPT
VREV
where:
Integer SID
Integer ALL
Integer OPT
= 2, bus data
= 4, plant data
= 6, branch data (single entry)
= 8, two-winding transformer
impedance data
= 10, dc line data
= 12, full listing (single entry)
= 14, impedance correct data
= 16, zone data
= 18, load data
= 20, FACTS control device
data
= 22, three-winding transformer
impedance data
= 24, three-winding transformer
control data
Integer VREV
Is used to change voltage output units from the default units to the alternate
units.
VREV = 0, use default voltage units.
VREV = 1, use alternate voltage units.
Integer IERR
PSS/E-29
1-79
1.59 LLRFAPI
This API executes activity LLRF. It must first be called once with APIOPT set to 1, then once for
each priority level whose adjustment method is to be changed with APIOPT set to 2, and finally
once with APIOPT set to 3. The API is invoked by the use of the statement:
CALL LLRFAPI(APIOPT, OPTIONS, RVAL, DFXFILE, IERR, NERR)
or
BAT_LLRF
APIOPT
OPTIONS(1)
OPTIONS(2)
RVAL
DFXFILE
where:
Integer APIOPT
Integer OPTIONS(2)
1-80
PSS/E-29
Real RVAL
Character DFXFILE*260 Is the name of Distribution Factor Data input file when APIOPT is 1
(input).
Integer IERR
Integer NERR
PSS/E-29
1-81
1.60 LOUTNW
This API is used to print power flow data in a wide format, greater than 80 columns. The API is
invoked by the use of the statement:
LOUTNW(SID, ALL, IERR)
or:
BAT_LOUT
SID
ALL
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-82
PSS/E-29
1.61 LTAPAPI
This API is used to tap a line. The API is invoked by the use of the statement:
LTAPAPI(FRMBUS, TOBUS, CKT, FRACTION, NEWNUM, NEWNAM, NEWKV, IERR,
NERR)
or
BAT_LTAP
NEWKV
FRMBUS
TOBUS
CKT
FRACTION
NEWNUM
NEWNAM
where:
Integer FRMBUS
Integer TOBUS
Character CKT*2
Real FRACTION
New bus location relative to bus FRMBUS in per unit of total line length
(input).
Integer NEWNUM
Integer IERR
Integer NERR
PSS/E-29
1-83
1.62 MATRIX_GROWTH_FACTOR_API
This API is used to set the value of the matrix growth factor option setting. The API is invoked by
the use of the statement:
CALL MATRIX_GROWTH_FACTOR_API(RVAL, IOCODE, IERR, NERR)
or
BAT_MATRIX_GROWTH_FACTOR
RVAL
where:
Integer RVAL
Integer IOCODE
Integer IERR
Integer NERR
1-84
PSS/E-29
1.63 MBID2DC
This API changes the dc line number of the specified two-terminal dc line. The API is invoked by
the use of the statement:
MBID2DC(DC, DCNEW, IERR, NERR)
or
BAT_MBID2DC
DC
DCNEW
where:
Integer DC
Integer DCNEW
Integer IERR
Integer NERR
PSS/E-29
1-85
1.64 MBID3WND
This API changes the identifier of the specified three-winding transformer. The API is invoked by
the use of the statement:
MBID3WND(FRMBUS, TOBUS1, TOBUS2, ID, IDNEW, IERR, NERR)
or
BAT_MBID3WND
FRMBUS
TOBUS1
TOBUS2
ID
IDNEW
where:
Integer FRMBUS
Integer TOBUS1
Integer TOBUS2
Character ID*2
Character IDNEW*2
Integer IERR
Integer NERR
1-86
PSS/E-29
1.65 MBIDATRN
This API changes the identifier of the specified inter-area transfer. The API is invoked by the use
of the statement:
MBIDATRN(FRMAREA, TOAREA, ID, IDNEW, IERR, NERR)
or
BAT_MBIDATRN
FRMAREA
TOAREA
ID
IDNEW
where:
Integer FRMAREA
Integer TOAREA
Character ID*1
Character IDNEW*1
Integer IERR
Integer NERR
PSS/E-29
1-87
1.66 MBIDBRN
This API changes the identifier of the specified non-transformer branch or two-winding transformer. The API is invoked by the use of the statement:
MBIDBRN(FRMBUS, TOBUS, ID, IDNEW, IERR, NERR)
or
BAT_MBIDBRN
FRMBUS
TOBUS
ID
IDNEW
where:
Integer FRMBUS
Integer TOBUS
Character ID*2
Character IDNEW*2
Integer IERR
Integer NERR
1-88
PSS/E-29
1.67 MBIDFACTS
This API changes the FACTS device number of the specified FACTS device. The API is invoked
by the use of the statement:
MBIDFACTS(FD, FDNEW, IERR, NERR)
or
BAT_MBIDFACTS
FD
FDNEW
where:
Integer FD
Integer FDNEW
Integer IERR
Integer NERR
PSS/E-29
1-89
1.68 MBIDLOAD
This API changes the identifier of the specified load. The API is invoked by the use of the statement:
MBIDLOAD(FRMBUS, ID, IDNEW, IERR,NERR)
or
BAT_MBIDLOAD
FRMBUS
ID
IDNEW
where:
Integer FRMBUS
Character ID*2
Character IDNEW*2
Integer IERR
Integer NERR
1-90
PSS/E-29
1.69 MBIDMAC
This API changes the identifier of the specified machine. The API is invoked by the use of the
statement:
MBIDMAC(FRMBUS, ID, IDNEW, IERR, NERR)
or
BAT_MBIDMAC
FRMBUS
ID
IDNEW
where:
Integer FRMBUS
Character ID*2
Character IDNEW*2
Integer IERR
Integer NERR
PSS/E-29
1-91
1.70 MBIDMDC
This API changes the dc line number of the specified multi-terminal dc line. The API is invoked by
the use of the statement:
MBIDMDC(DC, DCNEW, IERR, NERR)
or
BAT_MBIDMDC
DC
DCNEW
where:
Integer DC
Integer DCNEW
Integer IERR
Integer NERR
1-92
PSS/E-29
1.71 MBIDMSL
This API changes the identifier of the specified multi-section line. The API is invoked by the use
of the statement:
MBIDMSL(FRMBUS, TOBUS, ID, IDNEW, IERR, NERR)
or
BAT_MBIDMSL
FRMBUS
TOBUS
ID
IDNEW
where:
Integer FRMBUS
Integer TOBUS
Character ID*2
Is the present multi-section identifier of the multi-section line whose identifier is to be changed (input).
Character IDNEW*2
Integer IERR
Integer NERR
PSS/E-29
1-93
1.72 MBIDVSC
This API changes the VSC dc line name of the specified VSC dc line. The API is invoked by the
use of the statement:
CALL MBIDVSC(NAME, NAMNEW, IERR, NERR)
or
BAT_MBIDVSC
NAME
NAMNEW
where:
Character NAME*8
Is the name of the VSC dc line whose VSC dc line name is to be changed
(input).
Character NAMNEW*8Is the new name to be assigned to the VSC dc line (input).
Integer IERR
Integer NERR
1-94
PSS/E-29
1.73 MCREAPI
This API executes activity MCRE. The API is invoked by the use of the statement:
MCREAPI(STATUS, FILE, IERR, NERR)
or
BAT_MCRE
STATUS(1)
STATUS(2)
FILE
where:
Integer STATUS(2)
Character FILE*260
Integer IERR
Integer NERR
PSS/E-29
1-95
1.74 MODRNW
This API is used to uniformly increase or decrease the line resistances of in-service nontransformer
branches. The API is invoked by the use of the statement:
MODRNW(SID, ALL, APIOPT, IRAT, RLOAD, FMAX, NCHNG, IERR)
or:
BAT_MODR
SID
ALL
APIOPT
IRAT
RLOAD
FMAX
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer APIOPT
Integer IRAT
Is the rating set on which the present values of branch resistances are based.
IRAT = 1, RATEA.
IRAT = 2, RATEB.
IRAT = 3, RATEC.
Real RLOAD
Is the base line loading in percent. 0.0001 <= RLOAD <= 2000.0.
Real FMAX
Is the line resistance scaling factor in pu 0.0 <= FMAX <= 0.1.
Integer NCHNG
Integer IERR
1-96
PSS/E-29
1.75 MOVE3WND
This API disconnects the second "to bus" of a specified three-winding transformer from the bus to
which it is currently connected, and reconnects it to a designated bus. The API is invoked by the use
of the statement:
MOVE3WND(FRMBUS, TOBUS1, TOBUS2, CKT, NEWTOBUS2, NEWCKT, IERR,
NERR)
or
BAT_MOVE3WND
NEWCKT
FRMBUS
TOBUS1
TOBUS2
CKT
NEWTOBUS2
where:
Integer FRMBUS
Is one of the buses connected by the three-winding transformer; the transformer will remain connected to this bus (input).
Integer TOBUS1
Is another bus connected by the three-winding transformer; the transformer will remain connected to this bus (input).
Integer TOBUS2
Is the third bus connected by the three-winding transformer; this connection will be severed and the transformer connected to bus NEWTOBUS2
(input).
Character CKT*2
Integer NEWTOBUS2 Is the number of the bus to which the three-winding transformer is to be
connected (input).
Character NEWCKT*2 Is the new circuit identifier to be assigned to the rerouted three-winding
transformer (input).
Integer IERR
Integer NERR
PSS/E-29
1-97
1.76 MOVEBRN
This API disconnects the to bus of a specified non-transformer branch or two-winding transformer from the bus to which it is currently connected, and reconnects it to a designated bus. The
API is invoked by the use of the statement:
MOVEBRN(FRMBUS, TOBUS, CKT, NEWTOBUS, NEWCKT, IERR, NERR)
or
BAT_MOVEBRN
FRMBUS
TOBUS
CKT
NEWTOBUS
NEWCKT
where:
Integer FRMBUS
Is one of the buses connected by the branch; the branch will remain connected to this bus (input).
Integer TOBUS
Is the other bus connected by the branch; this connection will be severed
and the branch connected to bus NEWTOBUS (input).
Character CKT*2
Integer NEWTOBUS
Character NEWCKT*2 Is the new circuit identifier to be assigned to the rerouted branch (input).
Integer IERR
Integer NERR
1-98
PSS/E-29
1.77 MOVELOAD
This API disconnects the specified load from the bus to which it is currently connected, and reconnects it to a designated bus. The API is invoked by the use of the statement:
MOVELOAD(FRMBUS, ID, NEWBUS, NEWID, IERR, NERR)
or
BAT_MOVELOAD
FRMBUS
ID
NEWBUS
NEWID
where:
Integer FRMBUS
Character ID*2
Integer NEWBUS
Character NEWID*2
Integer IERR
Integer NERR
PSS/E-29
1-99
1.78 MOVELOADS
This API disconnects all of the load from the specified bus, and reconnects it to a designated bus.
Bus TOBUS must not have any load connected to it at the time this API is called. The API is
invoked by the use of the statement:
MOVELOADS(FRMBUS, TOBUS, IERR, NERR)
or
BAT_MOVELOADS
FRMBUS
TOBUS
where:
Integer FRMBUS
Integer TOBUS
Is the bus to which the loads on bus FRMBUS are to be moved (input).
Integer IERR
Integer NERR
1-100
PSS/E-29
1.79 MOVEMAC
This API disconnects the specified machine from the bus to which it is currently connected, and
reconnects it to a designated bus. The API is invoked by the use of the statement:
MOVEMAC(FRMBUS, ID, NEWBUS, NEWID, IERR, NERR)
or
BAT_MOVEMAC
FRMBUS
ID
NEWBUS
NEWID
where:
Integer FRMBUS
Character ID*2
Integer NEWBUS
Character NEWID*2
Integer IERR
Integer NERR
PSS/E-29
1-101
1.80 MOVEPLNT
This API disconnects all of the machines from the specified bus, and reconnects it to a designated
bus. Bus TOBUS must not have any plant data associated with it at the time this API is called. The
API is invoked by the use of the statement:
MOVEPLNT(FRMBUS, TOBUS, IERR, NERR)
or
BAT_MOVEPLNT
FRMBUS
TOBUS
where:
Integer FRMBUS
Integer TOBUS
Integer IERR
Integer NERR
1-102
PSS/E-29
1.81 MOVESWS
This API disconnects the switched shunt load from the specified bus, and reconnects it to a designated bus. The API is invoked by the use of the statement:
MOVESWS(FRMBUS, TOBUS, IERR, NERR)
or
BAT_MOVESWS
FRMBUS
TOBUS
where:
Integer FRMBUS
Integer TOBUS
Integer IERR
Integer NERR
PSS/E-29
1-103
1.82 MSLVAPI
This API executes activity MSLV. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
MSLVAPI(OPTIONS, IERR, NERR)
or
BAT_MSLV
OPTIONS(5)
OPTIONS(1)
OPTIONS(6)
OPTIONS(2)
OPTIONS(3)
OPTIONS(4)
where:
Integer OPTIONS(6)
1-104
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
1-105
1.83 MTDCAPI
This API executes activity MTDC. The API is invoked by the use of the statement:
MTDCAPI(IERR, NERR)
or
BAT_MTDC
where:
Integer IERR
Integer NERR
1-106
PSS/E-29
1.84 MULTISECTION_LINE_REPORTING_API
This API is used to set the value of the multi-section line reporting option setting to either "off" or
"on". The API is invoked by the use of the statement:
MULTISECTION_LINE_REPORTING_API(IVAL, IOCODE, IERR, NERR)
or
BAT_MULTISECTION_LINE_REPORTING
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-107
1.85 NETGNW
This API is used to change the in-service generation to negative MVA load at all type two and three
buses except those within the subsystem specified by the user. The API is invoked by use of the
statement:
NETGNW(SID, ALL, IERR)
or:
BAT_NETG
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
1-108
PSS/E-29
1.86 NEWCASNW
This API is used to initialize a new power flow case. All existing power flow data will be lost upon
execution of this API. The API is invoked by the use of the statement:
NEWCASNW(BASEKV, TITL1, TITL2, IERR)
or:
BAT_NEWCAS
where:
Real BASEKV
Is the new system base kV. Valid base kV values range from 1 to
10,000.
CHARACTER TITL1*60
CHARACTER TITL2*60
Integer IERR
PSS/E-29
1-109
1.87 NEWTON_TOLERANCE_API
This API is used to set the value of the default Newton-Raphson convergence tolerance option setting. The API is invoked by the use of the statement:
CALL NEWTON_TOLERANCE_API(RVAL, IOCODE, IERR, NERR)
or
BAT_NEWTON_TOLERANCE_FACTOR
RVAL
where:
Integer RVAL
Integer IOCODE
Integer IERR
Integer NERR
1-110
PSS/E-29
1.88 NON_DIVERGENT_API
This API is used to set the value of the non-divergent Newton power flow solution option setting to
either "enabled" or "disabled". The API is invoked by the use of the statement:
NON_DIVERGENT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_NON_DIVERGENT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-111
1.89 NRDFLT
This subroutine returns the default solution options for the Newton-Raphson based solution activities FNSL, FDNS, NSOL, ACCC and INLF. The API is invoked by the use of the statement:
NRDFLT(METHOD, TAPOPT, INTOPT, PHSOPT, DCOPT, SWSOPT, VARLIM,
IERR, NERR)
where:
Integer METHOD
Integer TAPOPT
Integer INTOPT
Integer PHSOPT
Integer DCOPT
Integer SWSOPT
Integer VARLIM
1-112
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
1-113
1.90 NSOLAPI
This API executes activity NSOL. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
NSOLAPI(OPTIONS, IERR, NERR)
or
BAT_NSOL
OPTIONS(5)
OPTIONS(1) OPTIONS(2)
OPTIONS(6) OPTIONS(7)
OPTIONS(3)
OPTIONS(4)
where:
Integer OPTIONS(7)
1-114
PSS/E-29
Integer NERR
PSS/E-29
1-115
1.91 ORDRAPI
This API executes activity ORDR. The API is invoked by the use of the statement:
ORDRAPI(OPT, IERR, NERR)
or
BAT_ORDR
OPT
where:
Integer OPT
Integer IERR
Integer NERR
1-116
PSS/E-29
1.92 OTDFAPI
This API executes activity OTDF. The API is invoked by the use of the statement:
OTDFAPI(DFXFILE, IERR, NERR)
or
BAT_OTDF
DFXFILE
where:
Character DFXFILE*260 Is the name of Distribution Factor Data input file (input).
Integer IERR
Integer NERR
PSS/E-29
1-117
1.93 OUTSNW
This API is used to tabulate those components in the working case that are removed from service.
The API is invoked by the use of the statement:
OUTSNW(SID, ALL, IERR)
or:
BAT_OUTS
SID
ALL
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-118
PSS/E-29
1.94 OWNMAPI
This API is used to reassign the buses, load, machines, and branches in a selected subsystem of the
working case from their original owner to a designated owner. The API is invoked by the use of the
statement:
OWNMAPI(SID, ALL, STATUS, IONEW, IERR, NERR)
or:
BAT_OWNM
STATUS(5)
STATUS(2)
IONEW
STATUS(3)
STATUS(4)
where:
Integer SID
Integer ALL
Integer STATUS(7)
Integer IONEW
Is the new owner to assign the selected buses to (input). IONEW must be
between 1 and OWNERS.
Integer IERR
Integer NERR
PSS/E-29
1-119
1.95 OWNRNW
This API is used to provide a tabulation by owner interchange of the desired owner net interchange.
The API is invoked by the use of the statement:
OWNRNW(SID, ALL, IERR)
or:
BAT_OWNR
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
1-120
PSS/E-29
1.96 PP_ACCC
This API is used to invoke the AC Contingency Calculation report process. The API is invoked by
the use of the statement:
PP_ACCC(STATUS, INTVAL, REALVAL, RFILE, IERR)
or:
BAT_PPACCC
STATUS(1) STATUS(2) STATUS(3) STATUS(4) STATUS(5)
INTVAL(1) INTVAL(2) INTVAL(3) INTVAL(4) INTVAL(5) REALVAL(1)
REALVAL(2) REALVAL(3) REALVAL(4) REALVAL(5) REALVAL(6) RFILE
where:
Integer STATUS(5)
PSS/E-29
1-121
Integer INTVAL(5)
1-122
PSS/E-29
1.97 PATHAPI
This API executes activity PATH. The API is invoked by the use of the statement:
PATHAPI(PATHNAME, IERR, NERR)
or
BAT_PATH
PATHNAME
where:
Character PATHNAME*260 Is the name of path to be used (blank to disable) (input).
Integer IERR
Integer NERR
PSS/E-29
1-123
1.98 PHASE_SHIFT_ADJUSTMENT_API
This API is used to set the value of the phase shift adjustment option setting to either "disabled" or
"enabled (on)". The API is invoked by the use of the statement:
PHASE_SHIFT_ADJUSTMENT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_PHASE_SHIFT_ADJUSTMENT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-124
PSS/E-29
1.99 POLYAPI
This API executes activity POLY. The API is invoked by the use of the statement:
CALL POLYAPI(OPTIONS, TOLS, LABELS, DFXFILE, IERR, NERR)
or
BAT_POLY
OPTIONS(1) . . . OPTIONS(15)
LABELS(1) . . . LABELS(3) DFXFILE
TOLS(1) . . . TOLS(6)
where:
Integer OPTIONS(15) Is an array of fifteen elements specifying calculation and reporting options
(input). The values are as follows:
OPTIONS(1), base case rating set.
OPTIONS(1) = 1, RATEA.
OPTIONS(1) = 2, RATEB.
OPTIONS(1) = 3, RATEC.
OPTIONS(2), contingency case rating set.
OPTIONS(2) = 1, RATEA.
OPTIONS(2) = 2, RATEB.
OPTIONS(2) = 3, RATEC.
OPTIONS(3), base case line flow code.
OPTIONS(3) = 0, dc base case.
OPTIONS(3) = 1, ac base case.
OPTIONS(4), phase shifter code.
OPTIONS(4) = 0, locked in base case shift solutions.
OPTIONS(4) = 1, regulating in base case shift solutions.
OPTIONS(5), code for the treatment of base case line flow constraints in
contingency cases.
OPTIONS(5) = 0, ignore.
OPTIONS(5) = 1, include.
OPTIONS(6), list study system buses.
OPTIONS(6) = 0, no.
OPTIONS(6) = 1, yes.
OPTIONS(7), list opposing system buses.
OPTIONS(7) = 0, no.
OPTIONS(7) = 1, yes.
PSS/E-29
1-125
PSS/E-29
Character DFXFILE*260 Is the name of Distribution Factor Data input file (input).
Integer IERR
Integer NERR
PSS/E-29
1-127
1.100 POUTNW
This API is used to print power flow data. The API is invoked by the use of the statement:
POUTNW(SID, ALL, IERR)
or:
BAT_POUT
SID
ALL
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-128
PSS/E-29
1.101 POWER_OUTPUT_API
This API is used to set the value of the power outout option setting to either "MVA" or "KVA". The
API is invoked by the use of the statement:
POWER_OUTPUT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_POWER_OUTPUT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-129
1.102 PRTIAPI
This API executes activity PRTI. The API is invoked by the use of the statement:
PRTIAPI(IERR, NERR)
or
BAT_PRTI
where:
Integer IERR
Integer NERR
1-130
PSS/E-29
1.103 PURG2DC
This API deletes the specified two-terminal dc line from the working case. The API is invoked by
the use of the statement:
PURG2DC(DC, IERR, NERR)
or
BAT_PURG2DC
DC
where:
Integer DC
Integer IERR
Integer NERR
PSS/E-29
1-131
1.104 PURG3WND
This API deletes the specified three-winding transformer from the working case. The API is
invoked by the use of the statement:
PURG3WND(FRMBUS, TOBUS1, TOBUS2, CKT, IERR, NERR)
or
BAT_PURG3WND
FRMBUS
TOBUS1
TOBUS2
CKT
where:
Integer FRMBUS
Integer TOBUS1
Integer TOBUS2
Character CKT*2
Integer IERR
Integer NERR
1-132
PSS/E-29
1.105 PURGATRN
This API deletes the specified inter-area transfer from the working case. The API is invoked by the
use of the statement:
PURGATRN(FRMAREA, TOAREA, ID, IERR, NERR)
or
BAT_PURGATRN
FRMAREA
TOAREA
ID
where:
Integer FRMAREA
Integer TOAREA
Character ID*1
Integer IERR
Integer NERR
PSS/E-29
1-133
1.106 PURGBRN
This API deletes the specified non-transformer branch or two-winding transformer from the
working case. The API is invoked by the use of the statement:
PURGBRN(FRMBUS, TOBUS, CKT, IERR, NERR)
or
BAT_PURGBRN
FRMBUS
TOBUS
CKT
where:
Integer FRMBUS
Integer TOBUS
Character CKT*2
Integer IERR
Integer NERR
1-134
PSS/E-29
1.107 PURGFACTS
This API deletes the specified FACTS device from the working case. The API is invoked by the use
of the statement:
PURGFACTS(DEVICE, IERR, NERR)
or
BAT_PURGFACTS
DEVICE
where:
Integer DEVICE
Integer IERR
Integer NERR
PSS/E-29
1-135
1.108 PURGLOAD
This API deletes the specified load from the working case. The API is invoked by the use of the
statement:
PURGLOAD(FRMBUS, ID, IERR, NERR)
or
BAT_PURGLOAD
FRMBUS
ID
where:
Integer FRMBUS
Character ID*2
Integer IERR
Integer NERR
1-136
PSS/E-29
1.109 PURGLOADS
This API deletes all loads from the specified bus in the working case. The API is invoked by the use
of the statement:
PURGLOADS(FRMBUS, IERR, NERR)
or
BAT_PURGLOADS
FRMBUS
where:
Integer FRMBUS
Integer IERR
Integer NERR
PSS/E-29
1-137
1.110 PURGMAC
This API deletes the specified machine from the working case. The API is invoked by the use of the
statement:
PURGMAC(FRMBUS, ID, IERR, NERR)
or
BAT_PURGMAC
FRMBUS
ID
where:
Integer FRMBUS
Character ID*2
Integer IERR
Integer NERR
1-138
PSS/E-29
1.111 PURGMDC
This API deletes the specified multi-terminal dc line from the working case. The API is invoked by
the use of the statement:
PURGMDC(DC, IERR, NERR)
or
BAT_PURGMDC
DC
where:
Integer DC
Integer IERR
Integer NERR
PSS/E-29
1-139
1.112 PURGMSL
This API deletes the specified multi-section line grouping from the working case. The API is
invoked by the use of the statement:
PURGMSL(FRMBUS, TOBUS, CKT, IERR, NERR)
or
BAT_PURGMSL
FRMBUS
TOBUS
CKT
where:
Integer FRMBUS
Integer TOBUS
Character CKT*2
Is the circuit identifier of the multi-section line to be deleted; the first character must be an ampersand (input).
Integer IERR
Integer NERR
1-140
PSS/E-29
1.113 PURGMUT
This API deletes the specified zero sequence mutual coupling from the working case. The API is
invoked by the use of the statement:
PURGMUT(FRMBUS1, TOBUS1, CKT1, FRMBUS2, TOBUS2, CKT2, IERR, NERR)
or
BAT_PURGMUT
FRMBUS1
TOBUS1
CKT1
FRMBUS2
TOBUS2
CKT2
where:
Integer FRMBUS1
Is one of the buses connected by the first branch of the mutual coupling
(input).
Integer TOBUS1
Is the other bus connected by the first branch of the mutual coupling
(input).
Character CKT1*2
Is the circuit identifier of the first branch of the mutual coupling (input).
Integer FRMBUS2
Is one of the buses connected by the second branch of the mutual coupling
(input).
Integer TOBUS2
Is the other bus connected by the second branch of the mutual coupling
(input).
Character CKT2*2
Is the circuit identifier of the second branch of the mutual coupling (input).
Integer IERR
Integer NERR
PSS/E-29
1-141
1.114 PURGNW
This API is used to delete designated outaged equipment items from the working case. The API is
invoked by the use of the statement:
PURGNW(SID, ALL, OPT, STATUS, IERR)
or:
BAT_PURG
SID
ALL
OPT
STATUS
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer OPT
= 2, switched shunts
= 4, plants
= 6, multiterminal dc lines
= 8, FACTS control devices
=10, VSC dc lines
Integer STATUS
Integer IERR
1-142
PSS/E-29
1.115 PURGPLNT
This API deletes the plant and machine data at the specified bus from the working case. The API is
invoked by the use of the statement:
PURGPLNT (FRMBUS, IERR,NERR)
or
BAT_PURGPLNT
FRMBUS
where:
Integer FRMBUS
Integer IERR
Integer NERR
PSS/E-29
1-143
1.116 PURGSWS
This API deletes the specified switched shunt from the working case. The API is invoked by the use
of the statement:
PURGSWS(FRMBUS, IERR, NERR)
or
BAT_PURGSWS
FRMBUS
where:
Integer FRMBUS
Integer IERR
Integer NERR
1-144
PSS/E-29
1.117 PURGVSC
This API deletes the specified VSC dc line from the working case. The API is invoked by the use
of the statement:
PURGVSC(NAME, IERR, NERR)
or
BAT_PURGVSC
NAME
where:
Character NAME*8
Integer IERR
Integer NERR
PSS/E-29
1-145
1.118 RANKNW
This API is used to estimate the severity of designated single branch outage contingencies and
builds a Contingency Description Data File with contingencies specified in decreasing order of their
estimated severities. The API is invoked by the use of the statement:
RANKNW(SID, ALL, IVAL, RVAL, SSFILE, MNFILE, OFILE, IERR)
or:
BAT_RANK
SID ALL IVAL(1) IVAL(2) IVAL(3) IVAL(4) IVAL(5)
IVAL(6) IVAL(7) RVAL(1) RVAL(2) RVAL(3) RVAL(4) SSFILE
MNFILE OFILE
where:
Integer SID
Integer ALL
Integer IVAL(7)
Real RVAL(4)
Character SSFILE*260 Is the Subsystem Description data filename or blank for no subsystem
input.
Character MNFILE*260 Is the Monitored Element data filename.
Character OFILE*260 Is the output Contingency Description data filename or blank for output to the
progress window.
1-146
PSS/E-29
Integer IERR
PSS/E-29
1-147
1.119 RATENW
This API is used to check branch current loadings. The API is invoked by the use of the statement:
RATENW(SID, ALL, IACT, IFL, FMAX, IERR)
or:
BAT_RATE
SID
ALL
IACT
IFL
FMAX
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer IACT
Integer IFL
Real FMAX
Is the line loading limit, in percent; 0.0 =< FMAX =< 500.0.
Integer IERR
1-148
PSS/E-29
1.120 RATING_SET_API
This API is used to set the value of the default rating set option setting to either "RATEA",
"RATEB" or "RATEC". The API is invoked by the use of the statement:
RATING_SET_API(IVAL, IOCODE, IERR, NERR)
or
BAT_RATING_SET
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-149
1.121 RAWDAPI
This API outputs the working case in the form of a Power Flow Raw Data file (activity RAWD).
The API is invoked by the use of the statement:
RAWDAPI(SID, ALL, STATUS, OUT, OFILE, IERR, NERR)
or:
BAT_RAWD
STATUS(5)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(6)
Integer OUT
Character OFILE*260 Is the name of the file to which data records are to be written (input).
Integer IERR
1-150
PSS/E-29
PSS/E-29
1-151
1.122 RAWDNW
This API is used to write out the working case in the form of a Load Flow Raw Data file. The API
is invoked by the use of the statement:
RAWDNW(SID, ALL, STATUS, OUT, OFILE, IERR)
or:
BAT_RAWD
STATUS(5)
STATUS(2)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(5)
Is an array of five elements. They are used to control output options. A value
of 0 means the option is not enabled. A value of 1 means the option is enabled.
They are as follows.
STATUS(1), omit isolated buses.
STATUS(2), omit out-of-service branches.
STATUS(3), include subsystem data.
STATUS(4), include subsystem ties.
STATUS(5), 0 = bus numbers, 1 = bus names.
Integer OUT
1-152
PSS/E-29
1.123 RDCHAPI
This API executes activity RDCH. The API is invoked by the use of the statement:
RDCHAPI(NUMNAM, FILE, IERR, NERR)
or
BAT_RDCH
NUMNAM
FILE
where:
Integer NUMNAM
Is the flag for bus number or name specification on input records (input).
NUMNAM = 0, bus numbers.
NUMNAM = 1, bus names.
Character FILE*260
Integer IERR
Integer NERR
PSS/E-29
1-153
1.124 RDEQNW
This API is used to equivalence radial and, optionally. "two point" type one buses in all but specified subsystems of the working case. The API is invoked by the use of the statement:
RDEQNW(SID, ALL, STATUS, IERR)
or:
BAT_RDEQ
STATUS(5)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(8)
Integer IERR
1-154
PSS/E-29
1.125 READAPI
This API executes activity READ, with all data in the input file being added to the working case.
The API is invoked by the use of the statement:
READAPI(NUMNAM, FILE, IERR, NERR)
or
BAT_READ
NUMNAM
FILE
where:
Integer NUMNAM
Is the flag for bus number or name specification on input records (input).
NUMNAM = 0, bus numbers.
NUMNAM = 1, bus names.
Character FILE*260
Integer IERR
Integer NERR
PSS/E-29
1-155
1.126 READSUB
This API executes activity READ, with subsystem data in the input file being added to the working
case. The API is invoked by the use of the statement:
READSUB(NUMNAM, FILE, STATUS, USEKV, BASEKV, SIDAREA, SIDOWNER,
SIDZONE, IERR, NERR)
or
BAT_READSUB
NUMNAM FILE STATUS(1) STATUS(2) STATUS(3)
USEKV BASEKV(1) BASEKV(2) SIDAREA SIDOWNER SIDZONE
where:
Integer NUMNAM
Is the flag for bus number or name specification on input records (input).
NUMNAM = 0, bus numbers.
NUMNAM = 1, bus names.
Character FILE*260
Integer STATUS(3)
Integer USEKV
Real BASEKV(2)
Integer SIDAREA
Is the area subsystem ID (0 through 3), or 1 to bypass subsystem specification by area (input).
1-156
PSS/E-29
Integer SIDOWNER
Is the owner subsystem ID (0 through 3), or 1 to bypass subsystem specification by owner (input).
Integer SIDZONE
Is the zone subsystem ID (0 through 3), or 1 to bypass subsystem specification by zone (input).
Integer IERR
Integer NERR
PSS/E-29
1-157
1.127 RECNAPI
This API executes activity RECN. The API is invoked by the use of the statement:
RECNAPI(BUS, IERR, NERR)
or
BAT_RECN
BUS
where:
Integer BUS
Integer IERR
Integer NERR
1-158
PSS/E-29
1.128 REGBNW
This API is used to tabulate those buses whose voltages are controlled by generation, switched
shunts and/or voltage controlling transformers. The API is invoked by the use of the statement:
REGBNW(SID, ALL, IERR)
or:
BAT_REGB
SID
ALL
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer IERR
PSS/E-29
1-159
1.129 REMMAPI
This API executes activity REMM. The API is invoked by the use of the statement:
REMMAPI(OPT, FILE, IERR, NERR)
or
BAT_REMM
OPT
FILE
where:
Integer OPT
Character FILE*260
Integer IERR
Integer NERR
1-160
PSS/E-29
1.130 RESQAPI
This API executes activity RESQ, with all data in the input file being added to the working case.
The API is invoked by the use of the statement:
RESQAPI(FILE, IERR)
or
BAT_RESQ
FILE
where:
Character FILE*260
Integer IERR
PSS/E-29
1-161
1.131 RETIAPI
This API executes activity RETI, with data read from the input file. The API is invoked by the use
of the statement:
CALL RETIAPI(FILE, IERR, NERR)
or
BAT_RETI
FILE
where:
Character FILE*260
Integer IERR
Integer NERR
1-162
PSS/E-29
1.132 RNFIAPI
This API executes activity RNFI. The API is invoked by the use of the statement:
CALL RNFIAPI(TYPE, TRNFILE, INPFILE, OUTFILE, IERR, NERR)
or
BAT_RNFI
TYPE
TRNFILE
INPFILE
OUTFILE
where:
Integer TYPE
Character TRNFILE*260 Is the name of bus number translation input file (input).
Character INPFILE*260 Is the name of input data file (input).
Character OUTFILE*260 Is the name of output data file (blank for output to report window)
(input).
Integer IERR
Integer NERR
PSS/E-29
1-163
1.133 RWCMAPI
This API executes activity RWCM. The API is invoked by the use of the statement:
RWCMAPI(OPT, OUT, OFILE, IERR, NERR)
or
BAT_RWCM
OPT
OUT
OFILE
where:
Integer OPT
Integer OUT
Integer NERR
1-164
PSS/E-29
1.134 RWMANW
This API is used to write out machine parametric data from the working case in the form of a
Machine Impedance Data file. The API is invoked by the use of the statement:
RWMANW(SID, ALL, STATUS, OUT, OFILE, IERR)
or:
BAT_RWMA
SID
ALL STATUS(1)
STATUS(2)
STATUS(3)
OUT
OFILE
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(3)
Is an array of three elements. They are used to control output options. They are
as follows.
STATUS(1), include records for out-of-service machines.
STATUS(1) = 0, exclude them.
STATUS(1) = 1, include them.
STATUS(2), used when calculating P fractions.
STATUS(2) = 0, use PGEN.
STATUS(2) = 1, use MBASE.
STATUS(2) = 2, use PMAX.
STATUS(3), used when calculating Q fractions.
STATUS(3) = 0, use QGEN.
STATUS(3) = 1, use MBASE.
STATUS(3) = 2, use QMAX.
Integer OUT
PSS/E-29
1-165
1.135 RWMMAPI
This API executes activity RWMM. The API is invoked by the use of the statement:
RWMMAPI(OUT, OFILE, IERR, NERR)
or
BAT_RWMM
Integer OUT
OUT
OFILE
Integer NERR
1-166
PSS/E-29
1.136 RWSQNW
This API is used to write out the sequence data contained in the working case in the form of a
Sequence Data file. The API is invoked by the use of the statement:
RWSQNW(SID, ALL, STATUS, OUT, OFILE, IERR)
or:
BAT_RWSQ
OUT OFILE
SID
ALL
STATUS(1)
STATUS(2)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer STATUS(4)
Is an array of four elements. They are used to control output options. A value
of 0 means the option is not enabled. A value of 1 means the option is enabled.
They are as follows.
STATUS(1), omit isolated buses.
STATUS(2), omit out-of-service branches.
STATUS(3), include subsystem data.
STATUS(4), include subsystem ties.
Integer OUT
PSS/E-29
1-167
1.137 SAVE_OPTION_SETTINGS_API
This API is used to save the present values of the PSS/E program option settings in the file
"psse.opt".
CALL SAVE_OPTION_SETTINGS_API
or
BAT_SAVE_OPTION_SETTINGS
1-168
PSS/E-29
1.138 SAVENW
This API is used to save a PSS/E Saved Case file. The API is invoked by the use of the statement:
SAVENW(SFILE, IERR)
or:
BAT_SAVE
SFILE
where:
Character SFILE*260
Is the PSS/E Saved Case. If SFILE is "*", SAVENW will attempt to save the
Saved Case file with the last name used. If none exists, SAVENW will return
an IERR value.
Integer IERR
PSS/E-29
1-169
1.139 SCALNW
This API is used to uniformly increase or decrease any or all of selected bus quantities for a selected
group of buses. The API is invoked by the use of the statement:
SCALNW(SID, ALL, APIOPT, TOTALS, MOTO, STATUS, SCALVAL, IERR)
or:
BAT_SCAL
SID ALL APIOPT STATUS(1) STATUS(2) STATUS(3)
STATUS(4) SCALVAL(1) SCALVAL(2) SCALVAL(3) SCALVAL(4)
SCALVAL(5) SCALVAL(6) SCALVAL(7)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined (input).
Integer ALL
Integer APIOPT
Real TOTALS(11)
Integer MOTO
1-170
PSS/E-29
Integer STATUS(4)
Real SCALVAL(7)
Is an array of seven elements used to scale the subsystem. Based on the value
of STATUS(1), these values are either total powers or percent changes.
SCALVAL(1), load MW total/percent.
SCALVAL(2), generation total/percent.
SCALVAL(3), shunt MW total/percent.
SCALVAL(4), reactor total/percent.
SCALVAL(5), capacitor total/percent.
SCALVAL(6), motor load total/percent.
SCALVAL(7), reactive load scaling parameter.
If STATUS(3) = 2, SCALVAL(7) = new total.
If STATUS(3) = 3, SCALVAL(7) = percent change.
If STATUS(3) = 4, SCALVAL(7) = new power factor.
PSS/E-29
1-171
Integer IERR
1-172
PSS/E-29
1.140 SCEQNW
This API is used to construct network equivalents of the positive and zero sequence networks, and
calculates source impedances at equivalent source nodes for all three sequences in preparation for
the unbalanced fault analysis activities of PSS/E. The API is invoked by the use of the statement:
SCEQNW(SID, ALL, STATUS, THRESH, RFILE, SFILE, IERR)
or:
BAT_SCEQ
SID
ALL
STATUS
THRESH
RFILE
SFILE
where:
Integer SID
Integer ALL
Integer STATUS
Real THRESH
Integer IERR
PSS/E-29
1-173
1.141 SCGRAPI
This API calculates fault solutions. Results may be programmatically accessed via the "fetch" routines SCGTXT, SCGBUS, SCGBRN, and SCG3WN.
Usage is:
or
BAT_SCGR
SID
ALL
APIOPT
STATUS(1) . . . STATUS(8)
where:
Integer SID
Integer ALL
Is the "all" buses or selected subsystem flag for calculating results (input).
ALL = 0, only buses in subsystem SID.
ALL = 1, all buses in the working case.
Integer APIOPT
Integer STATUS(8)
1-174
PSS/E-29
Integer NERR
PSS/E-29
1-175
1.142 SCMUAPI
This API executes activity SCMU. It must be called once with APIOPT set to 1, once for each of
the simultaneous faults to be applied with APIOPT set to 2, and once with APIOPT set to 3. The
API is invoked by the use of the statement:
CALL SCMUAPI(APIOPT, OPTIONS, RVAL, CKTARG, IERR, NERR)
or
BAT_SCMU
APIOPT
RVAL(5) CKTARG
OPTIONS(1) . . . OPTIONS(7)
RVAL(1) . . .
where:
Integer APIOPT
Integer OPTIONS(7)
1-176
PSS/E-29
Is an array of five elements specifying input values used to define the current fault; ignored except when APIOPT is 2. The elements of RVAL are
dependent on the value specified for OPTIONS(1) and are described at the
end of this section (input).
Character CKTARG*2 Is the circuit identifier of branch to be faulted; ignored except when
APIOPT is 2 and OPTIONS(1) is 8 or 9 (input).
Integer IERR
Integer NERR
PSS/E-29
1-177
Real RVAL(5)
Real RVAL(5)
When APIOPT is 2 and OPTIONS(1) is 5, the following additional elements of OPTIONS and
RVAL are used.
Integer OPTIONS(7)
Real RVAL(5)
1-178
PSS/E-29
When APIOPT is 2 and OPTIONS(1) is 6, the following additional elements of OPTIONS and
RVAL are used.
Integer OPTIONS(7)
Real RVAL(5)
When APIOPT is 2 and OPTIONS(1) is 7, the following additional elements of OPTIONS and
RVAL are used.
Integer OPTIONS(7)
Real RVAL(5)
None.
When APIOPT is 2 and OPTIONS(1) is 8, the following additional elements of OPTIONS and
RVAL are used.
Integer OPTIONS(7)
PSS/E-29
1-179
Real RVAL(5)
When APIOPT is 2 and OPTIONS(1) is 9, the following additional elements of OPTIONS and
RVAL are used.
Integer OPTIONS(7)
Real RVAL(5)
1-180
PSS/E-29
1.143 SCOPAPI
This API tabulates fault solution output (activity SCOP). It must be referenced as follows:
or
BAT_SCOP
SID
ALL
UNITS
APIOPT
where:
Integer SID
Is a valid subsystem ID; used only when APIOPT = 2 and ALL = 0. Valid
subsystem IDs range from 0 to 3. A subsystem must have been previously
defined (input).
Integer ALL
Is the "all" buses or selected buses subsystem flag; used only when
APIOPT = 2 (input).
ALL = 0, process subsystem specified by SID.
ALL = 1, process all buses.
Integer UNITS
Is the branch quantity output flag; used only when APIOPT = 2 (input).
UNITS = 1, currents.
UNITS = 2, apparent impedances.
UNITS = 3, apparent admittances.
Integer APIOPT
Integer IERR
Integer NERR
PSS/E-29
1-181
1.144 SEQDAPI
This API executes activity SEQD. The API is invoked by the use of the statement:
CALL SEQDAPI(OPTIONS, IERR, NERR)
or
BAT_SEQD
OPTIONS(1)
OPTIONS(2)
OPTIONS(3)
where:
Integer OPTIONS(3)
Integer IERR
Integer NERR
1-182
PSS/E-29
1.145 SEQUENCE_NETWORK_SETUP_API
This API is used to set the value of the fault analysis sequence network setup option setting to either
"off" or "on". The API is invoked by the use of the statement:
CALL SEQUENCE_NETWORK_SETUP_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SEQUENCE_NETWORK_SETUP
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-183
1.146 SHNTNW
This API is used to tabulate fixed and/or switched bus shunt contained in the working case. The API
is invoked by the use of the statement:
SHNTNW(SID, ALL, OPT, IERR)
or:
BAT_SHNT
SID
ALL
OPT
where:
Integer SID
Integer ALL
Integer OPT
Integer IERR
1-184
PSS/E-29
1.147 SHORT_CIRCUIT_COORDINATES_API
This API is used to set the value of the fault analysis output coordinates option setting to either
"rectangular" or "polar". The API is invoked by the use of the statement:
CALL SHORT_CIRCUIT_COORDINATES_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SHORT_CIRCUIT_COORDINATES
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-185
1.148 SHORT_CIRCUIT_MODELING_API
This API is used to set the value of the fault analysis modeling option setting to either "normal threephase" or "center tapped two-phase". The API is invoked by the use of the statement:
CALL SHORT_CIRCUIT_MODELING_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SHORT_CIRCUIT_MODELING
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-186
PSS/E-29
1.149 SHORT_CIRCUIT_UNITS_API
This API is used to set the value of the fault analysis output units option setting to either "pu" or
"physical". The API is invoked by the use of the statement:
CALL SHORT_CIRCUIT_UNITS_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SHORT_CIRCUIT_UNITS
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-187
1.150 SHORT_CIRCUIT_WARNING_API
This API is used to set the value of the fault analysis warning option setting to either "on" or "off".
The API is invoked by the use of the statement:
CALL SHORT_CIRCUIT_WARNING_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SHORT_CIRCUIT_WARNING
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-188
PSS/E-29
1.151 SHOWAPI
This API executes activity SHOW. The API is invoked by the use of the statement:
CALL SHOWAPI(OPTION, FILE, IERR, NERR)
or
BAT_SHOW
OPTION
FILE
where:
Integer OPTION
Character FILE*260
Is the name of Save Case or Snapshot input file; only used if OPTION is 0
(input).
Integer IERR
Integer NERR
PSS/E-29
1-189
1.152 SIZE_LEVEL_API
This API is used to set the value of the PSS/E size level option setting to a multiple of 1,000 between
1,000 and 80,000. The API is invoked by the use of the statement:
CALL SIZE_LEVEL_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SIZE_LEVEL
IVAL
where:
Integer IVAL
Is the value of the option setting between 1000 and 80000 (input if
IOCODE is 0 or BAT_ command, output if IOCODE is 1).
Integer IOCODE
Integer IERR
Integer NERR
1-190
PSS/E-29
1.153 SIZEAPI
This API executes activity SIZE. The API is invoked by the use of the statement:
CALL SIZEAPI(IERR, NERR)
or
BAT_SIZE
where:
Integer IERR
Integer NERR
PSS/E-29
1-191
1.154 SOLVAPI
This API executes activity SOLV. This API uses the default element specification as described in
Section 1.1. The API is invoked by the use of the statement:
SOLVAPI(OPTIONS, IERR, NERR)
or
BAT_SOLV
OPTIONS(5)
OPTIONS(1)
OPTIONS(6)
OPTIONS(2)
OPTIONS(3)
OPTIONS(4)
where:
Integer OPTIONS(6)
1-192
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
1-193
1.155 SPCBAPI
This API executes activity SPCB. The API is invoked by the use of the statement:
SPCBAPI(FROM, TO, CKT, OPTIONS, VALUES, IERR, NERR)
or
BAT_SPCB
OPTIONS(4)
FROM TO
VALUES(1)
where:
Integer FROM
Integer TO
Character CKT*2
Integer OPTIONS(4)
Real VALUES(5)
1-194
PSS/E-29
VALUES(2) & (3), Rl-g and Xl-g (used when OPTIONS(1) is 1 or 4 and
OPTIONS(2) is 1; or when OPTIONS(1) is 3 and OPTIONS(3) is 1 or 2).
VALUES(4) & (5), Rl-l and Xl-l (used when OPTIONS(1) is 3 and
OPTIONS(3) is 2).
Integer IERR
Integer NERR
PSS/E-29
1-195
1.156 SPILAPI
This API executes activity SPIL. The API is invoked by the use of the statement:
CALL SPILAPI(OPTIONS, TOLS, LABELS, DFXFILE, PRTFILE, IERR, NERR)
or
BAT_SPIL
OPTIONS(1) . . . OPTIONS(16) TOLS(1) . . . TOLS(7)
LABELS(1) . . . LABELS(8) DFXFILE PRTFILE
where:
Integer OPTIONS(16) Is an array of sixteen elements specifying calculation and reporting options
(input). The values are as follows:
OPTIONS(1), base case rating set.
OPTIONS(1) = 1, RATEA.
OPTIONS(1) = 2, RATEB.
OPTIONS(1) = 3, RATEC.
OPTIONS(2), contingency case rating set.
OPTIONS(2) = 1, RATEA.
OPTIONS(2) = 2, RATEB.
OPTIONS(2) = 3, RATEC.
OPTIONS(3), base case line flow code.
OPTIONS(3) = 0, dc base case.
OPTIONS(3) = 1, ac base case.
OPTIONS(4), phase shifter code.
OPTIONS(4) = 0, locked in base case shift solutions.
OPTIONS(4) = 1, regulating in base case shift solutions.
OPTIONS(5), list study system buses.
OPTIONS(5) = 0, no.
OPTIONS(5) = 1, yes.
OPTIONS(6), list opposing system buses.
OPTIONS(6) = 0, no.
OPTIONS(6) = 1, yes.
OPTIONS(7), list study system tie lines.
OPTIONS(7) = 0, no.
OPTIONS(7) = 1, yes.
OPTIONS(8), add study system tie lines to monitored line list.
OPTIONS(8) = 0, no.
OPTIONS(8) = 1, yes.
1-196
PSS/E-29
Character LABELS*12 Is an array of eight elements specifying subsystem and interface labels
(input).
LABELS(1), study system label.
LABELS(2), opposing system label.
LABELS(3), interface label for optional interface limits summary table
(blank for none).
PSS/E-29
1-197
Integer NERR
1-198
PSS/E-29
1.157 SPLTAPI
This API adds a bus to the working case and places a zero impedance line between bus BUS and
the new bus. No other equipment is connected to the new bus by this API. The API is invoked by
the use of the statement:
SPLTAPI(BUS, NEWNUM, NEWNAM, NEWKV, IERR, NERR)
or
BAT_SPLT
BUS
NEWNUM
NEWNAM
NEWKV
where:
Integer BUS
Integer NEWNUM
Integer IERR
Integer NERR
PSS/E-29
1-199
1.158 SQEXNW
This API is used to provide a tabulation of all fault analysis data pertaining to a selected bus. The
API is invoked by the use of the statement:
SQEXNW(SID, ALL, IERR)
or:
BAT_SQEX
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
1-200
PSS/E-29
1.159 SQLINW
This API is used to tabulate the sequence data in a form suitable for problem data documentation.
The API is invoked by the use of the statement:
SQLINW(SID, ALL, OPT, IERR)
or:
BAT_SQLI
SID
ALL
OPT
where:
Integer SID
Integer ALL
Integer OPT
Integer IERR
PSS/E-29
= 2, bus data
= 4, branch data
= 6, mutual data
= 8, three-winding transformer
1-201
1.160 STOPAPI
This API executes activity STOP. The API is invoked by the use of the statement:
CALL STOPAPI(DELETE)
or
BAT_STOP
DELETE
where:
Integer DELETE
1-202
PSS/E-29
1.161 SUBSNW
This API is used to summarize conditions in the working case by tabulating the conditions at each
swing system bus, conditions at each area slack area bus, number of components, generation/
load/shunt totals, and loss/line shunt/charging totals by voltage levels. The API is invoked by the
use of the statement:
SUBSNW(SID, ALL, IERR)
or:
BAT_SUBS
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
PSS/E-29
1-203
1.162 SWITCHED_SHUNT_ADJUSTMENT_API
This API is used to set the value of the switched shunt adjustment option setting to either "disabled"
or "enabled". The API is invoked by the use of the statement:
CALL SWITCHED_SHUNT_ADJUSTMENT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_SWITCHED_SHUNT_ADJUSTMENT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-204
PSS/E-29
1.163 TAP_ADJUSTMENT_API
This API is used to set the value of the default tap adjustment option setting to either "disabled",
"stepping" or "direct". The API is invoked by the use of the statement:
CALL TAP_ADJUSTMENT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_TAP_ADJUSTMENT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-205
1.164 TFLGNW
This API is used to either set or reset the flags for all automatically adjustable transformers contained within the selected subsystem. The API is invoked by the use of the statement:
TFLGNW(SID, ALL, OPT, IERR)
or:
BAT_TFLG
SID
ALL
OPT
where:
Integer SID
Integer ALL
Integer OPT
Integer IERR
1-206
PSS/E-29
1.165 TIESNW
This API is used to tabulate the flows on all area tie lines, with tie flows grouped by area. The API
is invoked by the use of the statement:
TIESNW(SID, ALL, IERR)
or:
BAT_TIES
SID
ALL
where:
Integer SID
Is a valid area subsystem ID. Valid subsystem IDs range from 0 to 3. An area
subsystem must have been previously defined (input).
Integer ALL
Integer IERR
PSS/E-29
1-207
1.166 TIEZNW
This API is used to tabulate the flows on all zone tie lines, with tie flows grouped by zone. The API
is invoked by the use of the statement:
TIEZNW(SID, ALL, IERR)
or:
BAT_TIEZ
SID
ALL
where:
Integer SID
Is a valid zone subsystem ID. Valid subsystem IDs range from 0 to 3. A zone
subsystem must have been previously defined (input).
Integer ALL
Integer IERR
1-208
PSS/E-29
1.167 TIMEAPI
This API executes activity TIME. The API is invoked by the use of the statement:
CALL TIMEAPI(INIT)
or
BAT_TIME
INIT
where:
Integer INIT
PSS/E-29
1-209
1.168 TLSTNW
This API is used tabulate those transformers in the working case whose off-nominal turns ratio or
phase shift angle may be adjusted by the power flow solution activities. The API is invoked by the
use of the statement:
TLSTNW(SID, ALL, OPT, VREV, IERR)
or:
BAT_TLST
SID
ALL
OPT
VREV
where:
Integer SID
Integer ALL
Integer OPT
Integer VREV
Is used to change voltage output units from the default units to the alternate
units.
VREV = 0, use default voltage units.
VREV = 1, use alternate voltage units.
Integer IERR
1-210
PSS/E-29
1.169 TLTGAPI
This API executes activity TLTG. The API is invoked by the use of the statement:
CALL TLTGAPI(OPTIONS, TOLS, LABELS, DFXFILE, IERR, NERR)
or
BAT_TLTG
OPTIONS(1) . . . OPTIONS(17)
LABELS(1) . . . LABELS(8) DFXFILE
TOLS(1) . . . TOLS(7)
where:
Integer OPTIONS(17) Is an array of seventeen elements specifying calculation and reporting
options (input). The values are as follows:
OPTIONS(1), base case rating set.
OPTIONS(1) = 1, RATEA.
OPTIONS(1) = 2, RATEB.
OPTIONS(1) = 3, RATEC.
OPTIONS(2), contingency case rating set.
OPTIONS(2) = 1, RATEA.
OPTIONS(2) = 2, RATEB.
OPTIONS(2) = 3, RATEC.
OPTIONS(3), base case line flow code.
OPTIONS(3) = 0, dc base case.
OPTIONS(3) = 1, ac base case.
OPTIONS(4), phase shifter code.
OPTIONS(4) = 0, locked in base case shift solutions.
OPTIONS(4) = 1, regulating in base case shift solutions.
OPTIONS(5), code for the treatment of base case line flow constraints in
contingency cases.
OPTIONS(5) = 0, ignore.
OPTIONS(5) = 1, include.
OPTIONS(6), list study system buses.
OPTIONS(6) = 0, no.
OPTIONS(6) = 1, yes.
OPTIONS(7), list opposing system buses.
OPTIONS(7) = 0, no.
OPTIONS(7) = 1, yes.
OPTIONS(8), list study system tie lines.
OPTIONS(8) = 0, no.
OPTIONS(8) = 1, yes.
PSS/E-29
1-211
1-212
PSS/E-29
Character LABELS*1
Character DFXFILE*260 Is the name of Distribution Factor Data input file (input).
Integer IERR
Integer NERR
PSS/E-29
1-213
1.170 TPCHNW
This API is used perform checks on the adjustment data associated with voltage or flow controlling
transformers. The API is invoked by the use of the statement:
TPCHNW(SID, ALL, APIOPT, OPT, STATUS, THRSH, TTYP, NTRN, IERR)
or:
BAT_TPCH
THRSH(2)
SID
ALL
APIOPT
OPT STATUS(1)
STATUS(2)
THRSH(1)
where:
Integer SID
Integer ALL
Integer APIOPT
Integer OPT
Integer STATUS(2)
Is a two-element array.
STATUS(1), modify steps or voltage bands, when OPT = 4.
STATUS(1) = 1, modify steps.
STATUS(1) = 2, modify voltage bands.
STATUS(2), used to indicate which transformers to change where OPTs
1, 2, 3, 8 or 9.
STATUS(2) = 0, change both types.
STATUS(2) = 1, change voltage controlling types when OPTs 1, 2 or 3.
STATUS(2) = 2, change Mvar controlling types change MW controlling
types when OPT = 8 or 9.
1-214
PSS/E-29
Real THRSH(2)
Logical TTYP
Integer NTRN
Integer IERR
PSS/E-29
1-215
1.171 TRANSMISSION_LINE_UNITS_API
This API is used to set the value of the transmission line units option setting to either "pu" or
"ohms". The API is invoked by the use of the statement:
CALL TRANSMISSION_LINE_UNIT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_TRANSMISSION_LINE_UNIT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-216
PSS/E-29
1.172 TREEAPI
This API executes activity TREE. Following each successful call, it returns BUSES as the number
of buses in a swingless island (0 for no more swingless islands). Once a BUSES value of 0 is
returned, no further calls are needed.
The API must be called once with APIOPT set to 1. If BUSES is returned as 0 (i.e., there are no
swingless islands), no further calls are needed. Otherwise, if BUSES is greater than zero, it must be
called one or more times with APIOPT set to 2 and OPTION set to indicate the disposition of the
current swingless island. APIOPT 2 calls are required until either BUSES is returned as zero or an
APIOPT 2 call is made with OPTION set to 1.
The API is invoked by the use of the statement:
CALL TREEAPI(APIOPT, OPTION, BUSES, IERR, NERR)
or
BAT_TREE
APIOPT
OPTION
where:
Integer APIOPT
Integer OPTION
Integer BUSES
Integer IERR
Integer NERR
PSS/E-29
1-217
1.173 TYSLAPI
This API executes activity TYSL. The API is invoked by the use of the statement:
TYSLAPI(OPT, IERR, NERR)
or
BAT_TYSL
OPT
where:
Integer OPT
Integer IERR
Integer NERR
1-218
PSS/E-29
1.174 USERAPI
This API executes activity USER. The API is invoked by the use of the statement:
CALL USERAPI
or
BAT_USER
PSS/E-29
1-219
1.175 VCHKNW
This API is used to tabulate those buses whose voltage magnitude is outside a specified range. The
API is invoked by the use of the statement:
VCHKNW(SID, ALL, VLO, VHI, IERR)
or:
BAT_VCHK
SID
ALL
VLO
VHI
where:
Integer SID
Integer ALL
Real VLO
Real VHI
Integer IERR
1-220
PSS/E-29
1.176 VOLTAGE_INPUT_API
This API is used to set the value of the voltage input option setting to either "pu" or "kV". The API
is invoked by the use of the statement:
CALL VOLTAGE_INPUT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_VOLTAGE_INPUT_UNIT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
PSS/E-29
1-221
1.177 VOLTAGE_OUTPUT_API
This API is used to set the value of the voltage output option setting to either "pu" or "kV". The API
is invoked by the use of the statement:
CALL VOLTAGE_OUTPUT_API(IVAL, IOCODE, IERR, NERR)
or
BAT_VOLTAGE_OUTPUT_UNIT
IVAL
where:
Integer IVAL
Integer IOCODE
Integer IERR
Integer NERR
1-222
PSS/E-29
1.178 ZONENW
This API is used to provide a tabulation by zones of the zone totals. The API is invoked by the use
of the statement:
ZONENW(SID, ALL, IERR)
or:
BAT_ZONE
SID
ALL
where:
Integer SID
Integer ALL
Integer IERR
PSS/E-29
1-223
1.179 ZONMNW
This API is used to reassign the buses and loads in a selected subsystem of the working case from
their original zone to a designated zone. The API is invoked by the use of the statement:
ZONMNW(SID, ALL, STATUS, IZNEW, IERR)
or:
BAT_ZONM
SID
ALL
STATUS(1)
STATUS(2)
IANEW
where:
Integer SID
Integer ALL
Integer STATUS(2)
Integer IZNEW
Is the new zone to assign the selected buses to. IZNEW must be between 1 and
ZONES.
Integer IERR
1-224
PSS/E-29
CHAPTER
2
LOAD FLOW DATA CHANGING APIS
To specify the "default" value for a particular array element when calling the XXX_XXX_API subroutine, set the INTGAR array elements to the parameter BIGINT and REALAR array elements to
the parameter BIGREL, which is defined in the MODULE PARAM4; when entering the
BAT_XXX_XXX_DATA command, use FORTRAN free format input conventions (i.e., consecutive commas).
or
BAT_AREA_DATA
INTGAR(1)
REALAR(1)
REALAR(2)
NAMEAR
where:
Integer I
Integer INTGAR(1)
Real REALAR(2)
PSS/E-29
2-1
2-2
PSS/E-29
or
BAT_OWNER_DATA
NAMEAR
where:
Integer I
Integer NERR
PSS/E-29
2-3
or
BAT_ZONE_DATA
NAMEAR
where:
Integer I
Integer NERR
2-4
PSS/E-29
or
BAT_BUS_DATA
IBUS
INTGAR(1)...INTGAR(4)
REALAR(1)...REALAR(5)
NAMEAR
where:
Integer IBUS
Integer INTGAR(4)
Integer REALAR(5)
Integer NERR
PSS/E-29
2-5
or
BAT_BRANCH_DATA
IARG
REALAR(1)...REALAR(15)
JARG
CKT
INTGAR(1)...INTGAR(6)
where:
Integer IARG
Integer JARG
Character CKT*2
Integer INTGAR(6)
Integer REALAR(15)
2-6
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
2-7
or
BAT_TWO_WINDING_DATA, IARG, JARG, CKT, INTGAR(1)...INTGAR(15),
REALAR(1)...REALAR(23), NAMEAR
Integer IARG
Integer JARG
Character CKT*2
Integer INTGAR(15)
Integer REALAR(25)
2-8
PSS/E-29
PSS/E-29
2-9
Integer NERR
2-10
PSS/E-29
or:
BAT_THREE_WINDING_DATA
INTGAR(1)...INTGAR(17)
IARG
JARG
KARG
CKT
REALAR(1)...REALAR(41)
NAMEAR
where:
Integer IARG
Integer JARG
Integer KARG
Character CKT*2
Integer INTGAR(17)
Real REALAR(53)
PSS/E-29
2-11
2-12
PSS/E-29
Integer NERR
PSS/E-29
2-13
or
BAT_LOAD_DATA
IARG
REALAR(1)...REALAR(6)
LDID
INTGAR(1)...INTGAR(4)
where:
Integer IARG
Character LDID*2
Integer INTGAR(4)
Integer REALAR(6)
Integer IERR
Integer NERR
2-14
PSS/E-29
or
BAT_PLANT_DATA
IARG
INTGAR(1)
REALAR(1)
REALAR(2)
where:
Integer IARG
Integer INTGAR(1)
Integer REALAR(2)
Integer IERR
Integer NERR
PSS/E-29
2-15
or
BAT_MACHINE_DATA
IARG
REALAR(1)...REALAR(16)
MCID
INTGAR(1)...INTGAR(5)
where:
Integer IARG
Character MCID*2
Integer INTGAR(5)
Integer REALAR(16)
2-16
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
2-17
or
BAT_FACTS_DATA
KM
INTGAR(1)...INTGAR(4)
REALAR(1)...REALAR(12)
where:
Integer KM
Integer INTGAR(4)
Integer REALAR(16)
2-18
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
2-19
or
BAT_TWO_TERMINAL_DC_LINE_DATA
NDC
REALAR(1)...REALAR(8)
METRAR
INTGAR(1)
INTGAR(2)
where:
Integer NDC
Integer INTGAR(2)
Integer REALAR(9)
2-20
PSS/E-29
PSS/E-29
2-21
or
BAT_TWO_TERMINAL_DC_CONVERTER_DATA
CNVFLG
NDC
INTGAR(1)...INTGAR(5)
REALAR(1)...REALAR(11)
CKTAR
where:
Integer CNVFLG
Integer NDC
Integer INTGAR(5)
Integer REALAR(15)
Character CKTAR*2
2-22
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
2-23
or
BAT_VSC_DC_LINE_DATA
REALAR(1)...REALAR(5)
NAMEAR
INTGAR(1)...INTGAR(5)
where:
Character NAMEAR*8 Is the VSC dc line name.
Integer INTGAR(5)
Integer REALAR(5)
Integer IERR
Integer NERR
2-24
PSS/E-29
or
BAT_VSC_DC_LINE_CONVERTER_DATA
NAMEAR
IC,
INTGAR(1)...INTGAR(4)
REALAR(1)...REALAR(11)
where:
Character NAMEAR*8 Is the VSC dc line name.
Integer IC
Integer INTGAR(4)
Integer REALAR(11)
Integer IERR
PSS/E-29
2-25
2-26
PSS/E-29
or
BAT_MULTI_TERMINAL_DC_LINE_DATA
NDC
INTGAR(1)
REALAR(1)
where:
Integer NDC
Integer INTGAR(8)
Integer REALAR(1)
Integer IERR
Integer NERR
PSS/E-29
2-27
or
BAT_MULTI_TERMINAL_DC_CONVERTER_DATA
REALAR(1)...REALAR(13)
NDC
INTGAR(1)...INTGAR(4)
where:
Integer NDC
Integer INTGAR(4)
Integer REALAR(17)
2-28
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
2-29
or
BAT_MULTI_TERMINAL_DC_BUS_DATA
REALAR(1)
NAMEAR
NDC
INTGAR(1)...INTGAR(5)
where:
Integer NDC
Integer IC
Integer INTGAR(5)
Integer REALAR(2)
2-30
PSS/E-29
PSS/E-29
2-31
or
BAT_MULTI_TERMINAL_DC_LINK_DATA
NDC
INTGAR(1)
REALAR (1)
REALAR(2)
IBUS
JBUS
CKT
where:
Integer NDC
Integer IBUS
Integer JBUS
Character CKT*1
Integer INTGAR(1)
Integer REALAR(2)
Integer IERR
Integer NERR
2-32
PSS/E-29
or
BAT_SWITCHED_SHUNT_DATA
REALAR(1)...REALAR(11)
IARG
NAME
INTGAR (1)...INTGAR(10)
where:
Integer IARG
Integer INTGAR(10)
Integer REALAR(11)
PSS/E-29
2-33
Integer IERR
Integer NERR
2-34
PSS/E-29
or
BAT_MULTI_SECTION_LINE_DATA
INTGAR(1)...INTGAR(10)
IARG
JARG
CKT
where:
Integer IARG
Integer JARG
Character CKT*2
Integer INTGAR(10)
Integer IERR
Integer NERR
PSS/E-29
2-35
or
BAT_MULTI_SECTION_LINE_EDIT
INTGAR(2)
IARG
JARG
CKT
INTGAR(1)
where:
Integer IARG
Integer JARG
Character CKT*2
Integer INTGAR(2)
Integer IERR
Integer NERR
2-36
PSS/E-29
or
BAT_IMPEDANCE_CORRECTION_TABLE_DATA
I
INTGAR(1)...INTGAR(2)
REALAR(1,1)
REALAR(2,1)
REALAR(1,2)
REALAR(2,2)...REALAR(1,11)
REALAR(2,11)
where:
Integer I
Integer INTGAR(2)
Integer NERR
PSS/E-29
2-37
or
BAT_TRANSFER_DATA
APPLYF
IA
JA
ID
REALAR(1)
where:
Integer APPLYF
Integer IA
Integer JA
Character ID*1
Integer REALAR(1)
Integer IERR
Integer NERR
2-38
PSS/E-29
or
BAT_SOLUTION_PARAMETERS
REALAR(1)...REALAR(14)
INTGAR(1)...INTGAR(3)
where:
Integer INTGAR(3)
Integer REALAR(14)
Integer IERR
Integer NERR
PSS/E-29
2-39
or
BAT_BUS_NUMBER
IARG
NEWBUS;
where:
Integer IARG
Integer NEWBUS
Integer IERR
Integer NERR
2-40
PSS/E-29
or
BAT_CASE_TITLE_DATA
LINE1
LINE2
where:
Character LINE1*60
Character LINE2*60
Integer IERR
Integer NERR
PSS/E-29
2-41
or
BAT_LONG_TITLE_DATA
LNGLNS(1)...LNGLNS(16)
where:
Character LNGLNS*72 Is an array of sixteen title line.
Integer IERR
Integer NERR
2-42
PSS/E-29
or
BAT_SEQ_BUS_DATA
IARG
REALAR(1)...REALAR(4)
where:
Integer IARG
Integer REALAR(4)
Integer IERR
Integer NERR
PSS/E-29
2-43
or
BAT_SEQ_BRANCH_DATA
IARG
JARG
CKT
REALAR(1)...REALAR(7)
where:
Integer IARG
Integer JARG
Character CKT*2
Integer REALAR(7)
Integer IERR
Integer NERR
2-44
PSS/E-29
or
BAT_SEQ_TWO_WINDING_DATA
REALAR(1)...REALAR(4)
IARG
JARG
CKT
INTGAR(1)
where:
Integer IARG
Integer JARG
Character CKT*2
Integer INTGAR(1)
Integer REALAR(4)
Integer IERR
Integer NERR
PSS/E-29
2-45
or
BAT_SEQ_THREE_WINDING_DATA
IARG
INTGAR(1)
REALAR(1)...REALAR(8)
JARG
KARG
CKT
where:
Integer IARG
Integer JARG
Integer KARG
Character CKT*2
Integer INTGAR(1)
Integer REALAR(8)
Integer IERR
2-46
PSS/E-29
PSS/E-29
2-47
or
BAT_SEQ_MACHINE_DATA
IARG
MCID
REALAR(1)...REALAR(6)
where:
Integer IARG
Character MDID*2
Integer REALAR(6)
Integer IERR
Integer NERR
2-48
PSS/E-29
or
BAT_SEQ_SWITCHED_SHUNT_DATA
IARG
REALAR(1)...REALAR(8)
where:
Integer IARG
Integer REALAR(9)
Integer IERR
Integer NERR
PSS/E-29
2-49
or
BAT_SEQ_MUTUAL_DATA
IARG
REALAR(1)...REALAR(6)
JARG
CKT1
KARG
LARG
CKT2
where:
Integer IARG
Integer JARG
Character CKT1*2
Integer KARG
Integer LARG
Character CKT2*2
Integer REALAR(6)
Integer IERR
2-50
PSS/E-29
PSS/E-29
2-51
2-52
PSS/E-29
CHAPTER
3
OPTIMAL POWER FLOW APIS
The sections within this chapter contain descriptions of application programming interface (API)
calls and batch commands associated with the functions of the optimal power flow. The batch commands described are generated within PSS/E Response files and may be entered at the PSS/E
command line prompt. Further information on these commands can be found in the PSS/E OPF
Manual.
PSS/E-29
3-1
where:
Integer TBL
Integer INTGAR(3)
Real REALAR(3)
Integer IERR
Integer NERR
3-2
PSS/E-29
where:
Integer EIBUS
Integer EJBUS
Character*2 CKTID
Integer INTGAR(3)
Real REALAR(4)
Integer IERR
PSS/E-29
3-3
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
Integer INTGAR(3)
Real REALAR(4)
3-4
PSS/E-29
Integer RVAL(4)
Integer IERR
Integer NERR
PSS/E-29
3-5
where:
Integer EIBUS
Integer IERR
Integer NERR
SID
ALL
INTGAR(1)
INTGAR(2)
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
3-6
PSS/E-29
Integer INTGAR(2)
Integer IERR
Integer NERR
PSS/E-29
3-7
where:
Integer TBL
Integer INTGAR(3)
Real REALAR(7)
Integer IERR
Integer NERR
3-8
PSS/E-29
where:
Integer EIBUS
Character*1 SHNTID
Integer INTGAR(3)
Real REALAR(4)
Integer IERR
PSS/E-29
3-9
SID
ALL
AUTOADD SHNTID INTGAR(4)
REALAR(3)
REALAR(4)
INTGAR(1)
RVAL(1)
RVAL(2)
RVAL(3)
RVAL(4)
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
Integer AUTOADD
Character*1 SHNTID
Integer INTGAR(4)
3-10
PSS/E-29
Integer RVAL(4)
PSS/E-29
3-11
Integer IERR
Integer NERR
3-12
PSS/E-29
The following API is used to add or modify flow constraint records for an individual winding of a
three-winding transformer within the PSS/E working file.The API is invoked through the subroutine call:
OPFBRN_FLOW_3WT_API(EIBUS, EJBUS, EKBUS, CKTID, BFLWID, INTGAR,
REALAR, IERR, NERR)
where:
Integer EIBUS
Integer EJBUS
Integer EKBUS
Character*2 CKTID
PSS/E-29
3-13
Integer IERR
Integer NERR
3-14
SID
ALL AUTOADD BFLWID REALAR(1)
REALAR(4)
INTGAR(1) INTGAR(2)
RVAL(1)
RVAL(2)
RVAL(3)
RVAL(4)
PSS/E-29
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
Integer AUTOADD
Real REALAR(5)
PSS/E-29
3-15
Integer RVAL(5)
Integer IERR
3-16
PSS/E-29
PSS/E-29
3-17
where:
Integer EIBUS
Integer INTGAR(2)
Real REALAR(5)
Integer IERR
3-18
PSS/E-29
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
Integer INTGAR(3)
PSS/E-29
3-19
Real REALAR(5)
Integer RVAL(5)
3-20
PSS/E-29
Integer IERR
Integer NERR
PSS/E-29
3-21
X1, Y1
...
XNPRS, YNPRS
where:
Integer TBL
Character*12 LABL
Integer NPRS
Real Xi
Real Yi
Integer IERR
Integer NERR
3-22
PSS/E-29
X1, Y1
...
XNPRS, YNPRS
where:
Integer TBL
Character*12 LABL
Real REALAR(1)
Integer NPRS
Real Xi
Real Yi
Integer IERR
Integer NERR
PSS/E-29
3-23
where:
Integer TBL
Character*12 LABL
Real REALAR(1)
Real LINCST
Real QUACST
Real EXPCST
Real EXPON
Integer IERR
Integer NERR
3-24
PSS/E-29
where:
Integer EIBUS
Character*2 GENID
Integer INTGAR(1)
Real REALAR(1)
Integer IERR
Integer NERR
SID
ALL
REALAR(1)
INTGAR(1)
RVAL(1)
where:
Integer SID
PSS/E-29
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
3-25
Integer ALL
Integer INTGAR(1)
Real REALAR(1)
Integer RVAL(1)
Integer IERR
Integer NERR
3-26
PSS/E-29
where:
Integer EIBUS
Character*2 GENID
Integer INTGAR(1)
Real REALAR(5)
Integer IERR
Integer NERR
PSS/E-29
3-27
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
Integer INTGAR(1)
Real REALAR(5)
Integer RVAL(5)
3-28
PSS/E-29
Integer NERR
PSS/E-29
3-29
where:
Integer EIBUS
Character*2 GENID
Real REALAR(2)
Integer IERR
Integer NERR
SID
ALL
REALAR(1) REALAR(2)
where:
Integer SID
3-30
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
PSS/E-29
Integer ALL
Real REALAR(2)
Integer RVAL(2)
Integer IERR
Integer NERR
PSS/E-29
3-31
where:
Integer IFID
Character*32 LABL
Integer INTGAR(2)
Real REALAR(3)
Integer IERR
Integer NERR
3-32
PSS/E-29
IFID
where:
Integer IFID
Integer IERR
Integer NERR
The following API is used to add individual windings of a three-winding transformer to a particular
interface flow constraint within the PSS/E working file. The API is invoked through the subroutine
call:
INTFLW_PART_3WT(IFID, EIBUS, EJBUS, EKBUS, CKTID, IERR, NERR)
where:
Integer IFID
Integer EIBUS
PSS/E-29
3-33
Integer EJBUS
Integer EKBUS
Character*2 CKTID
Integer IERR
Integer NERR
3-34
PSS/E-29
where:
Integer IQID
Character*12 LABL
Real REALAR(2)
Integer IERR
Integer NERR
IQID
where:
Integer IQID
PSS/E-29
3-35
Integer IERR
Integer NERR
where:
Integer IQID
Integer EIBUS
Real REALAR(1)
Integer IERR
Integer NERR
3-36
PSS/E-29
where:
Integer IQID
Integer EIBUS
Real REALAR(1)
Integer IERR
Integer NERR
where:
Integer IQID
Integer ITBL
Real REALAR(1)
PSS/E-29
3-37
Integer IERR
Integer NERR
where:
Integer IQID
Integer EIBUS
Character*2 GENID
Real REALAR(1)
Integer IERR
Integer NERR
3-38
PSS/E-29
where:
Integer IQID
Integer EIBUS
Integer EJBUS
Integer EKBUS
Character*2 CKTID
Real REALAR(1)
Integer IERR
Integer NERR
PSS/E-29
3-39
where:
Integer IQID
Integer EIBUS
Integer EJBUS
Integer EKBUS
Is the "third bus" number for a three-winding transformer and zero for a
two-winding transformer.
Character*2 CKTID
Character*1 FLWID
Real REALAR(1)
Integer IERR
Integer NERR
where:
Integer IQID
3-40
PSS/E-29
Integer ITBL
Real REALAR(1)
Integer IERR
Integer NERR
where:
Integer IQID
Integer EIBUS
Character*1 SHNTID
Real REALAR(1)
Integer IERR
Integer NERR
PSS/E-29
3-41
where:
Integer IQID
Integer EIBUS
Real REALAR(1)
Integer IERR
Integer NERR
where:
Integer IQID
Integer ITBL
3-42
PSS/E-29
Real REALAR(1)
Integer IERR
Integer NERR
PSS/E-29
3-43
SID
ALL
OPT
VREV
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A subsystem must have been previously defined.
Integer ALL
Integer OPT
= 2, bus data
= 4, bus load data
= 6, generator dispatch data
= 8, generation reserve data.
= 10, series compensation data
= 12, quadratic cost table data
= 14, period reserve data
= 16, interface flow data
= 21, full listing
Integer VREV
Is used to change voltage output units from the default units to the alternate
units.
VREV = 0, use default voltage units.
VREV = 1, use alternate voltage units.
Integer IERR
3-44
PSS/E-29
SID
ALL
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer IERR
Integer NERR
PSS/E-29
3-45
ALL
IARY(1) IARY(36)
RARY(1) RARY(19)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer IARY(36)
3-46
PSS/E-29
PSS/E-29
3-47
3-48
PSS/E-29
PSS/E-29
3-49
Filename RCFILE
Is the name of the PTI Read Change Data File which will be produced if
IARY(28) is set to 1. It is a good idea to specify the filename within quotes.
Integer IERR
Integer NERR
3-50
PSS/E-29
where:
Integer RSVID
Integer INTGAR(1)
Real REALAR(2)
Integer IERR
Integer NERR
RSVID
where:
Integer RSVID
PSS/E-29
3-51
Integer IERR
Integer NERR
where:
Integer RSVID
Integer EIBUS
Character*2 GENID
Integer IERR
Integer NERR
3-52
PSS/E-29
RFILE
where:
Character RFILE*260 Is the Optimal Power Flow Data File name, or "1" if input is comping
directly from the terminal or Response file.
Integer IERR
PSS/E-29
3-53
IDC
REALAR(1)
REALAR(2)
REALAR(3)
where:
Integer IDC
Real REALAR(4)
Integer IERR
Integer NERR
3-54
PSS/E-29
SID
ALL
STATUS(1)
STATUS(2)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer STATUS(4)
Integer OUT
PSS/E-29
3-55
3-56
PSS/E-29
CHAPTER
4
DYNAMICS SIMULATION APIS
This chapter describes the APIs used in PSS/E Dynamics Simulations.
4.1 CHSBNW
This API is used to select the simulation variables that are to monitored during dynamic simulation
runs on a subsystem basis. The API is invoked by the use of the statement:
CHSBNW(SID, ALL, STATUS, IERR)
or:
BAT_CHSB
STATUS(5)
SID ALL
STATUS(6)
STATUS(1)
STATUS(2)
STATUS(3)
STATUS(4)
where:
Integer SID
Is a valid area, bus, or zone subsystem ID. Valid area, bus, or zone subsystem IDs range from 0 to 3. An area, bus, or zone subsystem must have
been previously defined.
Integer ALL
Integer STATUS(6)
PSS/E-29
4-1
4-2
PSS/E-29
PSS/E-29
4-3
4.2 DOCUNW
This API is used to produce a tabulation of the data associated with equipment models referenced
in the users simulation setup. The API is invoked by the use of the statement:
DOCUNW(SID, ALL, STATUS, IERR)
or:
BAT_DOCU
SID
ALL
STATUS(1)
STATUS(2)
STATUS(3)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer STATUS(3)
Is a three-element array.
STATUS(1), processing mode.
STATUS(1) = 0, reporting mode.
STATUS(1) = 1, data checking mode.
STATUS(2), models to output.
STATUS(2) = 0, output all CONEC models.
STATUS(2) = 1, output all CONET models.
STATUS(2) = 2, output all CHAN models.
STATUS(2) = 3, output models by subsystem.
STATUS(3), is the type of model whose data are to be output.
= 1, all models
= 2, all plant models
= 3, generator models
= 4, compensator models
= 5, stabilizer models
= 6, minimum excitation limiter models
= 7, maximum excitation limiter models = 8, excitation system models
= 9, turbine governor models
= 10, load characteristic models
= 11, load relay models
= 12, line relay models
= 13, CONEC models
= 14, CONET models
= 15, CHAN models
Integer IERR
4-4
PSS/E-29
4.3 DYDANW
This API is used to write out dynamics model data in the form of a Dynamics Data Input file. The
API is invoked by the use of the statement:
DYDANW(SID, ALL, STATUS, OUT, OFILE, IERR)
or:
BAT_DYDA
SID
ALL
STATUS(1)
STATUS(2)
STATUS(3)
OUT
OFILE
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer STATUS(3)
Is a three-element array.
STATUS(1), models to output.
STATUS(1) = 0, output all CONEC models.
STATUS(1) = 1, output all CONET models.
STATUS(1) = 2, output models by subsystem.
STATUS(2), is the type of model whose data is to be output.
= 1, all models
= 2, all plant models
= 3, generator models
= 4, compensator models
= 5, stabilizer models
= 6, minimum excitation limiter models
= 7, maximum excitation limiter models = 8, excitation system models
= 9, turbine governor models
= 10, load characteristic models
= 11, load relay models
= 12, line relay models
= 13, CONEC models
= 14, CONET models
PSS/E-29
4-5
4-6
PSS/E-29
4.4 RSTRNW
This API is used to read in a Dynamics snapshot file. The API is invoked by the use of the statement:
RSTRNW(SFILE, IERR)
or:
BAT_RSTR
SFILE
where:
Character SFILE*260
Integer IERR
PSS/E-29
4-7
4.5 SNAPNW
This API is used to save a Dynamics snapshot file. The API is invoked by the use of the statement:
SNAPNW(STATUS, SFILE, IERR)
or:
BAT_SNAP
SFILE
where:
Integer STATUS(5)
Is a five-element array.
STATUS(1), number of CONs, or -1 for 1 through "next available -1".
STATUS(1), number of STATEs, or -1 for 1 through "next available -1".
STATUS(3), number of VARs, or -1 for 1 through "next available -1".
STATUS(4), number of ICONs, or -1 for 1 through "next available -1".
STATUS(5), next available output channel.
Character SFILE*260
Integer IERR
4-8
PSS/E-29
4.6 LDLIST
This API is used to list load models in dynamics working memory. The API is invoked by the use
of the statement:
LDLIST(SID, ALL, STATUS, IERR)
or:
BAT_LDLIST
SID
ALL
STATUS(1)
STATUS(2)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer STATUS(2)
Is a two-element array.
STATUS(1), output mode.
STATUS(1) = 0, active and bypassed models.
STATUS(1) = 1, active models only.
STATUS(1) = 2, bypassed models only
STATUS(2), load model reporting option.
STATUS(2) = 0, models connected to loads.
STATUS(2) = 1, loads connected to model.
Integer IERR
PSS/E-29
4-9
4.7 LDMOD_STATUS
This API is used to change the status of the models at all loads at which the model is applied. The
API is invoked by the use of the statement:
LDMOD_STATUS(MTYPE, IBUS, LMODID, LTYPE, IST, IERR)
or:
BAT_LDMOD_STATUS
MTYPE
IBUS
LMODID
LTYPE IST
where:
Integer MTYPE
Integer IBUS
Is the external bus, area, owner, or zone number. Not used when
MTYPE = 4.
Integer IST
Integer IERR
4-10
PSS/E-29
4.8 LDMOD_STATUS2
This API is used to change the status of a model for an individual load. The API is invoked by the
use of the statement:
LDMOD_STATUS2(IBUS, LDID, LTYPE, IST, IERR)
or:
BAT_LDMOD_STATUS2 IBUS
LDID
LTYPE IST
where:
Integer IBUS
Character LDID *2
Integer LTYPE
Integer IST
Integer IERR
PSS/E-29
4-11
4.9 LDMOD_REMOVE
This API is used to remove a load model from dynamics working memory. The API is invoked by
the use of the statement:
LDMOD_REMOVE(MTYPE, IBUS, LMODID, LTYPE, IERR)
or:
BAT_LDMOD_REMOVE
MTYPE
IBUS
LMODID
LTYPE
where:
Integer MTYPE
Integer IBUS
Is the external bus, area, owner, or zone number. Not used when
MTYPE = 4.
Integer IERR
4-12
PSS/E-29
4.10 LDMOD_UNCONNECTED
This API is used to list or remove unconnected load models from dynamics working memory. The
API is invoked by the use of the statement:
LDMOD_UNCONNECTED(OPT, IERR)
or:
BAT_LDMOD_UNCONNECTED
OPT
where:
Integer OPT
Integer IERR
PSS/E-29
4-13
4.11 LDMOD_PACK
This API is used to remove unused load model connection entries and compress remaining entries
and remove unused load model allocation entries and compress remaining entries. The API is
invoked by the use of the statement:
LDMOD_PACK
or:
BAT_LDMOD_PACK
4-14
PSS/E-29
4.12 LDMOD_USER
This API is used to list user-written load model definitions and to remove unused user-written load
model definitions from the user model definition tables. The API is invoked by use of the statement:
LDMOD_USER(OPT, IERR)
or:
BAT_LDMOD_USER OPT
where:
Integer OPT
Integer IERR
PSS/E-29
4-15
4.13 CHANGE_LDMOD_DATA
This API is used to change a data value for a load model. The API is invoked by use of the
statement:
CHANGE_LDMOD_DATA(IBUS, LMODID, MTYPE, LTYPE, MNAME, J, RDATA, I,
IDATA, CHDATA IERR)
or:
BAT_CHANGE_LDMOD_DATA IBUS LMODID MTYPE LTYPE MNAME J RDATA I
IDATA CHDATA
where:
Integer IBUS
Is the external bus, area, owner, or zone number. Not used when
MTYPE = 4.
Character LMODID*2
Integer MTYPE
Integer LTYPE
Character MDNAME*6
Integer J
Real RDATA
Integer I
Integer IDATA
Character CHDATA*2
Integer IERR
4-16
PSS/E-29
4.14 ADD_LOAD_MODEL
This API is used for adding a load model. The API is invoked by use of the statement:
ADD_LOAD_MODEL(IBUS, LMODID, MTYPE, LTYPE, MDNAME, NICN, IDATA,
CHDATA, NCON, RDATA, IERR)
or:
BAT_ADD_LOAD_MODEL IBUS LMODID MTYPE LTYPE MDNAME NICN IDATA
CHDATA NCON RDATA
where:
Integer IBUS
Is the external bus, area, owner, or zone number. Not used when
MTYPE = 4.
Character LMODID*2
Integer MTYPE
Integer LTYPE
Character MDNAME*6
Integer NICN
Integer IDATA(NICN)
Character CHDATA(NICN)*2 Are the character ICON data. When an integer value is input for
an ICON, CHDATA () should be set to either $$ or .
Integer NCON
Real RDATA(NCON)
PSS/E-29
4-17
Integer IERR
4-18
PSS/E-29
4.15 MLSTNW
This API is used to list plant models in dynamics working memory. The API is invoked by use of
the statement:
MLSTNW(SID, ALL, STATUS, IERR)
or:
BAT_MLST SID ALL STATUS(1) STATUS(2) STATUS(3)
where:
Integer SID
Is a valid subsystem ID. Valid subsystem IDs range from 0 to 3. A bus subsystem must have been previously defined.
Integer ALL
Integer STATUS(3)
Is a three-element array.
STATUS(1) = 0, list unconnected models.
STATUS(1) = 1, list only connected models.
STATUS(2) = 0, active and by passed models.
STATUS(2) = 1, active models only.
STATUS(2) = 2, by passed models only.
STATUS(3) = 1, all plant models.
STATUS(3) = 2, generator models.
STATUS(3) = 3, compensator models.
STATUS(3) = 4, stabilizer models.
STATUS(3) = 5, minimum excitation models.
STATUS(3) = 6, maximum excitation models.
STATUS(3) = 7, exciters.
STATUS(3) = 8, governors.
Integer IERR
PSS/E-29
4-19
4.16 CHANGE_PLMOD_DATA
This API is used to change a data value for a plant model. The API is invoked by use of the
statement:
CHANGE_PLMOD_DATA(IBUS, ID, MTYPE, NAME, J, RDATA, I, IDATA,
CHDATA, IERR)
or:
BAT_CHANGE_PLMOD_DATA IBUS ID MTYPE NAME J RDATA I IDATA CHDATA
where:
Integer IBUS
Character ID*2
Integer MTYPE
Character NAME*6
Integer J
Real RDATA
Integer I
Integer IDATA
Character CHDATA*2 Is the new two-character ICON value. If entering an integer, this value
should be set to either $$ or .
Integer IERR
4-20
PSS/E-29
4.17 ADD_PLANT_MODEL
This API is used for adding a plant model. The API is invoked by use of the statement:
ADD_PLANT_MODEL(IBUS, ID, MTYPE, NAME, IBUS2, ID2, NICN, IDATA,
CHDATA, NCON, RDATA, IERR)
or:
BAT_ADD_PLANT_MODEL IBUS ID MTYPE NAME IBUS2 ID2 NICN IDATA CHDATA
NCON RDATA
where:
Integer IBUS
Character ID*2
Integer MTYPE
Character NAME*6
Integer IBUS
Character ID2*2
Integer NICN
Integer IDATA(NICN)
Character CHDATA(NICN)Are the character ICON data. When an integer value is input for an
ICON, CHDATA (that integer) should be set to either $$ or .
Integer NCON
Integer DATA(NCON)
PSS/E-29
4-21
Integer IERR
4-22
PSS/E-29
4.18 PLMOD_STATUS
This API is used to change the status for an individual plant model. The API is invoked by use of
the statement:
PLMOD_STATUS(IBUS, ID, MTYPE, IST, IERR)
or:
BAT_PLMOD_STATUS IBUS ID MTYPE IST
where:
Integer IBUS
Character ID*2
Integer MTYPE
Integer IST
Integer IERR
PSS/E-29
4-23
4.19 PLMOD_REMOVE
This API is used to remove a plant model from the dynamics working memory. The API is invoked
by use of the statement:
PLMOD_REMOVE(IBUS, ID, MTYPE, IERR)
or:
BAT_PLMOD_REMOVE IBUS ID MTYPE
where:
Integer IBUS
Character ID*2
Integer MTYPE
Integer IERR
4-24
PSS/E-29
4.20 PLMOD_UNCONNECTED
This API is used to list or remove unconnected plant models from the dynamics working memory.
The API is invoked by use of the statement:
PLMOD_UNCONNECTED(OPT, IERR)
or:
BAT_PLMOD_UNCONNECTED OPT
where:
Integer OPT
Integer IERR
PSS/E-29
4-25
4.21 PLMOD_PACK
This API is used to remove unused plant model connection entries and compress remaining entries
and remove unused plant model allocation entries and compress remaining entries. The API is
invoked by use of the statement:
PLMOD_PACK
or:
BAT_PLMOD_PACK
4-26
PSS/E-29
4.22 PLMOD_USER
This API is used to list user-written plant model definitions and to remove unused user-written plant
model definitions from the user model definition tables. The API is invoked by use of the statement:
PLMOD_USER(OPT, IERR)
or:
BAT_PLMOD_USER OPT
where:
Integer OPT
Integer IERR
PSS/E-29
4-27
4.23 PLMOD_CONSISTENCY
This API is used to check consistency of plant related models. The API is invoked by use of the
statement:
PLMOD_CONSISTENCY
or:
BAT_PLMOD_CONSISTENCY
4-28
PSS/E-29
4.24 RLLIST
This API is used to list line related models in the dynamics working arrays. The API is invoked by
use of the statement:
RLLIST(SID, ALL, STATUS, IERR)
or:
BAT_RLLIST SID ALL STATUS(1) STATUS(2)
where:
Integer SID
Is a valid bus subsystem ID. Valid subsystem IDs range from 0 to 3. A bus
subsystem must have been previously defined.
Integer ALL
Integer STATUS(2)
Is a two-element array.
STATUS(2) = 0, active and by passed models.
Integer IERR
PSS/E-29
4-29
4.25 CHANGE_RLMOD_DATA
This API is used to change a data value for a line related model. The API is invoked by use of the
statement:
CHANGE_RLMOD_DATA(IBUS, JBUS, ID, RS, NAME, J, RDATA, I, IDATA,
CHDATA, IERR)
or:
BAT_CHANGE_RLMOD_DATA IBUS JBUS ID RS NAME J RDATA I IDATA CHDATA
where:
Integer IBUS
Integer JBUS
Character ID*2
Integer RS
Character NAME*6
Integer J
Real RDATA
Integer I
Integer IDATA
Character CHDATA*2 Is the new two-character ICON value. If entering an integer ICON, this
value should be set to either $$ or .
Integer IERR
4-30
PSS/E-29
4.26 ADD_RELAY_MODEL
This API is used for adding a line relay. The API is invoked by use of the statement:
ADD_RELAY_MODEL(IBUS, JBUS, ID, RS, NAME, NICN, IDATA, CHDATA,
NCON, RDATA, IERR)
or:
BAT_ADD_RELAY_MODEL IBUS JBUS ID RS NAME NICN IDATA CHDATA NCON
RDATA IERR
where:
Integer IBUS
Integer JBUS
Character ID*2
Integer RS
Character NAME*6
Integer NICN
Integer IDATA(NICN)
Character CHDATA(NICN)*2 Are the character ICON data. When an integer value is input for
an ICON, CHDATA () should be set to either $$ or .
Integer NCON
Real RDATA(NCON)
Integer IERR
PSS/E-29
4-31
4.27 RLMOD_STATUS
This API is used to change the status of a line related relay model. The API is invoked by use of the
statement:
RLMOD_STATUS(IBUS, JBUS, ID, RS, IST, IERR)
or:
BAT_RLMOD_STATUS IBUS JBUS ID RS IST
where:
Integer IBUS
Integer JBUS
Character ID*2
Integer RS
Integer IST
Integer IERR
4-32
PSS/E-29
4.28 RLMOD_REMOVE
This API is used to remove a line relay model from the dynamics working memory. The API is
invoked by use of the statement:
RLMOD_REMOVE(IBUS, JBUS, ID, RS, IERR)
or:
BAT_RLMOD_REMOVE IBUS JBUS ID RS
where:
Integer IBUS
Integer JBUS
Character ID*2
Integer RS
Integer IERR
PSS/E-29
4-33
4.29 RLMOD_UNCONNECTED
This API is used to list or remove unconnected line relay models. The API is invoked by use of the
statement:
RLMOD_UNCONNECTED(OPT, IERR)
or:
BAT_RLMOD_UNCONNECTED OPT
where:
Integer OPT
Integer IERR
4-34
PSS/E-29
4.30 RLMOD_PACK
This API is used to remove unused line relay model connection entries and compress remaining
entries and remove unused line relay model allocation entries and compress remaining entries. The
API is invoked by use of the statement:
RLMOD_PACK
or:
BAT_RLMOD_PACK
PSS/E-29
4-35
4.31 RLMOD_USER
This API is used to list user-written line relay model definitions and to remove unused user-written
line relay model definitions from the user model definition tables. The API is invoked by use of the
statement:
RLMOD_USER(OPT, IERR)
or:
BAT_RLMOD_USER OPT
where:
Integer OPT
Integer IERR
4-36
PSS/E-29
4.32 SET_NETFRQ
This API is used to set or obtain the settings of simulation option. The API is invoked by use of the
statement:
SET_NETFRQ(STATUS, ICODE, IERR)
or:
BAT_SET_NETFRQ STATUS
where:
Integer STATUS
Integer ICODE
Integer IERR
PSS/E-29
4-37
4.33 SET_OSSCAN
This API is used to set or obtain the settings of an out of setup scanning option. The API is invoked
by use of the statement:
SET_OSSCAN(STATUS, TRIP, ICODE)
or:
BAT_SET_OSSCAN STATUS TRIP
where:
Integer STATUS
Integer TRIP
Integer ICODE
4-38
PSS/E-29
4.34 SET_RELANG
This API is used for setting the relative angle simulation option. The API is invoked by use of the
statement:
SET_RELANG(SWITCH, IBUSEX, ID, ICODE, IERR)
or
BAT_SET_RELANG SWITCH IBUSEX ID ICODE
Integer SWITCH
Integer IBUSEX
Character ID*2
Integer ICODE
Ingeter IERR
PSS/E-29
4-39
4.35 SET_RELSCN
This API is used to set or obtain the settings of a generic relay scanning function. The API is
invoked by use of the statement:
SET_RELSCN(STATUS, ICODE)
or:
BAT_SET_RELSCN STATUS
where:
Integer STATUS
Integer ICODE
4-40
PSS/E-29
4.36 SET_VLTSCN
This API is used to set or obtain the current setting of voltage scanning. The API is invoked by use
of the statement:
SET_VLTSCN(STATUS, VHI, VLO, ICODE, IERR)
or:
BAT_SET_VLTSCN STATUS VHI VLO
where:
Integer STATUS
Real VHI
Real VLO
Integer ICODE
Integer IERR
PSS/E-29
4-41
4-42
PSS/E-29
CHAPTER
5
SUBSYSTEM DEFINITION APIS
5.1.1 SBSINIT
This API is used to initialize the area, bus, owner, and zone subsystem definition APIs. The API is
invoked by the use of the statement:
SBSINIT
or:
BAT_SBSINIT
PSS/E-29
5-1
5.2.1 SBSACREATE
This API is used to create an area subsystem. The API is invoked by the use of the statement:
SBSACREATE(SID, IERR)
or:
BAT_SBSACREATE
SID
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
Integer IERR
5.2.2 SBSASET
This API is used to set an area subsystem. Once the subsystem is set, the application can query the
selected area subsystem by the use of the area subsystem selection APIs described in Chapter 6. The
API is invoked by the use of the statement:
SBSASET(SID, NUM, AREAS, IERR)
or:
BAT_ASYS
SID
NUM
AREAS(1) AREAS(NUM)
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
Integer NUM
Integer AREAS
Integer IERR
5-2
PSS/E-29
5.2.3 SBSADELETE
This API is used to delete a previously created area subsystem. The API is invoked by the use of
the statement:
SBSADELETE(SID, IERR)
or:
BAT_SBSADELETE
SID
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
Integer IERR
PSS/E-29
5-3
5.3.1 SBSBCREATE
This API is used to create a bus subsystem. The API is invoked by the use of the statement:
SBSBCREATE(SID, IERR)
or:
BAT_SBSBCREATE
SID
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer IERR
5.3.2 SBSBSET
This API is used to set a bus subsystem. Once the subsystem is set, the application can query the
selected bus subsystem by the use of the bus subsystem selection APIs described in Chapter 6. The
API is invoked by the use of the statement:
SBSBSET(SID, USEKV, BASEKV, NUMAREA, AREAS, NUMBUS, BUSES,
NUMOWNER, OWNERS, NUMZONE, ZONES, IERR)
or:
BAT_BSYS
SID USEKV BASEKV(1) BASEKV(2) NUMAREA AREAS(1)
AREAS(NUMAREA) NUMBUS BUSES(1) BUSES(NUMBUS) NUMOWNER
NUMZONE ZONES(1)
OWNERS(1) OWNERS(NUMOWNER)
ZONES(NUMZONE)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer USEKV
Real BASEKV(2)
Integer NUMAREA
5-4
PSS/E-29
Integer AREAS
Integer NUMBUS
Integer BUSES
Integer NUMZONE
Integer ZONES
Integer IERR
5.3.3 SBSBSETA
This API is used to set a bus subsystem using bus names. Once the subsystem is set, the application
can query the selected bus subsystem by the use of the bus subsystem selection APIs described in
Chapter 6. The API is invoked by the use of the statement:
SBSBSETA(SID, USEKV, BASEKV, NUMAREA, AREAS, NUMBUS, BUSES,
BUS_LEN, NUMOWNER, OWNERS, NUMZONE, ZONES, IERR)
or:
BAT_BSYS
SID USEKV BASEKV(1) BASEKV(2) NUMAREA AREAS(1)
AREAS(NUMAREA) NUMBUS busname(1) busname(NUMBUS) BUS_LEN
NUMOWNER OWNERS(1) OWNERS(NUMOWNER)
NUMZONE ZONES(1)
ZONES(NUMZONE)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer USEKV
Real BASEKV(2)
Integer NUMAREA
Integer AREAS
Integer NUMBUS
character BUSES
PSS/E-29
5-5
Integer BUSLEN
Integer NUMZONE
Integer ZONES
Integer IERR
5.3.4 SBSBDELETE
This API is used to delete a previously created bus subsystem. The API is invoked by the use of the
statement:
SBSBDELETE(SID, IERR)
or:
BAT_SBSBDELETE
SID
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer IERR
5.3.5 SBSBUSDSP
This API is used to enable or disable the updating of the bus subsystem selector dialogs during calls
to SBSBSET or SBSBSETA. The API is invoked by the use of the statement:
SBSBUSDSP(OPT, IERR)
or:
BAT_SBSBUSDSP
OPT
where:
Integer OPT
Integer IERR
5-6
PSS/E-29
5.3.6 SBSBSMEM
This API is used to "memorize" the current selected bus subsystem into a bus subsystem file. This
bus subsystem file may then be "recalled" at a later time to restore the selected bus subsystem. The
API is invoked by the use of the statement:
SBSBSMEM(SID, SFILE, IERR)
or:
BAT_BSYSMEM
SID
SFILE
where:
Integer SID
Is a valid bus subsystem id. Valid bus subsystem ids range from 0-3.
Character SFILE*260
Integer IERR
5.3.7 SBSBSRCL
This API is used to "recall" a selected bus subsystem saved in a bus subsystem file. The API is
invoked by the use of the statement:
SBSBSRCL(SID, SFILE, IERR)
or:
BAT_BSYSRCL
SID
SFILE
where:
Integer SID
Is a valid bus subsystem id. Valid bus subsystem ids range from 0-3.
Character SFILE*260
Integer IERR
PSS/E-29
5-7
5.4.1 SBSOCREATE
This API is used to create an owner subsystem. The API is invoked by the use of the statement:
SBSOCREATE(SID, IERR)
or:
BAT_SBSOCREATE
SID
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3.
Integer IERR
5.4.2 SBSOSET
This API is used to set an owner subsystem. Once the subsystem is set, the application can query
the selected owner subsystem by the use of the owner subsystem selection APIs described in
Chapter 6. The API is invoked by the use of the statement:
SBSOSET(SID, NUM, OWNERS, IERR)
or:
BAT_OSYS
SID
NUM
OWNERS(1) OWNERS(NUM)
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3.
Integer NUM
Integer OWNERS
Integer IERR
5-8
PSS/E-29
5.4.3 SBSODELETE
This API is used to delete a previously created owner subsystem. The API is invoked by the use of
the statement:
SBSODELETE(SID, IERR)
or:
BAT_SBSODELETE
SID
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3.
Integer IERR
PSS/E-29
5-9
5.5.1 SBSZCREATE
This API is used to create an zone subsystem. The API is invoked by the use of the statement:
SBSZCREATE(SID, IERR)
or:
BAT_SBSZCREATE
SID
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
Integer IERR
5.5.2 SBSZSET
This API is used to set an zone subsystem. Once the subsystem is set, the application can query the
selected zone subsystem by the use of the zone subsystem selection APIs described in Chapter 6.
The API is invoked by the use of the statement:
SBSZSET(SID, NUM, ZONES, IERR)
or:
BAT_ZSYS
SID
NUM
ZONES(1) ZONES(NUM)
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
Integer NUM
Integer ZONES
Integer IERR
5-10
PSS/E-29
5.5.3 SBSZDELETE
This API is used to delete a previously created zone subsystem. The API is invoked by the use of
the statement:
SBSZDELETE(SID, IERR)
or:
BAT_SBSZDELETE
SID
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
Integer IERR
PSS/E-29
5-11
5-12
PSS/E-29
CHAPTER
6
SUBSYSTEM SELECTION APIS
This chapter describes the APIs used to process and return selected area, bus, owner, and zone subsystems to the application. The subsystem selectors are used to select areas, buses, owners, and
zones for processing by the application. Their appropriate use, and associated APIs, are described
in the following subsections.
PSS/E-29
6-1
6.1.1 SBSADEF
This API is used to determine if an area subsystem has been defined. The API is invoked by the use
of the statement:
SBSADEF(SID, INIT)
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
Logical INIT
6.1.2 SBSALINIT
This API is used to initialize the subsystem to return areas. This call must be matched with a call to
SBSALTERM. The API is invoked by the use of the statement:
SBSALINIT(SID, ALL, INIT)
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
An area subsystem must have been previously defined.
Integer ALL
Integer INIT
Is the value to initialize the system at. Normally initialized with a value of 0.
6.1.3 SBSALAREA
This API is used to loop through all selected areas. SBSALINIT must have been called previously
to initialize the looping. The API is invoked by the use of the statement:
SBSALAREA(SID, AREA)
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
An area subsystem must have been previously defined.
Integer AREA
6-2
PSS/E-29
6.1.4 SBSALTERM
This API is called after all valid area numbers have been returned. Commonly called when
AREA = 0 is returned in a call to SBSALAREA. This call must match each call to SBSALINIT.
The API is invoked by the use of the statement:
SBSALTERM(SID)
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
An area subsystem must have been previously defined.
6.1.5 SBSAVLA
This API is used to determine if an area is valid in the selected area subsystem. This API does not
require any initialization before being invoked. This API makes no judgment on whether the area
is actually in use or not, only on whether the supplied area is in the selected areas list in the area
subsystem selector. The API is invoked by the use of the statement:
SBSAVLA(SID, AREA, EXIST)
where:
Integer SID
Is a valid area subsystem ID. Valid area subsystem IDs range from 0 to 3.
Integer AREA
Logical EXIST
PSS/E-29
6-3
6.2.1 SBSBDEF
This API is used to determine if a bus subsystem has been defined. The API is invoked by the use
of the statement:
SBSBDEF(SID, INIT)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Logical INIT
6-4
PSS/E-29
6.2.2 SBSBLAREANB
This API is used to loop through selected areas, zones, and owners and return them. The application
that calls this routine is interested in the area, zone, and owners selected, and will determine which
buses are selected as a result on its own. SBSBLAINIT must have been called previously to initialize the looping. The API is invoked by the use of the statement:
SBSBLAREANB(SID, AREA, ZONE, OWNER, FLAG)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer AREA
Integer ZONE
Integer OWNER
Integer FLAG
6.2.3 SBSBLBUSNB
This API is used maintain the structure of existing code where other calls are to SBSBLAREANB,
SBSBLZONENB, and SBSBLOWNERNB. This routine returns a FLAG = 1 on the first call, and
FLAG = 0 on subsequent calls. SBSBLAINIT must have been called previously to initialize the
looping. The API is invoked by the use of the statement:
SBSBLBUSNB(SID, FLAG)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer FLAG
6.2.4 SBSBLZONENB
This API is used to loop through selected zones, and owners and return them. The application that
calls this routine is interested in the zone and owners selected, and will determine which buses are
selected as a result on its own. SBSBLAINIT must have been called previously to initialize the
looping. The API is invoked by the use of the statement:
SBSBLZONENB(SID, ZONE, OWNER, FLAG)
PSS/E-29
6-5
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer ZONE
Integer OWNER
Integer FLAG
6.2.5 SBSBLOWNERNB
This API is used to loop through selected owners and return them. The application that calls this
routine is interested in the owners selected, and will determine which buses are selected as a result
on its own. SBSBLAINIT must have been called previously to initialize the looping. The API is
invoked by the use of the statement:
SBSBLOWNERNB(SID, OWNER, FLAG)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer OWNER
Integer FLAG
6.2.6 SBSVLAREA
This API is used to determine if an area is valid in the selected bus subsystem. This API does not
require any initialization before being invoked. This API makes no judgment on whether the area
is actually in use or not, only on whether the supplied area is in the selected areas list in the bus
subsystem selector. The API is invoked by the use of the statement:
SBSVLAREA(SID, AREA, EXIST)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer AREA
Logical EXIST
6-6
PSS/E-29
6.2.7 SBSVLBUS
This API is used to determine if a bus sequence number is valid in the selected bus subsystem. This
API does not require any initialization before being invoked. The API is invoked by the use of the
statement:
SBSVLBUS(SID, SEQNUM, OPT, EXIST)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer SEQNUM
Integer OPT
Is used to control ANDing of the bus sequence number with area, owner,
zone, and base KV selections.
OPT = 0, no ANDing, will return EXIST = .TRUE. if bus sequence
number was selected.
OPT = 1, use ANDing, will return EXIST = .TRUE. if bus sequence
number was selected and survived the ANDing.
Logical EXIST
6.2.8 SBSVLLOD
This API is used to determine if a load bus sequence number is valid in the selected bus subsystem.
This routines tests the bus number and base KV and the load area, owner, and zone values against
those selected in the subsystem selector. This API does not require any initialization before being
invoked. The API is invoked by the use of the statement:
SBSVLLOD(SID, SEQNUM, OPT, EXIST, AREA, ZONE,OWNER)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer SEQNUM
Integer OPT
PSS/E-29
6-7
Logical EXIST
Integer AREA
Is the area number to use in testing the load bus sequence number.
Integer ZONE
Is the zone number to use in testing the load bus sequence number.
Integer OWNER
Is the owner number to use in testing the load bus sequence number.
6.2.9 SBSVLMCBR
This API is used to determine if the machines and branches connected to a bus are valid in the
selected bus subsystem. The area, zone, and base kV values are taken from the bus. The ownership
values are passed as an array to the API. This API does not require any initialization before being
invoked. The API is invoked by the use of the statement:
SBSVLNUM(SID, SEQNUM, OPT, EXIST, NOWN, OWNARY)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer SEQNUM
Integer OPT
Logical EXIST
Integer NOWN
Integer OWNARY
6-8
PSS/E-29
6.2.10 SBSVLNUM
This API is used to determine if a bus number is valid in the selected bus subsystem. This API does
not require any initialization before being invoked. The API is invoked by the use of the statement:
SBSVLNUM(SID, BNUM, OPT, EXIST, AREA, ZONE, OWNER, BSKV)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer BNUM
Integer OPT
Logical EXIST
Integer AREA
Integer ZONE
Integer OWNER
Real BSKV
6.2.11 SBSVLOWNER
This API is used to determine if a owner is valid in the selected bus subsystem. This API does not
require any initialization before being invoked. This API makes no judgment on whether the owner
is actually in use or not, only on whether the supplied owner is in the selected owners list in the bus
subsystem selector. The API is invoked by the use of the statement:
SBSVLOWNER(SID, OWNER, EXIST)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer OWNER
Logical EXIST
PSS/E-29
6-9
6.2.12 SBSVLZONE
This API is used to determine if a zone is valid in the selected bus subsystem. This API does not
require any initialization before being invoked. This API makes no judgment on whether the zone
is actually in use or not, only on whether the supplied zone is in the selected zones list in the bus
subsystem selector. The API is invoked by the use of the statement:
SBSVLZONE(SID, ZONE, EXIST)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
Integer ZONE
Logical EXIST
6.2.13 SBSBLAINIT
This API is used to initialize the subsystem to return all buses for every returned area/owner/
zone/base kV. This API is used to return buses when additional testing is need on each bus. For
every area/owner/zone/base kV selected in the bus subsystem selector, every bus is returned. It is
left to the application to determine if the bus returned is really valid for the current area/owner/
zone/base kV. This call must be matched with a call to SBSBLTERM. The API is invoked by the
use of the statement:
SBSBLAINIT(SID, ALL, BYAREA, BYBUS, BYKV, BYOWNR, BYZONE)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer ALL
Logical BYAREA
Logical BYBUS
Logical BYKV
Logical BYOWNR
Logical BYZONE
6-10
PSS/E-29
6.2.14 SBSBLINIT
This API is used to initialize the subsystem to return buses. This call must be matched with a call
to SBSBLTERM. The API is invoked by the use of the statement:
SBSBLINIT(SID, ALL, OPT, BYAREA, BYBUS, BYKV, BYOWNR, BYZONE)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer ALL
Integer OPT
Is used to setup ANDing of selected buses with area, owner, zone, and
base kV selections.
OPT = 0, no ANDing, return all selected buses.
OPT = 1, use ANDing, return only those selected buses that survive the
ANDing.
Logical BYAREA
Logical BYBUS
Logical BYKV
Logical BYOWNR
Logical BYZONE
6.2.15 SBSBLAREA
This API is used to loop through all selected buses and return bus sequence numbers in reports that
are organized by area, then zone, then owner, and then bus. SBSBLINIT must have been called previously to initialize the looping. Sequence numbers are returned in alphabetic or numeric order
depending on the value of bus output option. The API is invoked by the use of the statement:
SBSBLAREA(SID, AREA, ZONE, OWNER, SEQNUM)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer AREA
Is returned as the current area number for the bus sequence number.
PSS/E-29
6-11
Integer ZONE
Is returned as the current zone number for the bus sequence number.
Integer OWNER
Is returned as the current owner number for the bus sequence number.
Integer SEQNUM
6.2.16 SBSBLBUS
This API is used to loop through all selected buses and return bus sequence numbers in reports that
are organized by bus. SBSBLINIT must have been called previously to initialize the looping.
Sequence numbers are returned in alphabetic or numeric order depending on the value of bus output
option. The API is invoked by the use of the statement:
SBSBLBUS(SID, SEQNUM)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer SEQNUM
6.2.17 SBSBLZONE
This API is used to loop through all selected buses and return bus sequence numbers in reports that
are organized by zone, then owner, and then bus. SBSBLINIT must have been called previously to
initialize the looping. Sequence numbers are returned in alphabetic or numeric order depending on
the value of bus output option. The API is invoked by the use of the statement:
SBSBLZONE(SID, ZONE, OWNER, SEQNUM)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer ZONE
Is returned as the current zone number for the bus sequence number.
Integer OWNER
Is returned as the current owner number for the bus sequence number.
Integer SEQNUM
6-12
PSS/E-29
6.2.18 SBSBLOWNER
This API is used to loop through all selected buses and return bus sequence numbers in reports that
are organized by owner, and then bus. SBSBLINIT must have been called previously to initialize
the looping. Sequence numbers are returned in alphabetic or numeric order depending on the value
of bus output option. The API is invoked by the use of the statement:
SBSBLOWNER(SID, OWNER, SEQNUM)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer OWNER
Is returned as the current owner number for the bus sequence number.
Integer SEQNUM
6.2.19 SBSBLTERM
This API is called after all valid bus sequence numbers have been returned. Commonly called when
SEQNUM = 0 is returned in a call to SBSBLBUS, SBSBLAREA, SBSBLZONE, or
SBSBLOWNER. This call must match each call to SBSBLINIT. The API is invoked by the use of
the statement:
SBSBLTERM(SID)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
6.2.20 SBSGTBKV
This API is used to return the selected Base kV range. The API is invoked by the use of the
statement:
SBSGTBKV(SID, KVMIN, KVMAX)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Real KVMIN
Real KVMAX
PSS/E-29
6-13
6.2.21 SBSGTFLG
This API is used to return the flags indicating how buses have been selected. The API is invoked
by the use of the statement:
SBSGTFLG(SID, ALL, BYAREA, BYBUS, BYKV, BYOWNR, BYZONE)
where:
Integer SID
Is a valid bus subsystem ID. Valid bus subsystem IDs range from 0 to 3.
A bus subsystem must have been previously defined.
Integer ALL
Logical BYAREA
Logical BYBUS
Logical BYKV
Logical BYOWNR
Logical BYZONE
6-14
PSS/E-29
6.3.1 SBSODEF
This API is used to determine if a owner subsystem has been defined. The API is invoked by the
use of the statement:
SBSZDEF(SID, INIT)
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3.
Logical INIT
PSS/E-29
6-15
6.3.2 SBSOLINIT
This API is used to initialize the subsystem to return owners. This call must be matched with a call
to SBSOLTERM. The API is invoked by the use of the statement:
SBSOLINIT(SID, ALL, INIT)
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3. A owner subsystem must have been previously defined.
Integer ALL
Integer INIT
Is the value to initialize the system at. Normally initialized with a value of 0.
6.3.3 SBSOLOWNER
This API is used to loop through all selected owners. SBSOLINIT must have been called previously
to initialize the looping. The API is invoked by the use of the statement:
SBSOLOWNERS(SID, OWNER)
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3. A owner subsystem must have been previously defined.
Integer OWNER
6.3.4 SBSOLTERM
This API is called after all valid owner numbers have been returned. Commonly called when
OWNER = 0 is returned in a call to SBSOLOWNER. This call must match each call to SBSOLINIT. The API is invoked by the use of the statement:
SBSOLTERM(SID)
where:
Integer SID
6-16
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3. A owner subsystem must have been previously defined.
PSS/E-29
6.3.5 SBSOVLO
This API is used to determine if an owner is valid in the selected owner subsystem. This API does
not require any initialization before being invoked. This API makes no judgment on whether the
owner is actually in use or not, only on whether the supplied owner is in the selected owners list in
the owner subsystem selector. The API is invoked by the use of the statement:
SBSOVLO(SID, OWNER, EXIST)
where:
Integer SID
Is a valid owner subsystem ID. Valid owner subsystem IDs range from
0 to 3.
Integer OWNER
Logical EXIST
PSS/E-29
6-17
6.4.1 SBSZDEF
This API is used to determine if a zone subsystem has been defined. The API is invoked by the use
of the statement:
SBSZDEF(SID, INIT)
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
Logical INIT
6-18
PSS/E-29
6.4.2 SBSZLINIT
This API is used to initialize the subsystem to return zones. This call must be matched with a call
to SBSZLTERM. The API is invoked by the use of the statement:
SBSZLINIT(SID, ALL, INIT)
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
A zone subsystem must have been previously defined.
Integer ALL
Integer INIT
Is the value to initialize the system at. Normally initialized with a value of 0.
6.4.3 SBSZLZONE
This API is used to loop through all selected zones. SBSZLINIT must have been called previously
to initialize the looping. The API is invoked by the use of the statement:
SBSZLZONE(SID, ZONE)
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
A zone subsystem must have been previously defined.
Integer ZONE
6.4.4 SBSZLTERM
This API is called after all valid zone numbers have been returned. Commonly called when
ZONE = 0 is returned in a call to SBSZLZONE. This call must match each call to SBSZLINIT. The
API is invoked by the use of the statement:
SBSZLTERM(SID)
where:
Integer SID
PSS/E-29
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
A zone subsystem must have been previously defined.
6-19
6.4.5 SBSZVLZ
This API is used to determine if a zone is valid in the selected zone subsystem. This API does not
require any initialization before being invoked. This API makes no judgment on whether the zone
is actually in use or not, only on whether the supplied zone is in the selected zones list in the zone
subsystem selector. The API is invoked by the use of the statement:
SBSZVLZ(SID, ZONE, EXIST)
where:
Integer SID
Is a valid zone subsystem ID. Valid zone subsystem IDs range from 0 to 3.
Integer ZONE
Logical EXIST
6-20
PSS/E-29
6.5.1 SBSRBDAL
This API is used to refresh the area displays in the area and bus subsystem selectors. The API is
invoked by the use of the statement:
SBSRBDAL(SID)
where:
Integer SID
6.5.2 SBSRBDBL
This API is used to refresh the bus display in the bus subsystem selectors. The API is invoked by
the use of the statement:
SBSRBDBL(SID)
where:
Integer SID
6.5.3 SBSRBDOL
This API is used to refresh the owner displays in the owner and bus subsystem selectors. The API
is invoked by the use of the statement:
SBSRBDOL(SID)
where:
Integer SID
6.5.4 SBSRBDZL
This API is used to refresh the zone displays in the zone and bus subsystem selectors. The API is
invoked by the use of the statement:
SBSRBDZL(SID)
where:
Integer SID
PSS/E-29
6-21
6-22
PSS/E-29