1 Program Structure of DVP-PM
DVP-PM Application Manual
1-6
MOV
CALL
.
.
.
.
.
.
H800A
D1868
OUT
M1074
X0
P0
P2
CALL
b
a
M1000
M1000
Call P0 subroutine
Set OX as O 10X
When X0 = ON, O 10 motion subroutine
will be enabled. Path a will be true.
X
Call P2 subroutine
O100 and O 10
program bifurcation point
X
C
y
c
l
i
c
s
c
a
n
Ex
e
c
u
t
e
o
n
c
e
Ex
e
c
u
t
e
o
n
c
e
Ex
e
c
u
t
e
o
n
c
e
Ex
e
c
u
t
e
o
n
c
e
O
1
0
0
M
a
i
n
c
o
n
t
r
o
l
p
r
o
g
r
a
m
s
e
c
t
i
o
n
O
X
1
0
M
o
t
i
o
n
s
u
b
r
o
u
t
i
n
e
s
e
c
t
i
o
n
P
2
S
u
b
r
o
u
t
i
n
e
s
e
c
t
i
o
n
P
0
S
u
b
r
o
u
t
i
n
e
s
e
c
t
i
o
n
MOVP
K100
D1836
ABST
DRV
X -20000
Y 20000
MOVP
K100
D1837
.
.
.
.
.
.
.
.
.
z P0 subroutine section called by O100 supports only basic instructions and application instructions.
However, P2 subroutine section called by OX subroutine supports basic instructions, application
instructions (API), motion instructions (MON) and G-Code instructions.
3. There are three ways to stop Pn subroutine:
z When DVP-PM is powered, and the AUTO/MANU switch goes from AUTO to MANU, M1072 will be
OFF automatically, and O100 main program will be in STOP status. The operation of OX and Pn
subroutines will also stop at this moment.
z When DVP-PM is powered, you can also stop OX subroutine by setting M1074 to be OFF or D1846
as 0 through communication, so as to stop the Pn subroutine called by OX subroutine.
z When errors occur during compiling or operation of the program, Pn subroutines will stop
automatically. See Chapter 14 Index for the table of the error codes and their causes.
4. The above explanations are sorted in the table below: