Allen-Bradley LOGIX 5000 Reference Manual page 528

Controllers advanced process control and drives and equipment phase and sequence instructions
Hide thumbs Also See for LOGIX 5000:
Table of Contents

Advertisement

Chapter 10
Structured Text Programming
If
Doing something if or when conditions are true
Selecting alternative statements or groups of
statements based on input conditions
528
Description
The syntax is described in the table.
To use ELSIF or ELSE, follow these guidelines.
To select from several possible groups of statements, add one or more ELSIF
statements.
Each ELSIF represents an alternative path.
Specify as many ELSIF paths as you need.
The controller executes the first true IF or ELSIF and skips the rest of the ELSIFs
and the ELSE.
To do something when all of the IF or ELSIF conditions are false, add an ELSE
statement.
The table summarizes different combinations of IF, THEN, ELSIF, and ELSE.
And
Do nothing if conditions are false
Do something else if conditions are false
Do nothing if conditions are false
Assign default statements if all conditions are false
Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
Use this construct
IF_THEN
IF_THEN_ELSE
IF_THEN_ELSIF
IF_THEN_ELSIF_ELSE

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents