This function allows an alarm to be entered into the alarm stack.
NOTE: To insert a message into the alarm history, use the ah_log() function.
Syntax |
bool alarm_set (i32 nAl [, i32 nAx=0] [, real par1=0] [, real par2=0] [, real par3=0]) |
||||||
---|---|---|---|---|---|---|---|
nAl |
Alarm number (1000-:-1999, 3000-:-3999, 4000-:-8999) |
||||||
nAx |
Axis number in alarm (1÷32). (optional, default 0) |
||||||
par1 |
First parameter to be entered. (optional, default 0) |
||||||
par2 |
Second parameter to be entered. (optional, default 0) |
||||||
par3 |
Third parameter to be entered. (optional, default 0) |
||||||
Result |
Returns:
|
||||||
Validity |
Rule, Task |
||||||
Note |
However, the data types of optional parameters par1, par2, par3 depend on the type of alarm involved. From RTE 34.24.8 it is no longer possible to use this function to set warnings (9000÷9999) |
NOTE: Refer to the user alarm file for alarm text association.
Example usage:
|