<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Part of getting a solution is to start with the
correct question. The answers were correct but what I forgot to add is that I
don't know how many nested loops there are ?</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The drill hole is a CNC (of a form) instruction.
</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have an old CNC mill that is conversational. I.e.
no Gcode. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>By conversational I mean it has set instructions
only. To do a circle, you enter the Center and radius on the console and it
does the rest. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have (through many hours) reverse engineered the
machine code that comes out the serial port to get an external interface going.
The serial interface was only used for loading and saving machine
code. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I have written a program to take G Code and
turn it into machine code. I'm now trying to draw the machine code to check if I
have got everything correct. I have it all working and it works very well except
for the repeat instruction. I can take a DXF drawing, turn it into G-Code and
the my software convert that to machine code. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The machine code is in a sequential database and
when a repeat is encountered, it needs to flick back to the start of the repeat
command and do the drawings with the offset until the end of the repeat is
encountered. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>it looks like I need to declare an array and then
fill in the parameters as each repeat is encountered. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>(Thank goodness I'm not doing this in assembler
code which the machine has to).</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The mill is an excellent jobbing machine. It can be
driven both manually and via a PC. It is ideal for modifying existing jigs,
molds or one off prototypes. </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Cheers Wallace</FONT></DIV>
<DIV><FONT size=2 face=Arial> </FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV></BODY></HTML>