beautypg.com

NORD Drivesystems BU0550 User Manual

Page 33

background image

3 AWL (Instruction List, IL)

BU 0550 GB-0813

33

3.2.4.4

OR and OR(

Bit-wise OR linking of the AE/accumulator with one or two variables or constants.

Bit-wise OR(...) linking with the AE/accumulator and the AE/accumulator which was previously formed in the
bracket. Up to 6 bracket levels are possible.

All values must belong to the same type of variable.

BOOL

BYTE

INT

DINT

Possible data types

X

X

X

X

Commands

Explanation

LD 170

OR 204

OR link between 2 constants

LD 170

Link between a constant and 2 variables.

OR Var1, Var2

Accumulator = 170d OR Var1OR Var2

LD Var1

OR ( Var2

AE/Accumulator = Var1 OR ( Var2 AND Var3 )

AND Var3

)

Table 31 OR and OR(

3.2.4.5

ORN and ORN(

Bit-wise OR linking of the AE/accumulator with a negated operand.

Bit-wise OR (...) 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

ORN 2#0011_1010

ORN link between 2 constants

Accu = 2#1100_1111

LD 170

Link between a constant and 2 variables.

ORN Var1, Var2

Accu = 170d ORN Var1 ORN Var2

LD Var1

ORN ( Var2

AE/Accu = Var1 ORN ( Var2 OR Var3 )

OR Var3

)

Table 32 ANDN and ANDN(

AE/Accu

Operand

Result

0

0

0

0

1

1

1

0

1

1

1

1

AE/Accu

Operand

Result

0

0

1

0

1

0

1

0

1

1

1

1