Jump to content
UltiMaker Community of 3D Printing Experts

XY Printbed Size : #define X_MAX_POS 405 ?


Recommended Posts

Posted · XY Printbed Size : #define X_MAX_POS 405 ?

Hi all,

I have built an enlarged version of the Ultimaker (44x44x44cm), that need hardware improvement but at least is roughly working. My main problem being : how can I tell it not to print only in the 20x20cm left corner...? I am quite bad at programming and better for hardware things, so apologies for my dumbness but here is what I did so far to try to sort this out :

- I have Downloaded the regular version of Marlin for Ultimaker on Github

- Opened "Configuration.h" in text edit (as I couldn't find the way how to use Console, Control panel or Arduino)

- Changed this :

// Travel limits after homing

#define X_MAX_POS 405

#define X_MIN_POS 0

#define Y_MAX_POS 405

#define Y_MIN_POS 0

#define Z_MAX_POS 400

#define Z_MIN_POS 0


- and also this as I am using 2mm steps GT2 belt

(advised from a previous post on GT2 Belts)

#define DEFAULT_AXIS_STEPS_PER_UNIT {80,80,200*8/3,760*1.1}


-Is it enough ?

- Now how can I compile this to get an .hex file to load in the Ultimaker ?

I'm sorry but I don't get it when I read this posts :




- What about Cura now ?

Last time I tried to extended the printing platform in the preferences, it crashes severely...




  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    Last time I tried to extended the printing platform in the preferences, it crashes severely...


    Don't know. YOu have to try it. Dimensions are under "file" "preferences" I beleive.

    As far as Marlin...

    There is a new Marlin builder here:


    It seems to be working okay now. If you have any problems send feedback! I've done some limited testing and other's have also. Not sure if it's ready for prime time yet.

    Or you can read this and build Marlin yourself:




  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    Thanks for the Marlin Builder link, seems magic !


    I did it, got the .hex file, uploaded it the Ultimaker through Cura ("upload custom firmware"), got this done :

    - Move X, Y, Z axes on the UltiController (prepare>move axes) but still were limited to 205 x 205 x 200

    - Changed the bed size in Cura Preferences (as I already did several times) to 405 x 405 x 400 with no trouble (even though the grey bed head marked "Ultimaker" now fit in the middle of the printing stage) but couldn't process the Gcode of the big simple object I had just opened... thought this might be another issue common those days with Mac users... Still I can't have any Gcode big enough at hand to make straight real test.

    - So I did a "first run wisard" process test (without replacing my custom firmware), which ended up as usual with a 200 x 200 mm extruder/bed level test square... (and not a 405 x 405 as written in the firmware).

    - Finishing this, closed the window to return on Cura printing scene : the bed stage had disappeared for a plain continuous grey window. So, I import a new object: the normal 205 x 205 bed stage reappeared with my new imported object outside the scene and the previous one, off the print bed. Verification : the Preference menu came back by itself to 205 x 205 x 200. Then try to close Cura : crash.

    That's it...


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    If you have a larger then normal Ultimaker, then it's not an Ultimaker and you should configure it as a RepRap instead of an Ultimaker from the first-run-wizard.


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    Ah Ok ! It helps, couldn't realise this is a question of vocabulary : "it's not an Ultimaker anymore" !

    Configuring it as a RepRap does change things on Cura !

    But now I have to compile the .hex file myself without the marlin builder from robotfuzz which doesn't really change the platform size (check the Configuration.h), and I don't get anything with Arduino (why can't I open anything from the multiple Marlin files ?).


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    Ok, still in troubles, here is where I am :

    1. Tried from EricZalm AND then Daid's versions of Marlin and used Arduino 0023

    2. Managed to open Marlin.pde in Arduino to make the "Configuration.h" modifications (print platform 405x405x400) which could be done also in text-edit.

    3. Got everything Compiled and Uploaded to the Motherboard (Arduino Mega 2560)

    4. It uploads fine but seems incompatible with the UltiController as the LCD display shows lines of block squares.

    5. Tried to get an .hex to be uploaded through Cura (install custom firmware) by following this :


    - changed the lines in indicated in the Makefile in text-edit and then got lost on "choosing the right path" section of the blog as nothing described works on my "Terminal" panel...

    6. And still can't manage the last version of Cura to process slicing since three days whereas it was perfectly working before...


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    1) you are right, the software endstops don't make it into configuration.h. I just let the owner of that page know. He will probably fix it within a day.

    2) Alternatively you can disable software endstops (which I just tested and it makes it into configuration.h)

    3) "s the LCD display shows lines of block". Make sure you uncomment this line:

    //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.


    4) "still can't manage the last version of Cura to process slicing". I would consider completely uninstalling and reinstalling and being careful in the wizard to check reprap and then setting size.

    Can't you tell it that it's a UM and *then* change the dimensions to bigger? I think that's what illuminarti did and he said it worked, right?


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    I imagine the Marlin builder will soon be fixed, and hopefully that will solve your problem with the firmware. If not, please post a comment on the building Marlin blog article about exactly what the problem is that you are having, and I'll try to point you in the right direction.

    Regarding Cura... I just took my standard 'Ultimaker-configured' version and changed the size preferences. Worked fine for me - although the model I used as a test was pretty simple. Is the model that you are trying to slice particularly large/complex (in terms of file size/number of polygons)?


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    This reminds me - for fun I tried slicing at a millionth of a millimeter and Cura couldn't handle it. I think I crashed something but it wasn't too hard to recover. I might have deleted steam engine from task manager, but I don't remember. I think I just changed it back to .2 and all was fine but I really don't remember.


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    Everything works now:

    - Uncommenting "//#define ULTIMAKERCONTROLLER //as available from the ultimaker online store."

    solved the problem of yellow brick lines.

    - I managed to upload the modified firmware from Arduino last night and Ginge's Marlin Builder this morning, both works good on the machine.

    - At the moment Cura works on my Mac OSX with a 13.03 version, it just doesn't recognize the SD card.

    I consider everything solved, thank you everybody for your help.

    I just have now to finish to improve the mecanics of the machine to get a good 43 x 43 x 42 cm 3D printer (last tested max printing size). Images in my gallery in september ! (after few holidays)


  • Link to post
    Share on other sites

    Posted · XY Printbed Size : #define X_MAX_POS 405 ?

    sorry it's 44 x 44 x 43 cm for those who are interested in the forthcoming plans.


  • 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

      • UltiMaker Cura 5.3 stable released
        In this stable release, Cura 5.3 achieves yet another huge leap forward in 3D printing thanks to material interlocking! As well as introducing an expanded recommended print settings menu and lots of print quality improvements. Not to mention, a whole bunch of new printer profiles for non-UltiMaker printers!
          • Thanks
          • Like
        • 24 replies
      • Here it is. The new UltiMaker S7
        The UltiMaker S7 is built on the success of the UltiMaker S5 and its design decisions were heavily based on feedback from customers.
        So what’s new?
        The obvious change is the S7’s height. It now includes an integrated Air Manager. This filters the exhaust air of every print and also improves build temperature stability. To further enclose the build chamber the S7 only has one magnetically latched door.
        The build stack has also been completely redesigned. A PEI-coated flexible steel build plate makes a big difference to productivity. Not only do you not need tools to pop a printed part off. But we also don’t recommend using or adhesion structures for UltiMaker materials (except PC, because...it’s PC). Along with that, 4 pins and 25 magnets make it easy to replace the flex plate perfectly – even with one hand.
        The re-engineered print head has an inductive sensor which reduces noise when probing the build plate. This effectively makes it much harder to not achieve a perfect first layer, improving overall print success. We also reversed the front fan direction (fewer plastic hairs, less maintenance), made the print core door magnets stronger, and add a sensor that helps avoid flooding.

        The UltiMaker S7 also includes quality of life improvements:
        Reliable bed tilt compensation (no more thumbscrews) 2.4 and 5 GHz Wi-Fi A 1080p camera (mounted higher for a better view) Compatibility with 280+ Marketplace materials Compatibility with S5 project files (no reslicing needed) And a whole lot more  
        Curious to see the S7 in action?
        We’re hosting a free tech demo on February 7.
        It will be live and you can ask any questions to our CTO, Miguel Calvo.
        Register here for the Webinar
          • Like
        • 18 replies
      • UltiMaker Cura Alpha 🎄 Tree Support Spotlight 🎄
        Are you a fan of tree support, but dislike the removal process and the amount of filament it uses? Then we would like to invite you to try this special release of UltiMaker Cura. Brought to you by our special community contributor @thomasrahm
        We generated a special version of Cura 5.2 called 5.3.0 Alpha + Xmas. The only changes we introduced compared to UltiMaker Cura 5.2.1 are those which are needed for the new supports. So keep in mind, this is not a sneak peek for Cura 5.3 (there are some really cool new features coming up) but a spotlight release highlighting this new version of tree supports.  
          • Like
        • 22 replies
    • Create New...