User guide

eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 131
9.2.5 ALSTAT
Syntax [function]
ALSTAT S1
• S1 is the name of the Tag or Tag TagId.
Purpose:
Returns the S1 Tag alarm status. The returned values are:
Example:
9.2.6 AND
Syntax [Operator]
E1 AND E2
Purpose:
Do a bit-wise AND between E1 and E2. Also have a look at the priority of the operators.
Examples:
Returns 0
Returns 2
Returns 1
Keeps first 2 bits.
See also:
“Operators priority” on page 127, “OR” on page 158, “XOR” on page 168
Values Description
0 No alarm
1 Pretrigger: no active alarm but physical signal active
2 In alarm
3 In alarm but acknowledged
4 Returns to normal but not acknowledged
Table 91: Values returned by the ALSTAT command
a% = ALSTAT "MyLittleTag"
1 AND 2
2 AND 2
3 AND 1
MyFirstTag@ AND 3