EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8 Application Examples
8.2.2 Designing an Example Program
To design the example program, users can divide the program into four sections including OX0~M2,
O100~M102, P255~SRET and P0~SRET explained below.
1. OX0~M2: Setting the function parameters of X-axis and Y-axis
When DVP-20PM runs and motion subroutine (OX) is ready (M1792 = ON), set ON X0 to enable
OX0 motion subroutine. OX0 will set up parameters for zero return, JOG speed, and input terminal
polarity on X-axis/Y-axes.
Next, enable zero return and move to (-200000, -200000) on X-axis/Y-axis by 100 kHz then reset
the current position to 0 and call P0 subroutine. OX0 subroutine will end when the execution of P0
subroutine is completed.
If users need to set up other control modes, please refer to explanations on special registers in
Chapter 3.
Ladder diagram: Operation:
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
Zero return speed (VRT) of the X-axis = 200kHz
Zero return deceleration speed (VCR) of the X-axis = 200kHz
Zero return speed (VRT) of the Y-axis = 200kHz
Zero return deceleration speed (VCR) of the Y-axis = 200kHz
JOG speed of the X-axis = 100kHz
JOG speed of the Y-axis =100kHz
Set up input terminal polarity of the X-axis/Y-axis
Enable zero return on the X-axis/Y-axis
Move to (-200000,-200000) on the X-axis/Y-axis by 100kHz.
Clear the current position of the X-axis to 0.
Clear the current position of the Y-axis to 0.
Call the subroutine 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 further place other operations in the main program.
Ladder diagram: Operation:
X0
MOV
D1868
H8000
OUT
M1074
M1792
T1
TMR
K100
T0
T0
TMR
K100
T1
OUT
Y0
When OX is ready (M1792 = ON), OX0
motion subroutine can be enabled by X0.
Enable OX0 motion subroutine
Other operations
Other operations
Other operations
DVP-20PM Application Manual
8-7

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals