Data and operations that can be configured – IDEC High Performance Series User Manual

Page 100

Advertising
background image

5 WindO/I-NV2 Common Operations and Settings

2-70

WindO/I-NV2 User’s Manual

Data and operations that can be configured

Data
You can specify these types and values of data for conditional expressions.

Operators
Specify the type of arithmetic operation to execute on the data. (In the table below,

indicates the operator’s left-

hand number,

indicates the right-hand number.)

*1 1 if satisfied, 0 if not satisfied.

Item

Description

Value

Set a constant number as data.
The range that can be set differs according to the selected data type.
For details, refer to “Data types” on page 2-2.

Device

Set a device address for a bit device or a word device that stores the value to be handled as data.

Operator

Details

Supported

device

Bit

device

Word

device

Arithmetic

operators

+

Addition

Adds

and .

NO

YES

-

Subtraction

Subtracts

from .

NO

YES

*

Multiplication

Multiplies

and .

NO

YES

/

Division

Divides

by .

NO

YES

%

Modulo

Calculates the remainder after dividing

by

.

NO

YES

Relational
operators

*1

==

Equal to

Compares if

is equal to

.

YES

YES

!=

Not equal to

Compares if

is not equal to

.

YES

YES

>=

Greater than

or equal to

Compares if

is equal or greater than

.

NO

YES

<=

Less than or

equal to

Compares if

is equal or less than

.

NO

YES

>

Greater than

Compares if

is greater than

.

NO

YES

<

Less than

Compares if

is less than

.

NO

YES

Bitwise

operators

&

Bitwise AND

Calculates the logical product (AND) of each bit in

and

.

YES

YES

|

Bitwise OR

Calculates the logical sum (OR) of each bit in

and

.

YES

YES

^

Bitwise XOR

(exclusive OR)

Calculates the exclusive logical sum (XOR) of each bit of

and

.

YES

YES

~

Bitwise NOT

Flips the logic of each bits of

.

For word device and fixed values, 0 will be 65535 and 65535 will be 0.

For bit device, 0 will be 1, and 1 will be 0.

YES

YES

<<

Left shift

Shifts each bit of

to left for

bit(s).

YES

YES

>>

Right shift

Shifts each bit of

to right for

bit(s).

YES

YES

Logical
operators

*1

&&

Logical AND

Calculates the logical product (AND) of a conditional expression

and a conditional expression.

NO

YES

||

Logical OR

Calculates the logical sum (OR) of a conditional expression and a

conditional expression.

NO

YES

• You cannot select logical operators in the Trigger Condition Settings dialog box.
• You cannot mix bit devices and word devices in a conditional expression.

As a basic rule, conditional expressions are calculated in order from the left, but when multiple arithmetic
operations are combined, they are calculated according to the operator priority.
For [D 10] == [D 11] + [D 12] * 2 + [D 13], the expression is calculated in the following order.

For the operator priority, refer to Chapter 20 “6.4 About the Priority of the Operator” on page 20-55.

D10

==

D11

+

D12

2

+

*

D13

1

2

3

4

Advertising
This manual is related to the following products: