EasyManua.ls Logo

Delta VP3000 Series - Page 308

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development PlatformVP3000
299
Example 2
When the programs between FOR-NEXT are not to be executed, you can use BREAK
instruction to jump out. The following programs are two layer of loop (0–6, 2–5), when the
program operation is finished: D10 = 10, D11 = 6, D1 = 10.
D11 executes six times in the loop of second layer, D11 > 5, and then jumps out the loop of
second layer to no.6, the rest of the number for D1 loop is five at the moment.
Only jump out one layer of loop, so the operation will go back to no.1 and start.
When enter the second layer of loop again, D11 > 5, so the loop jump out directly. The rest of
the number for D1 loop is 10.
Repeat this until the end of the first layer of loop, D10 = 10.
Example 3
If you want the operation to jump out all layers of loops, it’s recommended to set another flag
and use BREAK after every NEXT. See the figure below, when the program operation is
finished, D10 = 1, D11 = 6, D12 = 0, D1 = 5, D2 = 10.

Table of Contents

Related product manuals