DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

Mnemonic

 

Operands

Function

 

 

 

Controllers

97

 

CNT

 

 

 

 

 

16-bit counter

 

 

 

 

ES2/EX2 SS2 SA2 SX2

 

 

 

 

 

 

 

 

 

 

SE

Type

Bit Devices

 

 

 

Word devices

 

 

 

 

Program Steps

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

CNT: 5 steps

S1

 

 

 

 

 

 

 

 

 

*

 

 

 

 

S2

 

 

 

 

 

 

*

 

 

 

*

 

 

 

PULSE

 

16-bit

 

 

 

32-bit

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

SE

SE

SE

 

Operands:

S1: No. of 16-bit counter (C0~C199) S2: 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

CNT

C20

K100

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Code:

 

Operation:

LD

X0

 

; Load NO contact X0

CNT

C20 K100

 

; C20 counter setting is K100

3 - 264

Page 380
Image 380
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Cnt, C20 K100