EasyManuals Logo

Delta DVP-SA2 User Manual

Delta DVP-SA2
1006 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
Page #169 background imageLoading...
Page #169 background image
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-48
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
08 FOR
Start of a FOR-NEXT Loop
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
FOR: 3 steps
S
*
*
*
*
*
*
*
*
*
*
*
PULSE
16-bit
32-bit
ES2/EX2
/EC5
SS2
SA2
SE
SX2
ES2/EX2
/EC5
SS2
SA2
SE
SX2
ES2/EX2
/EC5
SS2
SA2
SE
SX2
Operands:
S: The number of times for the loop to be repeated.
API
Mnemonic Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
09 NEXT End of a FOR-NEXT Loop
OP Descriptions Program Steps
N/A
No contact to drive the instruction is required.
NEXT: 1 step
PULSE
16-bit
32-bit
ES2/EX2
/EC5
SS2
SA2
SE
SX2
ES2/EX2
/EC5
SS2
SA2
SE
SX2
ES2/EX2
/EC5
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.

Table of Contents

Other manuals for Delta DVP-SA2

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Delta DVP-SA2 and is the answer not in the manual?

Delta DVP-SA2 Specifications

General IconGeneral
BrandDelta
ModelDVP-SA2
CategoryController
LanguageEnglish

Related product manuals