Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

How can I read and writie on the canbus without CANopen

kimpet
2019-05-08
2019-10-01
  • kimpet - 2019-05-08

    Hello!

    I am working on a PiXtend V2-L which is connected via CAN bus to a VESC 6+ motorcontroller.
    I sent the message:
    cansend can0 0000033D#3E800000
    And my motor started spinning at 1000RPM

    How the message works:
    00000 - command ID (RPM - 3) - Adress (61 - 3D) # - RPM ( 1000 - 3E8) - 00000

    The candump looks like this:

    The struggle now is to send and read these messages in CODESYS

    Tried to make it work with CANopen, but my motorcontroller is not compatible

    Is there any kind of way to read and write raw messages in codesys???

    Any kind of help that puts me in the right direction would be of huge help

    Pic of my rig

    IMG: Bild

    IMG: Bild

     
  • kimpet - 2019-05-08

    Where I'm at right now

    IMG: Bild

    IMG: Bild

    IMG: Bild

     
  • mos89@yahoo.com - 2019-10-01

    Hi,
    look in codesys store at the "can example"

     

Log in to post a comment.