Toshiba PROSEC T1-16S User Manual page 209

Programmable controller basic hardware and function
Hide thumbs Also See for PROSEC T1-16S:
Table of Contents

Advertisement

FUN 137
SUBR
Expression
[ SUBR (n) ]
Function
This instruction indicates the begging of a subroutine.
Execution condition
Input
-
Execution
Operand
Name
X
n Subroutine
number
Example
The begging of the subroutine number 8 is indicated.
Main program
| | [ CALL N.008 ]
Note
The possible subroutine number is 0 to 15 (T1) or 0 to 255 (T1S).
Refer to the CALL instruction (FUN 128) and the RET instruction (FUN 129).
The SUBR instruction can be programmed only in the program type 'Subroutine'.
Nesting of subroutine is not allowed. That is, the CALL instruction cannot be used in a
subroutine.
No other instruction cannot be placed on the rung of the SUBR instruction.
Subroutine entry
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
Output
-
Register
C
D
Subroutine
[ SUBR (008)]
[ RET ]
Basic Hardware and Function
6F3B0253
7. Instructions
Constant Index
I
J
K
(Note)
207

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents