Cubepro gcode

Post Reply
Lsutehall
Posts: 8
Joined: 18 Dec 2014, 11:44

Cubepro gcode

Post by Lsutehall »

Hi,

I have a new cubepro duo at work, and have been printing a few test objects. As seems to be the consensus, the software is pretty poor – hence why I’m here.

I’ve found the post on the refugee camp for the CodeX decoder (see here: https://groups.google.com/forum/#!topic ... MuIrtn5Mfo), and converted out .cubepro files into readable .bfb’s. I’ve started to look through the code to work out what’s what. Heres what I have already (this is the initialization code):

Code: Select all

M404 S40
^ set chamber temp to 40
M227 P250 S250 G300 F700
^ retract and reextend, global. M551 is local/one use. p for prime, s for suck, called every time a start or stop is called (M103/104). 228 turns off this modification to the start and stop codes)
M228 P0 S250
^ disable m227
	M231 P0 S0
	M232 P2500 S2500
	M233 P1850
^home z, drop z to glue posn, display glue message and wait for ok?
M106 P100
^ fans on, max speed
G4 P0
^ dwell disabled/dwell for 0 seconds
	M601 P2 S30 F5
^ fairy sure this is select tool offset 1 - the following commands use this offset when interpreting g commands. P0 is extruder 1, P2 is extruder 2. s30 and F5 don't change between tools
M228 P0 S1
^ disable m227
M227 P1 S1 G1000 F1000
^ change global retract settings again
-	M240 S1400
M104 S220 P1 
^set extruder 1 to 220 then wait till it gets there?
M104 S250 P1 
^set extruder 1 to 250 then wait till it gets there
G1 X108.000 Y136.000 Z5.2000 F750.0 
^position for wipe
G1 X108.000 Y161.000 Z5.2000 F9000.0 
^wipe back into bin
G1 X108.000 Y157.000 Z5.2000 F9000.0 
^ bring to behind bin lip
M104 S250 
^set extruder 1 to 250
M551 P1500 S50
^prime extruder 1
G1 X108.000 Y136.000 Z5.2000 F9000.0
^ wipe extrudate out off of nozzle and move out of bin
	M601 P2 S30 F5
^ select extruder 1 offset again
M404 S60 P1
^ set chamber temp to 60 and wait till it gets there
M107
^fan off
Where I’m stuck is “M240 S1400”. This code appears once on a single colour file, but multiple times in a 2-colour print. See this example of the “cool/heat/wipe” nozzle changeover code:

Code: Select all

M228 P0 S1
M227 P1 S1 G1000 F1000
M240 S1400
M106 P100
M204 S250 P1
M104 S220 P1
M108 S18.0
M561 P450 S500
G4 P0
M601 P2 S30 F5
G1 X108.000 Y133.000 Z0.6000 F15000.0
M601 P0 S30 F5
G1 X108.000 Y157.000 Z0.6000 F9000.0
G1 X108.000 Y133.000 Z0.6000 F9000.0
M240 S1400
M204 S250 P1
G1 X118.000 Y136.000 Z0.6000 F9000.0
G1 X118.000 Y161.000 Z0.6000 F9000.0
G1 X118.000 Y157.000 Z0.6000 F9000.0
M204 S250
M552 P650 S50
G1 X118.000 Y136.000 Z0.6000 F9000.0
M601 P2 S30 F5
Anyone got any ideas on what it might be doing?
Mikk36
Posts: 65
Joined: 08 Nov 2014, 14:46

Re: Cubepro gcode

Post by Mikk36 »

By the parameter I'd say it's acceleration.
In the first file though it looks like it's commented out?
Lsutehall
Posts: 8
Joined: 18 Dec 2014, 11:44

Re: Cubepro gcode

Post by Lsutehall »

Mikk36 wrote:By the parameter I'd say it's acceleration.
In the first file though it looks like it's commented out?
That "-" was mine, sorry! I included it in my original file as a way of identifying things that I hadn't worked out yet.

Acceleration sounds reasonable, although I've not come across it set to anything else yet. I'll have a delve into some other files and see if I can find a reference with a different S value.
plenTpak
Posts: 1
Joined: 19 Dec 2014, 16:24

Re: Cubepro gcode

Post by plenTpak »

Hi Lsutehall,

I've been trying to do the same thing as you. I'm not sure if it's the gcode or the settings or what. Have you been able to successfully print a single-color piece? Would you be willing to send me your kisslicer settings?

Thanks for your help.
Lsutehall2
Posts: 1
Joined: 24 Dec 2014, 04:20

Re: Cubepro gcode

Post by Lsutehall2 »

OK, after some more digging I've found 3 values for M240:

- For ABS, it is 1400
- For PLA, it is 2000
- Finally, there is a line setting it to 13 in one of the sample files, however this file looks corrupted (its way too short to make a proper object - it barely gets out of the initialization), so I will ignore this.

