Description

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Description

mapp Services V5.16

The MpAlarmReaction function can be used to filter certain active alarm reactions. The MpLink of an MpAlarmBasic configuration is used for this function. It is also possible to filter for all reactions that are in the configuration.

This filter is defined using parameter "Filter". The filter is specified as a UDINT (32 re), the same as with the machine reaction. With each bit set in the filter, exactly this of the 32 possible reactions (bits) is checked. This makes it possible to simultaneously filter one or more reactions at the same time.

The return value from this function is Boolean. If one of the filtered reactions is active/inactive, then the returned value will be TRUE/FALSE.

Examples:

The filtered reaction is not currently active, so FALSE is returned.

reactionexample1

The filtered reaction is currently active, so TRUE is returned. In this case, the active reaction is clearly evident since only one was being filtered.

reactionexample2

At least one of the reactions being queried is currently active, so TRUE is returned. Since several reactions are being filtered, however, it is not possible to determine which is active.

reactionexample3

At least one of the reactions being queried is currently active, so TRUE is returned. In this example, all reactions are being filtered (see image).

reactionexample4