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

    Firmware Bug When I use it with laser head (I Think)

    Scheduled Pinned Locked Moved
    Firmware developers
    3
    6
    1.0k
    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.
    • cgcaferundefined
      cgcafer
      last edited by

      Hi all,
      I have a problem about laser cutting.
      If same G code line repeat before M05 S0 line, M05 S0 doesn't work!

      Laser On-Off controlled with FAN2

      [h]Here is my config file,[/h]

      ; Configuration file for Duet WiFi (firmware version 1.19)
      ; executed by the firmware on start-up
      ;
      ; generated by RepRapFirmware Configuration Tool on Sun Oct 15 2017 19:49:59 GMT+0200 (Egypt Standard Time)

      ; General preferences
      M111 S0 ; Debugging off
      G21 ; Work in millimetres
      G90 ; Send absolute coordinates…
      M83 ; ...but relative extruder moves
      M555 P1 ; Set firmware compatibility to look like 1-RepRap 2-Marlin
      M911 S21 R23 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Configure automatic saving on power loss
      ; Auto save voltage 21.0V, resume 23.0V, script "M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"

      M575 P1 B115200 S1 ; Comms parameters for PanelDue
      M208 X0 Y0 Z-0.25 S1 ; Set axis min
      M208 X370 Y300 Z340 S0 ; Set axis max

      M207 S26.0 F2400 Z0.075

      ; Endstops
      M574 X1 Y1 Z1 S1 ; Define active low and unused microswitches
      ;M558 P0 X0 Y0 Z0 H5 F120 T6000 ; Set Z probe type to switch, the axes for which it is used and the probe + travel speeds
      ;G31 P600 X-25 Y-29 Z12.25 ; Set Z probe trigger value, offset and trigger height
      ;M557 X15:175 Y15:175 S20 ; Define mesh grid
      M558 P0 X0 Y0 Z0 ; disable z-probe

      ; Drives
      M569 P0 S1 ; Drive 0 goes forwards
      M569 P1 S1 ; Drive 1 goes forwards
      M569 P2 S1 ; Drive 2 goes forwards
      M569 P3 S1 ; Drive 3 goes forwards
      M569 P4 S1 ; Drive 4 goes forwards
      M569 P5 S1 ; Drive 5 goes forwards

      M350 X256 Y256 Z32 E8:8:8 I0 ; Configure microstepping without interpolation
      ; 1.8derece = 200 step
      ; 30 diş kasnak ve 3mm hatveli kayış
      ; (200 x 64) / (3 x 30) = 142.22222222
      ; For Z-Steps steps_per_mm = (motor_steps_per_rev * driver_microstep) / thread_pitch
      M92 X568.888889 Y568.888889 Z1600 E229.0866605:229.0866605:229.0866605 ; Set steps per mm (495 idi eskiden)

      ;ESKI AYARLAR
      ;M566 X900 Y900 Z12 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X15000 Y15000 Z500 E3600:3600:3600 ; Set maximum speeds (mm/min)
      ;M201 X800 Y800 Z300 E500:500:500 ; Set accelerations (mm/s^2)

      ;28-12-2017 BACKUP
      ;M566 X900 Y900 Z12 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X15000 Y15000 Z850 E3600:3600:3600 ; Set maximum speeds (mm/min)
      ;M201 X800 Y800 Z800 E350:500:500 ; Set accelerations (mm/s^2)

      ;1.Test Baskının Ayarları
      ;M566 X300 Y300 Z12 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X10000 Y10000 Z850 E3600:3600:3600 ; Set maximum feedrate Set maximum speeds (mm/min)
      ;M201 X300 Y300 Z300 E350:500:500 ; Set accelerations (mm/s^2)

      ;2.Test Baskının Ayarları (11.01.2018)
      ;M566 X8400 Y8400 Z12 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X84000 Y84000 Z750 E3600:3600:3600 ; Set maximum feedrate, Set maximum speeds (mm/min)
      ;M201 X350 Y350 Z180 E350:500:500 ; Set accelerations (mm/s^2)

      ;3.Test Baskının Ayarları (11.01.2018) Oriantal motor 1.test
      ;M566 X20 Y20 Z12 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X14000 Y14000 Z750 E3600:3600:3600 ; Set maximum feedrate, Set maximum speeds (mm/min)
      ;M201 X350 Y350 Z180 E350:500:500 ; Set accelerations (mm/s^2)

      ;15.01.2018 ONAYLI AYARLAR
      ;M566 X25 Y25 Z10 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X7200 Y7200 Z750 E3600:3600:3600 ; Set maximum feedrate, Set maximum speeds (mm/min)
      ;M201 X150 Y150 Z180 E350:500:500 ; Set accelerations (mm/s^2)

      ;18.01.2018 Kurbagadan sonra
      ;M566 X125 Y125 Z10 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      ;M203 X7200 Y7200 Z750 E3600:3600:3600 ; Set maximum feedrate, Set maximum speeds (mm/min)
      ;M201 X150 Y150 Z180 E350:500:500 ; Set accelerations (mm/s^2)

      M566 X900 Y900 Z10 E20:20:20 ; Set maximum instantaneous speed changes (mm/min)
      M203 X7200 Y7200 Z750 E3600:3600:3600 ; Set maximum feedrate, Set maximum speeds (mm/min)
      M201 X450 Y450 Z180 E350:500:500 ; Set accelerations (mm/s^2)

      M906 X1800 Y1800 Z1400 E1000:1000:1000 I30 ; Set motor currents (mA) and motor idle factor in per cent

      M84 S30 ; Set idle timeout

      ; Heaters
      M143 H0 S110 ; Set maximum heater temperature to 250C
      M143 H1 S280 ; Set maximum heater temperature to 250C

      M301 H1 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
      ;M301 H0 S1.00 P10 I9.868 D200 T0.4 W180 B15 ; Use PID on bed heater (may require further tuning) Hesaplanan: P107.4 I9.868 D162.1 Eskisi: P10 I0.5 D200
      M301 H1 S1.00 P10 I0.5 D200 T0.4 W180 B15 ; Use PID on extruder heater (may require further tuning) Hesaplanan: P9.6 I0.340 D31.9 eskisi:P10 I0.5 D200
      M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0 BED
      M305 P1 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 1 Extruder

      ;M307 H0 A90.0 C700.0 D10.0 B1 ;Set heater model settings
      ;M307 H1 A90.0 C700.0 D10.0 B1 ;Set heater model settings

      ;M305 P2 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 1
      ;M305 P3 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 1

      ; Tools
      M563 P0 D0 H1 F0; Define tool 0 P-ToolNumber, Dnnn Extruder drive(s), Hnnn Heater(s), Fnnn Fan(s) to map fan 0 to (RepRapFirmware 1.16 and later)
      G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
      ;G10 P0 R175 S220 ; Set initial tool 0 active and standby temperatures to 0C

      M563 P1 D1 H1 F0; Define tool 1
      G10 P1 X0 Y0 Z0 ; Set tool 1 axis offsets
      ;G10 P1 R175 S220 ; Set initial tool 1 active and standby temperatures to 0C

      M563 P2 D2 H1 F0; Define tool 2
      G10 P2 X0 Y0 Z0 ; Set tool 2 axis offsets
      ;G10 P2 R175 S220 ; Set initial tool 2 active and standby temperatures to 0C

      ;M563 S1

      ; Network
      M550 PDuetWiFi ; Set machine name
      M551 Preprap ; Machine password (used for FTP)
      M552 S1 ; Enable network
      M587 SISISO
      M586 P0 S1 ; Enable HTTP
      M586 P1 S0 ; Disable FTP
      M586 P2 S0 ; Disable Telnet

      ; Fans
      M106 P0 S1 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      M106 P1 S0 I0 F500 H1 T50 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned on
      M106 P2 S1 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

      ;M106 P0 S1 I0 F500 H1 T50; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
      ;M106 P1 H-1 ; Set fan 1 value, Thermostatic control is turned off
      ;M106 P2 H-1 ; Set fan 2 value, Thermostatic control is turned off

      ; *** Panic Button
      ;M581 Z:S1 T2 C0 ; Configure external trigger
      ; When Z stop switch closes, execute sys/trigger2.g
      ; Trigger on rising edge (S1, default), falling edge (S0), ignore input (S-1)
      ; C0 = trigger at any time (default) C1 = only when printing a file from SD

      ; Custom settings are not configured

      ; Miscellaneous
      M501 ; Load saved parameters from non-volatile memory
      ;M140 S65
      ;M104 S210
      T0 ; Select first tool
      M107 ;FAN STOP

      ; LASER SETTINGS
      ; P ayarları için M42 ye BAK
      M106 P2 I-1
      M42 P22 S255 ; FAN-2
      M452 P22 R255 F2000 ; switch to laser mode using the FAN-2 output pins to control the laser

      [h]My Firmware [/h]
      1.21RC1 (2018-01-25)

      [h]PROBLEM G CODE FILE[/h]
      M05 S0

      G90
      G21
      G1 F3000
      G1 X6.0905 Y4.623
      G4 P0
      M03 S255
      G4 P0
      G1 F750.000000
      G1 X19.1532 Y4.623
      G1 X19.1532 Y11.3099
      G1 X6.0905 Y11.3099
      G1 X6.0905 Y4.623
      G1 X6.0905 Y4.623 ;–------ If you remove this line M05 S0 will work normal, but this type not worked
      M05 S0

      G1 F3000
      G1 X2.0189 Y2.0189
      G4 P0
      M03 S255
      G4 P0
      G1 F750.000000
      G1 X24.0459 Y2.0189
      G1 X24.0459 Y13.8816
      G1 X2.0189 Y13.8816
      G1 X2.0189 Y2.0189
      M05 S0

      G1 F3000
      G1 X0 Y0

      Many Thanks in advance
      Best Regards
      Cafer GÜRSOY

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

        Is that M05 S0 line getting delayed response until after the following move? If so then I think I know what may be happening, and I will fix it in the next 1.21RC release.

        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
        • cgcaferundefined
          cgcafer
          last edited by

          Hi,
          There is no visible delayed response, but maybe yes. Because after that line, short movement and laser on again

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

            I can see an issue in the firmware that probably accounts for this. I will attempt to fix it in the next 1.21RC release.

            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
            • resamundefined
              resam
              last edited by

              dc42: should this be fixed in 1.21RC4?

              ref https://www.duet3d.com/forum/thread.php?id=4801

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

                Yes it should be fixed. Please test it.

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