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

    Pause job immediately when lid opened

    Scheduled Pinned Locked Moved Solved
    Laser Cutters
    6
    23
    998
    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.
    • o_lampeundefined
      o_lampe @paulg4h
      last edited by o_lampe

      @paulg4h said in Pause job immediately when lid opened:

      So this "immediately pause feature" will be useful for all kinds of machine types, printers, cnc and also laser!

      I haven't seen a 'resurrect.g' file lately, but IIRC it only remembers the current line number of the gcode file or the coords of the last move.
      To pause immediately, it would have to stop mid-track and calculate the current position and remaining track.
      Then write resurrect.g including the new track info. Not impossible, but that's actually 'slicing'. A whole new discipline for RRF.

      What if it repeats the line of code it tried to finish? (current line number -1)
      A laser or spindle would cut the same path twice, so what?

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @o_lampe
        last edited by

        @o_lampe said in Pause job immediately when lid opened:

        A laser or spindle would cut the same path twice, so what?

        That would be an issue if engraving with a laser as it may increase the darkness in one area.
        Wouldn't be an issue for a through cut

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        o_lampeundefined 1 Reply Last reply Reply Quote 0
        • o_lampeundefined
          o_lampe @jay_s_uk
          last edited by

          @jay_s_uk
          Good point if we talk about 'real art'. But engraving often means barcodes, serial numbers and such.

          I've done some plywood engraving and the wood grain had a significant influence on the darkness.
          I wouldn't mind having another 'miscolored' small track, when I can finish the project instead.

          jay_s_ukundefined paulg4hundefined 2 Replies Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @o_lampe
            last edited by

            @o_lampe true.
            just depends if its something for you or something you're selling on I suppose

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

            1 Reply Last reply Reply Quote 0
            • paulg4hundefined
              paulg4h @o_lampe
              last edited by

              @o_lampe not even with a laser this is useful, also on a CNC when you see there is something in front of the current path and need to pause the move now or remove the mains (emergency stop) and lost the work piece.

              As jay also mentioned in engraving this would an big issue too if you use a not so cheap worksheet and a picture and not a barcode.

              Also with my printer I would like this feature, when there is something i like to remove before the head reaches it. My Ender 5 Plus do have long moves where I need to wait until this move is done and hope he do not pick it up before.

              Last but not least the power outage on all three types would need such a feature. And yes most of the power issues are made by the user but we are talking to make RRF more perfect and comparable with others.

              o_lampeundefined 1 Reply Last reply Reply Quote 0
              • o_lampeundefined
                o_lampe @paulg4h
                last edited by o_lampe

                @paulg4h
                I see your point, but not how it could be done?! Maybe the SBC is powerful enough to 'always keep track of the momentary position'.
                That would make pause immediately easier.
                Especially on curved moves (G2+G3) or 'vase-mode' prints it gets tricky. Closed loop motion system with index would help. Not sure if closed loop steppers offer a readout of their position or if it's all internal?

                paulg4hundefined 1 Reply Last reply Reply Quote 0
                • paulg4hundefined
                  paulg4h @o_lampe
                  last edited by

                  @o_lampe @dc42

                  when the RRF Firmware knows where the tool are currently and the last line of GCode which it was processing, the resume should be easily possible on a CNC or Laser.

                  Even on a printer the remaining distance and resulting extrusion should be predictable.

                  So I still do not understand how a power outage / resume feature can work without this.

                  o_lampeundefined 1 Reply Last reply Reply Quote 0
                  • o_lampeundefined
                    o_lampe @paulg4h
                    last edited by

                    @paulg4h said in Pause job immediately when lid opened:

                    when the RRF Firmware knows where the tool are currently

                    It doesn't know! Except the tool arrived at the endpoint of a track, but not in between.

                    paulg4hundefined 1 Reply Last reply Reply Quote 0
                    • paulg4hundefined
                      paulg4h @o_lampe
                      last edited by

                      @o_lampe RRF knows the start and target point with the path and speed it moves so it should not be rocket science to calculate the position where it is at any time.

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

                        @paulg4h said in Pause job immediately when lid opened:

                        M120 and M121 to restore the Laser power, but when I move the head away on pause and return it on resume the laser switches on before the head reaches the last position.

                        You can avoid the laser turning on if you use G0 moves in pause.g and resume.g, not G1 moves.

                        You can get a faster response to the pause by using firmware 3.3 and enabling segmentation. See the S and T parameters of the M669 command.

                        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

                        paulg4hundefined 1 Reply Last reply Reply Quote 0
                        • paulg4hundefined
                          paulg4h @dc42
                          last edited by

                          @dc42 many thank's!

                          I add this line in my config.g

                          ; Set Cartesian type and segment interval one second and length 3mm
                          M669 K0 S1 T3
                          

                          In the middle of a 200mm straight cut the pause will be done within the second and move set with M669

                          So this works and I will add this line to my CNC too, btw. I do not see any slowness in normal cut and engrave jobs too.

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