dpz5045
Posts: 4
Joined: Fri Dec 04, 2015 3:32 pm

CubePro Duo G Code Script Issues

Tue Jan 12, 2016 1:38 pm

All,

My office just recently got a CubePro Duo and Simplify3D; I'm using the Simplify3D released CubePro Duo profile with the default RepRap Firmware and custom g-code scripts. I've started getting the hang of it, but got stuck on a couple portions of g-code scripting.

Printhead #1 is setup as PLA and Printhead #2 is setup as ABS. For this print, I only used Printhead #2 (ABS). For some reason, during the tool change, after the printheads move to the waste bin and heat up, Printhead #1 starts extruding instead of Printhead #2.

I am using the M552 command for Printhead #2, and nowhere in the .bfb file is there an M551. I know for RepRap, M551 and M552 do not prime/extrude, per the Reprap wiki, but I'm not sure if me using the RepRap Firmware is causing this issue. Below is the start of my bfb file where the toolchange occurs:

^Firmware:V1.10
^Minfirmware:V1.00
^DRM:000000000000
^PrinterModel:CUBEPRO
^MaterialCodeE1:206
^MaterialCodeE2:501
^MaterialCodeE3:-1
^MaterialLengthE1: 1
^MaterialLengthE2: 1
^MaterialLengthE3: 0.000
^ModelHeight: 20.000
^LayerCount: 100
^LayerHeight:0.2
^Supports:-1
^Raft:-1
^Sidewalks:-1
^Density:Strong
^Pattern:Diamond
^Version:891
^Time:25
M404 S60
M227 P250 S250 G300 F700
M228 P0 S250
M231 P0 S0
M232 P2500 S2500
M233 P1850
M106 P100
G4 P0
M601 P2 S30 F5
M228 P0 S1
M227 P1 S1 G1000 F1000
M240 S1400
M601 P2 S30 F5
M404 S60 P1
M107
^InitComplete
#Vector T22
M204 S250 P1
M104 S200 P1
M228 P0 S250
M227 P250 S250 G300 F700
M103
M108 S15
M103
M103
G1 X0.000 Y0.000 Z0.100 F9000
^Tool Change
^Keep old tools warm
M104 S180 P1
^Turn on new tool
M204 S230 P1
M204 S250 P1
^Move to waste bin
G1 X118.000 Y136.000 Z5.200 F9000.0
G1 X118.000 Y160.000 Z5.200 F9000.0
G1 X118.000 Y157.000 Z5.200 F9000.0
^Set target temp
M204 S250
^Extrude into waste bin (for some reason Printhead #1 extrudes instead)
M552 P500 S50
M103
G4 P5
G1 X118.000 Y136.000 Z5.200 F9000.0
G1 X118.000 Y161.000 Z5.200 F9000.0
G1 X118.000 Y157.000 Z5.200 F9000.0
M108 S15
^ToolChange Finished
^Set the cooling fan to 100pct
M106 100


* * * * *

On a separate issue, my Simplify3D crashed today and reverted all of my profile settings including startup and toolchange scripts. Luckily, I retrieved working scripts from previous .bfbs. At any rate, now every time I prepare to print and save toolpaths to disk, it adds the following BEFORE the startup script in the header:

M104 S190 T0
M104 S250 T1


This obviously gives me an error when trying to print, but once these lines are deleted, everything seems to work fine. I also notice that if I check "wait for temperature to stabilize before beginning print" for both extruders in the Temperature tab, it adds two extra lines in the script before the header:

M104 S190 T0
M109 S190 T0
M104 S250 T1
M109 S250 T1


I'm having difficulty troubleshooting this without knowing how each option in the advanced configuration translates to syntax and code in the bfb file. I think this is happening AFTER post-processing because my post-processing has {STRIP "T0"} and {STRIP "T1"} in it, but I'm not entirely sure.

Thanks for reading; any help would be greatly appreciated,
Danny

CompoundCarl
Posts: 2005
Joined: Wed Aug 05, 2015 6:23 am

Re: CubePro Duo G Code Script Issues

Wed Jan 13, 2016 6:34 am

If you don't want those automated preheating commands, then you need to put [extruderX_temperature] and [bedX_temperature] variables in your starting script so that the software knows you are handling heating on your own (where the X is the temperature identifier number for that heater). You can read more about it here: viewtopic.php?f=8&t=1959

dpz5045
Posts: 4
Joined: Fri Dec 04, 2015 3:32 pm

Re: CubePro Duo G Code Script Issues

Wed Jan 13, 2016 10:04 am

Very helpful--Thanks CompoundCarl! Now to figure out why M552 would cause Printhead 1 (Tool 0) to extrude...

Return to “Troubleshooting and Bug Reports”