This is an 20 years old analog packaging machine. I converted it to completely digital with a relay module and arduino uno.
To whose isn't familiar with this kind of machines, let me give a quick brief: There is a three phase 380v AC motor with 1/60 reduction starts to rotate when electrified and mechanical switches on crank mill arranges the timing of other motors like product filling and paper feeding. No electronics.
Modernization
I did the entire wiring from scratch and developed a quick sketch in arduino to entirely take over the timing control in four phases:
1: Mill run to open blades
2: Mill Stop, Feed paper
3: Paper Stop, Start filling
4: Stop filling, Mill run to cut paper