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

    LASER always on CNC/LASER mode-couldn't turn off

    Scheduled Pinned Locked Moved
    Laser Cutters
    3
    18
    720
    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.
    • sarvanundefined
      sarvan
      last edited by

      Hi Folks,
      I have hooked up a laser module 10W to the Duet2wifi rrf3.3. (running CNC/LASER MODE switchable) through the additional circuit provided here.https://duet3d.dozuki.com/Wiki/Laser_PWM_control#Section_Controlling_the_laser
      duet pwm-lsr-circuit.jpg
      But, when i turn on my machine CNC mode-the laser also firing.

      and when i switch to LASER mode also the laser firing continuously. i could not turn off the laser using any commands(M5, M5 S0)

      My config file for the cnc
      config.g

      My config file for the laser
      config.g

      please could anyone help to sort out the issue?

      T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
      • T3P3Tonyundefined
        T3P3Tony administrators @sarvan
        last edited by

        @sarvan reposting your config.g for the laser mode using the code insert formatting (</>) so its easy to view here:

         Configuration file for Duet WiFi (firmware version 3)
        ; executed by the firmware on start-up
        ;
        ; generated by RepRapFirmware Configuration Tool v3.2.3 on Sat Jul 10 2021 15:44:08 GMT+0800 (China Standard Time)
        
        ; General preferences
        G90                                                ; send absolute coordinates...
        M550 P"LASER"                                      ; set printer name
        
        ; Network
        M551 P"Mous2018"                                   ; set password
        M552 S1                                            ; enable network
        M586 P0 S1                                         ; enable HTTP
        M586 P1 S0                                         ; disable FTP
        M586 P2 S0                                         ; disable Telnet
        
        ; Drives
        M569 P0 S0                                         ; physical drive 0 goes forwards
        M569 P1 S0                                         ; physical drive 1 goes forwards
        M569 P2 S1                                         ; physical drive 2 goes forwards
        M569 P3 S1                                         ; physical drive 3 goes forwards
        M569 P4 S1                                         ; physical drive 4 goes forwards
        M584 X0 Y1 Z2:4                                    ; two Z motors connected to driver outputs Z and E1
        M584 A3 R1 S1                                      ; two Z motors connected to driver outputs Z and E1
        M671 X-62.5:352.5 Y0:0 S2.0                        ; leadscrews at left (connected to Z) and right (connected to E1) of X axis
        M350 X16 Y16 Z16 A16 I1                            ; configure microstepping with interpolation
        M92 X400.00 Y400.00 Z400.00 A8.88                  ; set steps per mm
        M566 X500.00 Y500.00 Z500 A1000                    ; set maximum instantaneous speed changes (mm/min)
        M203 X2400.00 Y2400.00 Z600.00 A2400               ; set maximum speeds (mm/min)
        M201 X150.00 Y150.00 Z150.00 A500                  ; set accelerations (mm/s^2)
        M906 X800 Y800 Z800 A900 I30                      ; set motor currents (mA) and motor idle factor in per cent
        
        
        ; Axis Limits
        M208 X0 Y0 Z0 S1                                   ; set axis minima
        M208 X300 Y300 Z100 S0                             ; set axis maxima
        
        ; Endstops
        M574 X1 S1 P"!xstop"                               ; configure active-high endstop for low end on X via pin !xstop
        M574 Y1 S1 P"!ystop"                               ; configure active-high endstop for low end on Y via pin !ystop
        M574 Z1 S1 P"!zstop"                               ; Z min active high endstop switch
        M574 Z1 S1 P"!zstop+!e1stop"                       ; configure active-high endstops for low end on Z via pins zstop and e1stop
        
        ; Z-Probe
        ; M950 S0 C"exp.heater3"                             ; create servo pin 0 for BLTouch
        ; M558 P9 C"^zprobe.in" H5 F600 T2000                ; set Z probe type to bltouch and the dive height + speeds
        ; G31 P25 X25.70 Y0.5 Z2.750                         ; set Z probe trigger value, offset and trigger height
        ; M557 X50:250 Y50:250 S50                           ; define mesh grid
        
        ; Tools
        ; M950 R0 C"^fan2" L0:15000                          ; create fan 2 on pin fan2 and set its 
        ; M563 P0 R0 S"Spindle"                              ; Create Tool 0 with Spindle 0 and call it Spindle
        ;Laser
        M452 C"exp.heater3" R255 F200                        ; Enable Laser mode, on exp.heater3, with max intensity being 255, and a PWM frequency of 200
        
        ; Custom settings
        M140 H-1                                           ; Disable heated bed
        M564 S1 H1                                         ; Disable jog commands when not homed
        M911 S18 R23 P"G91 G1 Z3 F1000"                    ; Configure power loss resume
        
        ; Miscellaneous
        M575 P1 S1 B57600                                  ; enable support for PanelDue
        M501    			                   ; Load Stored Parameters
        

        www.duet3d.com

        sarvanundefined 1 Reply Last reply Reply Quote 0
        • sarvanundefined
          sarvan @T3P3Tony
          last edited by

          @t3p3tony ok. thanks

          T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
          • T3P3Tonyundefined
            T3P3Tony administrators @sarvan
            last edited by

            @sarvan ok so how do you have it wired into the Duet? Can you show the connections into the expansion header on the Duet?

            Also something to test - With pin 8 not plugged in to the expansion header of the Duet, does the laser still fire?

            www.duet3d.com

            sarvanundefined 1 Reply Last reply Reply Quote 0
            • sarvanundefined
              sarvan @T3P3Tony
              last edited by

              @t3p3tony I have plugged this to the duet ex header.
              7a016d9e-5fdb-4e4b-8c8b-8dd6f24b6858-image.png
              dc5c8c9e-8171-4551-b3f2-e42b8d9015cb-04d7bb8879dae44b705b5837f850110.jpg

              in the CNC mode even the pin 8 is not connected the laser firing. but, when i switch to laser mode it is not firing.

              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
              • T3P3Tonyundefined
                T3P3Tony administrators @sarvan
                last edited by

                @sarvan I can't tell from the pictures if pin 8 on the expansion header is connected to the correct pin on the DuetLaserPWM board.

                @sarvan said in LASER always on CNC/LASER mode-couldn't turn off:

                when i switch to LASER mode also the laser firing continuously. i could not turn off the laser using any commands(M5, M5 S0)

                @sarvan said in LASER always on CNC/LASER mode-couldn't turn off:

                when i switch to laser mode it is not firing.

                Is the laser firing all the time in laser mode, or not at all?

                www.duet3d.com

                sarvanundefined 1 Reply Last reply Reply Quote 0
                • sarvanundefined
                  sarvan @T3P3Tony
                  last edited by

                  @t3p3tony yes always firing in the laser mode.
                  I thought could be the chip may be issue on the duet laser pwm board. So, I have hooked up another one. IMG_20211115_182950.jpg
                  IMG_20211115_183021.jpg

                  sarvanundefined 1 Reply Last reply Reply Quote 0
                  • sarvanundefined
                    sarvan @sarvan
                    last edited by

                    @sarvanin this board also the same thing. Laser firing continuously can't turn off.

                    T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                    • T3P3Tonyundefined
                      T3P3Tony administrators @sarvan
                      last edited by

                      @sarvan what about with the pin on Pin 8 disconnected?

                      www.duet3d.com

                      sarvanundefined 1 Reply Last reply Reply Quote 0
                      • sarvanundefined
                        sarvan @T3P3Tony
                        last edited by

                        @t3p3tony pin 8 connected to duet laser pwm board

                        sarvanundefined T3P3Tonyundefined 2 Replies Last reply Reply Quote 0
                        • sarvanundefined
                          sarvan @sarvan
                          last edited by sarvan

                          @sarvan let me take some more clear pics and infos tomorrow

                          1 Reply Last reply Reply Quote 0
                          • T3P3Tonyundefined
                            T3P3Tony administrators @sarvan
                            last edited by

                            @sarvan yes, so what i wondered was if the laser is still firing with pin 8 not connected (but with all the other pins still connected.

                            www.duet3d.com

                            sarvanundefined 1 Reply Last reply Reply Quote 0
                            • sarvanundefined
                              sarvan @T3P3Tony
                              last edited by

                              @t3p3tony here my connection to the duet from pwm board
                              9259c501-2609-4d7a-aba2-8a2046317f72-image.png

                              When I switch to laser mode, the laser firing could not turn off by any code (M5). then again if go switch to CNC mode also laser is still firing and could not turn off.

                              if I unplugged the Pin-8. the laser is not firing.

                              T3P3Tonyundefined 1 Reply Last reply Reply Quote 0
                              • T3P3Tonyundefined
                                T3P3Tony administrators @sarvan
                                last edited by

                                @sarvan thanks, can you try the following. in your Laser mode config.g, I am not currently looking at the CNC config.g so lets put that aside for now until we have the laser working.:

                                M452 C"!exp.heater3" R255 F200

                                If that that does not make the laser work as expected then Instead of connecting to pin 8 on the expansion header, try connecting to pin 13 and change the laser config to use heater4.

                                94adc915-0f99-463a-8356-d6d437b95bd5-image.png

                                M452 C"exp.heater4" R255 F200

                                Also can you confirm this turns on as soon as the printer boots, and not after (say) homing or some other action?

                                www.duet3d.com

                                sarvanundefined 2 Replies Last reply Reply Quote 0
                                • sarvanundefined
                                  sarvan @T3P3Tony
                                  last edited by

                                  @t3p3tony Thanks. let me try these step and check

                                  1 Reply Last reply Reply Quote 0
                                  • sarvanundefined
                                    sarvan @T3P3Tony
                                    last edited by sarvan

                                    @t3p3tony No luck on either way. i have tried those steps you have mentioned.
                                    I have checked connections continuity. everything is fine.
                                    Bu, i have a doubt. once if i configure a heater pin say exp.heater3 and i checked the voltage it shows 0v. but, not configured exp. heater pins shows 3.some volts. it this normal?

                                    I have only the laser config files in my duet. when I switch on the duet . the laser starts to firing.
                                    When in CNC/LASER mode- not firing in CNC mode. if I switch to laser mode it starts to firing.(and if i switch back to CNC mode also still the laser is firing)

                                    and I have checked the voltage coming through the pwm port from the duet pwm board it shows 7.2V.

                                    so, I am going to buy a connecter type 74hct0-https://www.tandyonline.com/74hct02-quad-2-input-nor-gate.html to try out wiring manually.

                                    sarvanundefined 1 Reply Last reply Reply Quote 0
                                    • sarvanundefined
                                      sarvan @sarvan
                                      last edited by

                                      I have tried manual connections as well. it doesn't work. Any other suggestions @T3P3Tony ?

                                      1 Reply Last reply Reply Quote 0
                                      • FelixHundefined
                                        FelixH
                                        last edited by

                                        did you ever figured that out? I am running on the same issue here, although when I unplug the pin on exp.heater3, the laser fires up anyway...

                                        https://forum.duet3d.com/topic/26245/laser-cnc-macros-for-rrf3-on-workbee/4?_=1638642690083

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