Programming Structured Text (ST)

Principle

The ST Editor can be used for programming in the programming languages Structured Text and Extended Structured Text. The program code consists of a combination of expressions and instructions, which may be conditional or looped. Each instruction has to finish with a ;

Variables are declared in the declaration editor.

See also:

Creating a POU in the implementation language Structured Text (ST)

1. Select a folder in the Solution Explorer in the PLC project.
2. In the context menu select the command Add > POU...
The Add POU dialog opens.
3. Enter a name and select the implementation language "Structured Text (ST)".
4. Click on Open.
The POU is added in the PLC project tree and opened in the editor. Now add the variable declarations in the upper part of the POU and the ST program code in the lower part of the POU.