Chapter 6 Writing a Program
6-3
6.1.2
Hardware
In this example, the DVP-ES3 series CPU module used is the DVP32ES311T.
Type ID Description
Digital input X0 START button
Digital input X1 STOP button
Digital input X2 In position sensor 1
Digital input X3 In position sensor 2
Digital input X4 Counting sensor
Digital output Y0 Conveyer
Digital output Y1 Trigger signal for injector 1
Digital output Y2 Trigger signal for injector 2
6.1.3
Program
(1) When the START button (X0) switches from OFF to ON, the internal operation flag is set to ON, and the
conveyor (Y0) starts. When the STOP button (X1) switches from OFF to ON, an error occurs (the error
flag is ON), the operation flag is reset to OFF, and the conveyor stops.
(2) When the in position sensor 1 (X2) is ON, the trigger signal for injector 1 (Y1) is set to ON. When the in
position sensor 1 is OFF, the trigger signal for injector 1 is reset to OFF.
(3) When the in position sensor 2 (X3) is ON, the trigger signal for injector 2 (Y2) is set to ON. When the in
position sensor 2 is OFF, the trigger signal for injector 2 is reset to OFF.
(4) When the counting sensor (X4) switches from OFF to ON, the sensor value increases by one increment.
If the sensor value is larger than or equal to 100, the internal completion flag is set to ON.