Marlin icon indicating copy to clipboard operation
Marlin copied to clipboard

[FR] G60/G61 : Save and return to position; G1 R : Goto saved position

Open lunar711 opened this issue 5 years ago • 19 comments

Description

G60 saves the current position to a memory slot and G61 moves to one of the saved coordinates at a specified feedrate.

Usage

A "custom tool script" will contain G60 to save the current tool position. At the end of script a G61 moves the extruder to the saved coordinate from G60 at a specified feedrate.

  1. G60 (saves current coordinates)
  2. (other gcode commands)
  3. G61 F1000 (go to saved coordinates at 1000mm per minute)

Additional Information

g60 and g61

lunar711 avatar Mar 01 '19 18:03 lunar711

attach 2 config as zip file

boelle avatar Mar 01 '19 18:03 boelle

Uh sorry but i don't understand you (as in which config file)?

lunar711 avatar Mar 01 '19 18:03 lunar711

did you read the template when you created the issue?

clearly not since you did not bother edit the title

it's not even clear if this is a question or bug report or a request for a new feature

boelle avatar Mar 01 '19 18:03 boelle

Oh I'm very sorry! I meant this to be a request for a new feature.

lunar711 avatar Mar 01 '19 18:03 lunar711

clearly not since you did not bother edit the title

No harm meant, but you seem to take this really personally and you probably don't want to bark every time someone does a mistake or simply isn't familiar with how issues "really work" and what they're meant for.
I think "issues housekeeping" is fine as long as it doesn't come with an attitude. Also, did you consider "moving every non-bug related issues" to mediums such as discord and facebook groups (both un-indexed on search engines) won't change a thing ? If people actually can't "google their problems", they'll turn to the first place that "makes sense" (ie. github issues).
I get that you're trying to improve things around, but it looks to me as you don't have a well thought-through approach on dealing with projects and their issues (and issues' issues).
Certainly not the right place to express my 2 cent, but I felt the need to anyway.

ghost avatar Mar 01 '19 18:03 ghost

Well I did make a glaring mistake so you can't get angry on "boelle"...

lunar711 avatar Mar 01 '19 18:03 lunar711

and i might have sounded angry or pissed, but i just keep seeing the same mistake over and over

sadly i do come with an attitude, sometimes it's very little and sometimes it to much. nobody is complete

about questions... that is not me that invented that discord and facebook are for those places, others made that and i just think its an great idea

boelle avatar Mar 01 '19 18:03 boelle

Thanks for the request @lunar711 — I have an E3D Toolchanger and we have added some tool-changing support to Marlin already. However it is not as comprehensive as the support in RepRapFirmware, so we have some catching up to do.

That said, the sys and macros scripts for the E3D Toolchanger don't use G60 or even Tn Rn. So I guess it's up to slicers to generate the needed G-codes on tool-changes.

thinkyhead avatar Mar 03 '19 04:03 thinkyhead

Also, did you consider "moving every non-bug related issues" to mediums such as discord and facebook groups (both un-indexed on search engines) won't change a thing?

http://forums.reprap.org is also suggested. We don't want to do user support on our issue tracker, and since we've begun being more strict about this and set up proper issue templates it has had a very positive effect on developer collaboration.

thinkyhead avatar Mar 03 '19 04:03 thinkyhead

Thanks for the request @lunar711 — I have an E3D Toolchanger and we have added some tool-changing support to Marlin already. However it is not as comprehensive as the support in RepRapFirmware, so we have some catching up to do.

That said, the sys and macros scripts for the E3D Toolchanger don't use G60 or even Tn Rn. So I guess it's up to slicers to generate the needed G-codes on tool-changes.

Thanks for the reply! I have checked out the E3D tool change code, but what g code initiates it to park and what gcode initiates it to return?

lunar711 avatar Mar 03 '19 13:03 lunar711

I looked closer at the G60 description, and it mentions that RepRapFirmware automatically saves the current position to slot 2 on a tool-change, so that you only need to do the G0/G1 with R2 for the move back — presumably after a priming and wiping action.

thinkyhead avatar Mar 06 '19 06:03 thinkyhead

I second this feature request!. I use this in some tool changing scripts for a 3-in-1-out switching hot-end but without G60 and G61 the result is somewhat less in comparison to what I was used to.

This is what I am looking for in regard to functionality.

G60 Save current position coordinates (all axes, for active extruder).S[SLOT] - specifies memory slot # (0-based) to save into (default 0) G61 Apply/restore saved coordinates to the active extruder. X Y Z E - Value to add at stored coordinates F[speed] - Set Feedrate S[SLOT] - specifies memory slot # (0-based) to restore from (default 0)

For some reason G0/G1 with R* doesn't work as wel for me, I have a custom build printer with a not so common DUE based controller. Maybe that's why. But G60 and G61 did the trick for me in the past.

dystechnic avatar Mar 09 '19 13:03 dystechnic

That's exactly what this request is for (multi-material 3D printing). Basically I wanted to reproduce this here:-

https://www.youtube.com/watch?v=XDZzQ2S6jt4&feature=youtu.be

But on a hardware level (so I can use any slicer, the one 3DMN uses is Simplify3D which is not free).

lunar711 avatar Mar 09 '19 13:03 lunar711

[OT] It would be better to leave Facebook. Why do not you mount a real forum with for example phpbb3 or another platform always opensource?

For example, I have definitively closed all my Facebook and twitter accounts, and like me many people. So I propose you to create an alternative space to facebook. If you like the Facebook system you could use OSN (https://www.opensource-socialnetwork.org/) If you need web space, I can ospitar in my humble server linux. regards

maxlinux2000 avatar Apr 13 '19 14:04 maxlinux2000

Here You go for G60/G61 first try: https://github.com/Hans007a/Marlin/tree/bugfix-2.0.x

Hans007a avatar Jan 07 '20 19:01 Hans007a

We tested and works. very nice 1 addition that we would like to see is that the positions are being send to the host (like M114), so the host can do stuff with that info. Or if host sends G60 Q0, firmware will send the stored position of S0.

maukcc avatar May 04 '20 10:05 maukcc

Is it possible to save G60 coordinates to EPROM ? And to be sure, does this position is being send to the host, as requested previously ?

Simonlebucheron avatar Aug 10 '22 07:08 Simonlebucheron

Eeprom is a bad idea, it only has finite number of writes in its life cycle. You could exceed that in one gcode file.

ellensp avatar Aug 10 '22 07:08 ellensp

That is relevant, and what about a register of custom saved position ? Maybe it already exists ? edit: typo

Simonlebucheron avatar Aug 10 '22 07:08 Simonlebucheron