Chr$ Function; Clear Command; Clock Error Alarm Function; Common Floating Point Array - ABB PGC2000 Operation And Service Manual

Process gas chromatograph
Table of Contents

Advertisement

Syntax:
CHAIN n%
Comments:
n% is the BASIC program (1-8) to be chained to.
Example:
0010 IF PREV_STRM = 2 THEN CHAIN 2
Transfers control to program two, when stream two was analyzed in the
previous analysis cycle.

CHR$ Function

Description:
Converts an integer to a one character long string.
Syntax:
CHR$(integer%)
Comments:
integer% is a number between 0 and 255.
Example:
0010 A$ = "AREA MONITORING REPORT:"
0020 REM TACK ON SOME LINE FEEDS
0030 A$ = A$ + CHR$(10) + CHR$(10)

CLEAR Command

Description:
Clears all the alarms.
Syntax:
CLEAR
Example:
0020 CLEAR

CLOCK ERROR ALARM Function

Description:
Returns the state of GCC Clock Error Alarms.
Syntax:
CLOCK_ERROR_ALARM
Example:
0010 IF CLOCK_ERROR_ALARM GOTO 12

COMMON Floating Point Array

Description:
Is a predeclared array of floating point variables shared among all BASIC
programs. A reference to a particular element of COMMON! by any of the
BASIC programs accesses the same locations in memory. Values can be
stored in COMMON! by a BASIC program and then be accessed by another
BASIC program. COMMON! passes information and data values between
BASIC programs. The operator sets the maximum value for this array on the
Digital Configuration screen.
Syntax:
COMMON!(index%)
Comments:
index% are integers representing start point and end point of array.
Example:
0010 FOR I = 1 TO 3048
0020 COMMON!(I) = FLT(I)
0030 NEXT I
0040 END

COMMON String Array

Description:
Is a predeclared array of string variables shared between all BASIC
programs. A reference to a particular element of COMMON$ by any BASIC
program 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.
Syntax:
COMMON$(index%)
Comments:
index% is an integer from 1 to 10.
Example:
0010 A$ = "ALARM HAS OCCURRED"
0020 B$ = "NO ALARMS"
0030 IF ALARM THEN COMMON$(1) = A$
0040 : ELSE COMMON$(1) = B$
2000-OSM, F1
10-7

Advertisement

Table of Contents
loading

Table of Contents