Download Print this page

Performing An Xor Operation On 32-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 32-bit data

DXOR(P) [using two operands]
These instructions exclusive OR each bit of 32-bit binary data from the device specified by (d) and each bit of 32-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 32-bit binary data from the device specified by (d) and each bit of 32-bit binary
data from device specified by (s), and store the results in the device specified by (d).
(d)+1
b31
∙∙∙
b16
(d)
0
1
0
1
0
1
(s)+1
∙∙∙
b31
b16
(s)
0
1
1
0
0
1
(d)+1
∙∙∙
b31
b16
(d)
0
0
1
1
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
(d)
b15
∙∙∙
0
1
0
1
0
1
0
XOR
(s)
∙∙∙
b15
1
0
1
0
0
1
1
(d)
∙∙∙
b15
1
1
1
1
0
0
1
Structured text
Not supported
Range
-2147483648 to +2147483647
-2147483648 to +2147483647
Double word Indirect
specification
Z
LC
LZ
b0
1
b0
0
b0
1
Data type
Data type (label)
32-bit signed binary
ANY32
32-bit signed binary
ANY32
Constant
K, H
E
$
7 BASIC INSTRUCTIONS
7.3 Logical Operation Instructions
7
Others
263

Hide quick links:

Advertisement

loading