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`?
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
Hi Christoph, Thanks for your reply. I tried to use a ArCan library example program
. 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.
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