You are on page 1of 4

Design A PLC program F7 in FX-Trn-Beg-E

In a package sorting system, the packages will be picked by the Supply (Y0) and put on
the Conveyor Forward(Y1) when packages pass through the triple array of sensors that
are lined up vertically (X1, X2, X3), the item will be sorted into 3 sizes, Upper, Middle,
and Slower. After the package goes through the sensor, the Y1 will be turn off in T1 = 3
seconds, also activates the Conveyor forward Y2 and sorting wing Y3. After T2 = 4
seconds, Conveyor forward Y2 and sorting wing Y3 will be turn off, also activates
Conveyor forward Y4 for the leftside and Y5 for the rightside. The Upper package will
be sorted to the right, the Middle Package and the Slower package will be sorted to the
left, but when the Middle is detected by the X6 sensor, the Y6 pusher will push out of the
conveyor. Packages ranked by the largest type will be prioritized to be shipped first of the
day, which will be put in the box by Unload(Y7), respectively 10 packages / 1 time using
C0 and transported by X12 robot, After T3 1 second, back to the Starting point (X0).

Question: Describe the steps that need to be done.


Details: Sorting & Distribution line
M0: Starting point(X0) stand-by
\|/
Y0= 1, X0= 0, Y1= 0
\|/
M1: Y1= 1, Y0= 0
\|/
X1= 1 X2= 1 or X3= 1.
\|/ \|/
M2: Y10 = 1 M8:Y11= 1 or Y12= 1
(blink 1 time)
\|/
T1 = 30
\|/ \|/
M3: Y1= 0, Y2= 1, Y3= 0 M9: Y1= 0, Y2= 1, Y3= 1
\|/
T2 = 40
\|/ \|/
M4: Y2= 0, Y4= 1 M10: Y2= 0, Y5= 1
\|/ \|/ \|/
X5= 0 X6= 1 X6= 0
\|/ \|/ \|/
M5: X11= 1 M11: Y5= 0, Y6= 1 M12: Y6= 0
\|/ \|/
X5= 0, X11= 1 X4= 1, T5= 20
\|/ \|/
M6: Y4= 0, Y7 =1 M13: Y5= 0
\|/
C0 = 10

\|/
M7: X12 = 1
\|/
T3 = 10
\|/
M0

Step 1: Describe the process


- The conveyor(Y1) starts to run the package when the Supply(Y0) picks the
package at the Starting point(X0)

- After that there will be three kind of sensor which is the upper(X1), connected
with the red light(Y10); the middle(X2), connected with the green light(Y11);
and the Lower(X3), connected with the yellow light to detect the height of the
package.

- The conveyor(Y1) stops after 3 seconds.

- Assume that the middle and the lower packages go to the left side and the
upper one goes to the right side.

- According to which type of the package, the sorting wing(Y3) will turn itself
and the conveyor(Y2) will run the package to go to the side that satisfies the
condition of the sensor has detected in first place.

- Sorting wing(Y3) and conveyor(Y2) stop after 4 seconds.

+ If the middle package is being detected, then the sorting wing(Y3)


turns itself to right side, package will run to the conveyor(Y5), and then
when it goes to the detect part(X6), the pusher(Y6) will be activated, the
conveyor(Y5) stops and the package will be pushed out of it(Y5), After T3
= 10, back to the Starting point (X0).
+ If the lower package is being detected, then the sorting wing(Y3) turns
itself to right side, package will run to the conveyor(Y5), and then it go
through the detect part(X6), the pusher(Y6) won’t be activated, when it go
through the sensor(X4), the conveyor(Y5) stops, After T3 = 10, back to the
Starting point (X0).
+ If the upper package is being detected, then the sorting wing(Y3) turns
itself to left side, package will run down to the conveyor(Y4), when it go
through the sensor(X5), the conveyor(Y4) stops, the Starting point(X10)
activates, C0 start count to 10, the Unload(Y7) will be activated and pick
package up to the part on table(X11), which is activating the Robot
operation finished(X12) goes and picks it up, part on table(X11) being off,
After T3 = 10, back to the Starting point (X0).
Step 2: Detect steps/state
- STATE 1: The conveyor(Y1) starts to run the package when the Supply(Y0)
picks the package at the Starting point(X0)

- STATE 2: After that there will be three kind of sensor which is the upper(X1),
connected with the red light(Y10); the middle(X2), connected with the green
light(Y11); and the Lower(X3) to detect the height of the package.

- STATE 3: According to which type of the package, the sorting wing(Y3) will
turn itself and the conveyor(Y2) will run the package to go to the side that
satisfies the condition of the sensor has detected in first place.

- STATE 4:

+ If the middle package is being detected, then the sorting wing(Y3)


turns itself to right side, package will run to the conveyor(Y5), and then
when it goes to the detect part(X6), the pusher(Y6) will be activated, the
conveyor(Y5) stops, and the package will be pushed out of it(Y5).
+ If the lower package is being detected, then the sorting wing(Y3) turns
itself to right side, package will run to the conveyor(Y5), and then it goes
through the detect part(X6), the pusher(Y6) won’t be activated, when it go
through the sensor(X4), the conveyor(Y5) stops.
+ If the upper package is being detected, then the sorting wing(Y3) turns
itself to left side, package will run down to the conveyor(Y4), when it go
through the sensor(X5), the conveyor(Y4) stops, the Starting point(X10)
activates, C0 start count to 10, the Unload(Y7) will be activated and pick
package up to the part on table(X11), which is activating the Robot
operation finished(X12) goes and picks it up, part on table(X11) being off.

- (Then return the STATE 1)


Step 3: Determine logical conditions for steps / states
Step 4: Convert logical expressions into ladder programs

You might also like