Jump to content

Does cura have a gcode placeholder similar to [current_position_z] in simplify3d?


drvertigo

Recommended Posts

Posted · Does cura have a gcode placeholder similar to [current_position_z] in simplify3d?

Cura has many useful placeholders/paramaters/tokens one can use in Gcode. An example list is here:

https://ultimaker.com/en/community/16281-curas-list-of-tokens-keywords

I am seeking a placeholder that represents "The current position of the Z axis". The corresponding placeholder in Simplify3d is [current_position_z].

I need for toolchange code. My printer has a z_offset between the nozzles, so when switching to the second nozzle, I wish to ToolChange as follows:

M206 Z-2.0 ; move the Z origin by 2mm

G0 Z[current_z_position] ;lower the build plate by 2mm

M280 P0 S180 ; Lower the second nozzle via a servo motor.

What is the equivilent of [current_z_position] in cura?

  • Link to post
    Share on other sites

    Posted (edited) · Does cura have a gcode placeholder similar to [current_position_z] in simplify3d?

    I don't know if Cura has that placeholder, but I think you can accomplish the same thing by switching to Relative Positioning:

    http://reprap.org/wiki/G-code#G91:_Set_to_Relative_Positioning

    Then make the Relative Moves and then moving everything back to where it was (relative), then switching back to Absolute Positioning:

    http://reprap.org/wiki/G-code#G90:_Set_to_Absolute_Positioning

    P.S. Ugh, nevermind. I don't think that's what you're looking for ...

    Edited by Guest
  • 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

      • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
          • Like
        • 10 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...