Chapter 6 Applied Instructions enable DCAP disable disable S 2 S 1 D - - 1000 2000 500 5. The instruction can start DCAP instructions for four different input points at most. If you set one input point as the external interrupt triggered by the rising edge and falling edge, the instruction captures the value when the input is triggered by the rising edge and by falling edge respectively, and stores the count value in the device specified by D . When two instructions specify the same interrupt input point, the one that starts first uses the interrupt input point first. 6. Set the HC device number in S 2 . It is recommended that you use the high-speed counters between HC200–HC255.
For details on the counters, refer to the explanation of the DCNT instruction (API 1004). Example 6_ External interrupt is triggered by the rising edge in X7. 6-297