NORD Drivesystems BU0550 User Manual
Page 32
PLC logic for NORD SK 54xE frequency inverters
32
BU 0550 GB-0813
3.2.4.2
ANDN and ANDN(
Bit-wise AND linking of the AE/accumulator with a negated operand.
Bit-wise AND (...) linking of the AE/accumulator and the negated result of the bracket. Up to 6 bracket levels
are possible.
The values to be linked must belong to the same type of variable.
BOOL
BYTE
INT
DINT
Possible data types
X
X
X
X
Commands
Explanation
LD 2#0000_1111
ANDN 2#0011_1010
ANDN link between 2 constants
Accu = 2#0000_0101
LD 170
Link between a constant and 2 variables.
ANDN Var1, Var2
Accu = 170d ANDN Var1 ANDN Var2
LD Var1
ANDN ( Var2
AE/Accu = Var1 ANDN ( Var2 OR Var3 )
OR Var3
)
Table 29 ANDN and ANDN(
3.2.4.3
NOT
Bit-wise negation of the accumulator.
BOOL
BYTE
INT
DINT
Possible data types
X
X
X
X
Commands
Explanation
LD BYTE#10
Load the value 10
dec
into the accumulator in the
format Byte
NOT
The value is resolved at Bit level (0000 1010),
negated bit-wise (1111 0101) and converted
back to a decimal value. Result = 245
dec
ST Var3
Save the result as Var3
Table 30 NOT
AE/Accu
Operand
Result
0
0
0
0
1
0
1
0
1
1
1
0