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 />

API Mnemonic Operands Function<br />

97 DCNT 32-bit counter<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong><br />

SE<br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F DCNT: 9 steps<br />

S 1 *<br />

S 2 * *<br />

Operands:<br />

S 1 : No. of 32-bit counter (C200~C254)<br />

S 2 : Set value (K-2,147,483,648~K2,147,483,647, D0~D9,999)<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Explanations:<br />

1. DCNT is the startup instruction for the 32-bit counters C200 to C254.<br />

2. For general counting up/down counters C200~C231(<strong>SS2</strong>/<strong>SA2</strong>/SE/<strong>SX2</strong>: C200~C232), the<br />

present value will plus 1 or minus 1 according to the counting mode set by flags<br />

M1200~M1231 when instruction DCNT is executed.<br />

3. For high speed counters C232~C254(<strong>SS2</strong>/<strong>SA2</strong>/SE/<strong>SX2</strong>: C233~C254), when the specified<br />

high speed counter input is triggered by pulse, the counters will start counting. For details<br />

about high-speed input terminals (X0~X7) and counting modes (count up/down), please refer<br />

to section 2.12 C (Counter).<br />

4. When DCNT instruction is OFF, the counter will stop counting, but the count value will not be<br />

cleared. Users can use RST instruction to remove the count value and reset the contact, or<br />

use DMOV instruction to move a specific value into the register. For high-speed counters<br />

C232~C254, use specified external input point to clear the count value and reset the contacts.<br />

Program Example:<br />

Ladder Diagram:<br />

M0<br />

DCNT<br />

C254<br />

K1000<br />

Instruction Code:<br />

<strong>Operation</strong>:<br />

LD M0 ; Load NO contact M0<br />

DCNT C254 K1000 ; C254 counter setting is K1000<br />

3-265

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

Saved successfully!

Ooh no, something went wrong!