Cut to length controller

Hi everyone i am Bruneau from Mauritius. Got stuck with a project , please help thank you. I need to make a cut to length controller with arduino uno r3. The mechanical part of the machine has already been built. The requirements are. Set the length and quantity on a P.C or an HMI. Length to be measured by an incremental encoder ( Rotary) Once the length is reached a shear will cut the material. Each time the shear cuts it will count the quantity via a limit switch and when quantity reached end of bach written on screen The limit switch will also tell when the shear blade is up in order to feed material again. Will appriciate some help thank you.

Regards

Hello, Bruneau! I guess, I can write a sketch. Some time ago I made a project: http://forum.arduino.cc/index.php?topic=500019.0 It has another hardware. And I would have the same hardware in this project.

Email me [my nick@gmail.com]