Mitsubishi FX3G Series Programming Manual page 285

Programmable controllers
Hide thumbs Also See for FX3G Series:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
2. 32-bit operation (DXOR and DXORP)
The exclusive logical sum (XOR) operation is executed to the contents of [
units of bit, and the result is transferred to [
Command
input
FNC 28
DXOR
• While the command input is OFF, the data of the transfer destination [
• While the command input is ON, the data of the transfer source [
change.
• When a constant (K) is specified in the transfer source [
converted into binary format.
• The exclusive logical sum operation is executed in units of bit as shown in the table below (1 ∀ 1 = 0, 0 ∀ 0 = 0,
1 ∀ 0 = 1, 0 ∀ 1 = 1).
Logical operation
(unit: bit)
Program example
By combining WXOR and CML (FNC 14) instructions, the exclusive logical sum not (XORNOT) operation can be
executed.
X000
FNC 28
WXOR
FNC 14
CML
Series
D
D
S1
S2
S
S
+1,
1
1
0
1
0
1
D 10
D 12
D 14
D 14
D 14
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
10.9 FNC 28 – WXOR / Logical Exclusive OR
S
1
+1,
D
].
S
S
S
+1,
1
1
2
D
S
+1,
1
S
+1,
S
] [
1
1
S
S
+1,
2
2
0
0
1
1
+1,
S
] and [
S
+1,
1
2
S
D
D
+1,
+1,
2
+1,
] does not change.
D
S
] [
S
+1,
S
] do not
1
2
2
S
+1,
S
], it is automatically
2
2
1: ON, 0: OFF
D
D
+1,
DXOR (FNC 28) instruction
0
1
1
0
1
S
] in
2
2
3
4
5
6
7
8
9
10
283

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents