EasyManua.ls Logo

Inovance H3U Series - Page 96

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...
95
4
4 Instructions 4.3.1 Contact Comparison
ANDZ#: Absolute value comparison AND contact
Overview
The ANDZ# instruction compares the absolute value of the S1 and S2 subtraction result with the absolute
value in S3 and uses the comparison result to determine whether to set a contact to ON or OFF (a node
connected to another node in series).
ANDZ# S1 S2 S3
Absolute value comparison
AND contact
Applicable model:
H3U
S1 Subtrahend Source element of the subtrahend
16-bit instruction (5
steps)
ANDZ#: Continuous
execution
32-bit instruction (9
steps)
ANDDZ#:
Continuous
execution
S2 Minuend Source element of the minuend
S3
Comparative
value
Source element of the comparative value
Note: 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
S3 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 absolute value of the [S1] and [S2] subtraction result is compared with the absolute value in [S3]. The
instruction is enabled when conditions are met; otherwise, it is disabled.
16-bit Instruction 32-bit Instruction Enabled State
Condition
Disabled State
Condition
ANDZ> ANDDZ> |S1 – S2| > |S3| |S1 – S2| <= |S3|
ANDZ>= ANDDZ>= |S1 – S2| >= |S3| |S1 – S2| < |S3|
ANDZ< ANDDZ< |S1 – S2| < |S3| |S1 – S2| >= |S3|
ANDZ<= ANDDZ<= |S1 – S2| <= |S3| |S1 – S2| > |S3|
ANDZ= ANDDZ= |S1 – S2| = |S3| |S1 – S2| <> |S3|
ANDZ<> ANDDZ<> |S1 – S2| <> |S3| |S1 – S2| = |S3|
Application

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals