Delta DVP-ES2 User Manual
Page 245
3 . I n s t r u c t i o n S e t
3 - 1 2 9
9.
Count value storage function of high speed interrupt:
¾ When X1, X3, X4 and X5 is applied for reset function and associated external interrupts
are disabled, users can define the reset function as Rising/Falling-edge triggered by
special M relays specified in the table: Applicable Software High Speed Counters.
However, if external interrupts are applied, the interrupt instructions have the priority in
using the input points. In addition, PLC will move the current data in the counters to the
associated data registers below then reset the counters
¾ When X0 (counter input) and X1 (external Interrupt I100/I101) work with C243, the
count value will be moved to D1240 and D1241 when interrupt occurs and then the
counter will be reset.
¾ When X2 (counter input) and X3 (external Interrupt I300/I301) work with C244, the
count value will be moved to D1242 and D1243 when interrupt occurs and then the
counter will be reset.
¾ When X0 (counter input) and X4 (external Interrupt I400/I401) work with C246, C248,
C252, the count value will be moved to D1240 and D1241 when interrupt occurs and
then the counter will be reset.
¾ When X2 (counter input) and X5 (external Interrupt I500/I501) work with C244, C250,
C254, the count value will be moved to D1242 and D1243 when interrupt occurs and
then the counter will be reset.
Special D
D1241, D1240
D1243, D1242
Counter C243 C246
C248
C252
C244 C250
C254
Interrupt X1(I100/I101)
X4(I400/I401) X3(I300/I301)
X5(I500/I501)
Program Example 4:
M1000
DCNT
C243
K100
EI
FEND
I101
M1000
IRET
END
DMOV
D1240
D0
¾ If interrupt I101 is triggered from input point X1 while C243 is counting, I101 interrupt
subroutine executes immediately and the count value in C243 will be moved to D0.
After this, C243 is reset.