Delta AS Series Programming Manual page 578

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Additional remarks
1.
When M0 is ON, the DCAP instruction is enabled. When an external interrupt occurs at X0.7, the instruction
captures the value in HC200 and stores it in (32-bit) D0.
2.
When the external input interrupt is triggered by the rising edge once, the instruction modifies E0 to 0 by setting
D100, stores the count value in D0 in D10 by modifying E0, and the value in D100 is 0+2.
3.
When the external input interrupt is triggered by the falling edge one time, the instruction modifies E0 to 2 by
setting D100, stores the count value (10+E0=12) in D0 in D12 by modifying E0, and the value in D100 is 0+2.
When the value in D100 is 20, D100 is cleared to 0.
4.
If the external interrupt is triggered by the rising edge and falling edge five times respectively, the instruction
captures the value 10 times and stores the captured values in D10, D12...D28.
st
The 1
captured value= D10
nd
The 2
captured value= D12
...
...
th
The 10
captured value=D28
th
The 11
captured value=D10
Ch ap te r 6 Ap pl ie d Instruc ti ons
6_
6 - 2 9 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents