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 Thu Sep 19, 2019 2:09 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 28 posts ]  Go to page Previous 1 2
Author Message
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Feb 01, 2016 7:41 pm 
Offline

Joined: Sun Jan 31, 2016 2:52 am
Posts: 7
Hi Edwin,

Thank you for the reply. The image I attached was when the device online, and it was showing green to me.

Still I can't read the [Outputs] tag of the Pi to the controllogix...
I am using 1756-EN2T module as an Ethernet/IP communication for ControlLogix.

After I installed the EDS file, it did not show up properly in the Controllogix' Ethernet/Ip list as well.


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Feb 01, 2016 7:59 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3450
Hi,
sorry I mean does it stay "green" after connection established...
Need the info from screenshot.
BR
Edwin


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


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Feb 01, 2016 8:04 pm 
Offline

Joined: Sun Jan 31, 2016 2:52 am
Posts: 7
Looks like I do not get that error when the Pi is online.


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


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Feb 01, 2016 8:08 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3450
Hi,
hm..everthing Looks good from CODESYS side... next would be is to have a wireshark trace,
this you could do on Raspberry Pi by for example tcpdump.
Do you think this is possible?
BR
Edwin


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Feb 01, 2016 9:14 pm 
Offline

Joined: Sun Jan 31, 2016 2:52 am
Posts: 7
For this EDS, which device should I install it? the Pi or the Controllogix?
I installed in the Controllogix side but seems that the eds file is not proper, since the Pi is not recognized in the Contrologix EIP list.

Please let me know! Thank you very much for your help.

Edwin Schwellinger wrote:
Hi,
I would recommend to use the attached EDS file.
This is the EDS which is installed in the CODESYS device repository

BR
Edwin


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Feb 01, 2016 9:46 pm 
Offline

Joined: Sun Jan 31, 2016 2:52 am
Posts: 7
I figured it out. Thank you so much Edwin! :D


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Thu Mar 10, 2016 11:42 am 
Offline

Joined: Fri Nov 30, 2012 9:03 am
Posts: 14
phongpham, can you please share your solution. Thanks


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Wed Nov 30, 2016 4:45 pm 
Offline

Joined: Wed Nov 09, 2016 11:42 am
Posts: 3
Hello :wink:

I'm trying also to use the Raspberry as a Ethernet/IP slave with the Ethernet_IP_Adapter,

I have followed the instructions on this topic and I have installed Edwin eds file, but my adapter has always a yellow triangle.

Any more suggestions.

Thamk you so much !


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


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Dec 05, 2016 5:49 pm 
Offline

Joined: Mon Nov 21, 2016 10:23 am
Posts: 6
tonteria24 wrote:
Hello :wink:

I'm trying also to use the Raspberry as a Ethernet/IP slave with the Ethernet_IP_Adapter,

I have followed the instructions on this topic and I have installed Edwin eds file, but my adapter has always a yellow triangle.

Any more suggestions.

Thamk you so much !


Hello, do you set up correctly the network eth0/wlan0 ?
I guess that your problem is due to that!


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Mon Dec 05, 2016 10:40 pm 
Offline

Joined: Wed Nov 09, 2016 11:42 am
Posts: 3
Binarii wrote:

Hello, do you set up correctly the network eth0/wlan0 ?
I guess that your problem is due to that!


Thank you, the network interface was correctly set to wlan0.

I have found a solution, if I add an "Ethernet/IP Scanner" device under the "Ethernet/IP Adapter" at the same level then both work correctly with green circle.


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Thu Apr 04, 2019 3:45 pm 
Offline

Joined: Mon Apr 28, 2014 7:05 pm
Posts: 97
I just tested the communication between a CompactLogix and a Raspberry Pi using EtherNet/IP adapter and it works fine! As long as you use the mapped tags in the Codesys program. If the communication tags are mapped to some program tags but are not used in the program, they won't update.

I have a question regarding the "Export EDS File..." button. I used it to create an EDS file which I used in the CompactLogix and it works. But I wonder why it will always create BYTES. Even if I configured my communication to be 2 DWord Input Module and 2 DWord Output Module, it will create 8 SINT inputs and 8 SINT outputs in the CompactLogix. Is there a way to change the EDS file so that it creates 2 DINT inputs and 2 DINT outputs?

Also, when using "Big Input Module" and "Big Output Module", is it possible to change the size? For exemple if I want to use 80 Bytes IN and 80 Bytes Out it would be faster to create a Big Input and Big Output Module and then change the size instead of creating 80 Byte Input and 80 Byte Output Modules.

Thank you.


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Fri Apr 05, 2019 8:29 am 
Offline

Joined: Fri Mar 29, 2019 7:42 am
Posts: 2
Hello,

may I know which version of CODESYS you are using? We had some problems with data creation in earlier versions, but it was years ago.

I have some questions about your status. Have the parameters been created correctly in the EDS file? Can you upload a screenshot with the behavior?
If the data is correct in the EDS file, then the problem is probably on the scanner side.

To the modules: At the moment it is not possible to change the size dynamically. We already have plans to improve the module so that it is easier to handle. Until then there is the possibility to work with Copy and Paste to generate Modules quicker.

best regards


Top
   
 Post subject: Re: Ethernet/Ip Slave
PostPosted: Wed Jun 12, 2019 3:25 pm 
Offline

Joined: Tue May 28, 2019 12:02 pm
Posts: 1
Hello all.

I try to read tags in my compactlogix witch CoDeSys on Raspberry PI. I search in all sides but don't know how to do that. I want to read TAGs in PLC without modify his program.

First, CoDeSys dont want to eat the CompactLogix EDS file. So I try to modify it with EZ_EDS. After that, CoDeSys accept the file.

Then, I found an Excel Macro which can read tags in EthernetIP. With WIRESHARK I saw what going on when i launch the macro.

I also tried a Python script which can read / write / list all tags of my PLC.


The Excel Macro read in Server mode, but CoDeSys read in Client mode ... When I change the EDS file, I force it in Server mode, but the request is in Class 1 instead of class 3.

I'm loosing my mind.

The PATH in wireshark of the excel file is: 01 00 20 02 24 01. So i Write the same in CoDeSys, and i saw it in the wireshark of RPI Request.
But the problem is that in the WireShark of Excel, I saw the request in ANSI Symbol ... not in the RPI Request. because the Foward Open Request is in error.

Yannick, Can you send me your project to understant what's happened ?

Thank you so much.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 28 posts ]  Go to page Previous 1 2

All times are UTC+01:00


Who is online

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