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

3.5 beta 2 copy paste in Macro

Scheduled Pinned Locked Moved Solved
Beta Firmware
4
8
211
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
    Proschi3D
    last edited by 31 Mar 2023, 09:37

    I noticed that when I create a macro and copy and paste something, the macro doesn't work.
    But if I edit it on the pc and upload it, the same macro works.

    Love my Duet 3 Mini.
    https://www.instagram.com/proschi3d
    https://youtube.com/@proschi3d
    https://www.proschi3d.de

    undefined undefined 2 Replies Last reply 31 Mar 2023, 09:43 Reply Quote 0
    • undefined
      Proschi3D @Proschi3D
      last edited by 31 Mar 2023, 09:43

      here's an example
      I created a macro in the dwc and pasted the code with copy paste.
      the macro didn't work and there were many bad comand errors

      ; tune heater 1 and wait for it to finish
      M303 H1 S210
      while heat.heaters[1].state != "standby" && heat.heaters[1].state != "off"
      G4 S1
      ; tune heater 2 and wait for it to finish
      M303 H2 S210
      while heat.heaters[2].state != "standby" && heat.heaters[2].state != "off"
      G4 S1
      ; tuning finished, save parameters to config-override.g
      M500

      I then created an empty editor file in windows, inserted the code with copy paste and uploaded it to the DWC.
      then the same code works

      Love my Duet 3 Mini.
      https://www.instagram.com/proschi3d
      https://youtube.com/@proschi3d
      https://www.proschi3d.de

      undefined undefined 2 Replies Last reply 1 Apr 2023, 03:23 Reply Quote 0
      • undefined
        chrishamm administrators @Proschi3D
        last edited by 31 Mar 2023, 09:43

        @Proschi78 Can you explain what does not work?

        Duet software engineer

        undefined 1 Reply Last reply 31 Mar 2023, 11:03 Reply Quote 0
        • undefined
          Proschi3D @chrishamm
          last edited by 31 Mar 2023, 11:03

          @chrishamm I added an example above

          Love my Duet 3 Mini.
          https://www.instagram.com/proschi3d
          https://youtube.com/@proschi3d
          https://www.proschi3d.de

          1 Reply Last reply Reply Quote 0
          • undefined
            OwenD @Proschi3D
            last edited by 1 Apr 2023, 03:23

            @Proschi78
            Your example doesn't really help replicate the problem.
            You will need to create a file using copy/paste that errors.
            Run the file and post the errors.
            Then create the same file in window.
            Then upload them both as attachments.
            Don't post the code using the </> button.
            That way we can see tabs , line endings etc exactly as they are being executed.

            1 Reply Last reply Reply Quote 3
            • undefined
              T3P3Tony administrators @Proschi3D
              last edited by 1 Apr 2023, 11:59

              @Proschi78 I think this is an issue with file line endings. See this thread:

              https://forum.duet3d.com/post/307796

              Please try the new binary that dc42 posted there.

              It appears that the new text editor in DWC 3.5 defaults to CRLF but if the file already uses LF, it sticks with that. That's why you see a difference depending on if it's an existing or new macro.

              www.duet3d.com

              undefined 1 Reply Last reply 1 Apr 2023, 12:15 Reply Quote 1
              • undefined
                Proschi3D @T3P3Tony
                last edited by 1 Apr 2023, 12:15

                @T3P3Tony Thanks that fixed the problem.

                I was already doubting myself

                Love my Duet 3 Mini.
                https://www.instagram.com/proschi3d
                https://youtube.com/@proschi3d
                https://www.proschi3d.de

                undefined 1 Reply Last reply 1 Apr 2023, 12:18 Reply Quote 0
                • undefined
                  T3P3Tony administrators @Proschi3D
                  last edited by 1 Apr 2023, 12:18

                  @Proschi78 thanks for confirming that fix worked.

                  www.duet3d.com

                  1 Reply Last reply Reply Quote 0
                  • undefined T3P3Tony marked this topic as a question 1 Apr 2023, 12:18
                  • undefined T3P3Tony has marked this topic as solved 1 Apr 2023, 12:18
                  6 out of 8
                  • First post
                    6/8
                    Last post
                  Unless otherwise noted, all forum content is licensed under CC-BY-SA