IDEC MICRO/I HG4G-CJT22 F-B Series User Manual page 104

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

5 WindO/I-NV4 Common Operations and Settings
Data and operations that can be configured
Data
You can specify these types and values of data for conditional expressions.
Item
Set a constant number as data.
Value
The range that can be set differs according to the selected data type.
For details, refer to "Data types" on page 2-1.
Device Address
Set a device address for a bit device or a word device that stores the value to be handled as data.
Operators
Specify the type of arithmetic operation to execute on the data. (In the table below,
hand number,
Operator
+
-
Arithmetic
*
operators
/
%
==
!=
>=
Relational
*1
operators
<=
>
<
&
|
^
Bitwise
operators
~
<<
>>
&&
Logical
*1
operators
||
• You cannot select logical operators in the Trigger Condition Settings dialog box.
• You cannot mix bit devices and word devices in a conditional expression when using other than logical
operators.
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.
D10
For the operator priority, refer to Chapter 20 "6.3 About the Priority of the Operator" on page 20-59.
*1 1 if satisfied, 0 if not satisfied.
2-72
indicates the right-hand number.)
Addition
Adds
Subtraction
Subtracts
Multiplication
Multiplies
Division
Divides
Modulo
Calculates the remainder after dividing
Equal to
Compares if
Not equal to
Compares if
Greater than
Compares if
or equal to
Less than or
Compares if
equal to
Greater than
Compares if
Less than
Compares if
Bitwise AND
Calculates the logical product (AND) of each bit in
Bitwise OR
Calculates the logical sum (OR) of each bit in
Bitwise XOR
Calculates the exclusive logical sum (XOR) of each bit of
(exclusive OR)
.
Flips the logic of each bits of
Bitwise NOT
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.
Left shift
Shifts each bit of
Right shift
Shifts each bit of
Calculates the logical product (AND) of a conditional expression
Logical AND
and a conditional expression.
Calculates the logical sum (OR) of a conditional expression and a
Logical OR
conditional expression.
==
D11
+
2
4
WindO/I-NV4 User's Manual
Description
Details
and
.
from
.
and
.
by
.
is equal to
.
is not equal to
.
is equal or greater than
is equal or less than
is greater than
.
is less than
.
.
to left for
bit(s).
to right for
D12
*
2
+
1
3
indicates the operator's left-
by
.
.
.
and
.
and
.
and
bit(s).
D13
Supported
device
Bit
Word
device
device
NO
YES
NO
YES
NO
YES
NO
YES
NO
YES
YES
YES
YES
YES
NO
YES
NO
YES
NO
YES
NO
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents