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 130
9.2 List of the keywords
The commands and functions used to program the eWON are listed below in alphabetical order.
9.2.1 Syntax convention
In the following keyword usage description, the following convention is used to represent the parameters:
9.2.2 # (bit extraction operator)
Syntax [function]
E1 # E2
• E1= integer word
• E2 = bit position (0 to 31)
Purpose:
The # function is used to extract a bit from an integer variable (and only from an integer).
Example:
9.2.3 ABS
Syntax [function]
ABS E1
Purpose:
The function returns the absolute value of E1. E1 can be a value or a Tag name. See also “Operators priority” on page 127.
If the value is negative, you have to add use ().
Example:
Returns 10.4
9.2.4 ALMACK
Syntax [function]
ALMACK S1, S2
• S1 is the TagName of the Tag to be acknowledged
• S2 is the UserName of the user that will acknowledge the alarm. If this field is the empty field "",
then the "adm" login is assumed for acknowledgement.
Purpose:
The function acknowledges the alarm status of a given Tag.
Example:
Parameter Type
E1,E2,.. Integer
S1,S2,.. String
CA Character (if string passed, first char is evaluated)
Table 90: BASIC keywords syntax convention
i%=5
a%=i%#0
b%=i%#1
c%=i%#2
:Rem Binary 0101
:Rem a%=1
:Rem b%=0
:Rem c%=1
ABS (-10.4)
ALMACK "MyTag", "TheMighty"