 |
ALPHA-VISION® API-Interface to Technology program: FC151
|
FC151
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
PARAMETERS (IN_OUT)
DESCRIPTION
GetAT() - Alarm Typ
Returns the Alarm Type of the actual status of a Measuring Point.
The function is defined for analogue measuring points only.
- For binary Measuring Points always the Alarm Type ‘0’ is returned.
- For objects of the type ‘Process Variables’ <yAt=0> is
returned.
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:
For all Alarm Levels (Level>0) of the status 'OutOfRange' the Alarm
Type 12 is returned.