EasyManua.ls Logo

Inovance H3U Series - Page 361

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...
360
5
5 High-speed Input5.4.2 HSCS Comparison Setting
For example, if the DHSOS instruction is used by X axis to compare the output value of X axis (K0), the
comparison object of the other simultaneously active instruction must be the output value of X axis (K0)
and can be neither the position value of the electronic cam (K11) nor the high-speed counter comparison
instruction (for C252).
Differences between Y outputs of common instructions and Y outputs of the DHSCS instruction is as
follows: (Example 1)
When the present value of C252 changes from 99 to 100, C252 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 C252 changes from 99 to 100 or from 101 to 100, the DHSCS instruction at 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).
2
)
Instruction for use:
Before the HSCS instruction is executed, the counter used must have been enabled (see Example 1); otherwise,
the value of the counter remains unchanged.
The counter responds to input signals in interrupt mode and timely compare values. If the compared values are
matched, the comparison output is immediately set. In Example 1, when the present value of C252 changes from
99 to 100 or from 101 to 100, Y10 is set immediately and remains in that state. Even if values of C252 and K100
are not equal by comparison, Y10 remains ON, unless there is an additional reset operation.
The comparison output of the instruction only depends on the comparison result at the pulse input. Without the
pulse input, even if the DMOV or DADD instruction is executed to rewrite the content of C252–C254 high-speed
counters, the comparison output remains unchanged. Flows driven by instructions cannot simply change the
comparison result.
When the target output of the HSCS instruction is counter interrupts I010–I080, each interrupt number can be
used for only once rather than reused. See the previous section for settings and use of counter interrupts.
3
)
Example
1
:
Action delay of Y10 related to the scan cycle
Immediate output of Y10
The program
is running

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals