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

    Meta commands works differently on different machines.

    Scheduled Pinned Locked Moved
    STM
    7
    9
    518
    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.
    • equipment66undefined
      equipment66
      last edited by equipment66

      Hi.

      This is my first post here. You maybe like to redirect me to right place, if something πŸ™‚

      I have a few RRF-based boards for 3d printer and CNC and like it because of easy programming.

      Some time ago I wrote few macros with meta commands. Suddenly I found that my macros with meta commands, written for one machine, won't work on other one and needs debugging. Finally, I started it, but that means that same code can not produce the same result on different plates. I don't know, is it problem of my board(s) or firmware, but maybe it could be interesting for you?

      Boards :
      Fly-Gemini v2, running on RRF 3.3.0
      Fly E3 v1, running on firmware-stm32f4-wifi-3.4.4_103

      An example of macro:

      echo >"0:/macros/TestLog.txt" "Test started: " ^{state.time}
      while true
      	If iterations > 5
      		break
      	; Comment with leading TAB - works correctly
      	echo "Line " ^ line ^ ": 1st part of loop"
      ; Comment without leading TAB - stops loop on E3v1 board
      	echo "Line " ^ line ^ ": 2nd part of loop"
      echo "Line " ^ line ^ ": end of loop"
      

      Description:

      1. Conditional construct "If..." processed correctly on Gemini v2, but returns "bad command" error on E3v1 because of leading capital letter "I".

      2. Comment inside body of loop, placed without leading TAB, can work like "end of loop" mark and stop execution on E3v1. However, it is processed correctly on Gemini v2.

      3. "state.time"` works correctly on E3v1, but fails on Gemini (received otput: "Test started: 0.0009886")

      4. I can see strange "line shift" in macro during execution on E3v1. During 1st iteration number of line is reported correctly (#6), later +1 (#7), Please see console output bellow. Btw, I didn't tested that on Gemini.

      2/11/2023, 8:55:34 PM	M98 P"0:/macros/Test2.g"
      Line 6: 1st part of loop
      Line 7: 1st part of loop
      Line 7: 1st part of loop
      Line 7: 1st part of loop
      Line 7: 1st part of loop
      Line 7: 1st part of loop
      Line 9: 2nd part of loop
      Line 10: end of loop
      

      In answer to #Infiniteloop:
      I can not find any button "reply" on this forum, so Ill place my answer here...
      Maybe you're right, I'm on wrong planet or wrong firmware... Or maybe on wrong clone, that also can be true. I don't know about all of your relationships, just found few problems and liked to report it to somebody, who care about firmware - and maybe my findings could be useful for fixes in future releases. Or, maybe somebody like to put some remarks to documentation.
      If not, I'll ask admins to feel free to delete this post.

      I added missing info to my post.

      Now, can I take my towel and rest a little bit? πŸ™‚

      @Phaedrux, is it possible get the right to place replies in this forum? Communication is a little bit difficult without this πŸ™‚

      in answer to @infiniteloop #2:

      I can not find any button "reply" in place you described.
      I have not enough privileges to post screenshot.
      I tried to send confirmation e-mail and didnt received nothing.

      infiniteloopundefined Phaedruxundefined 4 Replies Last reply Reply Quote 1
      • infiniteloopundefined
        infiniteloop @equipment66
        last edited by

        @equipment66

        You maybe like to redirect me to right place

        Hm, maybe wrong door, wrong floor, wrong planet? "Gemini v2" vs. "E3v1" sounds impressive - at least, I managed to google the Gemini: a board I never heard of (not even a clone of a Duet). With the E3v1, I got no hit at all. I guess you talk about controllers for 3D printers?

        The meta commands, finally, look familiar: supposedly you are running some flavour of RepRapFirmware on your alien boards. Must be from different compilations, maybe different versions, too.

        If your request should be meant seriously, you should at least specify the origins and versions of the RRF derivatives used. Presumably, that will already be the answer to your question. No, in this case, it's not "42".

        1 Reply Last reply Reply Quote 0
        • equipment66undefined equipment66 marked this topic as a question
        • equipment66undefined equipment66 marked this topic as a regular topic
        • Phaedruxundefined Phaedrux moved this topic from General Discussion
        • Phaedruxundefined
          Phaedrux Moderator @equipment66
          last edited by

          @equipment66 said in Meta commands works differently on different machines.:

          Fly E3 v1, running on firmware-stm32f4-wifi-3.4.4_103

          Sounds like a Mellow Fly STM based board running the RRF port.

          Z-Bot CoreXY Build | Thingiverse Profile

          gloomyandyundefined 1 Reply Last reply Reply Quote 0
          • gloomyandyundefined
            gloomyandy @Phaedrux
            last edited by

            @Phaedrux Both setups are using the STM32 port of RRF. Unfortunately different versions of RRF are in use so it is hard to tell if these differences between macro handling are due to version differences or to standalone/SBC differences.

            1 Reply Last reply Reply Quote 1
            • Sindariusundefined
              Sindarius
              last edited by

              I spoke with @equipment66 for a little bit about some of the items he has seen a couple days ago. There is one item which is interesting and is a difference between SBC and Standalone on a Duet board with RRF 3.5beta1 at least.

              On Standalone
              5c030285-a4e0-4ea5-a0d5-86c0c7992749-image.png

              On SBC
              f7b815d0-a0d1-43b8-9289-1858bcc1c571-image.png

              While switching to not using the {} fixes the output it is an inconsistency between the two.

              chrishammundefined 1 Reply Last reply Reply Quote 0
              • infiniteloopundefined
                infiniteloop @equipment66
                last edited by

                @equipment66

                I can not find any button "reply" on this forum, so Ill place my answer here...

                – it's in the footer of each post, leftmost item on the right –

                –––––––––

                Just found your reply. Looking at what goes on here, another planet sometimes seems a desirable option to me - so, no offence.

                Having looked up the Gemini, I saw it differs from the Duet designs, and I assumed that for the E3, too… which lets me think that RRF must have been adapted (ported) to the hardware. Thus my request for origins and version numbers: they could explain the different behaviour on your script.

                Well, the Duet’s Genius Bar ( @Phaedrux and @gloomyandy ) luckily figured it out, and with @Sindarius reporting another quirk you spotted, they now have something to investigate further.

                So thanks for sharing your observations, and if you promise to add some infos about the firmware the next time, I grant you unlimited rights to stay on the planet 😁

                1 Reply Last reply Reply Quote 1
                • Phaedruxundefined
                  Phaedrux Moderator @equipment66
                  last edited by

                  @equipment66 said in Meta commands works differently on different machines.:

                  @Phaedrux, is it possible get the right to place replies in this forum? Communication is a little bit difficult without this

                  Have you verified your signup email address yet?

                  Z-Bot CoreXY Build | Thingiverse Profile

                  T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                  • T3P3Tonyundefined
                    T3P3Tony administrators @Phaedrux
                    last edited by

                    @equipment66 yes, until you have a verified email the forum settings do not allow replies

                    www.duet3d.com

                    1 Reply Last reply Reply Quote 0
                    • chrishammundefined
                      chrishamm administrators @Sindarius
                      last edited by

                      @Sindarius I already fixed DateTime inconsistencies in SBC mode in v3.5-b2:

                      0dcfa781-3cf1-4d4a-b20a-884e8e8fa1ac-image.png

                      Duet software engineer

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