17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

9. Count value storage function of high speed interrupt:<br />

‣ When X1, X3, X4 and X5 is applied for reset function and associated external interrupts<br />

are disabled, users can define the reset function as Rising/Falling-edge triggered by<br />

special M relays specified in the table: Applicable Software High Speed Counters.<br />

However, if external interrupts are applied, the interrupt instructions have the priority in<br />

using the input points. In addition, PLC will move the current data in the counters to the<br />

associated data registers below then reset the counters<br />

‣ When X0 (counter input) and X1 (external Interrupt I100/I101) work with C243, the<br />

count value will be moved to D1240 and D1241 when interrupt occurs and then the<br />

counter will be reset.<br />

‣ When X2 (counter input) and X3 (external Interrupt I300/I301) work with C244, the<br />

count value will be moved to D1242 and D1243 when interrupt occurs and then the<br />

counter will be reset.<br />

‣ When X0 (counter input) and X4 (external Interrupt I400/I401) work with C246, C248,<br />

C252, the count value will be moved to D1240 and D1241 when interrupt occurs and<br />

then the counter will be reset.<br />

‣ When X2 (counter input) and X5 (external Interrupt I500/I501) work with C244, C250,<br />

C254, the count value will be moved to D1242 and D1243 when interrupt occurs and<br />

then the counter will be reset.<br />

Special D D1241, D1240 D1243, D1242<br />

Counter C243 C246 C248 C252 C244 C250 C254<br />

Interrupt X1(I100/I101) X4(I400/I401) X3(I300/I301) X5(I500/I501)<br />

Program Example 4:<br />

EI<br />

M1000<br />

DCNT C243 K100<br />

I101<br />

M1000<br />

DMOV D1240 D0<br />

FEND<br />

IRET<br />

END<br />

‣ If interrupt I101 is triggered from input point X1 while C243 is counting, I101 interrupt<br />

subroutine executes immediately and the count value in C243 will be moved to D0.<br />

After this, C243 is reset.<br />

3-129

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!