Toshiba PROSEC T1-16S User Manual page 208

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

Advertisement

7. Instructions
FUN 133
NEXT
Expression
Input
[ NEXT ]
Output
Function
This instruction configures a FOR-NEXT loop.
If the input is OFF, The repetition is forcibly broken. and the program execution is moved to the
next instruction.
Execution condition
Input
OFF
Forcibly breaks the repetition
ON
Repetition
Operand
No operand is required.
Example
When R005 is ON, the program segment between FOR and NEXT is executed 30 times in a
scan. In the above example, the rung 3 is executed 30 times. As a result, the data of D0000 to
D0029 are transferred to D0500 to D0529. (Block transfer)
Note
The FOR instruction must be used with a corresponding NEXT instruction one by one.
Nesting of the FOR-NEXT loop is not allowed. That is, the FOR instruction cannot be used in a
FOR-NEXT loop.
The FOR and NEXT instructions cannot be programmed on the same rung.
The following connection is not allowed.
| |
[ FOR n ]
| |
206
T1-16S User's Manual
NEXT (FOR-NEXT loop)
Operation
| |
[ NEXT ]
| |
Output
OFF
ON
6F3B0253

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents