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

conditional gcode - are these bugs?

Scheduled Pinned Locked Moved
Gcode meta commands
3
15
515
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.
  • ?
    A Former User
    last edited by 22 Jul 2020, 13:39

    The M552 command in config.g is defered until the end of the file by design.

    But I'm sure we've seen people enabling it explicitly in config.g. Maybe you have to reset it with M552 S-1 before M552 S1 or maybe thats been changed in a recent version.

    undefined 1 Reply Last reply 22 Jul 2020, 14:04 Reply Quote 0
    • undefined
      zombiRon @A Former User
      last edited by zombiRon 22 Jul 2020, 14:04

      @bearer any idea why it's deferred? Only thing I could think of is to allow the firmware recovery of the WiFi module with M997, but then this is just a simple ordering of commands in the file. I could understand that if the config was not guaranteed to be processed in any order but we have commands used in config.g which must be in a particular order already. Add to that if files were processed out of order; 3D printing wouldn't be possible.

      I noticed in another post M552 commands are deferred since you mentioned it, but in them posts they were interlaced with G4 wait commands, so how does it know to defer them too? This would lead to inconsistent behaviour.

      If it's by design then it must have a reason; hardware implementation, some blocking I/O or a race condition?? I wonder if the WiFi module has direct access to the SDCard, this would make sense.

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by 22 Jul 2020, 14:21

        dc42 would know, I can't say I recall any specific reason being given. (unless it boiled down to preventing M578 overriding the ssid setting on every boot and wearing out the flash)

        on the other hand, I know I've bypassed the deferral in an older version of RRF, much in the same manor as you're trying, just without M98 and mulitiple files.

        1 Reply Last reply Reply Quote 0
        • undefined
          dc42 administrators @zombiRon
          last edited by 25 Jul 2020, 08:29

          @zombiRon said in conditional gcode - are these bugs?:

          Is there any other unique identifier I can query during config.g?

          25/07/2020, 09:28:32 	echo boards[0].uniqueId
          2X88B-BD6P9-F65J0-401F8-M603Z-ZLB9F
          

          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

          undefined 1 Reply Last reply 26 Jul 2020, 11:06 Reply Quote 0
          • undefined
            zombiRon @dc42
            last edited by 26 Jul 2020, 11:06

            @dc42 great, thank you. I never looked in the boards section, assumed it was for expansion / tool boards.

            Now I can leave out all of the logic and just include a config if it exists, which means I can have a single SD image for both machines.

            M98 P{"MACHINES/" ^ boards[0].uniqueId ^ ".g"}
            
            1 Reply Last reply Reply Quote 0
            • undefined
              dc42 administrators @zombiRon
              last edited by 28 Aug 2020, 14:35

              @zombiRon said in conditional gcode - are these bugs?:

              Should I be able to do this? if not can it be implemented please?

              T{ state.previousTool } P0
              

              This is now supported. It will be live in 3.2beta.

              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

              undefined 1 Reply Last reply 28 Aug 2020, 14:36 Reply Quote 0
              • undefined
                zombiRon @dc42
                last edited by 28 Aug 2020, 14:36

                @dc42 Excellent! Thanks very much!

                undefined 1 Reply Last reply 28 Aug 2020, 14:40 Reply Quote 0
                • undefined
                  dc42 administrators @zombiRon
                  last edited by 28 Aug 2020, 14:40

                  @zombiRon, I've just fixed the comparison of Mac addresses and IP addresses with strings too.

                  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

                  undefined 1 Reply Last reply 28 Aug 2020, 14:52 Reply Quote 0
                  • undefined
                    zombiRon @dc42
                    last edited by 28 Aug 2020, 14:52

                    @dc42 you're on a roll today 😁

                    undefined 1 Reply Last reply 28 Aug 2020, 14:52 Reply Quote 0
                    • undefined
                      dc42 administrators @zombiRon
                      last edited by 28 Aug 2020, 14:52

                      I finally found some time to work on the minor bug list.

                      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