 |
ALPHA-VISION® API-Interface to Technology program: FC165
|
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.
- For binary MPs always Alarm Typ=0 is return.
- For Objects of the type 'Process Variables' <yAt=0>
and <bOk=0> is returned.
- In case of an error <bOk=0> is returned.
- Possible Errors:
- a) Invalid Object Number
- b) Wrong Object Type
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.