EasyManua.ls Logo

Toshiba V200 Series - Subroutines

Toshiba V200 Series
140 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Page 113
7.5.5 Subroutines
In the program type ‘Subroutinetotal 256 numbers of subroutines can be programmed.
The subroutine is not an independent program. It is called from other program types (main program, sub-program,
interrupt program) and from other subroutines.
One subroutine is started with the CALL instruction, and ended by the RET instruction.
It is necessary to assign a subroutine number to the CALL instruction.
Subroutine number
The RET instruction has no subroutine number.
Main program
Execution
flow
Subroutine
[ SUBR (000) ]
[ CALL N.000 ]
[ RET ]
Note: (1) Multiple subroutines can be programmed in a block. However, one subroutine in one block
is recommended.

Table of Contents

Related product manuals