Questions about the "Save" Parameter R

  • 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

  • administrators

    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.

  • 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

  • administrators

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

  • administrators

    David - can you confirm that G60 with no R parameter and then G1 R0 is invalid? if so i will update the documentation:

  • administrators

    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.

  • administrators

    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.


Looks like your connection to Duet3D was lost, please wait while we try to reconnect.