EasyManua.ls Logo

Inovance H3U Series - Comparison Reset; HSCR Comparison Reset

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...
344
5
5 High-speed Input5.2.2 HSCR Comparison Reset
With Y output: when the present value of C252 changes from 99 to 100 or from 101 to 100, Y is set to ON
immediately and remains ON. Even if values of C252 and K100 are not equal by comparison, Y remains ON,
unless there is an additional reset operation.
With I010: When the present value of C252 changes from 99 to 100 or from 101 to 100, I010 will trigger only one
interrupt.
5.2.2 HSCR Comparison Reset
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.
HSCR
S1 S2 D
(High
-
speed counter)
Comparison reset
Applicable Model:
H3U
S1
Source
data
Set comparison value: 32 bits
32-bit instruction
(13 steps)
DHSCR:
Continuous
execution
S2
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
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:
When the present value of S2 counter is equal to the value of S1, immediately reset [D].
S2 variables must be high-speed counters C235–C255. As all counters involved are 32-bit counters, the
32-bit instruction DHSCR must be used.
[D] is the storage unit 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;
when it is M, S, or SM variable, the result is immediately refreshed.
1
)
Note:
Except that the HSCR instruction cannot use high-speed counter interrupts as comparison outputs, the
operation principle of the HSCR instruction is the same as that of the HSCS instruction. The comparison
output action of the HSCR instruction is just the opposite of that of the HSCS instruction. That is, when the
present value of the counter is equal to the set value, the specied output is reset. For the instruction for
use, see
“5.4.2 HSCS Comparison Setting” on page 358
.
The difference between Y outputs of common instructions and Y outputs of the DHSCR instruction is as
follows: (Example 1)

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals