680 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Appendix C Structured Text Programming
Constructs
Constructs can be programmed alone or nested within other constructs.
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.
If you want to Use this construct Available in these languages Page
Do something if or when specific conditions occur IF...THEN Structured text 681
Select what to do based on a numerical value CASE...OF Structured text 684
Do something a specific number of times before
doing anything else
FOR...DO Structured text 687
Keep doing something as long as certain conditions
are true
WHILE...DO Structured text 690
Keep doing something until a condition is true REPEAT...UNTIL Structured text 693