Rockwell Automation Allen-Bradley SLC 500 BASIC Reference Manual page 21

Hide thumbs Also See for Allen-Bradley SLC 500 BASIC:
Table of Contents

Advertisement

Variable Names
Variables may represent either numeric values or strings. Variable names can only
be eight characters long. The module compares the first, last, and number of
characters in a variable name with the first, last, and number of characters in other
variable names to determine if it is a unique variable name. The characters allowed
in a variable name are letters, numbers, and the decimal point. Special type
declaration characters are also allowed.
A variable can be a letter (for example
• single-dimension expression, (example:
• number followed by a single-dimension expression (example:
P7(10*SIN(X)), W8(A + C)
• number (0 to 9) or letter (example:
following combinations:
Reserved words (words already used in BASIC functions or
IMPORTANT
statements) cannot be used as variable names.
Variable Types
Type declaration characters indicate what a variable represents. The following type
declaration character is recognized:
Character
Variable Type
$
String variable
The only other legal variable type is a floating-point variable. Floating-point
variables do not require a type declaration.
,
, or
) followed by a:
A
X
I
J(4), G(A+6), I(10*SIN(X)
)
AA, AC, XX, A1, X3, G8
CR, DO, IE, IF, IP, ON, PI, SP, TO, UI, UO
Data Types
2-5
)
A1(8),
) except for the
Publication 1746-RM001A-US-P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Allen-bradley slc 500 basic-t1746-bas1746-bas-t

Table of Contents