Denso RC5 Especificaciones Pagina 185

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 692
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 184
Chapter 8 PAC Language Syntax
8-3
8.3 Label
A label can be used to indicate a branch destination and the position of a
statement in a program.
The following rules apply when using a label.
A label name starts with an asterisk ( * ) .
The second letter of a label name must be an arbitrary alphabet letter.
Any combination of alphabet letters and numerals can be used for the third
letter and the following letters in a label name.
The last letter of a label name must be a colon ( : ) .
A reserved word cannot be used as a label name.
A label name to be referred to must be placed at the head of a line.
An error occurs if the same label name to be referred to is duplicated.
The range in which a label can be referred to is only in the program where
the label is present.
PROGRAM WITH_LABEL
IF IO138=1 THEN*ACTION: ELSE *NOACTION:
*ACTION: SPEED 100
MOVEP,P1
DELAY 200
MOVEP,P2
*NOACTION: DELAY 200
END IF
END
Program Example Using Label
Vista de pagina 184
1 2 ... 180 181 182 183 184 185 186 187 188 189 190 ... 691 692

Comentarios a estos manuales

Sin comentarios