The machine is for sorting the shampoo caps and clamping them
It has CPU module, digital output module (PNP) and a input module.
The sensor determines that the cap is in position and a piston clamps the cap and another piston sends it into collector box.
http://youtu.be/v-ydz9dSHvM