8
Application Examples
DVP-PM Application Manual
8-8
8.2.2 Design Example Program
To design the example program, we can divide the program into four sections including OX0 ~ M2, O100 ~ M102,
P255 ~ SRET and P0 ~ SRET explained below.
1. OX0 ~ M2: set up function parameters of X, Y axes
When DVP-PM is in AUTO status and motion subroutine (OX) is ready (M1792 = ON), set ON X0 to ennable
OX0 motion subroutine. OX0 will set up parameters for zero return, JOG speed, and input terminal polarity on
X, Y axes.
Next, enable zero return and move to (-200000, -200000) on X, Y axes by 100kHz then reset the current
position to 0 and call P0 subroutine. OX0 subroutine will end when the execution of P0 subroutine is
completed.
If you need to set up other control modes, please refer to explanations on special registers in Chapter 3.
Ladder diagram:
Operation:
Zero return speed (V
RT
) of X axis = 200kHz
Zero return deceleration speed (V
CR
) of X
axis = 200kHz
Zero return speed (V
RT
) of Y axis = 200kHz
Zero return deceleration speed (V
CR
) of Y
axis = 200kHz
JOG speed of X axis = 100kHz
JOG speed of Y axis =100kHz
Set up input terminal polarity of X, Y axes
Enable zero return on X, Y axes
Move to (-200000,-200000) on X, Y axes by
100kHz.
Clear the current position of X axis as 0
Clear the current position of Y axis as 0
Call P0 subroutine
M1000
DMOV
D1828
K200000
BRET
DMOV
D1830
K200000
DMOV
D1908
K200000
DMOV
D1910
K200000
DMOV
D1826
K100000
DMOV
D1906
K100000
MOV
D1799
H3838
DRVZ
DRV X-200000 FX100000 Y-200000 FY100000
DMOV
D1848
K0
DMOV
D1928
K0
CALL
P0
2. O100 ~ M102: main program control
O100 main program controls whether to enable OX0 subroutine. When X0 (drive contact for enabling OX0)
and M1792 (indicating ready status of OX) in the program are ON, OX0 subroutine will be enabled. You can
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...