Rockwell Automation 57C610 Enhanced Basic Language, AutoMax User Manual
Page 31

4Ć11
The following are invalid string constants and the reasons that they
are invalid:
WRONG TERMINATOR' (Surrounding quotes must be of same
type.)
`SAME HERE" (Surrounding quotes must be of same type.)
NO TERMINATOR (No closing double quote.)
The following are examples of valid string constants assigned to
string variables and string constants used as intermediate values in
expressions:
MESSAGE$ = GEAR BOX FAULT"
MESSAGE$ = SECTION 12 AIR PRESSURE SAFETY VALVE
FAULT"
PART_MESSAGE$ = LEFT$(SECTION 12 AIR PRESSURE
SAFETY VALVE FAULT", 12)
(Valid string constant not assigned to a variable directly but used
an an intermediate value to a function.)
PRINT SECTION 12 AIR PRESSURE SAFETY VALVE FAULT"
(Valid string constant used in a print statement.)
4.2.5
Boolean Constants
With integers and strings, a constant is used in initializing or
assigning a value to a variable. Boolean variables must be assigned
the values of true or false. The two boolean constants are TRUE" or
ON" and FALSE" or OFF."
The following are valid boolean constants:
SYSTEM_READY@ = TRUE
OVER_TEMP@ = OFF