Context and goal
This was the big end-of-year project of the preparatory year. We had to design and build a complete machine that detects honey jars of standard sizes, conveys them and applies a label at the right height.
A labelling machine for standard honey jars, controlled by a Siemens PLC, with automatic adjustment of the label height.

Project presentation video

The wiring at the back of the machine

General assembly in Inventor

The poster presented at the end of the project (in French)
This was the big end-of-year project of the preparatory year. We had to design and build a complete machine that detects honey jars of standard sizes, conveys them and applies a label at the right height.
The machine is organised into two subsystems:
Siemens S7-1200 PLC · TIA Portal · Ladder · pneumatic cylinders · sensors · motors · belts · Inventor · 3D printing
We wrote the specifications at the start of the project, and the handover report reviews them requirement by requirement. The machine performs every required function, but two numerical requirements were not met.
| Requirement | Required | Achieved |
|---|---|---|
| Throughput | At least the manual rate, 6 jars/min | 12 jars/min |
| Success rate | 98 % minimum | 82 % |
| Footprint | 600 × 600 × 600 mm | 600 × 800 × 400 mm with the external electrical enclosure, compliant without it |
| Jar sizes | 2 preset profiles | Large jar Ø 80 × 133.5 mm and small jar Ø 65 × 86 mm, plus a manual mode |
| Functions | Control screen, counting, automatic height, jar-type check | Done |
The enclosure for the electrical panel was added during the project to protect it from honey.
To set the minimum rate, we first applied 25 labels by hand. It took 11.66 s per jar on average, i.e. 60 / 11.66 ≈ 5.1 jars per minute, rounded to 6 jars/min in the study. Only 15 labels out of 25 were properly centred (within ± 2 mm), i.e. 60 %.
The machine labels 12 jars per minute, i.e. 60 / 12 = 5 s per jar: about 11.66 / 5 ≈ 2.3 times faster than by hand.
The success rate reaches 82 % instead of the targeted 98 %: out of 100 jars, that means 18 failures on average instead of 2 at most. Two causes were identified. The label folds when it comes out too early, before the jar arrives. And the labels gradually drift, so they have to be re-centred by hand about every 20 labels.
A Siemens S7-1200 PLC (CPU 1214C), with a 16-input / 16-output module and a fast-output signal board, reads the sensors and drives the conveyors, the label motor via PWM, the height stepper motor and the cylinders' solenoid valves. The KTP700 touch screen is connected to it via Ethernet. An emergency stop and a safety relay protect the operator.
The touch screen offers four modes: large jar, small jar, automatic (both sizes, each at its own height) and manual (any jar, at a chosen height). In the first two modes, a jar of the wrong size is sent to the exit without being labelled.
Each mode has its own counter, and the machine can stop by itself once a preset number of jars is reached. The default heights are set in recipes. After an error or an emergency stop, the machine switches to jam mode and waits for the operator to confirm a checklist.

In the handover report, we listed what should change in a next version:

A machine that works end to end: it detects the jar, adjusts the height, applies the label, then moves the jar on.
Leading the control side of a real automated machine, from Ladder logic to wiring, in close coordination with the mechanics, on a project with about CHF 7,400 of materials.