Using operation modes

The operation modes of a machine module are predefined and cannot be extended. They are divided into the initialisation mode (01 INIT/INI layer), the standby mode (02 READY/READY layer) and six named operating modes (03 MANUAL ... 08 MODE 2 / OP layer).

For each of the eight operation modes, an assigned action is predefined in the MFB03_Processing folder, in which the programme logic can be accommodated. The mode model for switching the operation modes is the same in all machine modules and is controlled centrally via the master in most applications.

Predefined programme code is already available in each mode. The user code can be written into this framework.

There are three areas in which programme code can be inserted within a mode:

"ModeEntry" is executed for one cycle when entering the mode.

"Cyclic Area" is executed until the mode is switched.

"ModeExit"' is executed when the mode is exited.

Example

Programme code for switching on the technology module (ElectricalShaftPosBase) of the infeed axis (Infeed) in "READY" mode:

In the first step, the axis is switched on in "READY" mode. To do this, the xEnable and xRegulatorOn inputs are set to TRUE.

As long as the xAxisEnabled output is set to FALSE, the xModeBusy bit is not reset to FALSE. This means that as long as xModeBusy is set to TRUE, the switchover to another mode is blocked. This is a simple way of preventing the mode from being switched from "READY" to "AUTOMATIC", for example, without all axes being ready for operation.