EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 321

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6 BASIC INSTRUCTIONS
6.3 Logical Operation Instructions
319
6
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.
A constant from -32768 to 32767 (16-bit signed binary) can be specified for (s2).
Operation error
Error code
(SD0)
Description
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)).
OR
(s1)
b15 b8b7 b0
000 10 1110 0001111
(s1)+1
110 10 1001 0101100
(s1)+2
000 00 0001 1111111
(s1)+(n)-2
000 10 1111 1110000
(s1)+(n)-1
111 11 1110 0000000

(n)

(d)
b15 b8b7 b0
000 10 1111 01 0 111 1
(d)+1
110 10 1001 11 1 111 1
(d)+2
000 10 1111 11 1 111 1
(d)+(n)-2
001 11 1111 11 1 001 1
(d)+(n)-1
111 11 1110 00 0 111 1

(n)

(s2)
b15 b8b7 b0
000 10 1111 0100011
(s2)+1
110 10 1000 1010011
(s2)+2
000 10 1111 1110000
(s2)+(n)-2
001 01 0110 1010011
(s2)+(n)-1
001 11 1000 0001111

(n)

OR
(s1)
b15 b8b7 b0
001 11 1001 0100011
(s1)+1
000 10 0101 1001010
(s1)+2
101 10 0101 1001010
(s1)+(n)-2
000 10 1110 0001111
(s1)+(n)-1
110 00 0111 0100011

(n)

(d)
b15 b8b7 b0
001 11 1 111 11
1
0 011
(d)+1
000 10 1 111 1111 010
(d)+2
101 10 1 111 1111 010
(d)+(n)-2
000 10 1 111 1111 111
(d)+(n)-1
110 10 1 111 1110 011

(n)

(s2)
b15 b8b7 b0
000 10 1111 1110000

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals