Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 321

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions perform an OR 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 0
0
1
1 1 1 0
0
0
(s1)+1
1 1 0
0
1
1 0 0 1
1
0
(s1)+2
0 0 0
0
0
0 0 0 1
1
1
(s1)+(n)-2 0 0 0
0
1
1 1 1 1
1
1
(s1)+(n)-1 1 1 1
1
1
1 1 1 0
0
0
(d)
(d)+1
(d)+2
(d)+(n)-2 0 0 1
(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
1
1 0 0 1
1
0
(s1)+1
0 0 0
0
1
0 1 0 1
0
1
(s1)+2
1 0 1
0
1
0 1 0 1
0
1
(s1)+(n)-2 0 0 0
0
1
1 1 1 0
0
0
(s1)+(n)-1 1 1 0
0
0
0 1 1 1
1
0
(d)
(d)+1
(d)+2
(d)+(n)-2 0 0 0
(d)+(n)-1 1 1 0
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)
0 1 1 1 1
(s2)+1
0 1 1 0 0
(s2)+2
1 1 1 1 1
(n)
OR
(s2)+(n)-2 0 0 1
1 0 0 0 0
(s2)+(n)-1 0 0 1
0 0 0 0 0
b15
∙∙∙
b8b7
∙∙∙
b0
0 0 0
0
1
1 1 1 1
1
0
0 1 1 1 1
1 1 0
0
1
1 0 0 1
1
1
1 1 1 1 1
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 0 0 1 1
1
1
1 1 1 0
0
0
0 1 1 1 1
b15
∙∙∙
b0
(s2)
0 0 0 1 1
0 0 0
0 1 0 1 0
0 1 0 1 0
(n)
OR
0 1 1 1 1
0 0 0 1 1
b15
∙∙∙
b8b7
∙∙∙
0 0 1
1
1
1 1 1 1
1
1
1 0 0 1 1
0 0 0
0
1
1 1 1 1
1
1
1 1 0 1 0
1 0 1
0
1
1 1 1 1
1
1
1 1 0 1 0
0
1
1 1 1 1
1
1
1 1 1 1 1
0
1
1 1 1 1
1
1
1 0 0 1 1
b15
∙∙∙
b8b7
∙∙∙
b0
0 0 0
0
1
1 1 1 1
1
0
0 0 0 1 1
1 1 0
0
1
1 0 0 0
0
1
1 0 0 1 1
0 0 0
0
1
1 1 1 1
1
1
1 0 0 0 0
1
0
0 1 1 0
0
1
1 0 0 1 1
1
1
1 0 0 0
0
0
0 1 1 1 1
(n)
∙∙∙
b8b7
∙∙∙
b0
0
1
1 1 1 1
1
1
1 0 0 0 0
b0
(n)
(n)
6 BASIC INSTRUCTIONS
6.3 Logical Operation Instructions
6
319

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents