Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 218

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

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)
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
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(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.
6 BASIC INSTRUCTIONS
216
6.3 Logical Operation Instructions
(s2)
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
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
Constant
specification
LZ
K, H
Data type (label)
ANY16
ANY16
ANY16
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents