Jump to content
Ultimaker Community of 3D Printing Experts
drvertigo

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

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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

Share this post


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

    • How to 3D print with reinforced engineering materials
      Ultimaker is hosting a webinar where we explain how you can achieve and maintain a high print success rate using these new reinforced engineering materials. Learn from Ultimaker's Product Manager of Materials and top chemical engineer Bart van As how you can take your 3D printing to that next level.
      • 1 reply
    • "Back To The Future" using Generative Design & Investment Casting
      Designing for light-weight parts is becoming more important, and I’m a firm believer in the need to produce lighter weight, less over-engineered parts for the future. This is for sustainability reasons because we need to be using less raw materials and, in things like transportation, it impacts the energy usage of the product during it’s service life.
        • Thanks
        • Like
      • 12 replies
×

Important Information

Welcome to the Ultimaker Community of 3D printing experts. Visit the following links to read more about our Terms of Use or our Privacy Policy. Thank you!