3 . Instruction Set

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:

I101

EI

M1000

DCNT C243 K100

FEND

M1000

DMOV D1240 D0

IRET

END

¾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.

3 - 129

Page 245
Image 245
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Fend