Omron SYSMAC CJ Operation Manual page 276

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

All BASIC commands
4-2-261 XOR
264
/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.
/i
Bit 1
0
0
1
1
/i
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
Bit 2
0
1
0
1
Section 4-2
Result
0
1
1
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents