• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    Chriss
    last edited by 9 May 2024, 08:59

    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

    undefined undefined 2 Replies Last reply 9 May 2024, 10:46 Reply Quote 0
    • undefined
      infiniteloop @Chriss
      last edited by 9 May 2024, 10:46

      @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
      • undefined
        dc42 administrators @Chriss
        last edited by dc42 5 Sept 2024, 20:29 9 May 2024, 20:29

        @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
        1 out of 3
        • First post
          1/3
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA