Performing An Xnor Operation On 16-Bit 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 XNOR operation on 16-bit data

WXNR(P) [using two operands]
These instructions exclusive NOR each bit of 16-bit binary data from the device specified by (d) and each bit of 16-bit binary
data from device specified by (s), and store the results in the device specified by (d).
Ladder diagram
(s)
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data for exclusive NOR or head device where data is
stored
(d)
Head device for storing exclusive NOR results
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB
(s)
(d)
Processing details
• These instructions exclusive NOR each bit of 16-bit binary data from the device specified by (d) and each bit of 16-bit
binary data from device specified by (s), and store the results in the device specified by (d).
b15
(d)
1
0
1
0
1
b15
(s)
1
1
1
1
0
b15
(d)
1
0
1
0
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
230
6.3 Logical Operation Instructions
(d)
Word
U\G T, ST,
T, ST, C, D,
C, LC
W, SD, SW, R
b8
b7
0
1
0
1
0
1
0
XNOR
b8
b7
0
0
0
0
0
0
0
b8
b7
1
0
1
0
1
0
1
Structured text
Not supported
Range
-32768 to +32767
-32768 to +32767
Double word Indirect
U\G
Z
LC
b0
1
0
0
1
b0
0
1
1
0
b0
0
0
0
0
Data type
16-bit signed binary
16-bit signed binary
Constant
specification
LZ
K, H
Data type (label)
ANY16
ANY16
Others
E
$

Advertisement

Table of Contents
loading

Table of Contents