361
5
5 High-speed Input 5.4.2 HSCS Comparison Setting
4
)
Example
2
:
●
Main program:
●
I010 interrupt subprogram
The D operand range of the DHSCS instruction can also be specied as I0x0 (x = 1–8). When the counter
reaches the set value, interrupt routines are triggered.
If M8059 is set to ON, all high-speed counter interrupts are disabled.
Differences of the ON signal on D operand with I010 or Y, M, or S outputs:
• With Y output: When the present value of C252 changes from 99 to 100 or from 101 to 100, Y is set to ON
immediately and remains ON. Even if values of C252 and K100 are not equal by comparison, Y remains ON,
unless there is an additional reset operation.
• With I010: When the present value of C252 changes from 99 to 100 or from 101 to 100, I010 will trigger only one
interrupt.
The program
is running
The program
is running