Ok, here is a good one. I really dont know what to do here so here it goes. Ok, I have to create a script that will figure out the setup for a milling machine, but it must use predetermined values. Something like this.
Ok, the width of one of the products is 9.625 inches plus a clearance of .004 inches. Here are some of the "spacers" that the machine can use to set up:
4"
2"
1"
1/2"
1/4"
3/16"
1/8"
1/16"
.010"
.020"
.003"
.002"
here is what the output needs to look like (so the machine operator can set up machine correctly). The numbers below are the width of the spacers listed above:
4 + 4 +1 + 1/2 + 1/8 + .002 + .002
This needs to be web driven so I chose to use php/mysql.
I have no clue how to get it to divide the width of the product and show what "spacers" it used to do this.
Thanks in advance,
TM