CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sat Feb 16, 2019 10:18 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Beckhoff EL6751
PostPosted: Sun Jan 20, 2019 8:54 am 
Offline

Joined: Sat May 23, 2015 1:28 pm
Posts: 18
Hello,

I'm pulling my last remaining hairs over the CANOpen setup I inherited from a colleague ...

Searchin' the WWW I found this forum post https://forum.codesys.com/viewtopic.php?t=8932 however the "solved the problem message" is kind a blurry. Maybe because my knowledge of the German Language is mainly inspired by Jean Marie Pfaff "Ich habbe in Belgiën shon fiele penalties gestopft". :lol:

I have the same problem, cant get the configuration to work. All Can devices have the red triangle next to them CAN-ERR and RUN led's blink rapidly. (See screenshot)
Attachment:
screenshot.png


Any input on the matter will be greatly appreciated.

Koen.

[edit] Forgot to mention ... when I scan the EtherCat master for devices I get this result ...
Attachment:
DeviceScan.png

The EL6751 does not appear in the device list. Scanning the CAN master returns no devices.


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Sun Jan 20, 2019 10:51 am 
Offline
Site Admin

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

I would recommend to check the plc logger… and set CANOPEN_DEBUG as Compiler define
to get more information.

BR
Edwin


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Sun Jan 20, 2019 11:50 am 
Offline

Joined: Sat May 23, 2015 1:28 pm
Posts: 18
Hi Edwin,

Where do I define CANOPEN_DEBUG?

Koen.


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Sun Jan 20, 2019 5:52 pm 
Offline
Site Admin

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

Application Properties (rightclick on application in the device tree)
here:

BR
Edwin


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Sun Jan 20, 2019 5:58 pm 
Offline

Joined: Sat May 23, 2015 1:28 pm
Posts: 18
Hi Edwin,

Thanks I found it. I have lots of CANOPEN related defines in there.

Code:
CANOPEN_NO_MODULARDEVICES, CANOPEN_NO_NODEGUARDING, CANOPEN_NO_SYNCPDOS, CANOPEN_NO_SYNC, CANOPEN_NO_TIMEPRODUCING, CANOPEN_DEBUG


The log returns:
Attachment:
screenshot.png


Hope you can make something of it.

Koen.


You do not have the required permissions to view the files attached to this post.


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Sun Jan 20, 2019 6:03 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3143
Hi,
hm.. CANbus resitors or wiring ..?
BR
Edwin


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Mon Jan 21, 2019 7:29 pm 
Offline

Joined: Sat May 23, 2015 1:28 pm
Posts: 18
Hi Edwin,

I have the CANOpen bus up and running now, the problem was a firmware version in the EDS files for the BK5120. I have the BA version and loaded EDS files for more recent version.

Moving the problem up I found xml description files for the KL modules but they do not get loaded in because "The import filters couldn't be found". Can you please point me in the right direction? I have KL1104 and KL2134 I/O.

KR

Koen.


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Tue Jan 22, 2019 2:52 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3143
Hi,
I think there are no EDS files available for this... (maybe I'm wrong)
please ask the Beckhoff Support.
Another Option which I would prefer is to use BK1120 or 1150 - there you could get an MDP Version which would make it possibe to use
KBUS

BR
Edwin


Top
   
 Post subject: Re: Beckhoff EL6751
PostPosted: Wed Jan 23, 2019 2:04 pm 
Offline

Joined: Sat May 23, 2015 1:28 pm
Posts: 18
Hi all,

I find this kind of strange ... BK5120 is a CANOpen K-Bus Buskoppler. But I can't seem to find a way to read and or write to the KL1104 and KL2134 K-Bus Busterminals.

Even more strange is that Beckhoff tech support (in Belgium) says to find help elsewhere :?

Mmm, anyway using Edwin's advice I downloaded the MDP for the EtherCat K-Bus kopplers BK1120 ... what do you know the XML files for the I/O modules are included in this package :?

I can load the modules in the devices tab under the BK1120;
Attachment:
Devices.png

But can't seem to place the modules under the BK5120 ...

Is there maybe a workarround by writing to specific registers? How do I determine the addresses to read / write to access the I/O modules?


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Thu Jan 24, 2019 11:30 am 
Offline

Joined: Sat May 23, 2015 1:28 pm
Posts: 18
Hi all,

Just for future reference and it might help others ...

When the correct eds file for the BK5120 is loaded in the device repository and in the devices tree one must add the mappings under the PDO tab for the BK5120 Buskoppler. The whole process is kind off self explanatory. At least once you find the nerve to click on the add mapping button. :oops:

Attachment:
screenshot.png


Kind regards,

Koen


You do not have the required permissions to view the files attached to this post.


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 3 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