Hope someone can help me on this one, I've tried everything and generaly don't ask for help unless I'm genuinely stuck.. here goes:
My Diamond turning lathe accepts it's own twisted version of movement commands, but there's a big chunk of it that's basic X, Z movements.
I want to cut all these out and paste it with my own set of X, Z co- ordinates. Easy enough I thought, but apparently not.
My machine will only accept X, Z co- ordinates in the form:
X 05.66919Z-00.90208
X 05.65979Z-00.89865
X 05.65040Z-00.89522
etc etc
ie: It has to be that exact format including leading zeros and trailing- say Z-0.5 would be Z-00.50000.
I wrote a program in BASIC to output the X and Z values I want to Paste into the beast but I cannot figure how to get leading or trailing zeros if the numbers aren't in that exact format. For example, my generator will output stuff like:
X 5.5 Z 0.123
X 5.409 Z 0.1229
etc... the format is not the same, is there anyway to convert my output to the required output.
Manualy editing is not an option... there are typicaly 1700 lines of code on a small 17mm dia component and I typicaly go up to 100mm dia. I've also tried fooling about on Excel with the data, but to no avail.
Any ideas gratefully received.
Many thanks in advance.
Iain.