290
FX
3G
/FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
10 Arithmetic and Logical Operation (
+
,
−
,
×
,
÷
) – FNC 20 to FNC 29
10.9 FNC 28 – WXOR / Logical Exclusive OR
2. 32-bit operation (DXOR and DXORP)
The exclusive logical sum (XOR) operation is executed to the contents of [
+1,
] and [
+1,
] in
units of bit, and the result is transferred to [
+1,
].
• While the command input is OFF, the data of the transfer destination [
+1,
] does not change.
• While the command input is ON, the data of the transfer source [
+1,
] [
+1,
] do not
change.
• When a constant (K) is specified in the transfer source [
+1,
] [
+1,
], it is automatically
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).
1: ON, 0: OFF
Program example
By combining WXOR and CML (FNC 14) instructions, the exclusive logical sum not (XORNOT) operation can be
executed.
+1,
+1,
+1,
DXOR (FNC 28) instruction
Logical operation
(unit: bit)
0
0
0
1
0
1
0
1
1
1
1
0
S
1
S
1
S
2
S
2
D
D
Command
input
FNC 28
DXOR
S1
S2
D
+1,
∀
+1,
→
+1,
S
1
S
2
D
S
1
S
2
D
D
D
S
1
S
1
S
2
S
2
S
1
S
1
S
2
S
2
S
1
S
1
S
2
S
2
D
D
X000
FNC 28
WXOR
D 10
D 12
D 14
FNC 14
CML
D 14
D 14
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......