Component explanation:
PLC
component
X2
X1
C0
Y0
Program:
M0
X1
FEND
I0000
SM0
C0
IRET
END
Program explanation:
1. In the external interruption program, count the X2 input, when the X2 is 30, set ON
M0
2. In the main program, it controls the Y0 according to the M0 state.
3. When the robot action is completed, X1 changes from OFF to ON once, RST works,
Y0 and C0 are reset, M0 is OFF, wait for the next packing process.
Control explanation
Product counting photoelectric sensor, X2 is ON when
the product is detected
Robot action complete sensor, X1 is ON when the
action is completed
16-bit counter
Robot
Y0
(
)
M0
( R )
Y0
( R )
RST C0
CNT C0 K30
M0
( S )
347
Mark