UltiMaker uses functional, analytical and tracking cookies. Tracking cookies enhance your experience on our website and may also collect your personal data outside of Ultimaker websites. If you agree with the use of tracking cookies, click “I agree, continue browsing”. You can withdraw your consent at any time. If you do not consent with the use of tracking cookies, click “Refuse”. You can find more information about cookies on our Privacy and Cookie Policy page.
Does cura have a gcode placeholder similar to [current_position_z] in simplify3d?
in UltiMaker Cura
Posted
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?