User`s manual

12-14 Motion Mate DSM314 for Series 90-30 PLCs User's Manual
January 2001 GFK-1742A
12
Operator BWOR
The BWOR operator returns the bitwise or on source1 and source2.
Syntax 1
destination := source1 BWOR source2;
Syntax 2
IF source1 BWOR source2 THEN
The BWOR operator syntax has these parts:
Part Description
Destination Any writeable local logic variable except Dxx registers.
source1 Any readable local logic variable/constant except Dxx registers.
source2 Any readable local logic variable/constant except Dxx registers.
Remarks
Syntax 1 is used for assignment, syntax 2 is used in a conditional evaluation.
Operator BWXOR
The BWXOR operator returns the bitwise exclusive or of source1 and source2.
Syntax 1
destination := source1 BWXOR source2;
Syntax 2
IF source1 BWXOR source2 THEN
The BWXOR operator syntax has these parts:
Part Description
Destination Any writeable local logic variable except Dxx registers.
source1 Any readable local logic variable/constant except Dxx registers.
source2 Any readable local logic variable/constant except Dxx registers.
Remarks
Syntax 1 is used for assignment, syntax 2 is used in a conditional evaluation.