DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
X21
0
1
2
3
4
5
X20
6
7
6
5
4
3
X1
count up
X0
count down
C247
present
value
Y0, C247 contact
AB-phase input high-speed counter:
Example:
LD M1002
C251
Y0
X21
C251 K5DCNT
C251RST
X20
M1002
K2 D1022MOV
MOV K2 D1022
LD X20
RST C251
LD X21
DCNT C251 K5
LD C251
OUT 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