1 Program Framework of a DVP-PM Series Motion Controller
In order to describe the program, the program is divided into 5 sections (section (1)~section (5)).
.
.
.
.
.
.
.
.
(1)
(3)
(2)
(5)
.
.
.
.
.
.
.
.
(4)
.
.
.
.
.
.
.
M1000
CALL P1
MOV
H8000
D1868
SET
M1074
CALL P2
M1000
BRET
DMOV
MOV
H8003 D1868
M1074
SET
K0
D1848
M1000
.
.
Ox0
Motion subroutine
Calling P1
O100
Main program
Setting the motion subroutine number Ox0
Enabling Ox0
Calling P2
P1
Subroutine
Ox3
Motion subroutine
P2
Subroutine
Setting the motion subroutine number Ox3
Enabling Ox3
The program is described below.
1. Section (1)~section (5) are created in numerical order, but they can be arranged in any order.
2. There is only one O100. O100 can not be called by another program, but it can freely call Ox motion
subroutines and P subroutines.
3. Ox motion subroutines can be called by O100 and P subroutines, and it can call P subroutines.
4. P subroutines can be called by O100 and Ox motion subroutines, and it can call Ox motion
subroutines.
Note:
1. One Ox motion subroutine is executed at a time. If Ox0 is executed, Ox3 can not be executed. If Ox3 is
executed, Ox0 can not be executed.
2. After O100 or a P subroutine enables an Ox motion subroutine, the next line will be executed, and the
execution of the Ox motion subroutine will be ignored.
DVP-20PM Application Manual
1-7