EasyManua.ls Logo

Inovance H3U Series - Comparison Setting; HSCS Comparison Setting

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...
342
5
5 High-speed Input5.2.1 HSCS Comparison Setting
5.2.1 HSCS Comparison Setting
Overview
Compare the present value of the counter with the comparison value. If the values are equal, immediately
set the comparison output, independent of the scan duration.
HSCS
S1 S2 D
(High
-
speed Counter)
Comparison Setting
Applicable Model:
H3U
S1
Source
data
Set comparison value: 32 bits
32-bit instruction
(13 steps)
DHSCS: 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
Counter interrupt
number
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 set value of [S1], immediately set [D].
[S2] variables must be high-speed counters C235-C255. As all counters involved are 32-bit counters, the
32-bit instruction DHSCS must be used.
[D] is the storage unit for the comparison result and can also be used to call counter interrupt subprograms:
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.
When [D] is I010 to I080, 0-7 input interrupt subprograms of the high-speed counter are called. The
corresponding interrupt subprograms must be programmed and the corresponding "Enable Interrupts" and
"Enable Global Interrupts" ags must be turned on before timer interrupts are triggered. When M8059 is set
to ON, all high-speed counter interrupts (I010-I080) are disabled.
The difference between Y outputs of common instructions and Y outputs of the DHSCS instruction is as
follows: (Example 1)
When the present value of C255 changes from 99 to 100, C255 contact is immediately connected. When the
instruction is executed at OUT Y10, Y10 will still be affected by the scan cycle and the value will be output after the
program execution and I/O refresh are nished.
When the present value of C255 changes from 99 to 100 or from 101 to 100, the DHSCS instruction on Y10 is
immediately output to the external output in interrupt mode, which is independent of the PLC scan cycle but still
affected by output delays of the output module relay (10 ms) or transistor (10 us).

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals