CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Thu Sep 20, 2018 6:15 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Mar 16, 2018 6:37 pm 
Offline

Joined: Fri Sep 29, 2017 3:48 am
Posts: 3
Im working on a project and I am considering using CANopen, is it possible to use a USB to CAN converter cable from Kvaser with CODESYS?

Here is the output of udevadm monitor --udev

UDEV [1409309.515608] add /devices/pci0000:00/0000:00:1d.7/usb2/2-4 (usb)
UDEV [1409309.520826] add /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0 (usb)
UDEV [1409309.525023] add /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/net/can0 (net)
UDEV [1409309.532863] add /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/net/can0/queues/rx-0 (queues)
UDEV [1409309.539158] add /devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/net/can0/queues/tx-0 (queues)

I could also use EtherNet/IP, would this be a better idea because of the ethernet port being easier or more reliable to access from CODESYS?

Thank You!


Top
   
PostPosted: Mon Mar 19, 2018 12:04 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2837
Hi,
you want to use this USB to CAN for
doing CANopen by the Raspberry PI Runtime?

BR
Edwin


Top
   
PostPosted: Tue Mar 20, 2018 2:52 am 
Offline

Joined: Fri Sep 29, 2017 3:48 am
Posts: 3
Yes. Is it possible?

My reasons are:

I have a lot of experience with the Kvaser hardware, I also have lots of it available.

I'd like to use something that does not come in the "hat" form factor to allow use with the compute module.

I'm looking to use parts that are from a "major" manufacturer to help guarantee long term availability.

Thanks!


Top
   
PostPosted: Tue Mar 20, 2018 11:26 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 2837
Hi,

if you manage to build on the Raspberry PI a Socket CAN kernel module
for the Kvaser Hardware, this might work but not easy.

BR
Edwin


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited