Vista Basic Line Format; Character Set; Constants - ABB PGC2000 Operation And Service Manual

Process gas chromatograph
Table of Contents

Advertisement

The maximum number of programs allowed is 8.
In each program,
the maximum number of source program lines allowed is 50;
the maximum number of variables allowed is 49;
the maximum number of characters allowed in a string is 255;
the maximum number of FOR...NEXT statements allowed is 11;
the maximum number of nested GOSUB statements allowed is 10;
an equation cannot be more than 25 variables in length.

Vista BASIC Line Format

Vista BASIC program lines are contained in the Text Fields of edit lines and have the following
format:
[nnnnn] statement[: statement...]
Where "nnnnn" is the optional statement number in the range 1 through 65535. The statement
number is only required when it is the destination of a GOTO or GOSUB.
Where the statement is a valid Vista BASIC statement, a line may contain more than one statement
separated by colons (:). A statement can span more than one line by using a continuation character
(:) in the first column of the continuation line.

Character Set

Character
_ underscore
= equal sign
+ plus sign
-
minus sign
*
asterisk
/
slash
(
left parenthesis
)
right parenthesis
> greater than
< less than
,
comma
:
colon
.
period
"
quotation mark
% percent sign
$ dollar sign
!
exclamation point

Constants

Integer Constants: Integer constants are whole numbers between -32768 and 32767,
inclusive. A decimal point indicates a floating point constant and is not allowed in
integer constants. Negative values are produced with the unary negation operator (-).
Floating Point Constants: A floating point constant is a number that contains a decimal
point and must have a digit or unary negation operator for the first character. Floating
point constants are of two forms: fixed point form and exponential form. Fixed point
constants must have a leading digit and decimal point somewhere within the number.
10-2
Usage
Identifiers
Assignment and Relational Operator
Addition Operator
Subtraction Operator and Unary Negation
Multiplication Operator
Division Operator
Delimiter
Delimiter
Relational Operator
Relational Operator
Argument Separator
Statement Separator/Continuation Character
Decimal Point
String Delimiter
Integer Type Declaration
String Type Declaration
Single Precision Type Declaration
2000-OSM, F1

Advertisement

Table of Contents
loading

Table of Contents