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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FUN 132 FOR FOR (FOR-NEXT loop)<br />

Expression<br />

Input −[ FOR n ]− Output<br />

6F3B0253<br />

7. Instructions<br />

Function<br />

When the input is ON, the program segment between FOR and NEXT is executed n times<br />

repeatedly in a scan.<br />

When the input is OFF, the repetition is not performed. (the segment is executed once)<br />

Execution condition<br />

Input Operation Output<br />

OFF No repetition OFF<br />

ON Repetition ON<br />

Operand<br />

Name Device Register Constant Index<br />

n Repetition<br />

times<br />

Example<br />

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

√ √ √ √ √ √ √ √ √ √ 1 - 32767<br />

This segment is executed 30 times repeatedly in a scan.<br />

When R005 is ON, the program segment between FOR and NEXT is executed 30 times in a<br />

scan.<br />

R005<br />

| | [ FOR 30 ]<br />

[ NEXT ]<br />

Executed 30 times in a scan when<br />

R005 is ON.<br />

Basic Hardware and Function 205<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!