Error in Gcode file? Operation failed (Reason:err 1)
-
Thanks for the file. I have reproduced the problem and I am investigating it.
-
This line in the GCode file is triggering the error:
; filament used [mm] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1685.8, 1264.3, 1264.2, 1264.1, 1264.0, 1263.9, 1263.8, 893.5, 1029.2
At the same time as renumbering the tools, you should delete the 13 leading zeros from that line to get:
; filament used [mm] = 1685.8, 1264.3, 1264.2, 1264.1, 1264.0, 1263.9, 1263.8, 893.5, 1029.2
-
-
The number of items in the list was too large. It will be fixed in release 3.2, also in 3.1.2 if there is one. However, even with that fix the computed filament requirement would be wrong because of the tool renumbering, and that would caused the percent complete and print end time estimations to go wrong.
-
@dc42 Ok, does that mean that it would be better to define multiple tools in the config.g but have them refer to the same hardware?
M563 P0 S"Diamond 1" D2:3:4 H3 F0
M567 P0 E0.33:0.33:0.34
M563 P1 S"Diamond 2" D2:3:4 H3 F0
M567 P1 E0.98:0.01:0.01
M563 P2 S"Diamond 3" D2:3:4 H3 F0
M567 P2 E0.01:0.98:0.01
M563 P3 S"Diamond 4" D2:3:4 H3 F0
M567 P3 E0.01:0.01:0.98
etc -
@JUNK said in Error in Gcode file? Operation failed (Reason:err 1):
@dc42 Ok, does that mean that it would be better to define multiple tools in the config.g but have them refer to the same hardware?
M563 P0 S"Diamond 1" D2:3:4 H3 F0
M567 P0 E0.33:0.33:0.34
M563 P1 S"Diamond 2" D2:3:4 H3 F0
M567 P1 E0.98:0.01:0.01
M563 P2 S"Diamond 3" D2:3:4 H3 F0
M567 P2 E0.01:0.98:0.01
M563 P3 S"Diamond 4" D2:3:4 H3 F0
M567 P3 E0.01:0.01:0.98
etcThat's pretty much what I do. Here is the relevant part of my current config.g
M563 P0 S"Black" D0:1:2:4:5 H1 ; Define tool 0 (drive 3 not used)
G10 P0 X0 Y0 ; Set tool 0 axis offsets
G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C
M567 P0 E1.00:0.00:0.00:0.00:0.00 ; Set mixing ratios for tool 0
M563 P1 S"Red" D0:1:2:4:5 H1 ; Define tool 1
G10 P1 X0 Y0 ; Set tool 1 axis offsets
G10 P1 R0 S0 ; Set initial tool 1 active and standby temperatures to 0C
M567 P1 E0.00:1.00:0.00:0.00:0.00 ; Set mixing ratios for tool 1
M563 P2 S"Yellow" D0:1:2:4:5 H1 ; Define tool 2
G10 P2 X0 Y0 ; Set tool 2 axis offsets
G10 P2 R0 S0 ; Set initial tool 2 active and standby temperatures to 0C
M567 P2 E0.00:0.00:1.00:0.00:0.00 ; Set mixing ratios for tool 2
M563 P3 S"Blue" D0:1:2:4:5 H1 ; Define tool 3
G10 P3 X0 Y0 ; Set tool 3 axis offsets
G10 P3 R0 S0 ; Set initial tool 3 active and standby temperatures to 0C
M567 P3 E0.00:0.00:0.00:1.00:0.00 ; Set mixing ratios for tool 3
M563 P4 S"White" D0:1:2:4:5 H1 ; Define tool 4
G10 P4 X0 Y0 ; Set tool 4 axis offsets
G10 P4 R0 S0 ; Set initial tool 4 active and standby temperatures to 0C
M567 P4 E0.00:0.00:0.00:0.00:1.00 ; Set mixing ratios for tool 4
M563 P5 S"Orange" D0:1:2:4:5 H1 ; Define tool 5
G10 P5 X0 Y0 ; Set tool 5 axis offsets
G10 P5 R0 S0 ; Set initial tool 5 active and standby temperatures to 0C
M567 P5 E0.00:0.50:0.50:0.00:0.00 ; Set mixing ratios for tool 5
M563 P6 S"Purple" D0:1:2:4:5 H1 ; Define tool 6
G10 P6 X0 Y0 ; Set tool 6 axis offsets
G10 P6 R0 S0 ; Set initial tool 6 active and standby temperatures to 0C
M567 P6 E0.00:0.50:0.00:0.50:0.00 ; Set mixing ratios for tool 6
M563 P7 S"Green" D0:1:2:4:5 H1 ; Define tool 7
G10 P7 X0 Y0 ; Set tool 7 axis offsets
G10 P7 R0 S0 ; Set initial tool 7 active and standby temperatures to 0C
M567 P7 E0.00:0.00:0.50:0.50:0.00 ; Set mixing ratios for tool 7
M563 P8 S"Pink" D0:1:2:4:5 H1 ; Define tool 8
G10 P8 X0 Y0 ; Set tool 8 axis offsets
G10 P8 R0 S0 ; Set initial tool 8 active and standby temperatures to 0C
M567 P8 E0.00:0.50:0.00:0.00:0.50 ; Set mixing ratios for tool 8 -
Thanks, I think it was your blog post that I followed when I first set my printer up. Thank you for that.
It looks like I made a mistake when I drifted from your recommendations.
I was trying to simplify my config.g and have all the colour selections dealt with by the slicer. I would still like to do that, but I think that I will override the mixing ratios in the gcode and have all my tools defined in the config.g as generic. I am guessing that the filament estimates are based on the tools rather than the gcode. I will have to investigate and experiment further. (just thinking out loud)Thanks
-
@JUNK It depends what it is that you want to achieve and there are usually several options to achieve the same objective. If the object is made up several distinct shapes which have to be different colours, then I find it easiest to create separate stl files for each piece and assign a specific tool to each of those pieces. But I may change the mixing ratio for those specific tools in the slicer start gcode. If the object just has bands of colour or perhaps "fades" from one colour to another, then I find it easier to use one tool and post process the gcode file to change the mixing ratio every "n" layers. Having said all that, I never take much notice of the filament based estimates. So they might "get confused" if one changes the mixing ration within the gcode file.
One thing to be aware of is that the latest firmware versions now have a limit of 50 tools (number 0 to 49 IIRC) but in earlier firmware, no such limit existed. It shouldn't be a problem but just be aware of the new limitations.
-
@deckingman Good points. Thank you for the information. I am currently subscribed to the "Diamond Hotend users" and the "3d printing multi material and multi coloured" groups on Facebook. Can you recommend anywhere else to follow?
-
@JUNK said in Error in Gcode file? Operation failed (Reason:err 1):
@deckingman Good points. Thank you for the information. I am currently subscribed to the "Diamond Hotend users" and the "3d printing multi material and multi coloured" groups on Facebook. Can you recommend anywhere else to follow?
No sorry. I don't "do" social media.