Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Command on layer change

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    6
    14
    2.1k
    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.
    • taconiteundefined
      taconite
      last edited by

      Hey guys,

      I am really new to this forum and I hope I haven't missed a similar topic. I want to build a delta printer with a duetwifi.
      Is it possible to detect a layer change and move another stepper (other than the 3 for the Delta Movement) xx-Steps (according to the layer hight --> 0.1mm 0.2mm 0.3mm ....) possible application for my big printer and a camera that is moving up as the layers are.

      Thanks guys for the help

      Best Regards
      taconite

      Custom ANET A8
      Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

      All I do here is under this license: CC BY-NC-SA

      wilrikerundefined 1 Reply Last reply Reply Quote 0
      • wilrikerundefined
        wilriker @taconite
        last edited by

        @taconite I am not a 100% certain but I think you could define another stepper driver as being part of the Z-axis. This way it should go up together when all other motors perform a Z movement. But I have no experience with deltas, so better wait for someone to confirm.

        Manuel
        Duet 3 6HC (v0.6) with RPi 4B on a custom Cartesian
        with probably always latest firmware/DWC (incl. betas or self-compiled)
        My Tool Collection

        1 Reply Last reply Reply Quote 0
        • ampex_fhmundefined
          ampex_fhm
          last edited by

          this should be possible by using the layer change gcode functionality provided by, e.g. slic3r. Just add your stepper, define it as an additional, non extruder axis (UVWABC) and move the axis in your layer change code.

          If your slicer does not support this you may be able to insert the move commands by searching for the comments inserted by your slicer (e.g. ";layer 3") and adding the move commands there.

          Voron CoreXY V022 300x300x230mm single extruder CoreXY machine

          1 Reply Last reply Reply Quote 1
          • taconiteundefined
            taconite
            last edited by taconite

            @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

            hariedo created this issue in Ultimaker/Cura

            closed Custom G Code inserted at layer change #593

            Custom ANET A8
            Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

            All I do here is under this license: CC BY-NC-SA

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

              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.

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

                awesome thanks @dc42 . Yes you are absolutly right - I planned to home it with an extra homing switch. Again - Thank you for the help!

                Custom ANET A8
                Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

                All I do here is under this license: CC BY-NC-SA

                Phaedruxundefined 1 Reply Last reply Reply Quote 0
                • Phaedruxundefined
                  Phaedrux Moderator @taconite
                  last edited by Phaedrux

                  @taconite the layer change post processing feature in Cura 3.4 is quite good actually. Just FYI.

                  Z-Bot CoreXY Build | Thingiverse Profile

                  taconiteundefined 1 Reply Last reply Reply Quote 1
                  • taconiteundefined
                    taconite @Phaedrux
                    last edited by taconite

                    @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

                    hariedo created this issue in Ultimaker/Cura

                    closed Custom G Code inserted at layer change #593

                    Custom ANET A8
                    Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

                    All I do here is under this license: CC BY-NC-SA

                    Phaedruxundefined 1 Reply Last reply Reply Quote 0
                    • Phaedruxundefined
                      Phaedrux Moderator @taconite
                      last edited by

                      @taconite I don't think the return will matter at all since it's behind a comment ( ; ) anyway.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      1 Reply Last reply Reply Quote 1
                      • resamundefined
                        resam
                        last edited by

                        I'm using this to insert a few command on each layer change:
                        https://github.com/Kriechi/DuetRRF-timelapse/blob/master/TimelapseLayerChange.py

                        1 Reply Last reply Reply Quote 2
                        • resamundefined
                          resam
                          last edited by

                          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

                          1 Reply Last reply Reply Quote 1
                          • taconiteundefined
                            taconite
                            last edited by

                            @resam very nice! A total stupid question but how do I add your script to the cura post-rocessing plugin?

                            Custom ANET A8
                            Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

                            All I do here is under this license: CC BY-NC-SA

                            1 Reply Last reply Reply Quote 0
                            • resamundefined
                              resam
                              last edited by resam

                              @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.

                              1 Reply Last reply Reply Quote 1
                              • taconiteundefined
                                taconite
                                last edited by

                                hugh thanks to all of you!!!

                                Custom ANET A8
                                Custom Delta: D-PATCH (Delta Printer with Automatic Tool CHanging) https://forum.duet3d.com/topic/16082/d-patch?_=1596131234754

                                All I do here is under this license: CC BY-NC-SA

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Unless otherwise noted, all forum content is licensed under CC-BY-SA