3 Functions of Devices in DVP-PM
DVP-PM Application Manual
3-40
X0
In O100 main program, X0 enables OX99 subroutine and executes the instructions in OX99
Function Group:
High Speed Counting (DVP-10PM)
Number:
M1200/C200, M1204/C204, M1208/C208, M1212/C212, M1216/C216, M1220/C220
Explanations:
DVP-10PM provides 6 sets of high speed counters as the table below:
Counting mode
Counter
Device b0 / b1
Reset signal
(Valid only
when b3 = 1)
Input signal
1
st
set C200 K1M1200 X10- (M1203) X0, X1, S/S
2
nd
set C204 K1M1204 X11- (M1207) X2, X3, S/S
3
rd
set C208 K1M1208 X12- (M1211) X4, X5, S/S
4
th
set C212 K1M1212 X13- (M1215) X6, X7, S/S
5
th
set C216 K1M1216 X0 (M1219) X10+, X10-, X11+, X11-
6
th
set C220 K1M1220
0: U/D*
1: P/D*
2: A/B*
(Single
frequency)
3:4A/B
(Quadruple
frequency)
X1 (M1223) X12+, X12-, X13+, X13-
Note:
z U/D: Counting up / Counting down, P/D: Pulse / Direction, A/B: A-phase / B-phase
z Counters from set 1~4 apply open collector circuit; set 5~6 apply differential circuit.
The setting steps for using the 2
nd
set high speed counter are as below:
1. Design the 2
nd
set of high speed counter with A/B phase counting mode by setting K1M1204 = K2
2. Execute the instruction to start the counting.
The program of step 1 and step 2 is as below:
C204 K10
X0
K2 K1M1204MOVP
DCNT
3. If the reset signal is to be triggered from external signal, set K1M1024=H’A
:
M1027
M1026
M1025
M1024
1
0
1
0
4. Execute the instruction to start the counting of C204. When X0 is ON, C204 will be cleared immediately.