1 Program Structure of DVP-PM O100 Main control program section OX10 Motion subrouting section . . . Cyclic scan Execute once X0 Set No. of OX as O 10. b15=1 enables OX subroutine. X . Or Set M1074 = ON or D1846_b12 = 1 to run O 10 motion subroutine X X0 = ON . . . . . . When X0 = On, OX10 motion subroutine will execute once and stop when the execution reaches M2. If you need to execute it again, activate X0 again and OX10 subroutine will be executed again. 3. There are four ways to stop OX motion subroutine: z When DVP-PM is powered, and the AUTO/MANU switch goes from AUTO to MANU, M1072 will be OFF automatically. O100 main program will be in STOP status.
The operation of OX motion subroutines will stop at this moment. z You can also stop OX subroutine by controlling the input signals of the external terminal (STOP0). z When DVP-PM is powered, you can also stop OX subroutine through communication by setting M1074 to be OFF or D1846 as 0. z When errors occur during compiling or operation of the program, OX subroutines will stop automatically. See Chapter 11 Index for the table of the error codes and their causes. 4. OX motion subroutines support basic instructions, application instructions (API), motion instructions (MON) and G-Code instructions.
Therefore, you can design your own motion program by using these instructions and setting up X-Y-Z axis parameters for your desired X-Y-Z motion control. y The instructions mentioned above shall be designed in OX0 ~ OX99 motion subroutines. y OX motion subroutine is able to call Pn subroutines. See 1.3 for more details. 5. The above explanations are sorted in the table below: DVP-PM Application Manual 1-4 MOV H800A D1868 . . MOV H1000 D1846 OUT M1074 MOVP K100 D1836 MOVP K100 D1837 OX motion subroutine Explanation Start of OX OXn, pointer indicates the start of OX subroutine. OX0 ~ OX99, 100 motion subroutines