Performing an AND operation on 32-bit data
DAND
This instruction performs an AND operation on the two sets of 32-bit binary data specified.
ST
ENO:=DAND(EN,s1,s2,d);
■Execution condition
Instruction
DAND
Setting data
■Description, range, data type
Operand
Description
(s1)
Logical AND data or the start device where logical AND data is stored
(s2)
Logical AND data or the start device where logical AND data is stored
(d)
Start device for storing the operation result
EN
Execution condition
ENO
Execution result
■Applicable devices/labels
Operand
Bit
SB
(s1)
(s2)
(d)
Processing details
• This instruction performs an AND operation (bit-by-bit) on the 32-bit binary data in the device specified by (s1) and the 32-
bit binary data in the device specified by (s2), and store the operation result in the device specified by (d).
(s1)+1
b31
∙∙∙
(s1)
1
1
1
1
1
1
(s2)+1
∙∙∙
b31
(s2)
0
1
0
1
1
0
(d)+1
∙∙∙
b31
(d)
0
1
0
1
1
0
• When a bit device is specified, the instruction performs an operation by assuming that the ones after the number of digit-
specified points are 0.
Operation error
There is no operation error.
Execution condition
RX, RY, LB
(s1)
b16
b15
∙∙∙
0
0
0
0
1
1
1
AND
(s2)
∙∙∙
b16
b15
0
1
0
1
0
0
0
(d)
∙∙∙
b16
b15
0
0
0
0
0
0
0
Range
-2147483648 to 2147483647
-2147483648 to 2147483647
Word
SW
G, RWw, RWr, LW
b0
1
b0
1
b0
1
Data type
ANY32
ANY32
ANY32
BOOL
BOOL
Constant
K, H
6 BASIC INSTRUCTIONS
6.2 Logical Operation Instructions
6
77