beautypg.com

Delta DVP-ES2 User Manual

Page 380

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3-264

API Mnemonic Operands

Function

97

CNT

16-bit counter

Controllers

ES2/EX2 SS2 SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y M S K H

KnX

KnY KnM KnS T C D E F

S

1

*

S

2

*

*

CNT: 5 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

S

1

: No. of 16-bit counter (C0~C199) S

2

: Set value (K0~K32,767, D0~D9,999)

Explanations:

1.

When the CNT instruction is executed, the specific coil of counter is driven from OFF to ON

once, which means the count value of counter will be added by7 1. When the accumulated

count value achieves the set value, the associated NO/NC contact will be driven.

2.

When set value of counter is achieved and the counter is driven again, the count value and the

status of the associated contact will remain intact. If users need to restart the counting or clear

the count value, please use RST instruction.

Program example:

Ladder Diagram:

X0

C20

CNT

K100

Instruction

Code: Operation:

LD

X0

;

Load

NO

contact

X0

CNT

C20 K100

; C20 counter setting is K100

This manual is related to the following products: