/sorting_station

A Sorting Station programmed with Ladder.

MIT LicenseMIT

Table of Contents

About the Project
Implementation Logical Description
Adress Table
Material
Results

Sorting Station

In this work, an application is implemented in Ladder, simulated in Siemens's TIA Portal V15 for a sorting station modelled by Factory IO, in order to sort material of different colors to their respective ramps.

Figure 1: Sorting Station.

Three types of material are considered, Green, Gray and Blue, which are identified by the Vision Sensor ilustrated in Figure 2. Then led through the conveyors to the ramps 1(Green), 2(Gray) and 3(Blue), in Figure 3, by the triggering of the sorters at the top of the image.

Figure 2: Vision Sensor.

Figure 3: Ramps 1, 2 and 3 from right to left and Sorters 1, 2 and 3, also from right to left.

The user can start the process by pressing the green Start button at the left of Figure 4, and to stop it, the red Stop button at the center of the same figure is available.

Figure 4: Automation Cabinet with Start button in green at left and Stop button in red at center implemented.

Siemens's TIA Portal V15 was used for the development of the Ladder code which can be resumed in two parts. First, Figure 5 shows that as the user press a named Start button, all conveyors are energized and will not cease until a second button named Stop is pressed.

Figure 5: Ladder code implementig Start and Stop buttons feeding Conveyors.

Secondly, once the conveyors are on, it is a matter of time util a block of material reaches the Vision Sensor that will send its readings in DInt type, associating a number to a respective color as the table shows below:

Color Number
Blue 1
Green 4
Gray 7

Those readings are compared in the first part of Figure 6. Once a true reading happens, a timmer associated Valve is energized starting a TON Timmer (Generate on-delay) set to activate a specific Sorter related to a color, with the delay necessary for the material to reach the correct ramp entrance. After the synchronized delay, once the material reaches the expected point on the conveyor, the Sorter is activated and another TOF Timmer (Generate off-delay) certifies that it will remain on time enough for the material to be pushed down the correct ramp.

Figure 6: Ladder code processing Vision Sensor and setting timmers.

The table below contains the compontent adresses used in the implementation.

Artifact Type Address
Bool %I0.0
Start Bool %I0.1
Stop Bool %I0.3
Bool %I0.7
Vision Sensor DInt %ID30
DInt %ID31
DInt %ID32
Entry Conveyor Bool %Q0.0
Exit Conveyor Bool %Q0.2
Sorter 1 Turn Bool %Q0.3
Sorter 1 Belt Bool %Q0.4
Sorter 2 Turn Bool %Q0.5
Sorter 2 Belt Bool %Q0.6
Sorter 3 Turn Bool %Q0.7
Sorter 3 Belt Bool %Q1.0
Timmer 1 Valve Bool %Q1.4
Timmer 2 Valve Bool %Q1.5
Timmer 3 Valve Bool %Q1.6

The image below contains a link to a video of the results:

Sorting Station w/ Color Sensor Video Sorting Station w/ Color Sensor Video