Thanks Thanks:  1
Likes Likes:  1
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    3D Printer Noob
    Join Date
    Aug 2019
    Posts
    3
    Post Thanks / Like

    Perl script to recode an EKOCYCLE file for Cube3...

    Hi guys,

    It all started when I found a Cube3 in the dump, with only one working nozzle (right nozzle has constant T22 error) and without power supply. Thanks to this forum, now I have a working Bowden and bulk filament mod. My next step was naturally to use other kind of filaments (the original owner was kind enough to have left two half empty PLA cartridges). So it is here. I hacked together a perl script to recode EKOCYCLE print files for target Cube3 with temperature and material code change -- I only have PLA cartridges. Hopefully it can be useful for someone else.

    https://github.com/joechchen/cube-recode

    Cheers,

    Joseph

  2. Thanks TommyDee thanked for this post
  3. #2
    Super Moderator
    Join Date
    Nov 2016
    Posts
    2,347
    Post Thanks / Like
    Welcome to the forum Joseph. Congrats on the dumpster find!

    Can you expand on the replaced setting you are implementing from Ekocycle and Cube3?
    Also, does it support dual color prints out of Ekocycle?

    I'll have a look at the github link later and I thank you for your contribution.

    - found it...
    if (not $opts{n}) {
    $original=~s/PrinterModel:EKOCYCLE/PrinterModel:CUBE3/s;
    $original=~s/Firmware.*?)\r/Firmware:V1.14B\r/s;
    $original=~s/Minfirmware.*?)\r/Minfirmware:V1.14B\r/s;
    $original=~s/MaterialCodeE1.*?)\r/MaterialCodeE1:$material\r/s;
    # temperature
    # Search/replace: M104 S265 and replace with M104 S260
    # Search/replace: M204 S265 and replace with M204 S260
    $original=~s/M104 S265/M104 S260/gs;
    $original=~s/M204 S265/M204 S260/gs;
    $original=~s/M104 S250/M104 S$temp/gs;
    $original=~s/M204 S250/M204 S$temp/gs;

    I'll do a quick eval of the replacements if you don't mind.

    - - - - - - - - - -

    These are the values I see in comparing left side only prints PETG v. PLA.

    Attachment 3436

    The 200C and 210C have a counterpart of 145C and 155C respectively.
    This will reduce the radiant heat from the heatshield onto the part.

    Also note the 235 temp; this is a first layer temp for PLA which Ekocycle doesn't utilize. I have a feeling it will perform better without the 235C first layer

    As an aside; I have never been comfortable with the housekeeping temps in the init and footer that exceed printing temps.
    For PLA, I would suggest all temps be drawn down to 235C max for PLA. [ if >235 = 235 ] And yes, this is over and above 3DS design intent.
    Last edited by TommyDee; 09-29-2019 at 11:43 PM.

  4. #3
    Regular 3D Printer
    Join Date
    May 2019
    Location
    Earth.
    Posts
    156
    Post Thanks / Like
    Nice -- You have the good beginning of a tool. it could go well with my windows tools and the scripting capability... Hmm.. Too bad I am not a perl professional.

  5. Likes TommyDee liked this post
  6. #4
    3D Printer Noob
    Join Date
    Aug 2019
    Posts
    3
    Post Thanks / Like
    Hi Tommy,

    Thanks! I updated the PLA temperature mapping and add a couple of more options. I saw some M204 S240 P1, wondering if I should do something about them as well?

    Cheers,

    Joseph

  7. #5
    Super Moderator
    Join Date
    Nov 2016
    Posts
    2,347
    Post Thanks / Like
    I would just bring the anything over 235 down to 235 for PLA.

    Don't know why my picture keeps disappearing.

    heater_data.PNG

    - - - - - - - - - -

    That 145/155 (PLA) and 200/210 (PETG) is part of a routine of managing overshoot in the slicing for the idle extruder. This becomes prevalent in dual color prints.
    Last edited by TommyDee; 10-03-2019 at 08:43 PM.

  8. #6
    3D Printer Noob
    Join Date
    Aug 2019
    Posts
    3
    Post Thanks / Like
    Hi guys,

    I did some updates of the codes, it can now recode CubePro (I only tested on CubePro 1.88 on Mac) and have some hacks I collected here in the forum integrated. I started this script mainly to minimize the manual chores and walking between the printer and my computer (not to mention flipping USB key at least three times until it is plugged in).

    I am switching to PETG now. So my work flow is something like:

    1 Print to Library (for Ekocycle profile, say name it a_1) or to file from CubePro;
    2a ./cube3-recode.pl -viPt 235 ~/Library/Application\ Support/com.threedsystems.Cubify/CubeFiles/a_1.cube3 # for Ekocycle files
    2b ./cube3-recode.pl -vPt 235 -o ~/Library/Application\ Support/com.threedsystems.Cubify/CubeFiles/a_1.cube3 x.cubepro # where I have a stub file a_1.cube3 already
    3 From CubePrint, send a_1 to printer via WIFI;
    4 Walk to the printer and press print.

    There is no reason that this procedure can't be used in Windows environment.

    Cheers,

    Joseph
    Last edited by d5p2xq; 10-15-2019 at 03:30 PM.

  9. #7
    Super Moderator
    Join Date
    Nov 2016
    Posts
    2,347
    Post Thanks / Like
    ...unless you know nothing about Perl and how to use it in Windooze

    The CubePro files we'd really like to crack is the 2.02 files. I am good up to v1.87 with current decompilers.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •