Appendix C
Structured Text Programming
Constructs
If you want to
Do something if or when specific conditions occur
Select what to do based on a numerical value
Do something a specific number of times before
doing anything else
Keep doing something as long as certain conditions
are true
Keep doing something until a condition is true
680
Constructs can be programmed alone or nested within other constructs.
Use this construct
IF...THEN
CASE...OF
FOR...DO
WHILE...DO
REPEAT...UNTIL
Some Key Words are Reserved
These constructs are not available:
• GOTO
• REPEAT
RSLogix 5000 software will not let you use them as tag names or constructs.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Available in these languages
Structured text
Structured text
Structured text
Structured text
Structured text
Page
681
684
687
690
693