Dim Statement; End Statement; Exponent Function; Flame Out Alarm Function - ABB PGC2000 Operation And Service Manual

Process gas chromatograph
Table of Contents

Advertisement

Note: In the example, N represents one of the following numbers that
indicates if the function was successful, or why it was unsuccessful, where:
-1 means method% is not in the 1-8 range.
-2 means the method table does not exist.
-3 means function$ did not have a valid TCF.
>0 is the number of TCFs deleted from the method table.

DIM Statement

Description:
Allocates storage for an array of variables.
Syntax:
DIM variable(extent)[,variable(extent)]....
Comments:
variable is the variable name of the array.
extent is the number of elements in the array.
Notes: a)
Only one dimension is allowed.
b)
c)
Example:
0020 DIM A!(N_COMP(1)),B$(10),C%(50)
Declares an array A! of floating point variables with as many elements as
there are components in analysis method 1, array B$ of 10 strings, and
array C% of 50 integer variables.

END Statement

Description:
Indicates that program execution is complete.
Syntax:
END
Comments:
END is a statement that may appear anywhere in the program; if not, it is
assumed to follow the last statement of the program.
Example:
0010 IF ALARM THEN END
For this example, when an alarm condition exists, program execution
terminates.

EXPONENT Function

Description:
Returns e (i.e., 2.71828) raised to the power of the floating point expression.
Syntax:
EXP(fp!)
Comments:
fp! is a floating point expression.
Example:
0010 A! = EXP(T!)
Raises e to the power of floating point variable T! and assigns it to floating
point variable A!.

FLAME OUT ALARM Function

Description:
Returns the state of the GCC Flame Out Alarm.
Syntax:
FLAME_OUT_ALARM
Example:
0010 IF FLAME_OUT_ALARM GOTO 100

FLOATING POINT Conversion Routine

Description:
Returns the Floating Point value of an expression.
Syntax:
FLT(integer expression)
Example:
0010 A! = FLT(I)
The value of integer variable I is converted to a floating point value and
assigned to floating point variable A!.
10-10
Array subscripts must be from 1 to the array dimension (extent).
To use a variable as an array, it must be declared before use in the
DIM statement.
2000-OSM, F1

Advertisement

Table of Contents
loading

Table of Contents