Validity: Rule, Task
This variable provides access to a specific location on the alarms stack (1-32) by storing certain information.
Syntax |
I32 aln (I32 n) |
---|---|
n |
Alarms stack position index (1-32) |
Attributes |
Read only |
Result |
The low word of the result, reachable with function w0, will contain the numeric alarm code and the high part, reachable with function w1, the axis number (in case it is an axis alarm) |
Diagnostics
Generates 9900 Illegal Arg. A:1 T:x St:x if parameter n out of range (where T:x represents the task number and St:x the step number).
Examples
INT code, numAl, numAsse ; in task: code = aln (1) .... .... ; the variable numAl will contain ; the numeric code of the alarm aln(1) numAl = w0(code) ; the variable numAl will contain ; the number of the axis that generated aln(1) numAxis = w1(code) |