EasyManuals Logo

Automationdirect.com DirectLOGIC DL205 Series User Manual

Automationdirect.com DirectLOGIC DL205 Series
587 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 #397 background imageLoading...
Page #397 background image
DL205 User Manual, 4th Edition, Rev. B
5–180
Chapter 5: Standard RLL Instructions - Program Control
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
For/Next (FOR) (NEXT)
The For and Next instructions are used to execute a
section of ladder logic between the For and Next
instruction a specified numbers of times. When the For
instruction is enabled, the program will loop the specified
number of times. If the For instruction is not energized
the section of ladder logic between the For and Next
instructions is not executed.
For/Next instructions cannot be nested. Up to 64
For/Next loops may be used in a program. If the
maximum number of For / Next loops is exceeded, error
E413 will occur. The normal I/O update and CPU
housekeeping is suspended while executing the For/Next
loop. The program scan can increase significantly,
depending on the amount of times the logic between the
For and Next instruction is executed. With the exception
of immediate I/O instructions, I/O will not be updated
until the program execution is completed for that scan.
Depending on the length of time required to complete
the program execution, it may be necessary to reset the
watch dog timer inside of the For/Next loop using the
RSTWT instruction.
A aaa
FOR
230
240
250-1
260
ý
þ
þ
þ
NEXT
Operand Data Type DL240 Range DL250-1 Range DL260 Range
A aaa aaa aaa
V-memory V All (See page 3 - 54) All (See page 3 - 55) All (See page 3 - 56)
Constant K 1-9999 1-9999 1-9999
DS Used
HPP Used

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Automationdirect.com DirectLOGIC DL205 Series and is the answer not in the manual?

Automationdirect.com DirectLOGIC DL205 Series Specifications

General IconGeneral
BrandAutomationdirect.com
ModelDirectLOGIC DL205 Series
CategoryController
LanguageEnglish

Related product manuals