Hi everyone
I have one of the Classic Blue and White 60W Chinese laser cutter/engraver.
The Chinese controller board eventually failed and I decided to upgrade it with one of my Duet 0.6 boards.
I have had some success with the Fan0 output via the M571 code, but I would like to investigate the RepRapFirmware using the Laser mode as described on the gcode for Duet3d wiki page.
I have would like the following functionality X axis, Y axis, an enable pin (FAN0-) along with a correctly configured PWM pin not sure which one yet, maybe a heater.
So I have a standard setup for cartesian XY motion with endstops and a diode from FAN0- to laser PSU IN pin.
This has been proved to work with M571 style configuration.
So, I want to use the following to allow the FAN0- pin to be used as an enable.
M106 P0 I-1 ; disable Fan0 and allow it to be reallocated
M452 P20 R255 F200 ; Enable laser mode, use pin 20 (Fan0)
Is this correct and should I then be able to see the FAN0- output go on/off when ever there is a G1 controlled movement?
I also expect to put a M4/5 commands around the gcode to enable the PWM of the pin and so its strength
M4 S255 ; PWM full strength
M5 ; PWM off
Does this sound right? at the moment after homing the head the laser is not fired when I manually issue the commands from the console:
M4 S255 ; enable laser at full strength
G0 X0 Y0 ; Move without firing
G1 X0 Y100 ; Move whilst firing
G1 X100 Y100 ; Move whilst firing
G1 X100 Y0 ; Move whilst firing
G1 X0 Y0 ; Move whilst firing
M5 ; disable laser
Any input would be useful.
Thanks
Lloyd