
Operators
53
Axcess Programming Language
Bitwise Operator Keywords
Bitwise operator keywords and abbreviations supported in Axcess are listed below:
Bitwise Operator Keywords
BAND (&)
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 *)
BNOT (~)
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 *)
BOR (|)
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 *)
BXOR (^)
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 *)
Содержание Axcess
Страница 1: ...instruction manual Software Axcess Programming Language ...
Страница 8: ...vi Axcess Programming Language Table of Contents ...
Страница 12: ...Introduction 4 Axcess Programming Language ...
Страница 22: ...Axcess Basics 14 Axcess Programming Language ...
Страница 38: ...Channel Characteristics 30 Axcess Programming Language ...
Страница 54: ...Levels 46 Axcess Programming Language ...
Страница 62: ...Operators 54 Axcess Programming Language ...
Страница 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Страница 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Страница 80: ...While Keywords 72 Axcess Programming Language ...
Страница 86: ...Using Buffers 78 Axcess Programming Language ...
Страница 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Страница 102: ...Using Subroutines 94 Axcess Programming Language ...
Страница 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Страница 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Страница 124: ...The External_Control Protocol 116 Axcess Programming Language ...
Страница 143: ...Index 135 Axcess Programming Language ...