Structured Text Programming
520 Rockwell Automation Publication 1756-RM006K-EN-P - November 2018
END_IF;
Program constructs alone or nest within other constructs.
If Use this construct
Doing something if or when specific conditions occur IF. . . THEN
Selecting what to do based on a numerical value CASE. . . OF
Doing something a specific number of times before doing anything else FOR. . . DO
Continuing doing something when certain conditions are true WHILE. . . DO
Continuing doing something until a condition is true REPEAT. . . UNTIL
Some Key Words are Reserved
These constructs are not available:
• GOTO
• REPEAT
Logix Designer application will not let you use them as tag names or constructs.
See also
IF_THEN on page 527
CASE_OF on page 523
FOR_DO on page 525
WHILE_DO on page 533
REPEAT_UNTIL on page 530
Components:
Constructs