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

X20

X21

X0 count up

X1 count down

C247 present value

3 3

2

1

0

Y0, C247 contact

7

6

5

4

6 5

4

AB-phase input high-speed counter:

Example:

 

LD

M1002

MOV

K2 D1022

LD

X20

RST

C251

LD

X21

DCNT

C251 K5

LD

C251

OUT

Y0

M1002

MOV K2 D1022

X20

RST C251 X21

DCNT C251 K5 C251

Y0

1.When X20 is ON, RST instsruction executes and the current value in C251 will be cleared. Contact C251 will be OFF.

2.When X21 is ON, C251 receives A phase counting signal of X0 input terminal and B phase counting signal of X1 input terminal and executes count up or count down

3.When counter C251 reaches K5, contact C251 will be ON. If there is still input signal from X0 or X1, C251 will keep on counting

4.Counting mode can be specified as double frequency or 4-times frequency by D1022. Default: quadruple frequency.

2 - 38

Page 70
Image 70
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual AB-phase input high-speed counter Example, Mov