System program (SEW_PRG)

 

The program that contains all the important instance calls. Automatic code generation recreates this program in accordance with the configuration made in MOVISUITE® each time the IEC project is created, thereby overwriting the previous version. Therefore, you should not make any changes to this program.

 

The program is divided into the actions described in the following. These actions differ in the time at which they are called during the program sequence.

INIT

In the INIT action, the MOVIKIT® software modules are initialized before they are started. Users can supplement this initialization sequence. The User_PRG.INIT() action is available for this purpose.

LinkInterfaces

In the LinkInterfaces action, the interfaces of the individual MOVIKIT® software modules are linked.

MAIN

All program calls of the MOVIKIT® software modules to be processed in the TaskMain main task are included in the MAIN action. The User_PRG.Main() action with the user program is also called in this action.

INFORMATION

Implement the user program in the User_PRG.Main() action, not directly in the SEW_PRG.Main() action.
HIGHPRIO

All program calls of the MOVIKIT® software modules that must be processed in the TaskHighPrio task, e.g. for profile generation, are included in the HIGHPRIO action. The User_PRG.HIGHPRIO() action with the user program is also called in this action.

INFORMATION

Implement the user program in the User_PRG.HIGHPRIO() action, not directly in the SEW_PRG.HIGHPRIO() action.