EasyManua.ls Logo

Inovance H3U Series - Page 88

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
87
4
4 Instructions 4.3.1 Contact Comparison
Use the 32-bit instruction ANDD
to compare 32-bit counters (C200–C255). If a different instruction is
used, an error will occur.
OR
: Data comparison
Overview
The OR☼ instruction compares two operands and outputs the comparison result as a logical state. The
variables in comparison are processed as signed numbers.
OR
S1 S2
Parallel contact
data comparison
Applicable model:
H3U
S1 Comparand 1 Data source to be compared or data variable unit 1
16-bit instruction
(5 steps)
OR=: Continuous
execution
32-bit instruction
(9 steps)
ORD=:
Continuous
execution
S2 Comparand 2 Data source to be compared or data variable unit 2
The
☼ comparison operator can be =, >, <, >=, <=, or <>.
Operands
Operand
Bit Element Word Element
System·User System·User Bit Designation Indexed Address Constant
Real
Number
S1 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
S2 X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM
V,Z
Modication K H E
Note: The elements in gray background are supported.
Function
The following table lists the methods of OR contact comparison.
16-bit
Instruction
FNC NO
32-bit
Instruction
Enabled State
Condition
Disabled State
Condition
OR= 240 ORD= S1 = S2 S1 S2
OR> 241 ORD> S1 > S2 S1 <= S2
OR< 242 ORD< S1 < S2 S1 >= S2
OR<> 244 ORD<> S1 <> S2 S1 = S2
OR<= 245 ORD<= S1 <= S2 S1 > S2
OR>= 246 ORD>= S1 >= S2 S1 < S2
Example:
[OR= D2 D4]
(M20)
[OR>= D6 K123]
ǒSET Y10Ǔ
M10
M20
M20 = ON when M10 = ON or D2 = D4.
Y10 = ON and remains in this state when
M20 = ON or D6 > K123.
Use the 32-bit instruction ORD ☼ to compare 32-bit counters (C200–C255). If a different instruction is
used, an error will occur.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals