Download Print this page

Mitsubishi Electric MELSEC FX Series Structured Programming Manual page 202

Hide thumbs Also See for MELSEC FX Series:

Advertisement

FXCPU Structured Programming Manual
(Basic & Applied Instruction)
7.3.9
WXOR
Outline
This instruction executes the exclusive logical sum (XOR) operation of two numeric values.
1. Format and operation, execution form
Instruction
Operation
name
WXOR
16 bits
WXORP
16 bits
DXOR
32 bits
DXORP
32 bits
2. Set data
Variable
EN
Input
variable
ENO
Output
variable
3. Applicable devices
Bit Devices
Operand
System User
type
X Y M T C S D .b KnX KnY KnM KnS T C D R
: Refer to "Cautions".
200
FX
3U(C)
Execution
form
Structured ladder
EN
Continuous
s1
s2
EN
Pulse
s1
s2
EN
Continuous
s1
s2
EN
Pulse
s1
s2
Execution condition
Data used for exclusive logical sum or word device storing data
Data used for exclusive logical sum or word device storing data
Execution state
Word device storing the exclusive logical sum result
Word Devices
Digit Specification
FX
FX
FX
3G
2N(C)
1N(C)
Expression in each language
WXOR
ENO
d1
WXORP
ENO
d1
DXOR
ENO
d
DXORP
ENO
d
Description
System
Special
Index
User
Unit
U \G
V Z Modifier
1
2
1
2
1
2
7 Applied Instructions
7.3 Arithmetic and Logical Operation
FX
FX
/FX
FX
1S
U
2C
ST
WXOR(EN,s1,s2,d1);
WXORP(EN,s1,s2,d1);
DXOR(EN,s1,s2,d1);
DXORP(EN,s1,s2,d1);
Data type
16-bit
operation
Bit
ANY16
ANY32
ANY16
ANY32
Bit
ANY16
ANY32
Others
Real
Character
Constant
Number
String
K
H
E
" "
FX
0N
0(S)
32-bit
operation
Pointer
P

Advertisement

loading

This manual is also suitable for:

Fxcpu