Denso RC5 Especificações Página 197

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 692
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 196
Chapter 8 PAC Language Syntax
8-15
8.8.5 Calling Defined Process
If a part of a program that repeats a particular motion is separated, the part can
be called as it is required. This is referred to as a calling defined process.
For the calling defined process there are two kinds of calling; subroutine calling
and program calling.
[ 1 ] Subroutine
If a subroutine is called, designate a destination with a label in a GOSUB
statement.
The subroutine must be written in the same file as the program to be called.
The last line of the subroutine should have a RETURN statement. After a
series of processes are performed, the RETURN statement is executed and
control is returned to the next line in the program which called the subroutine.
Subroutine Calling Structure
Main routine
(Calling routine)
Subroutine
*SUBROUTINE:
*SUBROUTINE:
Vista de página 196
1 2 ... 192 193 194 195 196 197 198 199 200 201 202 ... 691 692

Comentários a estes Manuais

Sem comentários