plenTpak: I've not dared to feed the printer any of the kisslicer code yet. I want to make it as close to the cubopro generated code as possible before I do. I'll post here my results, and some files when I get something that works.
loffler
Posts: 9
Joined: 06 Jan 2015, 10:21

Re: Cubepro gcode

Post by loffler »

Ive also been trying to get Kisslicer working with a Cubepro Duo.

I have decoded an oringinal .cubepro files to see whats inside and tried to translate that over to the .bfb file before encoding again. I have been using the cubex discussion as a base but the startup code is too different and missing required info for te cubepro.

I was getting file unreadble errors to start with, then I got past that by adding some required lines at the start (firmware/material etc.), but I must still be missing something as everytime I try to print the re-coded .cubepro file, I cant get the printer to get past the heating stage - The print gets stuck on heating the chamber. I have tried every configuration I can think of, but appears to be waiting for a sensor to reach temp and I have no idea which code this is or what to try next.
Lsutehall
Posts: 8
Joined: 18 Dec 2014, 11:44

Re: Cubepro gcode

Post by Lsutehall »

loffler wrote:I was getting file unreadble errors to start with, then I got past that by adding some required lines at the start (firmware/material etc.), but I must still be missing something as everytime I try to print the re-coded .cubepro file, I cant get the printer to get past the heating stage - The print gets stuck on heating the chamber. I have tried every configuration I can think of, but appears to be waiting for a sensor to reach temp and I have no idea which code this is or what to try next.
Hi loffler,

That sounds interesting. Can you post the code that you've been using?
Hugues
Posts: 126
Joined: 11 Nov 2014, 03:40
Contact:

Re: Cubepro gcode

Post by Hugues »

Hi,
I don't know if it can help,
for the cubex, cubify give some calibrations files without filament protection. Maybe you can check your's for the cubepro by decoding with the codex.

Regards,
regards,
Hugues

www.cubexupgrade.com
loffler
Posts: 9
Joined: 06 Jan 2015, 10:21

Re: Cubepro gcode

Post by loffler »

As a base, I used the thread you link to in the original post, they talk about adding prefix/postfix code to kisslicer. That discussion has reports of people getting it to work with the cubepro. I am adding this to the gcode file before re-encoding with codex.

^Firmware:V1.08A
^Minfirmware:V1.00
^DRM:000000000000
^PrinterModel:CUBEPRO
^MaterialCodeE1:-1
^MaterialCodeE2:-1
^MaterialCodeE3:-1
^MaterialLengthE1: 0.000
^MaterialLengthE2: 0.000
^MaterialLengthE3: 0.000
M103
M104 S0
M204 S0
M304 S0
M107

I am obviously missing code relating to the heater which is why its stalling so I tried adding more info from the decoded .cubepro file without success. Another user reports having the same issue when using M404 S40 line, so have not included it. I tried it with and without this line.
I even tried adding everything prior to the "^InitComplete" line which I thought might be the initialiseation before printing starts.
Print bed moves up and the heads move then sits there while heating the chamber is displayed, nothing more.

I have output .bfb files from other slicers including Cura and edited manually with the same results, so its not related to kisslicer, its definitely a required code thing for the firmware of the printer (im using 1.08A)
I did have a look at the calibration files, but cant see anything different compared to my output.
I dont know enough about Gcode to get any further so am stuck with the Cubify Software for now.
Hugues
Posts: 126
Joined: 11 Nov 2014, 03:40
Contact:

Re: Cubepro gcode

Post by Hugues »

Hi,

The 2 codes works without cartridge, one start with :

Code: Select all

^Firmware:V1.03
^Checksum: NO
^DRM:00000000
^InactivatedPermit
^Time:77
^LayerTime: 0.250 4.500 0.000
#Start component: 3
## Start PLA Ver24 blue ##
#StartPartMaterialA
M107
M542
M104 S250
M227 P150.4 S121.6
M228 P0 S150.4
M551 P1000.8 S120
M543
M108 S37.0 
And the other with :

Code: Select all

^Firmware:V1.00
^DRM:00000000
^Time:714
#^Material: 291860.125
^LayerTime: 0.250 4.500 0.000
#Test print for BfB 3000 triple extruder

########################################
#Vernier scale

#Allow E1 to heat to standby in the E2 off time
#M230 S1
M104 S150 P1
#M230 S0

M204 S210
M552 P1280 S66
M543
M227 P426 S426
#M106
M108 S60.0
#G1 X-36.4 Y-33.83 Z0.75 F30000.0
G1 X-36.4 Y-63.83 Z0.75 F30000.0
M201 


The "^InactivatedPermit" is interesting to test.
regards,
Hugues

www.cubexupgrade.com
Post Reply