2 constants – Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 28

4Ć8
4.1.4
PreĆdefined Common Memory Variables
The following common memory variables are preĆdefined for every
rack. However, they do not appear on the form for common memory
variables. You must enter these variable names on the form if you
want to use these variables in application tasks.
AUTORUNSTATUS@ Ć True when AUTO RUN is enabled for the
rack; false if AUTO RUN is not enabled
FORCINGSTATUS@ Ć True when a variable is forced in the rack;
false when no variables are forced in the
rack
BATTERYSTATUS0@ Ć True when the onĆboard battery of the
Processor module or Common Memory
module in slot 0 is OK
BATTERYSTATUS1@ Ć ăIăIăIăIăIăIăIăIăIăIăIăIă1ăIăIăI
BATTERYSTATUS2@ Ć ăIăIăIăIăIăIăIăIăIăIăIăIă2ăIăIăI
BATTERYSTATUS3@ Ć ăIăIăIăIăIăIăIăIăIăIăIăIă3ăIăIăI
BATTERYSTATUS4@ Ć ăIăIăIăIăIăIăIăIăIăIăIăIă4ăIăIăI
4.2
Constants
A constant, also known as a literal, is a fixed value that is not
associated with a variable name. Listed below are the five types of
constants that can be used in AutoMax, along with their size
limitations.
1. Single and double integer constants (whole numbers)
2. Hexadecimal constants (whole numbers in base 16 or hex"
format)
3. Real (decimal) constants
4. String constants (alphanumeric and/or special characters)
5. Boolean constants
4.2.1
Integer Constants
An integer constant is a whole number with no fractional part. For
example, the following numbers are all integer constants:
29
-8
3432
1
12345
205
The following are not integer constants:
1.6
.08
754.2
5.2041E+06
34
1
/
2
95.3
Recall that BASIC integer constants must fall in the range -32768 to
+32767 when used as single 16Ćbit integer variables (ending in %),
or in the range -2147483648 to +2147483647 when used as
double (32Ćbit) integer variables (ending with !). If you specify a
number outside the appropriate range, BASIC prints a compiler
error message telling you to replace the number with one within the
proper limits.