PACSystems RX3i Serial Communications Modules User`s Manual


Add to my manuals
269 Pages

advertisement

PACSystems RX3i Serial Communications Modules User`s Manual | Manualzz

9

Logical Operators: XOR

The XOR operator performs a bitwise XOR of two integers or array elements. The module sets the ERROR variable if an error occurs. The possible results of the OR operation are:

Syntax: exp1 XOR exp2

Example:

DIM intvar INTEGER

DIM intvar2 INTEGER intvar = intvar2 XOR 55H

EXP1 EXP2 Result

0 0 0

0 1 1

1 0 1

1 1 0

Logical Operators: MOD

The MOD operator returns the remainder of [variable1] divided by [variable2]. The module sets the ERROR variable if the value of variable2 is zero.

Syntax: variable = [variable1] MOD [variable2]

Example:

DIM intvar INTEGER

DIM intvar2 INTEGER

intvar = intvar2 MOD 100

9-36 PACSystems* RX3iSerial Communications Modules – June 2010 GFK-2460E

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents