EasyManuals Logo
Home>Allen-Bradley>Controller>Logix5000

Allen-Bradley Logix5000 Reference Manual

Allen-Bradley Logix5000
708 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 #686 background imageLoading...
Page #686 background image
686 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Appendix C Structured Text Programming
Example
The [:=] tells the controller to also clear the outlet tags whenever the controller
does the following:
• Enters the RUN mode.
• 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.)
If you want this Enter this structured text
If recipe number = 1 then
Ingredient A outlet 1 = open (1)
Ingredient B outlet 4 = open (1)
CASE recipe_number OF
1:
Ingredient_A.Outlet_1 :=1;
Ingredient_B.Outlet_4 :=1;
If recipe number = 2 or 3 then
Ingredient A outlet 4 = open (1)
Ingredient B outlet 2 = open (1)
2,3:
Ingredient_A.Outlet_4 :=1;
Ingredient_B.Outlet_2 :=1;
If recipe number = 4, 5, 6, or 7 then
Ingredient A outlet 4 = open (1)
Ingredient B outlet 2 = open (1)
4…7:
Ingredient_A.Outlet_4 :=1;
Ingredient_B.Outlet_2 :=1;
If recipe number = 8, 11, 12, or 13 then
Ingredient A outlet 1 = open (1)
Ingredient B outlet 4 = open (1)
8,11…13
Ingredient_A.Outlet_1 :=1;
Ingredient_B.Outlet_4 :=1;
Otherwise all outlets = closed (0) ELSE
Ingredient_A.Outlet_1 [:=]0;
Ingredient_A.Outlet_4 [:=]0;
Ingredient_B.Outlet_2 [:=]0;
Ingredient_B.Outlet_4 [:=]0;
END_CASE;

Table of Contents

Other manuals for Allen-Bradley Logix5000

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley Logix5000 and is the answer not in the manual?

Allen-Bradley Logix5000 Specifications

General IconGeneral
BrandAllen-Bradley
ModelLogix5000
CategoryController
LanguageEnglish

Related product manuals