Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Questions about the "Save" Parameter R

    General Discussion
    4
    9
    881
    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.
    • kuhnikuehnast
      kuhnikuehnast last edited by

      Hi there,
      I am a little bit confused about using the R "parameter"... :

      1. G60
        I wrote a little Macro to test whether it works to save a position:

      G60 S0 ;save actual position
      G1 X10 Y20 ; go to X10 Y20
      G1 R0 ; go back to the position the macro was executed

      but this doesn't work... The printer only moves to G1 X10 Y20 if the macro is executed... What am I doing wrong?

      1. M106
        I defined my part cooling fan like this:
        M106 P0 L0.2 B0 R1 I0 F150 H-1 C"Partcooling Fan" ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off

      The idea was to switch of the fan if either pause.g or stop.g is executed and to turn it back on if the print is resumed. But I am unable to turn the fan off? (In the stop.g I tried these both commands:
      a) M106 P0 S0 ; fan off
      b) M107

      but neither of them works...?

      What am I doing wrong? Would be happy, if you could help me!

      greetings kuhni

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

        Slot 0 doesn't exist, because R0 is the same as having no R parameter. I may change this in a future firmware revision. Correction: slot 1 does exist in recent firmware versions.

        Slot 1 is used to save the position when you pause a print, and slot 2 is used to save the position at the start of a tool change. You can also use slot 1 and slot 2 for your own purposes.

        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
        • kuhnikuehnast
          kuhnikuehnast last edited by

          Hmmm... Strange!
          I now tried:

          1. G60:
            a) G60 S1
            G1 X10 Y20
            G1 R1

          b) G60 S2
          G1 X10 Y20
          G1 R2

          But if i execute the macro, ony the G1 X10 Y20 command is executed...?

          It seems as If it is not possible to store the current position by G60... If I pause a print and then resume to the position by G1 R1 it works.

          greetings kuhni

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

            You need to use e.g. G1 R2 X0 Y0 because only those axes mentioned will be moved.

            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
            • T3P3Tony
              T3P3Tony administrators last edited by

              David - can you confirm that G60 with no R parameter and then G1 R0 is invalid? if so i will update the documentation:
              https://duet3d.dozuki.com/Wiki/Gcode#Section_G60_Save_current_position_to_slot

              www.duet3d.com

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

                That's true at present, but I think it would make more sense if G1 with R0 used slot 0 instead of behaving as if no R parameter is present. So I'll change it in the next 2.02RC build.

                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
                • dc42
                  dc42 administrators last edited by dc42

                  I just checked the code, and the current firmware already supports using restore point 0. So my earlier reply was incorrect. A command such as G1 R0 X0 Y0 should restore the X and Y coordinates to the values save by G60 S0.

                  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 1
                  • psychotik2k3
                    psychotik2k3 last edited by

                    @dc42 what about workspaces ???
                    i mean what is saved with G60 ? machine coordinates or workspace (ie g55) coordinates ??

                    also what is the lifetime of these saves ??? is it erased when rebooting the card, emergency shutdown ? power shutdown ?

                    thanks

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

                      @psychotik2k3 said in Questions about the "Save" Parameter R:

                      @dc42 what about workspaces ???
                      i mean what is saved with G60 ? machine coordinates or workspace (ie g55) coordinates ??

                      also what is the lifetime of these saves ??? is it erased when rebooting the card, emergency shutdown ? power shutdown ?

                      thanks

                      In firmware 2.03 and later the machine coordinates are saved. So if you save the coordinates using G60, change workspace offsets, and then restore coordinates using G1 R, the tool head will move to the same physical position as when you saved it.

                      Save points are forgotten when you reboot for any reason.

                      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