Performing An And 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 AND operation on 16-bit block data

BKAND(P)
These instructions AND 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)
(d)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Head device that stores data for AND
(s2)
Data for AND or head device where the data is stored
(d)
Head device for storing AND results
(n)
Number of data
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
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 AND 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
1 1
0 0
(s2)+(n-1)
1 1
1 1
1 1
1 1
0 0
0 0
0 0
(d)+(n-1)
1 1
1 1
0 0
0 0
0 0
0 0
0 0
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).)
(n)
Word
T, ST, C, D,
U\G
C, LC
W, SD, SW, R
(s1)+1
...
b0
b1
5
b8
b7
...
0 0
1 1
1 1
0 0
0 0
0 0
AND
(s2)+1
...
0 0
1 1
1 1
1 1
1 1
0 0
(d)+1
...
0 0
1 1
1 1
0 0
0 0
0 0
Structured text
ENO:=BKAND(EN,s1,s2,n,d);
ENO:=BKANDP(EN,s1,s2,n,d);
Range
Data type
-32768 to +32767
16-bit signed binary
-32768 to +32767
16-bit signed binary
16-bit signed binary
0 to 65535
16-bit unsigned binary
Double word Indirect
specification
Z
LC
LZ
...
...
b1
5
b0
0 0
1 1
1 1
0 0
1 1
0 0
0 0
0 0
0 0
0 0
1 1
1 1
0 0
0 0
0 0
0 0
1 1
0 0
Data type (label)
ANY16
ANY16
ANY16
ANY16
Constant
Others
K, H
E
$
(s1)
...
b8
b7
b0
1 1
0 0
1 1
0 0
1 1
(s2)
0 0
0 0
1 1
1 1
0 0
(d)
0 0
0 0
1 1
0
0
0 0
6 BASIC INSTRUCTIONS
6.3 Logical Operation Instructions
6
219

Advertisement

Table of Contents
loading

Table of Contents