1. Basic Program Design Examples Control Program: M1002 S S0 Auto Control Button Manual Control Button S20 S Clipping Product T0 Releasing Product T0 Y1 Transferring Product S0 S21 X2 S Clipping Product Releasing Product Program Description: z When X0 goes from OFF to ON, the step S20 will be set to execute auto control process one time, and the manual control process will be prohibited at the same time. Auto control process can be performed one more time if the button Auto is pressed again. z The auto control process performed by the robotic arm:
clipping product when X0 = ON (keep holding this product before releasing) → transferring product when Y1 = ON (the action takes 2 sec) → releasing the product when Y0 = OFF. z When X1 goes from OFF to ON, the step S21 will be set to execute manual control process one time, and the auto control process will be prohibited at the same time. z The manual control process performed by the robotic arm: pressing Clip(X2) to clip the product from conveyor A, pressing Transfer(X3) to move the product to the conveyor B, and pressing Release(X4) to release the product and send it away by conveyor B.
DVP-PLC Application Examples 1-25 SET S0 SET S20 X1 SET S21 SET S20 SET S21 SET Y0 TMR T0 K20 RST Y0 SET Y0 X3 Y1 Transfe X4 RST Y0 Y0 S0 RET SET Y0 RST Y0