6 Basic Usage of Motion Instructions and G-codes
Example
After X0 is ON, DRVZ in Ox0 will be executed, and the Y-axis and the Z-axis will
be disabled from returning home. The X-axis accelerates to the V
RT
(500 kHz) in
100 ms, and operates at the V
RT
until DOG’s signal goes from low to high. When
DOG’s signal goes from low to high, the X-axis decelerates to the V
CR
(10 kHz)
in 100 ms. The mode of returning home is a normal mode. After the X-axis
rotates for a specific number of PG0 pulses, and rotate for a specific number of
supplementary pulses, it will stop. In the example, the number of PG0 pulses
and the number of supplementary pulses are 0. After DOG’s signal goes from
high to low, the X-axis will stop.
OUT
M1074
X0
MOVP
H8000
D1868
MOVP
H0
D1846
X0
BRET
DMOV
K500000
D1828
DMOV
K10000
D1830
MOV
K100
D1836
MOV K100
D1837
MOV
K0
D1832
MOV
K0
D1833
MOV
H0030
D1816
SET
M1825
DRVZ
Ox0
SET
M1985
Additional
remark
Relevant flags: Please refer to chapter 3 for more information.
M1745 Disabling the X-axis from returning home in the Ox motion
subroutine
M1825 Disabling the Y-axis from returning home in the Ox motion
subroutine
M1985 Disabling the Z-axis from returning home in the Ox motion
subroutine
M
1074 Enabling the Ox
motion subroutine specified
DVP-20PM Application Manual
6-25