Epson RC170 Guia do Utilizador Página 170

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 312
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 169
6. The SPEL+ Language
6.3 Commands and statements
Commands and statements consist of a SPEL
+
instruction followed by the parameters for
that instruction.
A command is executed immediately. You can execute commands from the Command
window or from the Macros dialog box.
Statements can be used only in programs.
Statements can include more than one SPEL
+
instruction by using a semi-colon (;) to
separate instructions.
The maximum length for a statement is 200 characters. This includes the line number.
6.4 Function and variable names (Naming restriction)
Function and variable names can include up to 32 alphanumeric characters and the
underscore character. Characters can be upper case or lower case.
The following names are valid:
Function main
Real real_var
Integer IntVar
Function and variable names cannot begin with a numeric digit or underscore.
The strings that are already used as keywords cannot be use. (Example: Go / On)
String variables must have an additional dollar sign ('$') suffix, as shown in the example
below:
Function Test
String modname$
Print "Enter model name:"
Line Input modname$
Print "model is ", modname$
Fend
Restriction for naming in SPEL+ language
- Characters can be alphanumeric characters or underscore character.
- Use alphabets for the first letter.
- Characters can be upper case or lower case.
- No keywords can be used.
- Maximum limits of names are as follows.
Name Max. limit
Point label 16
I/O label 16
User error label 16
Function name 32
Variable name 32
Line label 32
152 EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4
Vista de página 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 311 312

Comentários a estes Manuais

Sem comentários