Laser engraving….



  • Hi everyone, and happy new year.
    I'm trying to config my Delta printer for laser engraving. When I send M452 the printer switches in laser mode but it uses FAN 0 to output for laser beam.
    How do I change the output to HEATER E1?
    I tried the command M452 P2 R255 F200 but nothing happens. It gives me an error: P2 Bad Parameter.
    Can anyone tell me how to config the right setting for the laser? Also, where do I put them in config.g?

    This is my config.g :

    ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Thu Dec 28 2017 21:02:47 GMT+0100 (ora solare Europa occidentale)

    ; General preferences
    M111 S0 ; Debugging off
    G21 ; Work in millimetres
    G90 ; Send absolute coordinates…
    M83 ; ...but relative extruder moves
    M555 P2 ; Set firmware compatibility to look like Marlin
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000"

    ;*** The homed height is deliberately set too high in the following - you will adjust it during calibration.
    M665 L369.184 R134.167 H368.971 B110 ; Set delta radius, diagonal rod length, printable radius and homed height
    M666 X0.74 Y-0.81 Z0.06 ; Put your endstop adjustments here, or let auto calibration find them
    M208 Z0 S1 ; Set minimum Z

    ; Endstops
    M574 X2 Y2 Z2 S1 ; Set active high endstops
    M558 P5 R0.4 H5 F550 T6000 ; Set Z probe type to effector and the dive height + speeds
    G31 P100 X0 Y0 Z-0.163 ; Set Z probe trigger value, offset and trigger height
    M557 R110 S20 ; Define mesh grid

    ; Drives
    M569 P0 S0 ; Drive 0 goes backwards
    M569 P1 S0 ; Drive 1 goes backwards
    M569 P2 S0 ; Drive 2 goes backwards
    M569 P3 S1 ; Drive 3 goes forwards
    M350 X64 Y64 Z64 E64 I0 ; Configure microstepping without interpolation
    M92 X320.85 Y320.85 Z320.85 E390 ; Set steps per mm
    M566 X1000 Y1000 Z1000 E1000 ; Set maximum instantaneous speed changes (mm/min)
    M203 X18000 Y18000 Z18000 E1200 ; Set maximum speeds (mm/min)
    M201 X1000 Y1000 Z1000 E1000 ; Set accelerations (mm/s^2)
    M906 X1000 Y1000 Z1000 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent
    M84 S30 ; Set idle timeout

    ; Heaters
    M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
    M305 P0 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S100 ; Set temperature limit for heater 0 to 100C
    M305 P1 T100000 B4138 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S280 ; Set temperature limit for heater 1 to 280C

    ; Tools
    M563 P0 D0 H1 ; Define tool 0
    G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets
    G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C

    ; Network
    M550 PDelta Star ; Set machine name
    M552 S1 ; Enable network
    M587 S"fiore_wifi2" P"fiorello1" I192.168.0.24 J192.168.0.1 K255.255.255.0 ; Configure access point and IP addresses. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S1 ; Enable FTP
    M586 P2 S0 ; Disable Telnet

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

    ; Custom settings
    M572 D0 S0.25 ; Set control pressure nozzle

    ; Miscellaneous
    M501 ; Load saved parameters from non-volatile memory


  • administrators

    Which facility are you using to set the laser PWM: E values on the G1 commands, or M3 commands between the G1 commands?

    Either way, you first need to make the E1 heater output (heater 2) available as a GPIO pin by sending M307 H2 A-1 C-1 D-1. After that:

    • If you are using E values on the G1 commands, send M571 P2
    • If you are using M3 commands, send your M452 P2 command after that.

Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.