Gcode On the Duet3 Behaving Unpredictably
-
I'm working on a DIY embroidery machine and I'm using a Duet3 6HC as a controller for the machine.
I've setup inkstitch to use the following stitch command:
G1 X%X Y%Y
M98 P"trigger3.g"Where M98 P"trigger3.g" is:
G1 U5 F1500
G1 H1 U500 F1500
G92 U0What I'm experiencing is very odd. I generate one file, and the machine moves normally. I generate another file, the gcode looks very similar, but the machine only moves in the Y axis. I've attached two of the gcode files in question.
V13 works as expected, V26 does not
TextTestV13.gcode TextTest26.gcodeI'm not really sure if this is a problem on the Duet side or the Inkstitch side.
-
Extracts from the two posted gcode files for easier reference
TextTestV13.gcode:
(STITCH_COUNT:2176) (EXTENTS_LEFT:-21.842) (EXTENTS_TOP:-14.049) (EXTENTS_RIGHT:21.842) (EXTENTS_BOTTOM:14.049) (EXTENTS_WIDTH:43.684) (EXTENTS_HEIGHT:28.099) G90 (use absolute coordinates) G21 (coordinates will be specified in millimeters) G0 X0.0 Y0.0 G1 X12.879 Y-0.621 M98 P"trigger3.g" G1 X12.879 Y0.522 M98 P"trigger3.g" G1 X12.879 Y1.664 M98 P"trigger3.g" G1 X12.879 Y2.806 M98 P"trigger3.g" G1 X12.879 Y3.948 M98 P"trigger3.g" G1 X12.879 Y5.090 M98 P"trigger3.g" ;...... ; gcode continues
TextTest26.gcode
(STITCH_COUNT:981) (EXTENTS_LEFT:-16.469) (EXTENTS_TOP:-8.476) (EXTENTS_RIGHT:16.469) (EXTENTS_BOTTOM:8.476) (EXTENTS_WIDTH:32.938) (EXTENTS_HEIGHT:16.951) G90 (use absolute coordinates) G21 (coordinates will be specified in millimeters) G0 X0.0 Y0.0 G1 X-16.245 Y3.161 M98 P"trigger3.g" G1 X-14.244 Y2.294 M98 P"trigger3.g" G1 X-13.140 Y3.293 M98 P"trigger3.g" G1 X-12.787 Y2.294 M98 P"trigger3.g" G1 X-14.480 Y3.293 M98 P"trigger3.g" G1 X-16.201 Y3.110 M98 P"trigger3.g" G1 X-16.190 Y3.618 M98 P"trigger3.g" G1 X-15.691 Y2.725
I note that the V26 files starts with negative X axis moves ( although they both contain negative X axis moves at some points.
By the look of this Inkstitch expects the machine 0,0 position to be in the center of the work area. Is that how you have the machine setup?
Also as an aside inkstich is inserting an M30 at the end of the file which is often program end in CNC gcode, but in 3d printing gcode its a file delete command (for historical reasons). Please try
please post your config.g