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

      • UltiMaker Cura 5.9 stable released!
        Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements.  Check out the rest of this article to find out the details on all of that and more
          • Like
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Heart
          • Thanks
          • Like
        • 4 replies
    ×
    ×
    • Create New...