Questions about the "Save" Parameter R
-
Hi there,
I am a little bit confused about using the R "parameter"... :- 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 executedbut this doesn't work... The printer only moves to G1 X10 Y20 if the macro is executed... What am I doing wrong?
- 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) M107but neither of them works...?
What am I doing wrong? Would be happy, if you could help me!
greetings kuhni
- G60
-
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:- G60:
a) G60 S1
G1 X10 Y20
G1 R1
b) G60 S2
G1 X10 Y20
G1 R2But 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
- G60:
-
You need to use e.g. G1 R2 X0 Y0 because only those axes mentioned will be moved.
-
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 -
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.
-
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.
-
@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
-
@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.