X20CS1070 CAN Bus communication

Hello,
i have question about CAN Bus project, which we are creating. Is somewhere example project for easy CAN Bus communication with module x20CS1070? I want to communicate with robot joints. I have data bytes which i need send to joint with easy CAN high and CAN low cables. First test we made with USB CAN Convertor and we succsessfly control cobot joint. I only need to make same communication with x20cs1070 module. If you have any experiences with this module or programming CAN Bus in Automation studio, it will be very helpful. Thanks.

Hello,

easiest way would be to use the ArCAN library where we also provide an example for:
Please see:
B&R Online Help (br-automation.com)

In your case the example 2 might be useful

In order to use the library with a CS1070 you need to set the module to “cyclic stream mode” via Automation Studio

Bascially you then simply “send” and “receive” CAN frames with the ArCAN library

best regards !

3 Likes

Hello Vojtech,

If the robot uses the CanOpen protocol, you can use this library.

[Searching] CANopen wrapper library for CAN interface - Ask Questions - B&R Community (br-automation.com)

1 Like

Hello,
i tried some examples but i have problem with HW. When i try to send a frame, x20CS1070 start to blink red with LED e and Rx LED stay yellow. I attached some pictures. Do you know where is a problem? Everything is correctly connected. I need same setting as picture from PCAN View (USB - CAN Convertor).



CANBUS_2

I’d be grateful for any advice

Hello, you get a “CAN passive” - this means that the internal error counter of the CAN chip reached 127
It seems as you have a physical problem on your can bus. Please check the wiring and also the terminating resistors (both ends need to be terminated using 120 Ohm resistors)

1 Like

Thank you very much with resistor it works.

2 Likes

I am glad to hear that ! Thanks for the feedback :slight_smile:

2 Likes