Toshiba PROSEC T1 User Manual page 223

Programmable controller
Hide thumbs Also See for PROSEC T1:
Table of Contents

Advertisement

FUN 128
Expression
Input -[ CALL N. n ]- Output
Function
When the input is ON, this instruction calls the subroutine number n .
Execution condition
Input
OFF
No execution
ON
Execution
Operand
Name
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.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
CALL
Subroutine call
Operation
Device
X
Y
R
S
T.
C. XW YW RW SW T
Output
OFF
ON
Register
C
D
Subroutine
[ SUBR (008)]
[ RET ]
Basic Hardware and Function
6F3B0250
7. Instructions
Constant Index
I
J
K
Ö (Note)
221

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prosec t1s

Table of Contents