Rockwell-automation 57C610 Enhanced Basic Language, AutoMax Manual do Utilizador Página 31

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 146
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 30
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 BO
X F
AULT"
MESSAGE$ = SECTION 12 AIR PRESSURE SAFETY VALVE
FAULT"
PART_MES
SAGE$ = LEF
T$(SECTION 12 AIR PRESSURE
SAFETY VAL
VE F
AUL
T", 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 VAL
VE F
AULT"
(Valid string constant used in a print statement.)
 
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 F
ALSE" or OFF
."
The following are valid boolean constants:
SYSTEM_READY@ = TRUE
OVER_TEMP@ = OFF
Vista de página 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 145 146

Comentários a estes Manuais

Sem comentários