691
11
11 Interrupt
11.5 Pulse Complete Interrupt
●
Example 2:
a) Main program:
b) I010 interrupt subprogram
I0x0 (x = 1 to 8) can be specied based on the D operand range of the DHSCS instruction. When the
counter value reaches the preset one, the device executes an interrupt program.
If M8059 is set to ON, all high-speed counter interrupts are disabled.
Note differences of the ON signal on D device with I010 or Y, M, or S outputs.
1. 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 it is reset.
2. I010: When the present value of C251 changes from 99 to 100 or from 101 to 100, I010 will trigger only
one interrupt and will not always remain ON.
11.5 Pulse Complete Interrupt
11.5.1 Overview
On an H3U standard PLC, when special bits M8352, M8372, M8392, M8412, and M8432 (corresponding
to Y0 to Y4, respectively) are ON, the pulse output complete interrupt function can be enabled by executing
the PLSY, PLSR, DRVA, or DRVI positioning instruction.
The following table lists the correlation.
Port Number Special Bit in Use User Interrupt
Y00 M8352 I502
Y01 M8372 I503
Y02 M8392 I504
Y03 M8412 I505
Y04 M8432 I506
On an H3U-PM PLC, when special bits M8352, M8372, and M8392 (corresponding to the x-axis, y-axis,
and z-axis, respectively) are ON, the pulse output complete interrupt function can be enabled by executing
the PLSY, PLSR, DRVA, or DRVI positioning instruction.
The following table lists the correlation.
Interrupt Object Correlation with H3U
X axis X axis output complete interrupt Y0 pulse output interrupt I502
Y axis Y axis output complete interrupt Y1 pulse output interrupt I503
Z axis Z axis output complete interrupt Y2 pulse output interrupt I504