Jump to content

syntax for {nozzle_disallowed_areas}?


Go to solution Solved by DivingDuck,

Recommended Posts

Posted (edited) · syntax for {nozzle_disallowed_areas}?

Hi all,

Using different brands of PLA that run at different temperatures on a UM2 with an Olsson block/2+ upgrade.

As there is no way to change temperature in Cura ( the Ultimaker draws on the values in it's config file,) I created a custom printer in Cura.

 

I am looking to block out the corners of the build plate to avoid the nozzle hitting the bed clips.  Ideally adding this to the Start G-code, assuming I can do this without manually editing the fdmprinter.def.json file

 

I did find this, which was promising. https://files.fieldofview.com/cura/Replacement_Patterns.html

 

I can change the nozzle temp using this syntax, but couldn't find a syntax on how to clip out the corners of the build plate


A 1hr google did not show syntax - tried the Reprap forums also as well.  

 

Could anybody point me in the right direction for this syntax?

 

Regards,

 

A

 

ps:

 
FWIW, the below is the custom Start G-code to allow custom temperature setting  in Cura on an Ultimaker and produce a prime blob on a 0.25mm nozzle as well as a nozzle wipe. 
For a 0.4mm nozzle, I'd increase the E values by 16/6.25 ~250%.  Not a perfect blob, but good enough to prime it.

 

M82 ;absolute extrusion mode
G28 ;Home
G0 X0 Y12; reset bed zero to miss clips
G92 X0 Y0; assign new zero position
M190 S{material_bed_temperature_layer_0}
M109 S{material_print_temperature_layer_0}

G1 Z15.0 F6000 ;Move the platform down 15mm
;Prime the extruder
G0 X0 Y10 Z0.5
G92 E0
G1 F300
G1 E13.5 Z2 F4000
G0 F300
G0 Z3.5
G4 S5
G0 Z8 F300
G4 S10
G0 X0 Y30 F2000
G0 Z 0.15
G1 X0 Y200 E15 F500
G0 X0.4 Y200
G1 X0.4 Y30 E20
G0 Z3
G92 E0

 

 

Edited by Andrew_F
Updated syntax and improve clarity
  • Link to post
    Share on other sites

    • Andrew_F changed the title to syntax for {nozzle_disallowed_areas}?
    Posted · syntax for {nozzle_disallowed_areas}?

    Disallowed areas have to be specified in the machine's definition file, in the overrides section - not in gcode.

     

    Here's an example (taken from the Ender-3/Ender-3 V2 definition if you want to add that to see what it looks like in action)

    "machine_disallowed_areas":
    {
        "default_value": [
            [
                [-117.5, 117.5],
                [-117.5, 108],
                [117.5, 108],
                [117.5, 117.5]
            ],
            [
                [-117.5, -108],
                [-117.5, -117.5],
                [117.5, -117.5],
                [117.5, -108]
            ]
        ]
    }

     

  • Link to post
    Share on other sites

    • Solution
    Posted · syntax for {nozzle_disallowed_areas}?

    Maybe as additional explanation to @Slashee_the_Cow,

    The definition of disallowed areas starts from the center of the bed as origin and is defined by an polygon with x/y coordinates of 4 point's: [[x,y],[x,y],[x,y],[x,y]].

    There are two types of disallowed areas available: nozzle_disallowed_areas and machine_disallowed_areas.

     

     

     

    • Like 1
    Link to post
    Share on other sites

    Posted · syntax for {nozzle_disallowed_areas}?

    Thanks D_D.
    I'll dig around in the next few weeks, locate the def file and modify it.

    Short term solution was to make the bed 208 x 225mm from memory - ie: the area inside the bed clips.

    A

  • Link to post
    Share on other sites

    Posted · syntax for {nozzle_disallowed_areas}?
    2 hours ago, Andrew_F said:

    Short term solution was to make the bed 208 x 225mm from memory - ie: the area inside the bed clips.

    That will only work if your bed clips are exclusively on the rear and right sides. It will still treat 0, 0 as the bottom left corner and if there are clips there it's going to hit them.

     

    Fortunately, if this is the case, this is where gcode can come in handy. In your startup gcode, after the G28 (home) insert this:

    G0 X20 Y20 ; please replace the 20mm example there with how much space the clips do take up
    G92 X0 Y0 ; make it treat this position as 0,0

     

    • Like 2
    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

      • Help Us Improve Cura – Join the Ultimaker Research Program
        🚀 Help Shape the Future of Cura and Digital Factory – Join Our Power User Research Program!
        We’re looking for active users of Cura and Digital Factory — across professional and educational use cases — to help us improve the next generation of our tools.
        Our Power User Research Program kicks off with a quick 15-minute interview to learn about your setup and workflows. If selected, you’ll be invited into a small group of users who get early access to features and help us shape the future of 3D printing software.

        🧪 What to Expect:
        A short 15-minute kickoff interview to help us get to know you If selected, bi-monthly research sessions (15–30 minutes) where we’ll test features, review workflows, or gather feedback Occasional invites to try out early prototypes or vote on upcoming improvements
        🎁 What You’ll Get:
         
        Selected participants receive a free 1-year Studio or Classroom license Early access to new features and tools A direct voice in what we build next
        👉 Interested? Please fill out this quick form
        Your feedback helps us make Cura Cloud more powerful, more intuitive, and more aligned with how you actually print and manage your workflow.
        Thanks for being part of the community,

        — The Ultimaker Software Team
        • 0 replies
      • Cura 5.10 stable released!
        The full stable release of Cura 5.10 has arrived, and it brings support for the new Ultimaker S8, as well as new materials and profiles for previously supported UltiMaker printers. Additionally, you can now control your models in Cura using a 3D SpaceMouse and more!
          • Like
        • 18 replies
    ×
    ×
    • Create New...