EasyManua.ls Logo

Xinje XD5 - Page 348

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
347
Component explanation:
PLC
component
Control explanation
Mark
X2
Product counting photoelectric sensor, X2 is ON when
the product is detected
X1
Robot action complete sensor, X1 is ON when the
action is completed
C0
16-bit counter
Y0
Robot
Program:
M0
X1
FEND
I0000
IRET
END
RST C0
SM0
CNT C0 K30
Y0
M0
R
Y0
R
M0
S
C0
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.

Table of Contents

Related product manuals