3 xor (^), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 233: 3) programming examples, 2) format (3) programming examples

8 Command Reference
8.6.3 XOR (^)
8-126
8.6.3 XOR (^)
(1) Overview
XOR (^) performs an exclusive logical OR for the immediately preceding operation result and the specified reg-
isters, and then returns the operation result. Real number registers cannot be used.
(2) Format
(3) Programming Examples
The XOR (^) command programming examples are shown below.
Motion Programs
Sequence Programs
Applicable
Applicable
Table 8.5 Exclusive Logical OR Truth Table
(A= B ^ C)
B
C
A
0
0
0
0
1
1
1
0
1
1
1
0
MW00100 = DW00102 ^ AAAAH;
A B C
Item
Description
Usable Registers
A
Data output
• All integer and double integer type registers (Excluding # and C registers)
• The above registers with subscript
• Subscript registers
BÅCC
Data input
• All integer and double integer type registers (Excluding # and C registers)
• The above registers with subscript
• Subscript registers
• Constants
Type
Motion Programs/Sequence
Programs
Ladder Programs
B
−
−
W
MW00101=MW00100 ^ 00FFH;
L
ML00106=ML00102 ^ ML00104;
F
−
−
EXAMPLE