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

    how to adjust focus manually?

    Scheduled Pinned Locked Moved
    Laser Cutters
    3
    4
    535
    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.
    • Denisundefined
      Denis
      last edited by Denis

      Hello. On my machine, the z-axis is adjusted manually and I would like to be able to programmatically turn on the laser with some minimum power for an indefinite time. The option using a virtual extruder did not work for me. In addition, this still implies switching on for a short time.

      RepRapFirmware for Duet 2 WiFi/Ethernet 3.4.3 (2022-10-05)

      ; Configuration file for Duet WiFi (firmware version 3.3)
      ; executed by the firmware on start-up
      
      G90                                     
      ;M83                                     
      M550 P"Duet"                            
      M452 C"!exp.heater3" R5000 F5000        
      M571 P"!exp.heater3" F200 S255
      
      ; Сеть 
      M552 S0                                 
      M587 S"ASUS_RT" P""            
      M552 S1                                 
      M586 P0 S1                               
      M586 P1 S0                               
      M586 P2 S0                               
      
      ; Драйвера
      M569 P0 S0                              
      M569 P1 S0                              
      M569 P3 S1                             
      M584 X0 Y1:3                            
      M350 X16 Y16 I1                         
      M92 X100.00 Y80.00                      
      M566 X900.00 Y900.00                   
      M203 X12000.00 Y12000.00               
      M201 X500.00 Y500.00                   
      M906 X800 Y800 I80                    
      M84 S0                                
      
      ; Лимиты
      M208 X0 Y0 S1                           
      M208 X875 Y808 S0                      
      
      ; Стопы
      M574 X1 S1 P"xstop"                     
      M574 Y1 S1 P"ystop"                    
      M574 Z0 S0
      
      ; Z-Probe
      ; Heaters
      
      ; Fans
      M950 F0 C"fan0" Q500                    ; create fan 0 on pin fan0 and set its frequency
      M106 P0 S0 H-1                          ; set fan 0 value. Thermostatic control is turned off
      M950 F1 C"fan1" Q500                    ; create fan 1 on pin fan1 and set its frequency
      M106 P1 S1 H T45                        ; set fan 1 value. Thermostatic control is turned on
      
      ; Tools
      M563 P0 H1 S"Laser"
      M302 P1
      T0
      
      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Denis
        last edited by

        @Denis this is already on the work list for RRF 3.5. See also https://forum.duet3d.com/topic/22195/m3-control-for-laser-focus.

        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 0
        • FHesseundefined
          FHesse
          last edited by

          @dc42 Is there already a solution to the problem?

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

            @FHesse I think the simplest solution for now is to set up a macro that does this:

            • use M451 to switch out of laser mode to free up the laser control pin
            • use M950 to configure the laser pin as GpOut pin
            • use M42 to set the desired PWM on that pin
            • use M291 to prompt the user to press OK when focusing is complete
            • use M42 to turn off the laser
            • use M950 to deconfigure the GpOut port
            • use M452 to reselect laser mode.

            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
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA