Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    CAN-FD Expansion and timings

    Scheduled Pinned Locked Moved
    Hardware dev
    1
    2
    274
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • garlicbreadundefined
      garlicbread
      last edited by

      Hi,
      I'm currently looking at moving over to the Duet 3 for my CNC
      One of the things that's caught my eye is the use of CAN-FD
      This seems like a much cheaper / easier method for motion control instead of Ethercat for example, which has licencing implications.

      Based on what I can see of the protocol - https://github.com/Duet3D/CANlib/blob/master/doc/Duet 3 CAN protocol.odt
      I think at present it doesn't take cable propagation time into account
      in that I don't think it measures the time taken to send a message to a client board / back again (like ethercat does)
      I think instead it just sends a clock sync signal down the line to resync the attached board every now and again.
      I'd guess this wouldn't make that much of a difference with short cable runs anyway, but I was just curious to know if this is true.

      I've noticed with the Duet3 you can use an Rpi 3 / 4 etc for the wifi frontend.
      One of the things I'm considering at the moment is making my own CAN boards to attach to the Duet, such as one that allows connectivity to a VFD's RS485 port
      for sending spindle speed or setting / reading VFD paramters.
      Or other heads / boards such as the output from a Blu-Ray Recorder laser etc

      Is it or will it be possible to create custom G-Code messages (or sub messages) to send custom CAN protocol message via the use of the Rpi at some point?
      There was some mention about user defined messages here I think https://forum.duet3d.com/topic/18855/can-development-possibilities/5?_=1615664485490

      Is it also possible to override default G-Codes at the Rpi level for things like setting spindle speed etc? (for example runs a python script which signals the duet to send a CAN-FD message)

      Many Thanks

      1 Reply Last reply Reply Quote 0
      • garlicbreadundefined
        garlicbread
        last edited by

        One thing to add
        I've been hunting around for a small cheap CAN-FD breakout board that can be used with an existing microcontroller (since most of my existing controller boards don't have CAN-FD built in, since it's a bit new)

        I discovered this which might be of interest to others for playing around with
        https://e-radionica.com/en/can-breakout-eng.html
        SPI to CAN-FD I think using the MCP2518FD and a transceiver.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA