Hi Gary,
This code is generating an error describes as:
The motion command has an invalid target. G2
, G3
, and G38.2
generates this error, if the arc is impossible to generate or if the probe target is the current position.
This means that your gcode doesn't make sense to the controller software.
If you examine the gcode, you can see the problem. (I don't know where it came from, but it isn't really a helpful piece as a sample program).
If you take a look at this link you can see how a counterclockwise arc (G3) is defined in gcode.
G3 X0 Y0 I20 J0
The command to move in an arc needs a start point, end point and centre point.
The code in this line describes the end point and the centre point, but requires a start point to be identified before it can move.
G3 – Start counter clockwise motion
X0 Y0 – the end point
I20 J0 – centre point of arc (relative to start point)
You can probably see from this description that the start point is required. I would normally expect to see a line like this in front of the G3 command line:
G1 X0 Y0
This would set the start point at (0,0) and allow the second line to describe an arc between (0,0) and (0,0) centred at (20,0) – This describes a circle with radius 20.
—————–
Sample code it always tricky, particularly from an unverified source. A CNC machine is very unforgiving when things go wrong. They try to do exactly what they are told, with little or no reality checking along the way.
They are fantastic fun, but have a pretty steep learning curve in the early stages.
I hope this helps…
Rob