Jump to content
UltiMaker Community of 3D Printing Experts

"Change Filament" Plugin Stops at Wrong Layer


Recommended Posts

Posted (edited) · "Change Filament" Plugin Stops at Wrong Layer

I've been using Cura 15.04.6 with my Monoprice Maker Select Mini V2 (uses Marlin flavor) for about a year because I liked the simplicity. I recently downloaded Cura 3.5.0 because I had a project that involved embedding a steel washer in the print and the "Pause" plugin never worked on 15.04.6. Long story short, I figured out that my printer doesn't recognize the M0 or M1 command. It does, however, recognize M600 with no arguments as a pause command. I was able to use the "Change Filament" plugin on 3.5.0 with the filament retraction set to 0 to get the printer to pause, but it would never pause at the correct layer.


The Problem:

My print needs to pause after layer 40 is printed according to the "Layer View" slider in Cura. When I use the "Change Filament" plugin and input layer 40, the M600 line is inserted immediately BEFORE layer 39.

G0 X48.262 Y59.406
G0 X48.262 Y59.406 Z9
M600 ; Generated by FilamentChange plugin
G1 F2400 E1197.38525
G1 X48.259 Y59.394 E1197.38566

I would need this instruction immediately BEFORE layer 41.


But wait, there's more:

My print includes a 4 layer thick raft (base layer, interface layer, and 2 surface layers). I am aware that Cura uses negative layers in the Gcode for raft layers, but my Gcode starts at Layer -6:

G92 E0
G1 F2400 E-4.5
G0 F3600 X45.596 Y49.207 Z0.3
G1 F2400 E0
G1 F900 X45.825 Y48.995 E0.01557

This would make the first layer of the part Layer -2. Now, it is important to remember that the "Layer View" in Cura calls the base layer of the raft Layer 1, so when I say I need to stop after Layer 40, I'm assuming the base layer of the raft to be Layer 1.


So to recap:

1. The "Change Layer" plugin places the M600 line BEFORE the layer that comes BEFORE the one inputted to the Post-Processing dialog.

2. The comments before each layer in the Gcode start at -6, despite a raft that is 4 layers thick.

3. The "Layer View" in Cura says that the base layer of the raft is Layer 1.


Attached is the full copy of the Gcode with Layer 40 in "Change Filament" plugin's dialog. 


Thanks in advance for your help,


MSMV2E3D_Washer Test 2.gcode

Edited by TheDullCarbide
  • Link to post
    Share on other sites

    Posted · "Change Filament" Plugin Stops at Wrong Layer

    I ended up just calculating where the M600 should be and threw it in the Gcode manually because I needed to get my job over with.


    I also noticed that the Gcode always starts at layer -6, even with rafts of different heights. I did not try it with brim, skirt, or none yet.

  • 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

    • Our picks

      • New here? Get ahead with a free onboarding course
        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
        • 14 replies
    • Create New...