EasyManua.ls Logo

Inovance H3U Series - HSZ Range Comparison

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...
346
5
5 High-speed Input5.2.3 HSZ Range Comparison
Input
Port
H3U Standard
Model
X00 X01 X02 X03 X04 X05 X06 X07
H3U-PM
Motion
Control Model
X-axis
PG0
Y-axis
PG1
Z-axis
PG2
Enable Pulse
Capture
M8080 M8081 M8082 M8083 M8084 M8085 M8086 M8087
Pulse Capture
Flag
M8090 M8091 M8092 M8093 M8094 M8095 M8096 M8097
5.2.3 HSZ Range Comparison
Overview
Compare the present value of the counter with the comparison value. If the values are equal, immediately
reset the comparison output, independent of the scan duration.
HSZ
S1 S2 S D
(High
-
speed counter)
Range Comparison
Applicable Model:
H3U
S1
Source
data
Lower limit
32-bit instruction (17
steps)
DHSZ: Continuous
execution
S2
Source
data
Upper limit
S
Source
data
Specied high-speed counters: C235–C255
D Result Storage unit for the comparison result
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
S X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D 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.
Functions and actions:
Compare the present value of the counter [S] with the set comparison range [S1] to [S2], and immediately
output the comparison result to three units starting with [D]. In the instruction:
[S1] is the lower limit of the comparison range (32 bits), and its value must be no greater than the value of
[S2], that is, [S1] ≤ [S2].
[S2] is the upper limit of the comparison range (32 bits), and its value must be no smaller than the value of
[S1], that is, [S1] ≤ [S2].
[S] variables must be high-speed counters C235–C255. As all counters involved are 32-bit counters, the
32-bit instruction DHSZ must be used.
[D] is the head address of three consecutive storage units for the comparison result: when it is Y0 to Y17
port, the result is immediately output; when it is a port with the number greater than Y20, the result is output
after the user program is scanned; for M, S, or SM variable, the result is immediately refreshed.
1
)
Note:
The action principle of this instruction is similar to that of HSCS and HSCR instructions. The difference lies in that
two comparison values are used and the comparison output uses three consecutive address units. See the in-
struction for use of “5.2.2 HSCR Comparison Reset” on page 344.
The HSZ instruction operates in interrupt mode. Only when corresponding inputs of the counter have count pulses,
comparison is carried out and corresponding outputs are refreshed.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals