Alarm Function; Asc Function; Assign Stream Command; Bprint Statement - ABB PGC2000 Operation And Service Manual

Process gas chromatograph
Table of Contents

Advertisement

A Forced Gate TCF is added to method table 1 at 100 seconds.
Note:
indicate if the function was successful, or why it was unsuccessful, where:

ALARM Function

Description:
Returns the state of GCC Alarms.
Syntax:
ALARM
Example:
0010 IF ALARM GOTO 100

ASC Function

Description:
Converts the first character of a string to an integer.
Syntax:
ASC(string$)
Example:
0010 A$ = CHECKSUM STRING
0020 CKS = 0;
0030 REM CALCULATE CHECKSUM OF A$
0040 FOR J = 1 TO LEN(A$)
0050 CKS = ASC(MID$(A$,J,1))
0060 NEXT J

ASSIGN STREAM Command

Description:
Specifies the stream analysis method.
Syntax:
ASSIGN(stream%,method%)
Comments:
stream% is the stream to be assigned (from 1 to the maximum number of
streams).
method% is the method table (1-8).
Example:
0010 ASSIGN(5,1)
Stream five is assigned method one.

BPRINT Statement

Description:
Functions identically to LPRINT except BPRINT converts numeric values
into a string and places it in a string variable. See LPRINT statement for all
options.
Syntax:
BPRINT TO string_var$ [USING format$;][expression[,expression]...]
Comments:
string_var$ is a string variable.
format$ is a string constant or string variable whose value specifies the
format for conversions as defined for LPRINT.
Example 1:
0010 BPRINT TO A$ USING %3D;0,-1,
0020 :10,100
will put the following into A$: 000 0-1 010 100
Example 2:
0010 BPRINT TO A$ USING %9.2R;-0.12,
0020 :100.23
will put the following into A$: - 0.12 100.23

CHAIN Statement

Description:
Chains to another program.
10-6
In the example, N represents one of the following numbers which is used to
0 means the TCF was successfully added to the method table.
-1 means there is no room to add TCFs.
-2 means time% has exceeded the cycle time of the method table.
-3 means function$ did not have a valid TCF.
-4 means value$ was not valid.
-13 means method% is not in the range 1-8.
2000-OSM, F1

Advertisement

Table of Contents
loading

Table of Contents