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

    GCode meta commands case senetive?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    3
    124
    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.
    • Chrissundefined
      Chriss
      last edited by

      Hi *,

      I understood from the docu that something like this should work:

      echo "Start"
      M568 P0 S230 A2
      M116 P0
      
      M568 P0 S30 A2
      
      WHILE heat.heaters[1].current < 130
          G4 P1000 ; 1 Sekunde warten
      
      echo "End"
      

      But I got a "Error: Bad command: WHILE heat.heaters[1].current < 130" in the console when I execute the macro. I changed the "WHILE" from upper case to lower case and it seams to work now. Are meta commands really case sensitive?

      Cheers, Chriss

      infiniteloopundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • infiniteloopundefined
        infiniteloop @Chriss
        last edited by

        @Chriss

        Are meta commands really case sensitive?

        Short answer: yes.

        I understood from the docu that something like this should work: (…) WHILE …

        I still have to find a single instance of sample code in the docs where conditional constructs, constants or built-in functions were written in uppercase. There’s no There is no reference to using capital letters at will. The days when programmers were limited to teletype-style input devices are long gone.

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

          @Chriss yes meta commands, function names and variable names are case sensitive.

          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