TwinCAT Structured Text (ST) Programming Manual

Spanish-language guide to TwinCAT structured text (ST), covering expressions, operators, conditional statements, loops and function block calls.


TwinCAT Structured Text (ST) Programming Manual - cover page
Brand
TwinCAT
Category
Programming
Document type
Programming Manual
Language
Spanish
Pages
5
File format
PDF
File size
82 KB
Published
09 November, 2026
Updated
09 November, 2026
MD5 checksum
15A06EE633A552272492F53F124F0003

About this manual

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.

What's inside

  • Expresiones
  • Evaluación de expresiones
  • Operador de asignación
  • Llamada a Bloques de Funciones en el lenguaje ST
  • Instrucción RETURN
  • Instrucción IF
  • Instrucción CASE
  • Bucle secuencial FOR
  • Bucle secuencial WHILE
  • Bucle secuencial REPEAT

Frequently asked questions

What is structured text (ST) in this document?

It is described as a series of executable instructions that can run conditionally or in sequential loops.

When does a REPEAT loop execute at least once?

It executes at least once because the termination condition is checked only after the loop body runs.

What does EXIT do inside a FOR, WHILE or REPEAT loop?

It terminates the inner sequential loop regardless of the termination condition.

Download PDF (82 KB)