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

 

16 bits

 

32 bits counters

 

 

 

counters

 

 

 

 

 

 

 

 

Output

Ouptut Coil

Output coil is ON when counter reaches or

 

Output coil is ON

will be ON

 

is above preset value.

 

when counter

contact

when counter

 

Output coil is OFF when counter is below

 

reaches or is above

function

reaches

 

preset value.

 

preset value

 

preset value.

 

 

 

 

 

 

 

 

Associated devices

 

 

 

 

 

are activated

 

 

 

High speed

-

immediately when

 

-

preset value is

 

conparison

 

 

reached, i.e.

 

 

 

 

 

 

 

 

 

 

independant of scan

 

 

 

 

 

time.

 

 

 

Reset

The present value will reset to 0 when RST instruction is executed, output coil will

action

be OFF.

 

 

 

 

 

 

 

 

 

 

Example:

LD

X0

 

RST

C0

 

LD

X1

 

CNT

C0

K5

LD

C0

 

OUT

Y0

 

When X0 = ON, RST instruction resets

C0. Every time When X1 is driven, C0 will count up (add 1).

When C0 reaches the preset value K5, output coil Y0 will be ON and C0 will stop counting and ignore the signals from input X1.

X0

RST C0 X1

CNT C0 K5 C0

Y0

X0

X1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

5

 

 

 

 

C0

 

 

 

 

 

 

3

 

 

settings

 

 

 

 

 

 

 

 

 

 

 

 

 

 

present

 

 

 

2

 

 

 

 

 

 

 

 

 

 

value

0

 

1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Contacts Y0, C0

0

2 - 32

Page 64
Image 64
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Example, Rst Cnt Out