3
Functions of Devices in DVP-PM
DVP-PM Application Manual
3-41
The program of step 3 and step 4 is as below:
C204
K10
X0
HA
K1M1204
MOVP
DCNT
In O100 main program, design the 2
nd
set of high speed counter with both A/B phase counting mode and reset
function by setting K1M1024 = HA, i.e. b0/b1 = K2 and b3(M1207) = 1. When the instructions execute, C204 will start
the counting. If the reset signal input X11- is triggered, the value in C204 will be reset immediately.
Function Group:
High Speed Timing
Number:
M1200/C201, M1204/C205, M1208/C209, M1212/C213, M1216/C217, M1220/C221
Explanations:
DVP-10PM provides 6 sets of high speed timers as the table below:
Timing mode
Timer
Device
b0 / b2
Start
signal
Storage timer
1
st
set
C200
K1M1200
X10
C201
2
nd
set
C204
K1M1204
X11
C205
3
rd
set
C208
K1M1208
X12
C209
4
th
set
C212
K1M1212
X13
C213
5
th
set
C216
K1M1216
X0
C217
6
th
set
C220
K1M1220
Bit3
Bit2
Bit1
Bit0
x
Start
timing
x
Mode
setting
b0 = 0: Normal mode.
The timing interval is from the rising edge
to the falling edge.
b0 = 1: Cycle mode.
The timing interval is from one rising
edge to the next rising edge
b2 = 1: Enabing high speed timing
function
X1 C221
Example 1: Use the 3
rd
set of timer and set up the timing mode as Normal mode:
1. In O100 main program, design the 3
rd
set of high speed timer with normal timing mode by setting K1M1208 = K4,
i.e. b0=0, b2 = 1.
2. Execute the program and C208 will start to time the interval from rising edge to falling edge of the start signal X12.
The timed interval will be stored in C209 with the timer resolution 0.01us as the timing diagram below:
t1
t2
X12
t
C209
C209
Normal mode. Unit: 0.01
μ
s
The example program of step 1 and step 2 is as below:
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...