8 Application Examples further place other operations in the main program. Ladder diagram: Operation: X0 M1792 When OX is ready (M1792 = ON), OX0 motion subroutine can be enabled by X0 Enable OX0 motion subroutine T1 Other operations T0 Other operations Other operations 3. P255 ~ SRET: set up 3 rd axis (Z) control system The 3rd axis control will activate according to the parameter setting of G00 and G01 instructions. When G00/G01 sets target position of Z-axis (D1328), P255 will be enabled to drive Y7 (3 rd axis control signal) and enabe DVP-EH to control the lift or drop of a pen (i.e. up/down movement of Z axis). For more details, please refer to G00 and G01 instructions in Chapter 6.
Ladder diagram: Operations: DLD= Y7 (control signals for pen lifting) is controlled by the D1328 K0 target position (D1328) of Z axis. Pause for 0.1 second 3-axis control signal (Y7) in P255 of DVP-PM drives the input contact X1 of DVP-EH. When X1 is ON, the step motor controlled by pulses will lift the pen through DDRVI instruction; when X1 is OFF the step motor will drop the pen through DDRVI instruction. The program of DVP-EH: X0 X0 Connect the input devices Y0 and Y1 in DVP-EH to the pulse input terminals on the step motor. 4. P0 ~ SRET:
2-axis (X, Y) interpolation control After converting the letters or graphs into G-Codes (NC-Codes), place the G-Code into OX0 subroutine but into P0 subroutine in order to simplify the program. Operate the P0~SRET section with the 3 sections above and the drawing of letters or graphs can be performed. DVP-PM Application Manual 8-9 MOV H8000 D1868 OUT M1074 TMR T0 K100 TMR T1 K100 OUT Y0 OUT Y7 TIM K10 DDRVI K5000 K200000 Y0 Y1 DDRVI K-5000 K200000 Y0 Y1