Project code in TIA Portal and model in FacotryIO.
View demo
·
Report Bug
This project was bult using these technologies:
- Factory I/O
- Siemens TIA Portal V17
- SIMATIC S7-PLCSIM
- Test Suite Advance
- SIMATIC Automation Compare Tool
- GIT
- Grafcet-Studio
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.
- Two operating modes - automatic and manual
- Three error scenarios
- Filter Weight - moving average
- HMI panel
- Sound and light signalling
- Statistics
- Unit tests
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").
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.
Some functions use a sequential algorithm. Such algorithms have been graphically represented in Grafcet-Studio and translated into LAD and SLC languages.
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.
The programme has been tested using the Test Suite add-on, which allows unit test to be written.
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.
To clone and run this application, you'll need FactoryIO and TIA Portal (v16 and later) installed in your computer.
Download the scene for factory io and move it to the default folder in the C:\Users\username\Documents\Factory IO\My Scenes
On TIA v17 and later: Download an archaised version of the programme and open in TIA
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
You can view the functions and blocks in the .xml extension directly using the SIMATIC Automation Compare Tool software.
Distributed under the MIT License. See LICENSE
for more information.