<< Click to Display Table of Contents >> Navigation: »No topics above this level« Description |
mapp Services V5.16
This function can only be used in synchronized mode. The MpLink from the machine unit, i.e. the MpPackMLCore configuration, is specified.
Various modes can be specified in the configuration, such as "Manual" or "Automatic". The modes also receive an ID.
Before the mode for the machine unit is changed with function MpPackMLChangeMode, function MpPackMLModeChangeIsAllowed can be used to check whether a mode change is permitted or not.
It is important to note that the mode cannot be changed in every state ("Execute", "Clearing", etc.). Whether the machine unit can change mode in a state is defined via the MpPackMLCore configuration.
In addition, the function checks whether the current state is used in the new mode or not. If the machine unit is in state "Clearing" but this state is not enabled in the new mode, the machine unit cannot change the mode. It must be ensured that the current state of the machine unit is also present in the new mode.
All modules must work synchronously with one another in order to perform a mode change. For additional information, see section Communication between the modules.
If the machine unit of the mode can be changed, the return value ("Return value") is 0. If it is not permitted to change the mode, the following return values can occur: