Does X20CS2770 support CANopen?

I tried to run an example library ( AsCanOpen2_ST) with X20CS2770. I put several counters at different steps to see whether the codes are executed. The counter gets increased but the CanOpen functions are being not called or executed. I was wondering whether X20CS2770 works with CANOpen? Any one faced any similar situation`?

Thanks

the built-in CANopen Master does only support ‘IF’ interface cards, not ‘CS’ cards.
But you can implement your own Master or Slave by library ArCan or CAN_lib

see

[Searching] CANopen wrapper library for CAN interface - Ask Questions - B&R Community

X20CS2770 is supported by ArCan or CAN_lib if you select Function model ‘cyclic stream’

1 Like

Hi Christoph, Thanks for your reply. I tried to use a ArCan library example program
image
. I was able to see output values on CS2770 I/O mapping but only with Function Model = flat. With cyclic stream i was not able to see anything. Also, the example code was not at all executed. I only changed the interface name in the code to my corresponding interface.

Thanks drakku

Hi Drakku,

the ‘flat’ modes are almost some kind of ‘bit banging’.
In this case, you control the CAN data via the variables connected to the IO mapping.

the ‘stream’ modes are different. You control the can data via ArCan function blocks. For this you have to set the right ‘device name’ which comes from hardware tree

image

and you need to use the correct baudrate

The can data received will then come from here:

2 Likes

6 posts were split to a new topic: Help with CANopen Communication using X20IF1043-1