Configure Diode Laser in
-
Hy, I recently tried to get my installed laser up and running.
I read the following entries on the subject:- https://duet3d.dozuki.com/Wiki/Laser_PWM_control#Section_PWM_Circuit
- https://duet3d.dozuki.com/Wiki/Gcode#Section_M950_Create_heater_fan_spindle_or_GPIO_servo_pin
- https://duet3d.dozuki.com/Wiki/Gcode#Section_M452_Select_Laser_DeviceMode
My laser is a neje "20w" (5w) diode laser connected to pwm2 on duex2 and it works quite well as an engraving tool.
I set up my laser within a new Tool.
My current config.g file:; Tools ...... ..... .. M563 P3 S"Laser" ; define tool 2 M950 P1 C"duex.pwm2" ; Allocate type of output M452 C"duex.pwm2" R255 F500 ; Enable Laser mode, on duex.pwm2, with max intensity being 255, and a PWM frequency of 500 G10 P3 X0 Y0 Z0 ; set tool 3 axis offsets G10 P3 R0 S0 ; set initial tool 3 active and standby temperatures to 0C
To work with the laser i typed in the console:
M3 S255 **or** G1 S100 **or** M42 P"duex.pwm2" S1 (For 100% power)
Unfortunatly not one of the commands was succesfull with activating the laser.
If i configured the PWM signal to match the one from my bl-touch my laser begun to burn as long as the homing procedure was taking place.
I don't understand what i can look for in this case. i could really use some hints.
-
@flex12 In RRF 3
-
This is the code from 122
M122
=== Diagnostics ===
RepRapFirmware for Duet 2 WiFi/Ethernet version 3.2.2 running on Duet WiFi 1.02 or later + DueX2
Board ID: 08DLM-996RU-N85T0-6J9FL-3SD6R-1SS3N
Used output buffers: 3 of 24 (15 max)
=== RTOS ===
Static ram: 23460
Dynamic ram: 73900 of which 24 recycled
Never used RAM 14696, free system stack 204 words
Tasks: NETWORK(ready,186) LASER(blocked,67) HEAT(blocked,308) DUEX(blocked,31) MAIN(running,625) IDLE(ready,20)
Owned mutexes: WiFi(NETWORK)
=== Platform ===
Last reset 00:13:33 ago, cause: software
Last software reset at 2021-05-02 21:56, reason: User, GCodes spinning, available RAM 14452, slot 1
Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0041f000 BFAR 0xe000ed38 SP 0x00000000 Task MAIN Freestk 0 n/a
Error status: 0x00
Aux0 errors 0,0,0
MCU temperature: min 36.3, current 36.8, max 37.8
Supply voltage: min 0.2, current 0.4, max 2.0, under voltage events: 0, over voltage events: 0, power good: no
Driver 0: position 0, ok, SG min/max not available
Driver 1: position 0, ok, SG min/max not available
Driver 2: position 0, ok, SG min/max not available
Driver 3: position 0, ok, SG min/max not available
Driver 4: position 0, ok, SG min/max not available
Driver 5: position 0, ok, SG min/max not available
Driver 6: position 0, ok, SG min/max not available
Driver 7: position 0
Driver 8: position 0
Driver 9: position 0
Driver 10: position 0
Driver 11: position 0
Date/time: 2021-05-02 22:09:51
Cache data hit count 1135360814
Slowest loop: 7.13ms; fastest: 0.13ms
I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 20.0MBytes/sec
SD card longest read time 3.9ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 83, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters = -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
Daemon is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 15.76ms; fastest: 0.00ms
Responder states: HTTP(2) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions
HTTP sessions: 1 of 8- WiFi -
Network state is active
WiFi module is connected to access point
Failed messages: pending 0, notready 0, noresp 0
WiFi firmware version 1.25
WiFi MAC address 84:0d:8e:b2:f6:52
WiFi Vcc 3.33, reset reason Turned on by main processor
WiFi flash size 4194304, free heap 25600
WiFi IP address 192.168.0.102
WiFi signal strength -43dBm, mode 802.11n, reconnections 0, sleep mode modem
Clock register 00002002
Socket states: 0 0 0 0 0 0 0 0
=== DueX ===
Read count 1, 0.07 reads/min
- WiFi -