Introduction

An ST program (Structured Text) consists of a list of statements that are executed in sequence by the controller. Using these statements you can call function blocks, functions and procedures conditionally or unconditionally, make assignments, execute statements explicitly, repeat statements and execute jumps conditionally or unconditionally within a section.

Properties of an ST program

Properties of an ST program:

  • Statements consist of:

    • an operator,

    • an operand,

    • an expression if required and

    • a comment if required.

    • In addition, every statement can be provided with a label.

  • Statements must be concluded with semicolons.

  • Several statements (separated by semicolons) may be present in one line.

  • A single semi-colon denotes an empty statements.

  • Each line is limited to 300 characters.

  • Line breaks are possible in statements (multi-line statements).

  • Labels, symbols and comments can be placed anywhere in a section. (Comments can be entered anywhere where empty spaces are permitted.)

  • A syntax and semantics check is performed immediately after the statement is entered. The result of this check is displayed in colored text.

  • Syntactically or semantically incorrect sections can be saved.

Edit and view functions

Edit and view functions of the ST editor:

Input assistants

Input assistant for the ST editor:

Online functions

ST editor online functions: