Jump to content
Ultimaker Community of 3D Printing Experts

Simplify3D Fans only on Perimeters


Recommended Posts

Posted (edited) · Simplify3D Fans only on Perimeters

Hi,

I been thinking today of how to do this and the answer was quite easy, probably this isn't much interesting, but when printing stuff like greentec, sometimes is good to have scripts like this.

Basically this goes on S3D postprocessing scripts

scripting.thumb.jpg.1fbd5972473a9096db29cea95ed337f2.jpg

{REPLACE "\n; skirt\n" "\n;skirt\n\nM106 S0\n"}
{REPLACE "\n; raft\n" "\n;raft\n\nM106 S0\n"}
{REPLACE "\n; outer perimeter\n" "\n;outer perimeter\n\nM106 S140\n"}
{REPLACE "\n; inner perimeter\n" "\n;inner perimeter\n\nM106 S0\n"}
{REPLACE "\n; gap fill\n" "\n;gap fill\n\nM106 S0\n"}
{REPLACE "\n; solid layer\n" "\n;solid layer\n\nM106 S0\n"}
{REPLACE "\n; infill\n" "\n;infill\n\nM106 S0\n"}
{REPLACE "\n; bridge\n" "\n;bridge\n\nM106 S0\n"}
{REPLACE "\n; support\n" "\n;support\n\nM106 S0\n"}
{REPLACE "\n; dense support\n" "\n;dense support\n\nM106 S0\n"}

What does it do?

It looks on the generated code that S3D makes, and search the placeholders that it insert to show what's currently being printed. Then, replaces this text and adds the M106 (fan) command.

This way you can change the speed, acceleration, jerk, fan, of the area that's being printed.

For example, you want 120% Flow on outer perimeters Only & 60% Flow on supports. Then the script would look like:

{REPLACE "\n; skirt\n" "\n;skirt\n\nM221 S100\n"}
{REPLACE "\n; raft\n" "\n;raft\n\nM221 S100\n"}
{REPLACE "\n; outer perimeter\n" "\n;outer perimeter\n\nM221 S120\n"}
{REPLACE "\n; inner perimeter\n" "\n;inner perimeter\n\nM221 S100\n"}
{REPLACE "\n; gap fill\n" "\n;gap fill\n\nM221 S100\n"}
{REPLACE "\n; solid layer\n" "\n;solid layer\n\nM221 S100\n"}
{REPLACE "\n; infill\n" "\n;infill\n\nM221 S100\n"}
{REPLACE "\n; bridge\n" "\n;bridge\n\nM221 S100\n"}
{REPLACE "\n; support\n" "\n;support\n\nM221 S60\n"}
{REPLACE "\n; dense support\n" "\n;dense support\n\nM221 S100\n"}

As you can see, if you are reading this far, is that for every change you do, you need to 'undo-it' on the other stuff, this way you are sure that the print returns to the default setting. So if you change Flow with M221 Sxx then you need to reset it to 100% so the rest of the prints works and only affects the areas of your interest.

But... How you do more than one thing? Just add more with Slash 'n' that's a Return key. So, let's see how it would look to have Fans at 100% and the Flow trick, all at the same time.

{REPLACE "\n; skirt\n" "\n;skirt\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; raft\n" "\n;raft\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; outer perimeter\n" "\n;outer perimeter\n\nM221 S120\nM106 255\n"}
{REPLACE "\n; inner perimeter\n" "\n;inner perimeter\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; gap fill\n" "\n;gap fill\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; solid layer\n" "\n;solid layer\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; infill\n" "\n;infill\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; bridge\n" "\n;bridge\n\nM221 S100\nM106 0\n"}
{REPLACE "\n; support\n" "\n;support\n\nM221 S60\nM106 0\n"}
{REPLACE "\n; dense support\n" "\n;dense support\n\nM221 S100\nM106 0\n"}

And this is how the Gcode looks like

5a3334d364db0_Capturadepantalla2017-04-06alas9_52_28.thumb.png.cf1182cfba3f480811865d06ad34ffcf.png

The only issue this can make is that, if you print too fast, and the there's a lot of instructions, the punny marlin could get stuttering. But for a normal print this shouldn't happen.

Also if you use this, remember to check the gcode changed, just incase, a missing '\n' changes the result.

Edited by Guest
  • Like 5
Link to post
Share on other sites
Posted · Simplify3D Fans only on Perimeters

I don't need this procedure ATM, however it made me think of more ways to customize gcodes to get exactly what I may need. So thanks for posting! It's always good to hear new ideas

  • Like 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 19 Visiting our virtual showroom

    1. 1. Have you visited our virtual showroom before?


      • Yes
      • No
    2. 2. If yes - what content did you find most interesting?


      • Information about Ultimaker ecosystem
      • Applications & application stories
      • Customer success stories
      • Webinar sessions
      • Material wall & ecosystem partners
      • New product introduction; software subscription plans
    3. 3. What of the below would make you consider visiting (again)?


      • New Live Ultimaker Webinar streams
      • ‘Ask Me Anything’ with industry experts or Ultimaker staff via main stage and public chat
      • New customer success stories
      • New applications
      • Presentations/news from ecosystem partners
      • Opportunity to meet representatives for an interactive tour
      • Helpful videos like Software tutorials
      • Other; leave input in a comment below!

  • Our picks

    • Ultimaker turns 10: A look back
      Ultimaker is turning 10 years old and that means it is story telling time! We'll explore 2010-2014, traveling through the evolution of the business from the Protobox and Ultimaker Original, to the major leaps forward with the Ultimaker 2 and Ultimaker 3.
        • Like
      • 0 replies
    • Ultimaker Transformation Summit
      Visit our virtual showroom and learn more about the Ultimaker ecosystem!
      • 14 replies
    • New here? Register your Ultimaker for free 3D printer onboarding course
      Hi,
       
      Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
      Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
      They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
      Ready? Register your product here in just 60 seconds.
        • Like
      • 0 replies
×
×
  • Create New...