Hallo,
I have cut to length machine.
Equipped with multiple no of tools. (4 punching stations & 1 shear).
Servo motor used for feeding (only in forward direction) the metal sheet under punching stations & shear.
I know the actual distances between all the tools. For example punching station 1 to punching station 2 = 362mm.
Every production batch have different cut length value, different number of holes, different value between hole to hole center.
Due to condition of ONLY FORWARD FEEDING, i am not able to find such concept of mathematical calculations in order to decide nearest tool where servo shall stop for tool operation (means for making actual punch & shear) to execute. Because if this basic concept is clear in mind of software developer. Then only programming can be done.
Here i decided to use ST (structured text) language for my Motion-PLC programming. Complex mathematical calculations are easily possible in ST. As far as i know servo motor with encoder feedback shall do positioning in Relative mode.
Please suggest basic concept for programming.
Warm regards..