Laser stopped working after RRF3 upgrade
-
The M106 turns on the PSU for the laser, as it is a separate 12v PSU, which does not need to be powered on when I am on CNC mode, for example. So I turn it ON and OFF with a solid state relay using a FAN port I declared somewhere.
The config-user-setting.g does not contain anything.
-
@felixh
That's understood, but why do you switch it ON before you have the Laser-pin under control? There might be an internal pullup or something on the Laser breakout board? (I don't know) -
@felixh you should use this line for RRF3:
M452 C"!exp.heater3" F200
The laser will turn on when you execute a G1 move with an appropriate S parameter to set the laser power.
-
@dc42 and so I did, but doesn‘t work. The laser goes full blast as soon as I power it on.
I will give it another go this afternoon, however. Just to make extra sure.
-
@dc42 said in Laser stopped working after RRF3 upgrade:
M452 C"!exp.heater3" F200
I just tested it again. It doesn't make any difference.
I just had two boards side, by side. One with RRF 3.3 and the other with RRF2.x (don't remember which one it is). On the RRF3, the laser turns ON as soon as I power up, no matter if C"exp.heater3" or C"!exp.heater3".I even skipped the macro all together and I added the
M452 C"exp.heater3" F200 (with and without the ! on the config.g file...
I am willing to to a video if needed.
-
@felixh said in Laser stopped working after RRF3 upgrade:
I am willing to to a video if needed.
Being able to see what you see couldn't hurt. Photos of the wiring perhaps help.
-
@phaedrux I will do just that, but it will have to wait until I get the parts to prepare another breakout board for the laser, otherwise it is a mess and it would complicate things even more
-
So this is my setup. For testing purposes I am using a 12v PSU which powers both the laser and the Duet.
The small PCB in the middle is the Laser breakout board recommended for controlling a Laser with the Duet.
The thin wire between both boards connect the PWM input on the breakout board and the pin "exp.heater3" on the Duet.
If I am running FFR2.x the setup works as expected:
- I can switch between Laser and CNC mode without problems
- I can turn ON the laser with M3 Sx commands (I am aware this doesn't work on RRF3)
- I can turn OFF the laser with the M5 command
If I run RRF3.x the very same setup:
- I can switch between Laser and CNC modes
- The Laser powers up immediately when I turn on the PSU
- Sending M5 does NOT switch OFF the Laser
- changing C"exp.heater3" for C"!exp.heater3" or C"exp.8" or C"!exp.8" doesn't change anything of the above
-
well, good news everyone.
After many tests done on a spare Duet2 (clone) board I finally got it to work. However, I cannot explain why. The only thing I did was to re-flash the firmware again, wire everything again (including putting terminals on some cables) and test.
hopefully my experience will be of some use to someone with the same experience...
EDIT: of course, many thanks at everyone who brainstormed with me! It is really appreciated!
-
That feeling you get when it starts working again without understanding why.
-
@phaedrux you get me!