371
5
5 High-speed Input 5.4.5 DHSOS High-speed Interrupt Comparison Setting
Set Value Interrupt Output Result
Y, M, and S Bit element output
I interrupts High-speed counter interrupts
SM60 Starting X-axis electronic cam
SM160 Starting Y-axis electronic cam
SM260 Starting Z-axis electronic cam
For starting electronic cams, see Section 8.4.
1
)
Note:
●
DHSOS and DHSOR can be used for multiple times, but there should be no more than two instructions driven by
one axis (see the description of comparison objects below).
For example:
●
Comparison objects of DHSCS, DHSCR, DHSZ, DHSOS, and DHSOR instructions (see the description of
comparison objects below) include high-speed counters, position values of high-speed outputs, and position
values of electronic cams. Comparison objects of high-speed interrupt comparison instructions driven by one axis
must be consistent; otherwise, errors will be reported. The following describes comparison objects:
Interrupt Comparison Object 1 Interrupt Comparison Object 2 Interrupt Comparison Object 3 Remarks
C252
(DHSCS, DHSCR, and DHSZ
instructions are driven)
K0
(DHSOS and DHSOR
instructions are driven)
K11
(DHSOS and DHSOR
instructions are driven)
The instructions cannot be driven
simultaneously but at different time.
C253
(DHSCS, DHSCR, and DHSZ
instructions are driven)
K1
(DHSOS and DHSOR
instructions are driven)
K12
(DHSOS and DHSOR
instructions are driven)
The instructions cannot be driven
simultaneously but at different time.
C254
(DHSCS, DHSCR, and DHSZ
instructions are driven)
K2
(DHSOS and DHSOR
instructions are driven)
K13
(DHSOS and DHSOR
instructions are driven)
The instructions cannot be driven
simultaneously but at different time.
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).
2
)
Example:
As shown above, the comparison object is set to K0, indicating the present high-speed output value. When
the present high-speed output value is 500K, set Y5; when the present high-speed output value is 700K,
reset Y5.