Command on layer change
-
@ampex_fhm thanks for your reply: Do you know if this feature is available in cura (I am currently using 2.6.2). the best thing would be an "automatic" feature that I don't have to add manually. is the duet sending a "change layer" command or something?
EDIT: found this https://github.com/Ultimaker/Cura/issues/593 --> it's a solution for "Custom G Code inserted at layer change" - it's a Postprocessing Plugin for cura; anyhow it would be awesome if there would be "automatic" solution that I don't have to add manually
-
There is already another firmware request to support a modified delta kinematics that moves in line with the Z height, and I expect to implement this soon (perhaps in firmware 2.02). You need to consider how you will home this extra axis - presumable with its own homing switch. Meanwhile you can create an additional U axis using the M564 command and use a post-processing command to add G1 U commands at layer changes. This may be the best approach anyway, to avoid the camera hopping with each Z-hop.
-
awesome thanks @dc42 . Yes you are absolutly right - I planned to home it with an extra homing switch. Again - Thank you for the help!
-
@taconite the layer change post processing feature in Cura 3.4 is quite good actually. Just FYI.
-
@phaedrux okay, and how do I use it? Search and replace?
" Ghostkeeper commented on 16 Jan 2016 (on github) (https://github.com/Ultimaker/Cura/issues/593)At every layer change, a comment is inserted that says: ;LAYER: <layer number>. This can be used to accurately detect layer changes, as long as CuraEngine is used as slicer.
"So at the postprocessing:
search: ;LAYER:
replace: G1 U10 ;LAYER:Seems like its working:
....
;LAYER_COUNT:60
G1 U50;LAYER:0
M107
G0 F30000 X86.763 Y87.334 Z0.1
G0 X87.138 Y86.962
....Do I need a return so that it looks like?
G1 U50
;Layer:0 -
@taconite I don't think the return will matter at all since it's behind a comment ( ; ) anyway.
-
I'm using this to insert a few command on each layer change:
https://github.com/Kriechi/DuetRRF-timelapse/blob/master/TimelapseLayerChange.py -
I also just published a full tool to take snapshot pictures on every layer change, see https://forum.duet3d.com/topic/6058/timelapse-pictures-videos-with-duet-and-webcam-on-layer-change
-
@resam very nice! A total stupid question but how do I add your script to the cura post-rocessing plugin?
-
@taconite you put the
TimelapseLayerChange.py
file into the scripts folder of you current Cura version:~/Library/Application Support/cura/3.4/scripts
on macOS,
C:\Users\<username>\AppData\Roaming\cura\3.4\scripts
on Windows,
/home/<username>/.local/share/cura/3.4/scripts
on Linux.Then restart Cura, and it should be available to be added in the PostProcessing GUI.
-
hugh thanks to all of you!!!