FC165

SUMMARY

The AbvSpu provides functions to read and write process attributes (status, measuring value, alarm information) as well as to control process parameters (limits, delay times, etc.).

PARAMETERS (IN)

obj (INT)
Object Number

PARAMETERS (OUT)

yAt (BYTE)
Alarm Typ
bOk (BOOL)
1=okay, 0=error

PARAMETERS (IN_OUT)

DESCRIPTION

GetAT_ex() - Alarm Typ
Returns the defined Alarm Type for the actual status.

The function is defined for analogue Measuring Points (MP) only. The Alarm Type is calculated from the Alarm Level of the actual status, whereby it is distinguished between the direction of the alarm (alarm up / normal down, respectively alarm down / normal up).
The Alarm Type is calculated according the following table:
Level Direction Alarm Type
0 down / up 0
1 down 0
2 down 3
3 down 5
4 down 11
5 down 9
1 up 0
2 up 2
3 up 4
4 up 10
5 up 8
Note:
On status 'OutOfRange' for all Alarm Levels (Level>0) the Alarm Typ 12 is returned.