Delta DVP-ES2 User Manual Page 173

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 172
3. Instruction Set
3-57
API Mnemonic Operands Function
08
FOR
Start of a FOR-NEXT Loop
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
S * * * * * * * * ***
FOR: 3 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S: The number of times for the loop to be repeated.
API Mnemonic Function
09
NEXT End of a FOR-NEXT Loop
Controllers
ES2/EX2 SS2
SA2
SE
SX2
OP Descriptions Program Steps
N/A
No contact to drive the instruction is required.
NEXT: 1 step
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Explanations:
1. FOR and NEXT instructions are used when loops are needed. No contact to drive the
instruction is required.
2. “N” (number of times loop is repeated) may be within the range of K1 to K32767. If the range
NK1, N is regarded as K1.
3. An error will occur in the following conditions:
NEXT instruction is before FOR instruction.
FOR instruction exists but NEXT instruction does not exist..
There is a NEXT instruction after the FEND or END instruction.
Number of FOR instructions differs from that of NEXT instructinos.
4. FOR~NEXT loops can be nested for maximum five levels. Be careful that if there are too
many loops, the increased PLC scan time may cause timeout of watchdog timer and error.
Users can use WDT instruction to modify this problem.
Page view 172
1 2 ... 168 169 170 171 172 173 174 175 176 177 178 ... 701 702

Comments to this Manuals

No comments