Validity: Rule, Task
This variable provides access to a specific location in the alarms stack (1-32).
Syntax |
STRING als (I32 n) |
---|---|
n |
Alarms stack position index (1-32) |
Attributes |
Read only |
Result |
Returns the entire string of characters identifying the alarm. Returns the string "0 no alarm" if the alarm is not present |
Diagnostics
Generates "9900 Illegal Arg. A:1 T:x St:x" if parameter n out of range (where T:x represents task number and St:x represents step number).
Examples
; in the string register sr(3) will be ; stored the alarm string of index 1 sr(3) = als (1) ; in the string register sr(3) will be ; stored the alarm string whose index ; is contained in the register r(100) sr(3) = als (r(100)) |