Mitsubishi Electric MELSEC FX3U Programming Manual page 305

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
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 [
] in units of bit, and the result is transferred to [
S
2
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 [
automatically converted into the 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
S1
S2
D
S
+1,
S
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
+1,
].
D
D
S
S
S
S
1
+1,
1
2
+1,
D
+1,
S
1
+1,
] [
S
S
1
1
S
+1,
S
2
2
0
0
1
1
+1,
] and [
S
S
S
1
1
2
D
D
2
+1,
+1,
] does not change.
D
] [
+1,
] do not
S
S
S
1
2
2
+1,
], it is
S
S
2
2
1: ON, 0: OFF
+1,
D
D
DXOR (FNC 28) instruction
0
1
1
0
303
1
+1,
2
3
4
5
6
7
8
9
10

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents