Toshiba PROSEC T1-16S User Manual page 205

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

Advertisement

FUN 128
CALL
Expression
Input
[ CALL N. n ]
Function
When the input is ON, this instruction calls the subroutine number n.
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
X
n Subroutine
number
Example
When X007 is ON, the subroutine number 8 is called. When the program execution is returned
from the subroutine, the output is turned ON.
Main program
| | [ CALL N.008 ]
Note
The possible subroutine number is 0 to 15 (T1) or 0 to 255 (T1S).
Refer to the SUBR instruction (FUN 137).
In case of T1, nesting of subroutines is not allowed. That is, the CALL instruction cannot be
used in a subroutine.
In case of T1S, nesting of subroutines is possible. (up to 3 levels)
The CALL instruction can be used in an interrupt program. However, it is not allowed that the
same subroutine is called from an interrupt program and from main program.
Subroutine call
Output
Operation
Device
Y
R
S
T.
C. XW YW RW SW T
Output
OFF
ON
Register
C
D
Subroutine
[ SUBR (008)]
[ RET ]
Basic Hardware and Function
6F3B0253
7. Instructions
Constant Index
I
J
K
(Note)
203

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents