Fnc 28 - Wxor / Logical Exclusive Or - Mitsubishi FX3G Series Programming Manual

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
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
W
FNC 28
D
XOR
2. Set data
Operand type
S
1
S
2
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T
S
1
S
2
D
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (WXOR and WXORP)
The exclusive logical sum (XOR) operation is executed to the contents of
result is transferred to
Command
input
FNC 28
WXOR
• While the command input is OFF, the data of the transfer destination
• While the command input is ON, the data of the transfer sources
• When a constant (K) is specified in the transfer sources
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).
Logical operation
(unit: bit)
282
Series
Mnemonic
16-bit Instruction
P
7 steps WXOR
WXORP
Data used for exclusive logical sum or word device number storing data
Data used for exclusive logical sum or word device number storing data
Word device number storing the exclusive logical sum result
Digit Specification
/FX
3U
D
.
S1
S2
S
1
0
1
0
1
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
C D R U \G
PLCs.
3UC
D
S1
S2
S
1
S
and
1
S
0
0
1
1
10.9 FNC 28 – WXOR / Logical Exclusive OR
Mnemonic
Operation Condition
DXOR
13 steps
DXORP
Con-
Real
Index
stant
Number
V
Z Modify K H
E
S
and
S
in units of bit, and the
1
2
D
D
does not change.
and
do not change.
S
2
S
, it is automatically converted into binary
2
2
WXOR (FNC 28) instruction
Continuous
Operation
Pulse (Single)
Operation
Data type
16- or 32-bit binary
16- or 32-bit binary
16- or 32-bit binary
Others
Charac-
Pointer
ter String
" "
P
1: ON, 0: OFF
D
0
1
1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents