Download 5Categories and Use of Basic Application Instructions
Transcript
1 Program Structure of DVP-PM 4. OX motion subroutines support basic instructions, application instructions, motion subroutines and G-Code subroutines. Therefore, you can design your own motion program by using these instructions and setting up X-Y axis parameters for your desired X-Y motion control. The instructions mentioned above shall be designed in OX0 ~ OX99 motion subroutines. OX motion subroutine supports calling Pn subroutine. See 1.3 for more details. 5. The above explanations are sorted in the table below: OX motion subroutine Explanation Start of the program OX motion subroutine (OX0 ~ OX99, 100 motion subroutines) End of the program M2 motion subroutine ends 1. When O100 main program is in RUN statues, set D1846_b12 as 1 to enable OX motion subroutine. Execution of the program 2. When O100 main program is in RUN status, set D1846_b12 by communication to also enable OX motion subroutine. 3. Stop OX motion subroutine by the input signals at external control terminal (STOP0). Note: When you need to enable OX motion subroutine, make sure there are no other motion subroutines in operation. How to operate Execute once whenever the subroutine is enabled. Re-enable it for the re-execution. Basic instructions, application instructions, motion instructions, and G-Code instructions. Instruction supported Quantity Note: Avoid pulse-type instruction when using basic instructions and application instructions. The program can only contain 100 OX motion subroutines. If you need to active other OX motion subroutines, you can set up D1868 and enable the subroutine (SET M1074). 1. A motion subroutine which can only be enabled by designing O100 main program. 2. Offers the third axis (Z) control. See 6.4 G00 and G01 instructions for more details. Features & functions 3. Can be enabled/ disabled by controlling the external terminals, program design and communication. 4. Able to call Pn subroutine. 5. The three sequences can be piled freely when used with O100 main program and Pn subroutines. 1.3 Structure of Pn Subroutine Pn subroutine is a general-purpose subroutine for calling subroutines by O100 main program and OX motion subroutines. When Pn subroutine is called in O100 main program, the Pn subroutine area will support basic instructions and application instructions. When Pn subroutines is called in OX0 ~ OX99 motion subroutines, the Pn subroutine area will support basic instructions, application instructions, motion instructions and G-Code instructions. The Pn subroutine is called in O100 or OX, O100 or OX will jump to Pn subroutine when Pn subroutine is being executed and return to the next row after Pn subroutine to resume the execution when SRET is executed. 1. How to enable Pn subroutine: 1-4 Call Pn subroutine in O100 main program. Call Pn subroutine in OX motion subroutine. DVP-PM Application Manual