372
5
5 High-speed Input5.4.6 DHSOR High-speed Interrupt Comparison Setting
5.4.6 DHSOR High-speed Interrupt Comparison Setting
◆
Overview
Bit elements are reset by high-speed interrupt comparison reset.
DHSOR S1 S2 D Interrupt comparison reset
Applicable model: H
3
U
-
PM
S1
Target comparison
value
Set interrupt comparison value
32-bit instruction (13
steps)
Continuous execution
S2 Comparison object
High-speed output value and position
values of electronic cams
D Output result Output result of interrupt comparison
◆
Operands
Operand
Bit Soft Component Word Soft Component
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 Modication K H E
S2
X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
D
X Y M T C S SM D R T C SD KnX KnY KnM KnS KnSM V Z Modication K H E
Note: The soft elements in gray background are supported.
◆
Functions and actions
When the present value of [S2] counter is equal to the set value of [S1], bit elements are reset.
[S2] variables must be the set value in the following table. As all objects involved are 32-bit elements, the
32-bit instruction DHSOR must be used.
Set Value Interrupt Comparison Object Remarks
K0 Position value of X axis (SD36, SD37) Corresponding to X axis
K1 Position value of Y axis (SD136, SD137) Corresponding to Y axis
K2 Position value of Z axis (SD236, SD237) Corresponding to Z axis
K11 M-Pos value of X axis cam (SD48, SD49) Corresponding to X axis
K12 M-Pos value of Y axis cam (SD148, SD149) Corresponding to Y axis
K13 M-Pos value of Z axis cam (SD248, SD249) Corresponding to Z axis
Others Not supported
[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; for M, S, or SM variable, the result is
immediately refreshed.
Set Value Interrupt Output Result
Y, M, and S Bit element output