Validity: Rule, Task
This variable allows to read the alarm masks.
Syntax |
I32 am (I32 n) |
---|---|
n |
Alarms stack position index |
Attributes |
Read only. Bit-accessible |
This variable is updated by RTE whenever an alarm enters the alarms stack.
The following table shows how the various alarm types are distributed according to the array index:
Array index |
Description |
---|---|
0 |
Initialization or miscellaneous alarms (#1) |
1÷32 |
Axis-related alarms (#1) |
33÷36 |
Major system alarms (#1) |
37÷40 |
Major user alarms |
41÷44 |
Minor system alarms (#1) |
45÷48 |
Minor user alarms |
49÷52 |
System warning (#1) |
53÷63 |
User warning |
(#1) For the description of the bits refer to am(0), am(1-32), am(33-36), am(41-44), am(49-52).
Example
; if bit 0 of the variable am(1) is equal to 1 ; then in the string register sr(1) ; "Transducer fault axis one" will be stored if(am(1).0) sr(1) = "Transducer fault axis one" |