![background image](http://html1.mh-extra.com/html/omron/sysmac-cj-series/sysmac-cj-series_operation-manual_743585276.webp)
All BASIC commands
Section 4-2
264
4-2-261 XOR
/i
/i
/i
Type
Mathematical operation
Syntax
expression1 XOR expression2
Description
The
XOR
(eXclusive OR) operator performs the logical
XOR
function
between corresponding bits of the integer parts of two valid BASIC
expressions.
The logical
XOR
function between two bits is defined as in the table
below.
Bit 1
Bit 2
Result
0
0
0
0
1
1
1
0
1
1
1
0
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
VR(0)=10 XOR 18
The
XOR
is a bit operator and so the binary action taking place is as fol-
lows:
01010 XOR 10010 = 11000
. The result is therefore 24.
See also
N/A
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...