03.01.2013 Views

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

FUN 137 SUBR Subroutine entry<br />

Expression<br />

⎟−[ SUBR (n) ]−−⎢<br />

Function<br />

This instruction indicates the begging of a subroutine.<br />

Execution condition<br />

Input Operation Output<br />

- Execution -<br />

6F3B0253<br />

7. Instructions<br />

Operand<br />

Name Device Register Constant Index<br />

n Subroutine<br />

number<br />

Example<br />

X Y R S T. C. XWYWRWSW T C D I J K<br />

The begging of the subroutine number 8 is indicated.<br />

Main program Subroutine<br />

| | [ CALL N.008 ] [ SUBR (008)]<br />

[ RET ]<br />

Note<br />

• The possible subroutine number is 0 to 15 (<strong>T1</strong>) or 0 to 255 (<strong>T1</strong>S).<br />

• Refer to the CALL instruction (FUN 128) and the RET instruction (FUN 129).<br />

• The SUBR instruction can be programmed only in the program type ‘Subroutine’.<br />

• Nesting of subroutine is not allowed. That is, the CALL instruction cannot be used in a<br />

subroutine.<br />

• No other instruction cannot be placed on the rung of the SUBR instruction.<br />

√ (Note)<br />

Basic Hardware and Function 207<br />

<strong>CTi</strong> <strong>Automation</strong> - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!