EasyManuals Logo

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 #683 background imageLoading...
Page #683 background image
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 683
Structured Text Programming Appendix C
The [:=] tells the controller to clear light 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.)
Example 3: IF…THEN…ELSIF
The [:=] tells the controller to clear Sugar.Inlet 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.)
Example 4: IF…THEN…ELSIF…ELSE
If you want this Enter this structured text
If sugar low limit switch = low (on) and sugar high limit switch =
not high (on) then
IF Sugar.Low & Sugar.High THEN
inlet valve = open (on) Sugar.Inlet [:=] 1;
Until sugar high limit switch = high (off) ELSIF NOT(Sugar.High) THEN
Sugar.Inlet := 0;
END_IF;
If you want this Enter this structured text
If tank temperature > 100 IF tank.temp > 200 THEN
then pump = slow pump.fast :=1; pump.slow :=0; pump.off :=0;
If tank temperature > 200 ELSIF tank.temp > 100 THEN
then pump = fast pump.fast :=0; pump.slow :=1; pump.off :=0;
Otherwise pump = off ELSE
pump.fast :=0; pump.slow :=0; pump.off :=1;
END_IF;

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