Spanish-language guide to TwinCAT structured text (ST), covering expressions, operators, conditional statements, loops and function block calls.
This document introduces structured text (ST) in TwinCAT and describes ST as a series of executable instructions that can run conditionally, as with IF...THEN...ELSE, or in sequential loops such as WHILE...DO. It explains expressions, operands, operator precedence and assignment.
It presents ST instruction forms with examples, including function block calls, RETURN, IF, CASE, FOR, WHILE, REPEAT and EXIT. The document also compares an IL loop for calculating second powers with an equivalent ST WHILE loop and gives syntax examples for each construct. This manual is written in Spanish.
It is described as a series of executable instructions that can run conditionally or in sequential loops.
It executes at least once because the termination condition is checked only after the loop body runs.
It terminates the inner sequential loop regardless of the termination condition.