Processing details
• These instructions perform an AND operation on the (n) points of data from the device specified by (s1) and the (n) points
of data from the device specified by (s2), and store the operation result in the device specified by (d) and later.
b15
∙∙∙
b8b7
(s1)
0 0 1
1
0
0 1 1 0
0
1
1 0 0 1 1
(s1)+1
1 1 1
1
0
0 0 0 0
0
0
0 1 1 1 1
(s1)+2
0 0 0
0
0
0 0 0 1
1
1
1 1 1 1 1
(s1)+(n)-2 0 1 0
1
0
1 0 1 0
1
0
1 0 1 0 1
(s1)+(n)-1 1 1 1
1
0
0 0 0 1
1
1
1 0 0 0 0
(d)
(d)+1
(d)+2
(d)+(n)-2 0 1 0
(d)+(n)-1 1 1 1
• A constant from -32768 to 32767 (16-bit signed binary) can be specified for (s2).
b15
∙∙∙
b8b7
(s1)
0 0 1
1
0
0 1 1 0
0
1
(s1)+1
1 1 1
1
0
0 0 0 0
0
0
(s1)+2
0 0 0
0
0
0 0 0 1
1
1
(s1)+(n)-2 0 1 0
1
0
1 0 1 0
1
0
(s1)+(n)-1 1 1 1
1
0
0 0 0 1
1
1
(d)
(d)+1
(d)+2
(d)+(n)-2 0 1 0
(d)+(n)-1 1 1 1
Operation error
Error code
Description
(SD0)
2821H
The device ranges starting from the ones specified by (s1) and (d) are partially overlapping (except when the same device is specified for
(s1) and (d)).
The device ranges starting from the ones specified by (s2) and (d) are partially overlapping (except when the same device is specified for
(s2) and (d)).
∙∙∙
b0
(s2)
(s2)+1
(s2)+2
(n)
AND
(s2)+(n)-2 1 1 1
(s2)+(n)-1 1 1 1
b15
∙∙∙
b8b7
∙∙∙
b0
0 0 1
1
0
0 0 0 0
0
1
1 0 0 0 0
1 1 1
1
0
0 0 0 0
0
0
0 0 0 0 0
0 0 0
0
0
0 0 0 1
1
1
1 1 1 1 1
1
0
1 0 1 0
1
0
1 0 1 0 1
1
0
0 0 0 0
0
0
0 0 0 0 0
b15
∙∙∙
b0
(s2)
1 0 0 1 1
1 1 1
0 1 1 1 1
1 1 1 1 1
(n)
AND
1 0 1 0 1
1 0 0 0 0
b15
∙∙∙
b8b7
∙∙∙
0 0 1
1
0
0 1 1 0
0
0
0 0 0 1 1
1 1 1
1
0
0 0 0 0
0
0
0 1 1 1 1
0 0 0
0
0
0 0 0 0
0
0
0 1 1 1 1
1
0
1 0 1 0
0
0
0 0 1 0 1
1
0
0 0 0 0
0
0
0 0 0 0 0
b15
∙∙∙
b8b7
∙∙∙
b0
0 0 1
1
1
1 0 0 0
0
1
1 1 1 0 0
1 1 1
1
1
1 1 1 0
0
0
0 0 0 0 0
0 0 0
0
1
1 1 1 1
1
1
1 1 1 1 1
1
1
1 1 1 1
1
1
1 1 1 1 1
1
1
1 1 1 0
0
0
0 0 0 0 0
(n)
∙∙∙
b8b7
∙∙∙
b0
1
1
1 1 1 0
0
0
0 1 1 1 1
b0
(n)
(n)
6 BASIC INSTRUCTIONS
6.3 Logical Operation Instructions
6
309