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
You cannot use them as tag names or constructs.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal