Download Print this page

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

WXOR(P) [using two operands]
These instructions exclusive OR 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)
(d)
FBD/LD
Not supported.
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Data for exclusive OR or head device where data is stored
(d)
Head device for storing exclusive OR results
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
Processing details
• These instructions exclusive OR 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
0
1
∙∙∙
b15
(s)
0
0
0
1
1
0
1
∙∙∙
b15
(d)
1
0
1
1
0
0
0
• Bit devices subsequent to number of points by nibble specification are calculated as 0.
Operation error
There is no operation error.
Word
T, ST, C, D, W,
U\G
SD, SW, R
b8
b7
∙∙∙
0
1
0
1
0
1
0
1
XOR
∙∙∙
b8
b7
1
1
1
1
1
0
0
0
∙∙∙
b8
b7
1
0
1
0
1
1
0
1
Structured text
Not supported
Range
-32768 to +32767
-32768 to +32767
Double word Indirect
specification
Z
LC
LZ
b0
0
b0
0
b0
0
Data type
Data type (label)
16-bit signed binary
ANY16
16-bit signed binary
ANY16
Constant
K, H
E
$
7 BASIC INSTRUCTIONS
7.3 Logical Operation Instructions
7
Others
261

Hide quick links:

Advertisement

loading