6F3B0250
Basic Hardware and Function 225
7. Instructions

FUN 137 SUBR Subroutine entry

Expression
÷-[ SUBR (
n
) ]--ê
Function
This instr uct ion indicates the begg ing of a subroutine.
Execution condition
Input Operation Output
-Execution -
Operand
Name Device Re
g
ister Constant Index
X Y R S T. C. XW YW RW SW T C D I J K
n
Subroutine
number Ö (Note)
Example
The begging of t he subroutine number 8 is indicated.
Main program Subroutine
| | [ CALL N.008 ] [ SUBR (008)]
[ RET ]
Note
· The possible subrout ine num ber is 0 to 15 (T1) or 0 t o 255 ( T1S).
· Refer to the CALL instruction (FUN 128) and the RET instruction (FUN 129).
· The SUBR instruct ion can be pr ogrammed only in the program type ‘Subroutine’.
· Nesting of subroutine is not allowed. That is, the CALL instr uction cannot be used in a subroutine.
· No other instruct ion cannot be placed on the rung of the SUBR instr uct ion.
CTi Automation - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net