I am a placement student and was given a project asking to measure the time taken for the laser to cut a metal and send it to Excel into a spreadsheet automatically. I am a computer science student and am unaware of how I should begin this project or how to do it. How do I measure the time taken for the laser to cut each metal?
Cut various metals of various thicknesses, across various lengths, with the laser in question. Measure the time taken, using a digital stopwatch. Create a model that reproduces these observations, using the fewest assumptions and the simplest form, and accounts for the different type of metal, and different thicknesses. Apply the model.
You'll find such a model built into most laser-cutting software interfaces: the software will typically give a fairly good estimate of how long a given cut will take, once it has the pattern and has been told what type of material is to be cut.
To accurately measure the time of a system is no causal task. You cannot taken samples and extrapolate since you will be ignoring far too many variables such as
- material thickness
- linear acceleration/deceleration
- Material heat absorption
- Curve accel/decel
The best way to do this would be to read generated gcode and calculate your time with a script that will read the NC or GCODE that was generated and as pointed out in comments, getting machine specific settings, this benefits the fact that the operator who knows the material best will knowingly or subconsciously choose the correct parameters and gcode settings (which will adjust for workpiece specific properties and you will read the machine time ahead of cutting.
The machine will follow this code as accurately as it can and your script will calculate the time based on that with minimal error.
After creating a code that is accurate to a minute or seconds, can you then optimize visa experimenting and interpolation.
Have a look at the prusa slic3r github for a program that does the same for 3d printing. Which as of 30.12.19, can quite accurately predict printing time.
If your system is more ‚manual‘ and/or half automated, you can create a electronic (a voltsge divider for example) that gives you a digital high/low every time the laser is on/off, and you simply write a timer that runs. After taking hundreds of samples one could write script that predicts cutting time , but it won‘t be particularly accurate as soon as you start producing something against the ‚norm‘.