<< Click to Display Table of Contents >> Navigation: »No topics above this level« Structured Text (ST) |
mapp Services V5.16
The Structured Text programming language is a text-based programming language based on the IEC 61131-3 standard.
A Structured Text program can be created using program commands. The following chapter provides instructions for programming.
PDF version of the programming guide:
For information about how to start a Structured Text program, see "Getting started" tutorial Creating a Structured Text program at runtime. |
The MpCodeBoxFlexInstance configuration is used in order to be able to use a Structured Text program. This configuration defines the storage medium on which the programs are located, for example.
For information about how a Structured Text program can be created and which commands can be used for it, see section Programming instructions.
A Structured Text program is started using function block MpCodeBoxFlexControl. It is important to note that a program is executed once and not cyclically.
For this, one background task and one cyclic task are created for each MpCodeBoxFlexControl instance during startup of the target system. A Structured Text program is executed in this background task. Cyclic tasks are used as soon as statement "CYCLIC" or "CYCLI_BL" is used. For additional information, see here. If statement "CYCLIC" or "CYCLIC_BL" is used in a program, the MpCodeBoxFlexInstance configuration defines in which task class the cyclic section of the program should be executed.
The Structured Text program is always executed during idle time of the target system. This means that the Structured Text program does not block other programs running on the target system.
It is important to note that for each MpCodeBoxFlexControl instance, only one program can be started and executed at a time. A program can also be paused, continued or even stopped via the function block.
Function block MpCodeBoxFlexMonitor is used to receive diagnostic information from the running program.
Function block MpCodeBoxManager is used for importing/exporting a program.