EasyManua.ls Logo

ABB PGC5000 Generation 2 - COMPONENT NAME$ Function; COMPONENT TYPE Function; COMPONENT UNITS Function; CURRENT STREAM Function

ABB PGC5000 Generation 2
142 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
892 J006 MNAH | PGC5000 G EN 2 | 123
accesses the same locations in memory. Values can be stored in COMMON$ by a
BASIC program and then accessed by another BASIC program. The COMMON$ array
passes strings between BASIC programs. This array shall provide for the storage of
128 character strings of length 128.
Syntax: COMMON$( I )
Comments: “I” is an index into the array.
Example: 0010 A$ = "ALARM HAS OCCURRED"
0020 B$ = "NO ALARMS"
0030 IF ALARM THEN
0040 COMMON$( I ) = A$
0050 ELSE
0060 COMMON$( I ) = B$
0070 ENDIF
7.4.15 COMPONENT NAME$ function
Description: Returns the name of the nth component in the analysis report.
Syntax: COMPONENT_NAME$( n )
Comments: n is the nth component in the analysis report
Example: 0010 LPRINT COMPONENT_NAME$( 1 )
7.4.16 COMPONENT TYPE function
Description: Returns a value representing the type of the component (Measured or Calculated).
Syntax: COMPONENT_TYPE( component$ )
Comments: component$ is a string variable (or constant) containing the component name.
Return values:
0 = Measured
1 = Calculated
Example: 0010 IF COMPONENT_TYPE( "N2" ) <> 0 THEN
0020 LPRINT COMPONENT_CONCENTRATION( "N2" )
0030 ENDIF
If the Component Type of the component named “N2” is calculated, print the
component’s value.
7.4.17 COMPONENT UNITS function
Description: Returns the Units Of Measure of the named component.
Syntax: COMPONENT_UNITS$( component$ )
Comments: component$ is a string variable (or constant) containing the component name.
Example: 0010 LPRINT COMPONENT_UNITS$( “Methane” )
7.4.18 CURRENT STREAM function
Description: Returns the stream currently under analysis. (Evaluate adding function to return
purging Stream)
Syntax: CURRENT_STREAM$( schedule$ )
Comments: schedule$ is a string variable (or constant) containing the schedule name for which the
current stream is desired.
Example: 0010 IF CURRENT_STREAM$( “Schedule 1” ) = “ST506” THEN
0020 GOSUB HydrogenStream:
0030 ENDIF

Table of Contents

Related product manuals