Structured Text Components: Constructs

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.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.