Jump to content
UltiMaker Community of 3D Printing Experts

Is there a placeHolder for Max_y_Size


Recommended Posts

Posted · Is there a placeHolder for Max_y_Size

I am trying to work on my startup code


I currently print a stripe down the Left side before I begin to prime the extruder


I was wondering if there is a Variable/PlaceHolder for the Y_Bed Size I could use in my start up so I could "G1 X10 Y(Y_Bed_Size * .75) E15 so it would print the stripe to 75% of the bed.  As I have several different printers, with different bed sizes, and TRYING to standardize my startup code...


PS... for a .40 wide line, what do I need my E value to be, E15 draws a very thin line, the E30 on the way back does the same, pretty thin... not sure what the value should be vs. distance...



  • Link to post
    Share on other sites

    Posted · Is there a placeHolder for Max_y_Size


    The formula for an extrusion at 100% flow is "Volume of Filament In = Volume of Extrusion Out". 

    ((FilDia/2)² x PI) x FilamentLength = LineWidth x LayerHeight x ExtrLength


    Filament Length(Enumber) = (LineWidth x LayerHeight x ExtrLength) / ((FilDia/2)² x PI)

    The FeedRate then dictates the FlowRate of material through the hot end as:

    FlowRate in mm³/sec = Volume of Extrusion / (ExtrusionLength/PrintSpeed in mm/sec)


    If you don't know which printer will get the Gcode file then it is best to have a StartUp Gcode that is suitable for all your printers.  That would mean your purge lines must work on the printer with the smallest build plate "Y".


    Ahoeben also brings up a point.  There is no way to calculate an E value (within the StartUp Gcode) that is dependent on the bed size/length of extrusion.

    Things become more complicated when one printer has 1.75 filament and the other has 2.85 filament.  If that is a possibility then you would need to change ALL the printers, AND Cura, to Volumetric extrusion.


  • 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...