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:
Selecting text (characters, words, lines, all)
Moving text (also between different ST/IL sections)
Searching and replacing variables and function blocks and DFB instances
Displaying text in selectable fonts and sizes
The text display type can be selected from the
menu command. This configuration applies to all sections of the IL and ST programming languages.Intelligent text indentation
The text indentation of a new line is taken from the previous one.
Display the position (line, column) of the cursor in the status bar.
Input assistants
Input assistant for the ST editor:
Online functions
ST editor online functions:
Displaying actual values.
Setting breakpoints
Setting watchpoints