You are here

CanOpen

5 posts / 0 new
Last post
maxmertins
Offline
Last seen: 1 month 4 weeks ago
VESC Free
Joined: 2023-01-30 17:06
Posts: 5
CanOpen

Hi,

I'm searching for a documentation to control a BLDC via Vesc 6 mk5 and the canbus interface.

What SDO or PDO has to be sent to run the motor with a specific speed?

thanks

max

 

jaykup
Offline
Last seen: 3 months 1 week ago
VESC Original
Joined: 2017-05-24 12:16
Posts: 3

There is some can bus documentation here:

https://github.com/vedderb/bldc/blob/master/documentation/comm_can.md

As well as sending and receiving can commands using vesc's lisp scripting

https://github.com/vedderb/bldc/blob/master/lispBM/README.md#can-commands

maxmertins
Offline
Last seen: 1 month 4 weeks ago
VESC Free
Joined: 2023-01-30 17:06
Posts: 5

thanks jaykup,

I managed to read the status (erpm etc) but setting duty or current is not working.

VESC ID is 23 -> 0x17 and for duty command id 0x0 the CanId should be 0x17. A duty of 20% should be 0x4e20.

I also can't see any can frame in the vesc tool or do I have to enable something?

Sending Can from Vesc tool is working

Any help is appreciated

Max

                       CanMsg m = {0x0017, 4, {0x0,0x0,0x4e,0x20}};                                                     
                        can.send(m);              

maxmertins
Offline
Last seen: 1 month 4 weeks ago
VESC Free
Joined: 2023-01-30 17:06
Posts: 5

sorry, I just changed to sending as extended id and it worked like a charm.

 

maxmertins
Offline
Last seen: 1 month 4 weeks ago
VESC Free
Joined: 2023-01-30 17:06
Posts: 5

is there also a documentation for using the vesc 6 mk   with SPI ?

thanks