Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 252

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

Advertisement

WAND(P) [using three operands]
These instructions AND each bit of 16-bit binary data from the device specified by (s1) and each bit of 16-bit binary data from
device specified by (s2), and store the results in the device specified by (d).
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Data for AND or device where the data is stored
(s2)
Data for AND or device where the data is stored
(d)
Device for storing AND results
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(d)
Processing details
• These instructions AND each bit of 16-bit binary data from the device specified by (s1) and each bit of 16-bit binary data
from device specified by (s2), and store the results in the device specified by (d).
b15
∙∙∙
(s1)
1
1
1
1
1
∙∙∙
b15
(s2)
0
0
0
1
0
∙∙∙
b15
(d)
0
0
0
1
0
• Bit devices subsequent to number of points by nibble specification are calculated as 0.
Operation error
There is no operation error.
7 BASIC INSTRUCTIONS
250
7.3 Logical Operation Instructions
(s2)
(d)
Word
T, ST, C, D, W,
SD, SW, R
b8
b7
∙∙∙
1
1
1
0
0
0
0
AND
∙∙∙
b8
b7
0
1
0
0
0
1
1
∙∙∙
b8
b7
0
1
0
0
0
0
0
Structured text
ENO:=WAND(EN,s1,s2,d);
ENO:=WANDP(EN,s1,s2,d);
Range
-32768 to +32767
-32768 to +32767
Double word Indirect
U\G
Z
LC
b0
1
1
1
1
b0
0
1
0
0
b0
0
1
0
0
Data type
16-bit signed binary
16-bit signed binary
16-bit signed binary
Bit
Bit
Constant
specification
LZ
K, H
Data type (label)
ANY16
ANY16
ANY16
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading