This function allows you to check if there is an alarm in the alarm stack (32 locations) by also specifying the value of one or more parameters.
Syntax |
i32 is_alarm_par_present (i32 nAl, i32 nAx, u32 parMask, real par1 [, real par2=0] [, real par3=0]) |
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nAl |
Alarm number to check for (1-:-9999) |
||||||||||||||||||
nAx |
Axis number in alarm (1-:-32) or 0 if non-axis alarm |
||||||||||||||||||
parMask |
Mask to indicate which parameters are affected:
|
||||||||||||||||||
par1 |
Value of the first alarm parameter |
||||||||||||||||||
par2 |
Value of the second alarm parameter. (optional, default 0) |
||||||||||||||||||
par3 |
Value of the third alarm parameter. (optional, default 0) |
||||||||||||||||||
Result |
Returns:
|
||||||||||||||||||
Validity |
Rule, Task |
||||||||||||||||||
Note |
For parameters in the middle that were not specified in the search, a value must still be necessarily entered (indifferent value, even different from the real value). From RTE 34.30.0 if a parameter is passed that was not expected by the alarm, it is still considered as if it were diversity (return 0). |
Example of use:
|