Using tool distribution board for multiple Motors 23CL
-
@RockB Try powering up the drive with the CAN reset button pressed. Most other Duet expansion boards and toolboards reset their CAN address and request firmware this way.
Ian
-
@RockB I think you should post photos of your boards so folks can see exactly how you have the CAN connections wired and how you have the various jumpers set.
-
@droftarts @gloomyandy
I tried powering on the motor with reset pressed. The lights stop blinking for a brief while, both red and green led flash once, and then after I release pressing the reset, the motor goes to blinking red led.Here is a video: M23CL Reset Video.mp4
Following are some pictures of my setup. Let me know if any other information is needed to help troubleshoot this issue
-
@RockB Has it always flashed in this pattern, or did it used to flash continuously? Flashing and then a pause generally means the bootloader is reporting a problem; see https://docs.duet3d.com/User_manual/Machine_configuration/CAN_connection#led-behaviour-and-error-codes
In this case, "Bad firmware CRC". This could be caused by an attempted upload. If it continually flashes in this way now, even after a power cycle, I'll have to find out how to recover from it.Ian
-
@droftarts It always used to flash red led quickly as seen in my video above. Whenever the motor is powered with reset pressed, it flashes both red and green led once and then reverts back to continuous flashing of red led once the reset is released.
I haven't noticed a pause when red led is blinking. The only pause is when the motor is powered up with reset pressed.
I tested using another motor 23CL (with brake) and I saw the same red led blinking pattern.
Not if this would help, but I checked the contents of the SD card after upgrading to firmware 3.5.2 and uploading a custom RRF firmware for my machine. I saw a firmware folder nested within a main firmware folder. The nested folder contained bin files for 23CL and Tool1RR. While the main firmware folder already had these two bin files along with a lot of other files from Duet2and3Firmware-3.5.2.zip
I guess the nested firmware folder was created from RRF config tool.
Any suggestions on how to recover from this would be appreciated
-
@RockB The folder structure should be as shown here: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#sd-card-structure
There should be a 'firmware' folder in the root, which is where firmware files are read from. The "Duet3Firmware_M23CL.bin" file should be in that. Make sure you're using the one from the 3.5.2 zip file. Ideally refresh it with a new copy, as it's usually a corrupt firmware file that gives the 'Bad firmware CRC' message.If you have a second firmware folder in the 'sys' folder, you can safely delete that.
As far as I can tell, your wiring looks correct, with bypass jumpers removed from the Tool Distribution board for the connected tool, and the CAN termination jumper is in place. But I can't see the RJ11 cable between the Duet and the TDB, and I can't see the CAN wiring at the motor end. There's still a possibility that it's a wiring issue.
When you press the reset button on the 23CL, does anything show up in the console of DWC? If it is requesting firmware, I think you should get a message there.
uploading a custom RRF firmware for my machine
You have modified and compiled RRF for yourself? If so, please revert to the released version until we get this issue sorted out.
Ian
-
@droftarts said in Using tool distribution board for multiple Motors 23CL:
@RockB The folder structure should be as shown here: https://docs.duet3d.com/en/User_manual/RepRapFirmware/SD_card#sd-card-structure
There should be a 'firmware' folder in the root, which is where firmware files are read from. The "Duet3Firmware_M23CL.bin" file should be in that. Make sure you're using the one from the 3.5.2 zip file. Ideally refresh it with a new copy, as it's usually a corrupt firmware file that gives the 'Bad firmware CRC' message.I have copied the fresh contents from 3.5.2 zip file to the firmware folder on SD card. (only the .bin files)
If you have a second firmware folder in the 'sys' folder, you can safely delete that.
The second firmware folder was actually within the main 'firmware' folder. I have deleted this second firmware folder.
Tested again after these changes. Same issue with fast blinking red led on motor.
As far as I can tell, your wiring looks correct, with bypass jumpers removed from the Tool Distribution board for the connected tool, and the CAN termination jumper is in place. But I can't see the RJ11 cable between the Duet and the TDB, and I can't see the CAN wiring at the motor end. There's still a possibility that it's a wiring issue.
Here are some more pictures and wiring diagram:
Soldering connection for coneecting 4-pin M8 cable with 4 pin JST-ZH cable:
Manufacturer wiring diagram for M8 cable:
When you press the reset button on the 23CL, does anything show up in the console of DWC? If it is requesting firmware, I think you should get a message there.
Nope. I am not getting any message on DWC after I press the reset button.
uploading a custom RRF firmware for my machine
You have modified and compiled RRF for yourself? If so, please revert to the released version until we get this issue sorted out.
Apologies, I meant I have used RRF config tool to create a custom config for my machine. In the first config I created had multiple 23CLs and Tool1RRs called out in the config.g; however only one 23CL was connected to TDB for testing. I did get some errors like the Heater not found and so on since no Tool1RRs were connected at that time. I am not sure if this triggered the condition or had anything to do with it. One of my replies above contains the config.g file where I have commented out other axes, extruders, fans and tools while only 23CL is mapped to Z axis for testing.
Just to check the CAN connections, does it matter if a config.g file is present?
-
@RockB Thanks, as far as I can tell the motor wiring looks to be correct.
Could you wire up a Roto board, and see if you can get that to connect? It only needs power, and the two CAN wires connected to two of the pins on the TDB. Leave the bypass jumpers in place on the TDB, for the tool output you connect it to. Remove the 23CL CAN wiring, and put the bypass jumpers back in place there, too.
If the colours of the wires in both ends of the RJ11 cable are visible, check they are in the same order.
Ian
-
@RockB said in Using tool distribution board for multiple Motors 23CL:
Just to check the CAN connections, does it matter if a config.g file is present?
It helps in that it starts up the network, but you don't need anything configured in config.g to check a board is on the CAN bus.
Ian
-
@RockB said in Using tool distribution board for multiple Motors 23CL:
It always used to flash red led quickly as seen in my video above. Whenever the motor is powered with reset pressed, it flashes both red and green led once and then reverts back to continuous flashing of red led once the reset is released.
How fast is it flashing? Once a second means it is connected to the main board and running normally. Several times a second with no pauses means it doesn't have communication with the main board. Several times with pauses means it is reporting an error code.
-
@droftarts @dc42
I finally figured out this issue. I swapped out TDB with a new one and things started working. The red LED now blinks every second showing the Motor can communicate with the mainboard. I also tried wiring the roto toolboard to the same TDB as the stub and that also worked well.
I can communicate to both devices using M122 and M115.The TDB was purchased recently from Filastruder. Any thoughts on why this would go bad?
-
@RockB The TDB is a pretty simple, passive, device, so there's not much to go wrong. It's possible there's a soldering fault on it, I suppose. Or maybe the pins in the CAN connector is misaligned. Can you take a picture of both sides of the board and post them?
Ian
-
@droftarts Ian, It indeed does look like a poor soldering job. Following are some pictures. CAN_H and CAN_L pins seems to be soldered together on more than one 'tool' outputs
Note: The black 'X' mark is my way to identify bad board from another.
What's the procedure to get a refund or replacement of these boards?
Purchased from Filastruder (@elmoret) -
@RockB Yikes, that's poor. The assembly company must have had the trainees on the tools that day! Yes, no problem, we'll replace under warranty. Please send an email to warranty@duet3d.com and CC your reseller. Include a link to this forum thread and the details of your original purchase. You'll receive a reply with a form to fill out.
If you don't want the hassle of waiting for a replacement, and you're comfortable waving a soldering iron around, I'm happy if you want to clean up the solder yourself, and we'll continue to honour the warranty. Though it would be good to get that board back and show the assembly company!
Ian