Mitsubishi — 1.3 Structure of Pn Subroutine

1 Program Structure of DVP-PM O100 Main control program section OX10 Motion subroutine section P2 Subroutine section P0 Subroutine section M1000 O100 and O 10 program bifurcation point X X0 CALL P0 Call P0 subroutine Cyclic scan Set OX as O 10 X b 10 motion subroutine will be enabled. Path a will be true. X . . . a Execute once . . . M1000 CALL P2 Call P2 subroutine Execute once . . . MOVP K100 D1836 Execute once ABST . . DRV X -20000 Y 20000 Execute once . . . . 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: DVP-PM Application Manual 1-6 MOV H800A D1868 When OUT M1074 MOVP K100 D1837