370
5
5 High-speed Input5.4.5 DHSOS High-speed Interrupt Comparison Setting
5.4.5 DHSOS High-speed Interrupt Comparison Setting
◆
Overview
By high-speed counter interrupt comparison setting, the PLC system sets bit elements, enables counter
interrupts, and starts electronic cams.
DHSOS S1 S2 D
Interrupt comparison
setting
Applicable Model: H3U-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
High-speed counter interrupt
number
SM60, SM160, SM260
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], the PLC system sets bit elements,
enables counter interrupts, and starts electronic cams.
[S2] variables must be the set value in the following table. As all objects involved are 32-bit elements, the
32-bit instruction DHSOS 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 and can also be used to call counter interrupt subprograms
and start electronic cams.
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.
When [D] is SM60, SM160, or SM260, electronic cams are immediately started provided that the
corresponding cam conguration must have been programmed.