How can I reach my candump and cansend through CODESYS? Tried making it work with CANopen

kimpet
2019-05-07
2 days ago
  • kimpet - 2019-05-07

    Hello!

    I have connected my RPi which is built into a PiXtend to a VESC 6+ motorcontroller with CAN bus.

    The candump look like this:

    The motorcontroller is sending status updates like rpm, voltage, etc.

    The next step is to read and write to my motorcontroller through CODESYS.

    However, after following the PiXtend V2-L software manual I get the error:
    "Update configuration failed from driver" "CmpIoMgr"

    But when I remove the master and slave I get no errors on the CAN bus

    Is it some kind of way I can reach my candump and cansend through CODESYS?

    I would really appreciate help, as I only have 2 weeks left of my bachelor project and it is critical for my project to use CAN bus

    Thanks in advance

    IMG: Bild

    IMG: Bild

    IMG: Bild

     
  • kimpet - 2019-05-07

    My setup:

    Have succefully made my motor run with the command

    cansend can0 0000033D#3E800000

    Yes. I have limited supplies here, it's a pretty nasty setup - but it works (partly)

    Sorry for big pictures forum guys

    IMG: Bild

     
  • kimpet - 2019-05-08

    Figured out that the motorcontroller is not CANopen compliable..

    Is there any other way of reaching my candump and using it in codesys??

     
  • monavion - 2024-09-14

    Can you sen me you code for the VESC? Thanks.

     

Log in to post a comment.