289
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
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction
Li
st
4
D
evices
in Det
ail
5
Specifi
ed the
De
vice
&
C
onst
ant
6
Bef
ore
Pr
og
ra
mmi
ng
7
Bas
ic
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
c
Operati
on
10.9
FNC 28 – WXOR / Logical Exclusive OR
Outline
This instruction executes the exclusive logical sum (XOR) operation of two numeric values.
1. Instruction format
2. Set data
3. Applicable devices
S
: This function is supported only in FX
3U
/FX
3UC
PLCs.
Explanation of function and operation
1. 16-bit operation (WXOR and WXORP)
The exclusive logical sum (XOR) operation is executed to the contents of
and
in units of bit, and the
result is transferred to
.
• While the command input is OFF, the data of the transfer destination
does not change.
• While the command input is ON, the data of the transfer sources
and
do not change.
• When a constant (K) is specified in the transfer sources
and
, it is automatically converted into binary
format.
• The logical exclusive 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
Operand type
Description
Data type
Data used for exclusive logical sum or word device number storing data
16- or 32-bit binary
Data used for exclusive logical sum or word device number storing data
16- or 32-bit binary
Word device number storing the exclusive logical sum result
16- or 32-bit binary
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modify K H
E
"
"
P
3
3
3
3
3 3 3 3
S
3 3
3
3 3
3
3
3
3
3 3 3 3
S
3 3
3
3 3
3
3
3
3 3 3 3
S
3 3
3
WXOR (FNC 28) instruction
Logical operation
(unit: bit)
0
0
0
1
0
1
0
1
1
1
1
0
DXOR
DXORP
Mnemonic
Operation Condition
W
P
FNC 28
XOR
D
16-bit Instruction
7 steps WXOR
WXORP
Mnemonic
Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
13 steps
Continuous
Operation
Pulse (Single)
Operation
S
1
S
2
D
S
1
S
2
D
S
1
S
2
D
Command
input
FNC 28
WXOR
S1
S2
D
∀
→
S1
S2
D
D
S
1
S
2
S
1
S
2
S
1
S
2
D
Содержание FX3G SERIES
Страница 1: ...FX3G FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS PROGRAMMING MANUAL Basic Applied Instructions Edition ...
Страница 2: ......
Страница 947: ......