Hello everyone!
Firstly I'd like to say that I'm new to this forum and also new to PLC programming world altogether, that said I really would appreciate your thoughts and hopefully some recommendations as to how to solve the problem I'm struggling with.
What am I trying to achieve?
The goal is to measure the length of an extruded plastic board using encoder with a measuring wheel. Secondary (ofcourse only if the first goal is achieved) - cut the product to length using the data from the encoder.
What have I done?
I've mounted the encoder DBV50E-22EKA2000 to the production line. I've programmed s7-1200 PLC to count the pulses from the encoder and transform the result to length measurement (millimeters). When the board is cut (by existing machinery, using a limit switch to set the board's length) the length is registered and saved to a database.
The problem I've run into.
The measurements of a given product deviates about +/- 5mm. I've attached a graph to show this deviation. In the graph you can see that large amount of boards are within +/- 0.5mm error, but occasionally some are measured with larger error to one or other side of the actual length.
I would like to hear your opinions as to what could cause such results and I would be happy to answer any additional questions about the application I'm trying to solve.
Firstly I'd like to say that I'm new to this forum and also new to PLC programming world altogether, that said I really would appreciate your thoughts and hopefully some recommendations as to how to solve the problem I'm struggling with.
What am I trying to achieve?
The goal is to measure the length of an extruded plastic board using encoder with a measuring wheel. Secondary (ofcourse only if the first goal is achieved) - cut the product to length using the data from the encoder.
What have I done?
I've mounted the encoder DBV50E-22EKA2000 to the production line. I've programmed s7-1200 PLC to count the pulses from the encoder and transform the result to length measurement (millimeters). When the board is cut (by existing machinery, using a limit switch to set the board's length) the length is registered and saved to a database.
The problem I've run into.
The measurements of a given product deviates about +/- 5mm. I've attached a graph to show this deviation. In the graph you can see that large amount of boards are within +/- 0.5mm error, but occasionally some are measured with larger error to one or other side of the actual length.
I would like to hear your opinions as to what could cause such results and I would be happy to answer any additional questions about the application I'm trying to solve.