8 Application Examples
Ladder diagram for trigger condition 3: Operation:
D1824
D1836
D1837
DMOV
D1848
DMOV
D1838
M1002
K0
K100000
K10000
DMOV
MOV
MOV
MOV
K100
K100
K100
D1840
MOVP
X7
D1846
H102
TMR
T0
K100
T1
T2
T3
DMOVP
K20000
K9000
K18000
K7000
TMR
K100
TMR
K100
T0
T1
T2
DMOVP
D1840
D1840
TMR
K100
DMOVP
D1840
DMOVP
D1840
T3
Setting the bias speed of X axis (V )
BIAS
Setting the acceleration time of X axis (T )
ACC
Setting the deceleration time of X axis (T )
DEC
Clearing the present position of the X-axis to 0
Setting the total distance of all segments for the X-axis
Setting the operation speed for the first segment on the X-axis
X7=ON: The single speed positioning mode on the X-axis is enabled.
T0 begins to count, and prepares to switch to the second segment.
T0=ON: The operation speed is modified into 20,000Hz.
T1 begins to count, and prepares to switch to the third segment.
T1=ON: The operation speed is modified into 9,000Hz.
T2 begins to count, and prepares to switch to the fourth segment.
T2=ON: The operation speed is modified into 18,000Hz.
T3 begins to count, and prepares to switch to the fifth segment.
T3=ON: The operation speed is modified into 7,000Hz.
Pulse output will be finished in this segment.
8.4 Connecting DVP20PM00D (as a Master) and DVP01PU-H2 (as a Slave)
for Controlling the Third Axis
Operation:
1. Enable O100 and execute OX0.
2. When the execution encounters G01 Z-25000 F10000 in OX0 subroutine, the program calls P255
3. In P255, when D1328 < 0, drive DVP01PU-H2 to control the 3
rd
axis. Move to target position K1,000
in operation speed K10,000.
4. Return to OX0 after the execution of P255 is completed. Wait for 10 seconds.
5. When the execution encounters G01 Z10000 F20000 in OX0 subroutine, the program will call P255.
6. In P255, when D1328 > 0, drive DVP01PU-H2 to control the 3
rd
axis. Move to target position K2,000
in operation speed K20,000.
7. Return to OX0 after the execution of P255 is completed.
Instruction List of O100 and subroutines:
Instruction mode: Design instructions for initializing the present status of the X-axis/Y-axis and enabling
OX0 motion subroutine.
O100 main program
(O100) O100 main program
LD M1002
MOV H8000 D1868 Write in the No. (0) of OX to be enabled
SET M1074 Enable OX motion subroutine
M102
OX0 subroutine
(OX0) OX0 subroutine
DVP-20PM Application Manual
8-11