how to adjust focus manually?
-
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
-
@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.
-
@dc42 Is there already a solution to the problem?
-
@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.