<< Click to Display Table of Contents >> Navigation: »No topics above this level« Description |
mapp Services V5.16
The MpLink of an MpCodeBoxCore configuration is used for this function block.
The function block can only be used in combination with Ladder Diagram.
Setting command "Start" to TRUE allows a list of Ladder Diagram programs that have been defined on input parameter "Programs" to be started and called cyclically. The cycle time corresponds to the task class in which MpCodeBoxCore is called. If MpCodeBoxCore is in a task that is called with a cycle time of 10 ms, the cycle time in which the programs are called is also 10 ms. The programs must be located on the storage medium defined in the MpCodeBox configuration under General settings.
All currently executing programs on MpCodeBoxCore are stopped by setting "Stop" to TRUE.
Output "Running=TRUE" indicates whether a program has been loaded ("Running=FALSE"). If a faulty program is loaded, the output also shows "Running=TRUE". To start a new program in this case, the currently loaded program must be stopped ("Stop=TRUE"). A new one can then be started.
The programs are launched in the order defined by input parameter "Programs". New programs are lined up at the back and launched afterwards.
Additional information is included in structure "Info". "NumberOfActivePrograms" indicates how many programs are currently being executed by MpCodeBoxCore. "Program" indicates the names of the programs currently being executed.
If MpCodeBoxCore is enabled in the initialization subroutine of the program, it is important to note that at least 18 kB of the task stack are required. The default size of the task stack is 65 kB for most target systems. This task stack size is not permitted to be exceeded.
Widget "LadderEditor" can be used for a visual ladder diagram editor. For more information, see Binding with mapp View.