1 Program Structure of DVP-PM Explanations ON the program design: 1. The design order is from (1) to (5) in above example. However, there is no rule for the placing order of program sections, so you can place the 5 sections according to your needs. 2. There should be only one O100 main program (2), and it cannot be called by other programs or subroutines. 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.
Only one OX motion subroutine can be executed at a 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 being executed. 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) Remarks:
DVP-PM Application Manual 1-9 Section O100 main program OX motion subroutine P1 subroutine P2 subroutine (OX0, OX3) Basic instruction O O O O Application O O O O instruction Motion instruction X O O X G-Code instruction X O O X Explanation Instructions supported are fixed 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.
Main program Subroutine Motion subroutine Placing order No limitation No limitation No limitation Activation In RUN Status Called by main program or motion subroutine Called by main program or subroutine Execution In cycles Execute once whenever being called once Execute once whenever being called once Quantity 1 256, depending ON user’s demand. 100, depending ON user’s demand.