Download Print this page

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

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

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)
FBD/LD
EN
ENO
s1
d
s2
n
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
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
*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
(n)
Word
T, ST, C, D, W,
U\G
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
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
...
...
b0
b1
5
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
BOOL
BOOL
Constant
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
7 BASIC INSTRUCTIONS
7.3 Logical Operation Instructions
7
Others
253

Hide quick links:

Advertisement

loading