<< Click to Display Table of Contents >> Navigation: »No topics above this level« MpCodeBoxFlexInstance configuration |
mapp Services V5.16
The MPCodeBoxFlexInstance configuration is used for Structured Text programs.
For information about how the configuration can be adjusted at runtime, see here in section "Changing the configuration at runtime".
•Show advanced parameter
Name |
|||||||
Instance |
|||||||
General |
|||||||
Default task class |
|||||||
Program device name |
A MpCodeBoxFlexInstance configuration is required for each MpCodeBoxFlexInstance instance. The general settings of all MpCodeBoxFlex instances are defined via the MpCodeBoxFlexGeneral configuration.
Cyclic execution
"Task class" defines the task class in which the cyclic part of a Structured Text program should be executed.
Statements "CYCLIC" and "CYCLIC_BL" are used for defining a cyclic part in the Structured Text program.
As explained in section Structured Text under "Executing a Structured Text program", MpCodeBoxFlexControl creates a cyclic task class in the background during controller startup. One cyclic task class can now be selected via configuration parameter "Task class".
Programs that do not contain cyclic parts are executed during idle time of the target system.
Storage medium
"Program device name" defines the storage medium that contains the programs that are executed at runtime. The storage medium must already be defined in the target system configuration.
Interaction with the storage medium, such as deleting or importing programs, must always take place using function block MpCodeBoxManager. For additional information, see here.
If several Structured Text programs should be started simultaneously, one MpCodeBoxFlexInstance configuration and one MpCodeBoxFlexControl function block are required per program. When starting multiple programs, they are executed simultaneously. There is no order of execution.