Download 5Categories and Use of Basic Application Instructions
Transcript
1 Program Structure of DVP-PM Explanations on the program design: 1. The compiling sequence is from (1) to (5), but there is not a rule for the sequence of how and where you place them. 2. There can only be one O100 main program (2), and it cannot be called by other programs. O100 can call OX motion subroutines and Pn subroutines. 3. OX motion subroutine can be called by O100 main program and Pn subroutine, and it can also call a Pn subroutine. 4. Pn subroutine can be called by O100 main program and OX motion subroutine, and it can also call a OX motion subroutine. Note: 1. More then two OX motion subroutines cannot be executed at the same time. Therefore, when OX0 motion subroutine is executed, OX3 will not be able to work, and vice versa. 2. Once O100 main program or Pn subroutine enables an OX motion subroutine, it will continue to execute the next row of the program without paying attention to the OX motion subroutine. 3. The enabled OX motion subroutine will only execute once. If you want it to execute again, you have to re-enable it. Instructions supported in each program section: (O: supported; X: not supported) Section O100 main program OX motion subroutine (OX0, OX3) P1 subroutine P2 subroutine Basic instruction O O O O Application instruction O O O O Motion instruction X O O X G-Code instruction X O O X Instructions supported are fixed Called by OX motion subroutine; therefore, motion instructions and G-Code instructions are supported. Called by O100 main program; therefore, motion instructions and G-Code instructions are not supported. Explanation Instructions supported are fixed Remarks: Main program Subroutine Motion subroutine Start of the program - Pn (n = 0 ~ 255) OXn (n = 0 ~ 99) End of the program - SRET M2 No limitation No limitation No limitation Execution of the program RUN normally Called by main program or motion subroutine Called by main program or subroutine How to operate In cycles Execute once whenever being called once Execute once whenever being called once 1 256, depending on the user’s demand. 100, depending on the user’s demand. Placing sequence Quantity 1-8 DVP-PM Application Manual