Bitwise Operator Keywords
Bitwise operator keywords and abbreviations supported in Axcess are listed below:
Bitwise Operator Keywords
BAND (&)
BNOT (~)
BOR (|)
BXOR (^)
Axcess Programming Language
Performs a bitwise And operation between two bytes. Each of these bytes can
be a constant value, number, or variable. The result of the operation can be
tested with an IF statement or assigned to a variable.
Example:
X = 5 BAND 14
(* X is equal to 4 *)
Performs a bitwise Not operation on a byte. Each bit of the byte is inverted; that
is, each "1" bit becomes "Ø," and vice versa. The result of the operation can be
tested with an IF statement or assigned to a variable.
Example:
X = BNOT 1ØØ (* X is equal to 155 *)
Performs a bitwise Or operation between two bytes. Each of these bytes can
be a constant value, number, or variable. The result of the operation can be
tested with an IF statement or assigned to a variable.
Example:
X = 1Ø BOR 6
(* X is equal to 14 *)
Performs a bitwise exclusive Or operation between two bytes.Each of these
bytes can be a constant value, number, or variable. The result of the operation
can be tested with an IF statement, or assigned to a variable.
Example:
X = 1Ø BXOR 6
(* X is equal to 12 *)
Operators
53
Need help?
Do you have a question about the AXCESS CONTROL SYSTEM PROGRAM and is the answer not in the manual?