Subroutine techniques
Similar movement sequences and function-flows that are repetitive in nature, can be implemented as sub routines. There are two types of sub-routines:
- local sub-routines,
- global sub-routines or cycles
Several sub-routines (local or global) nested one into another can be called. Thus, the number of sub-programs used as well as the nesting depth is firmly given [6]-6.24.
The transfer of variables from main program to the sub-routines happens indirectly through P-parameters or through specific transfer parameters directly in the cycle call.