EasyManuals Logo
Home>Allen-Bradley>Controller>Studio 5000 Logix Emulate

Allen-Bradley Studio 5000 Logix Emulate User Manual

Allen-Bradley Studio 5000 Logix Emulate
676 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 #653 background imageLoading...
Page #653 background image
Chapter 11
Rockwell Automation Publication MOTION-RM002H-EN-P-February 2018 653
Leaves the step of an SFC if you configure the SFC for Automatic reset. (This
applies only if you embed the assignment in the action of the step or use the action
to call a structured text routine via a JSR instruction.)
Use the FOR_DO loop to do something a specific number of times before doing
anything else.
Operands
FOR count:= initial_value TO
final_value BY increment DO
<statement>;
END_FOR;
Operand Type Format Description
count SINT INT DINT Tag Tag to store count position as the FOR_DO executes
initial_ value SINT INT DINT Tag expression
Immediate
Must evaluate to a number
Specifies initial value for count
final_ value SINT INT DINT Tag expression
Immediate
Specifies final value for count, which determines
when to exit the loop
increment SINT INT DINT Tag expression
Immediate
(Optional) amount to increment count each time
through the loop
If you don’t specify an increment, the count
increments by 1.
Important:
Make sure that you do not iterate within the loop too many times in a single scan.
The controller does not execute any other statements in the routine until it completes the loop.
If the time that it takes to complete the loop is greater than the watchdog timer for the task, a
major fault occurs.
Consider using a different construct, such as IF_THEN.
FOR_DO

Table of Contents

Other manuals for Allen-Bradley Studio 5000 Logix Emulate

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Studio 5000 Logix Emulate and is the answer not in the manual?

Allen-Bradley Studio 5000 Logix Emulate Specifications

General IconGeneral
BrandAllen-Bradley
ModelStudio 5000 Logix Emulate
CategoryController
LanguageEnglish

Related product manuals