Expression, 4ć13 – Rockwell Automation 1775-KA PLC-3 Communication Adapter Module User Manual User Manual

Page 69

Advertising
background image

Addressing Rules and Examples

Chapter 4

4Ć13

1. A remote address can be used only with the single equals sign (=)

type of assignment command.

2. In the assignment command, either the source or the destination, but

not both, may be a remote address.

3. A remote address may contain an embedded expression, but a remote

address may not be embedded in an expression.

Expressions use operators to combine two or more numeric values into a
single value. Table 4.B lists the operators that can be used in an
expression. These operators are listed from highest priority (1) to lowest
priority (10). Expressions may be nested within other expressions by
enclosing the inner expression within parentheses.

Table 4.B

Expression Operators

Operator

Operation

Order of

Execution

/

Bit operator

1

.NOT.

Logical complement

1

or .BNOT.

Bitwise 32-bit complement

1

*

Multiplication of 32 bits

2

%

Division of 32 bits

2

+

Addition of 32 bits

3

-

Subtraction of 32 bits

3

<<

Left arithmetic shift

4

>>

Right arithmetic shift

4

& or .BAND.

Bitwise 32-bit AND

5

or .BXOR.

Bitwise 32-bit EXCLUSIVE OR

6

or .BOR.

Bitwise 32-bit OR

7

.EQ.

Compare equals

8

.GT.

Compare greater than

8

.GE.

Compare greater or equal

8

Expression

Advertising