Denso RC5 Especificações Página 63

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 692
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 62
Chapter 2 Program Flow
2-1
2.1 Calling a Program and Subroutine
A section of a program that repeats a specific motion can be put out of the
program and called if required.
The method of putting this section in the same program is called a subroutine.
If this section is independently put in a separate file as another program and
that program is called, this is referred to as calling a program.
A subroutine must be included in the same file as the calling program.
The program of an independent separate file can be called from various
programs and commonly used.
If a series of work is organized as a unit of a subroutine or another program the
same contents do not have to be described repeatedly. This is effective for
correcting descriptions, reducing the creation time and otherwise improving the
ease of reading programs.
Program name
RETURN
statement
GOSUB
statement
Program declaration statement
Program PRO1
Program MOTION
END
statement
Subroutine
Fig. 2-1 Difference Between Calling a Program and Calling a Subroutine
*SUBROUTINE
*SUBROUTINE
Vista de página 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 691 692

Comentários a estes Manuais

Sem comentários