Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Cannot use variables for Z parameter in G1 command

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    2
    55
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RevoAlexundefined
      RevoAlex
      last edited by

      I just noticed that I cannot use local and global variables for the Z parameter in G1 commands. It only happens for the Z parameter. X, Y and E (even with multi extruder) are working just fine. Unfortunately I cannot update the Duet currently because it's heavily used but I could not find any bug fixes in the changelogs.

      Steps to reproduce

      1. Have a Duet MB6HC in SBC mode with version 3.5.1.
      2. Create .gcode or .g file in jobs with this content:
      var test = 1
      G1 Z{var.test}
      
      1. Open the job file list.

      Expected behavior

      Correct parsing of Gcode file.

      Actual behavior

      Error message with:

      Failed to get file info for test.gcode
      Cannot convert Z parameter to Single (value {var.test})

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @RevoAlex
        last edited by

        @RevoAlex please upgrade to 3.5.4 and test again.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA