Performing An Or Operation On 16-Bit Block Data - Mitsubishi MELSEC iQ-F FX5 series Programming Manual

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Performing an OR operation on 16-bit block data

BKOR(P)
These instructions OR contents of (n) point(s) from the device specified by (s1) and (n) point(s) from the device specified by
(s2), and store the results in the devices specified by (d) onwards.
Ladder diagram
(s1)
(s2)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Head device where the logical operation data is stored
(s2)
Logical operation data or the head device where the
logical operation data is stored
(d)
Head device for storing the operation result
(n)
Number of data
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
*1
(s1)
*1
(s2)
*1
(d)
(n)
*1 The same device number can be specified for (s1) and (d) or (s2) and (d).
Processing details
• These instructions seek OR of contents of (n) point(s) from the device specified by (s1) and (n) point(s) from the device
specified by (s2), and store the results in the devices specified by (d) onwards.
(s1)+(n-1)
...
b1
5
b8
b7
1 1
1 1
0 0
0 0
1 1
(s2)+(n-1)
1 1
1 1
1 1
1 1
0 0
(d)+(n-1)
1 1
1 1
1 1
1 1
1 1
Operation error
Error code
Description
(SD0/SD8067)
2820
The range of (n) point(s) of data starting from the device specified by (s1), (s2), or (d) exceed the corresponding device range.
2821
Device range of (n) point(s) from (s1) partially overlaps with device range of (n) point(s) from (d).
(Does not apply when same device has been specified for (s1) and (d).)
Device range of (n) point(s) from (s2) partially overlaps with device range of (n) point(s) from (d).
(Does not apply when same device has been specified for (s2) and (d).)
6 BASIC INSTRUCTIONS
224
6.3 Logical Operation Instructions
(d)
(n)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
...
...
b0
b1
5
...
1 1
0 0
0 0
1 1
1 1
...
0 0
0 0
0 0
1 1
1 1
...
1 1
0 0
0 0
1 1
1 1
Structured text
ENO:=BKOR(EN,s1,s2,n,d);
ENO:=BKORP(EN,s1,s2,n,d);
Range
-32768 to +32767
-32768 to +32767
0 to 65535
Double word Indirect
U\G
Z
LC
(s1)+1
...
b8
b7
b0
0 0
0 0
0 0
0 0
1 1
1 1
OR
(s2)+1
1 1
1 1
0 0
0 0
0 0
0 0
(d)+1
1 1
1 1
0 0
0 0
1 1
1 1
Data type
16-bit signed binary
16-bit signed binary
16-bit signed binary
16-bit unsigned binary
Constant
specification
LZ
K, H
(s1)
...
...
b1
5
b8
b7
0 0
1 1
0 0
1 1
0 0
1 1
(s2)
0 0
1 1
1 1
0 0
0 0
1 1
(d)
0 0
1 1
1 1
1 1
0 0
1 1
1 1
Data type (label)
ANY16
ANY16
ANY16
ANY16
Others
E
$
b0
0 0
1 1
1 1
0 0
1 1

Advertisement

Table of Contents
loading

Table of Contents