Skip to content

Latest commit

 

History

History
149 lines (108 loc) · 4.82 KB

README.md

File metadata and controls

149 lines (108 loc) · 4.82 KB

Sorting by weight

Project code in TIA Portal and model in FacotryIO.
View demo · Report Bug

Table of Contents

Built With

This project was bult using these technologies:

About The Project

This is a PLC programme for sorting by weight.

Code in TIA Portal V17. The sorting line has been modelled in Factory IO 3D simulation software.

Features

  • Two operating modes - automatic and manual
  • Three error scenarios
  • Filter Weight - moving average
  • HMI panel
  • Sound and light signalling
  • Statistics
  • Unit tests

Sorting line

The line consists of:

  • 4️⃣ belt conveyors (C1, C2, C3, C4),
  • a sorting conveyor (S),
  • a weighing conveyor (W),
  • an emitter (E) - wchich delevers the parcels to the line,
  • 3️⃣ receivers (R1, R2, R3) - used to receive parcels from the line,
  • 9️⃣ optical sensors including:
    • 4️⃣ retro-reflective sensors (D1, D7, D8, D9),
    • 5️⃣ diffuse-reflectiv (D2, D3, D4, D5, D6),
  • a control panel ("P").

Project Tree

The programme is structured in six layers. The structure of the programme is similat to the concepts of oop. Each layer is responsible for one main task.

Algorithm

Some functions use a sequential algorithm. Such algorithms have been graphically represented in Grafcet-Studio and translated into LAD and SLC languages.

HMI panel

The HMI displays basic information about the sorting line. The status of the sensors, the status of the conveyors, informs about the operating modes and erros.

Test Suite

The programme has been tested using the Test Suite add-on, which allows unit test to be written.

Filter Weight

The programme uses a moving average weighting filter. After many trials, the correct parameters such as cyclic interruption time and sampling rate were selected experimentally. By using the Trace function in the TIA it was possible to compare the signals.

How To Use

To clone and run this application, you'll need FactoryIO and TIA Portal (v16 and later) installed in your computer.

Factory IO

Download the scene for factory io and move it to the default folder in the C:\Users\username\Documents\Factory IO\My Scenes

TIA Portal

On TIA v17 and later: Download an archaised version of the programme and open in TIA

Version Controle Interface

On TIA v16 and later: Download template of the programme and open in TIA

# Clone this repository into your worksapce

$ git clone https://github.com/tentypcic/sorting-by-weight-factoryIO

# Use the Version Control Interface (VCI) in TIA to synchronise programme

SIMATIC Automation Compare Tool

You can view the functions and blocks in the .xml extension directly using the SIMATIC Automation Compare Tool software.

License

Distributed under the MIT License. See LICENSE for more information.