Laser stopped working after RRF3 upgrade
-
@felixh said in Laser stopped working after RRF3 upgrade:
M98 P"config-user-settings.g"
What do you have in this macro?
If you send M452 by itself after running your macro, what does it respond with?
If you send M452 S0 does it disable the laser?
Have you taken note of this change?
Very important! If you use M452 to put your machine into Laser mode and are running Firmware 2.02 or above, you must replace all S parameters in G0/G1 commands in homing files etc. by H parameters. This is because S is now used to control laser power.
-
on that macro I have nothing
if I send the M452 the machine does change to laser mode
if I send M542 S0 by itself, I don't know what happens because I haven't tried it yet
I did take note of that, but as I said I haven't had the chance to do movements with it
-
well I've done some "progress", if I can tell it that...
The good news is that now everything is working as expected. Router, RPM, Laser, etc...
The bad news is that, in order to do that, I had to downgrade the firmware to the latest RRF2 available with the Ooznest web overlay. So now I have everything as it used to be.
That confirms that there is no problem with the board, as far as I understand it.
Now I have two boards, one with RRF2 and one with RRF3. I have order some components to put together another Laser breakout board and do some experiments. I will borrow an oscilloscope from work and see if I can find something out here, although my skills with the oscilloscope are worse than minimal...
It would be great if somebody with time on their hands could try to replicate this setup, just to compare.
-
Yes we are looking into it. As far as I can tell your config is correct for RRF3.
-
@phaedrux well, it‘s comforting to know that. At least it seems that the whole thing was not because some oversight on my part…
-
@phaedrux said in Laser stopped working after RRF3 upgrade:
As far as I can tell your config is correct for RRF3.
@felixh said in Laser stopped working after RRF3 upgrade:
M106 P2 S255 ; turn on 12v PSU
...
M452 C"exp.heater3" F200I wonder where and when " P2" was defined?
Is it a good idea to power up the laser before declaring the control pin for Laser mode?
What's in "config-user-setting.g"? (you call it at the end of config.g) -
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!