CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon May 29, 2017 1:12 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 19 posts ]  Go to page 1 2 Next
Author Message
PostPosted: Mon Apr 03, 2017 7:42 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
Hi,
have example to exchange data between 2 raspi ? I have problem to do that.

First one is "master":
- ethernetIP scanner/adapter
and other(s) is/are "slave":
- ethernetIP adapter/module ?

First one must generate eds files to configure other slave ?

Thanks for your helps.


Top
   
PostPosted: Mon Apr 03, 2017 7:54 pm 
Offline

Joined: Thu Apr 23, 2015 4:51 pm
Posts: 26
galexis wrote:
Hi,
have example to exchange data between 2 raspi ? I have problem to do that.

First one is "master":
- ethernetIP scanner/adapter
and other(s) is/are "slave":
- ethernetIP adapter/module ?

First one must generate eds files to configure other slave ?

Thanks for your helps.

Hi, you may be better off using network variables. Is this possible for this application?

Sent from my SM-N9005 using Tapatalk


Top
   
PostPosted: Mon Apr 03, 2017 8:21 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
On the future, more raspi "slave" will be added. I need to use ethernet ip.
Thanks


Top
   
PostPosted: Mon Apr 03, 2017 8:24 pm 
Offline

Joined: Thu Apr 23, 2015 4:51 pm
Posts: 26
galexis wrote:
On the future, more raspi "slave" will be added. I need to use ethernet ip.
Thanks

I'm sorry, I do not understand what you mean?

Sent from my SM-N9005 using Tapatalk


Top
   
PostPosted: Mon Apr 03, 2017 8:44 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
In the future, 1 raspi need to control several raspi on ethernet ip. I don't want use network variables.


Top
   
PostPosted: Mon Apr 03, 2017 8:50 pm 
Offline

Joined: Thu Apr 23, 2015 4:51 pm
Posts: 26
OK, I know this isn't going to help, I've never done this but I have seen it done and an example in this forum before.

Sent from my SM-N9005 using Tapatalk


Top
   
PostPosted: Tue Apr 04, 2017 1:47 pm 
Offline

Joined: Sun Mar 01, 2015 1:58 pm
Posts: 40
Is there any solution right now? I wanna do the same thing.


Top
   
PostPosted: Tue Apr 04, 2017 6:18 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
I can't post my project here because is too big.

I want send 4 words and receive 4 words
One the first raspi, which is the mast:
I have add ethernetIP adapter (from eds ....) and set like this


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


Top
   
PostPosted: Tue Apr 04, 2017 6:21 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
one raspi slave(s):
I have add 8 "ethernetIP module" for each wir I want exchange


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


Top
   
PostPosted: Wed Apr 05, 2017 7:04 am 
Offline

Joined: Sun Mar 01, 2015 1:58 pm
Posts: 40
Use network variables!

U just need to add a globals send list and a receive list.
The send lists must be exportet, once from raspi 1 and once from raspi 2.

After that you can import these lists as receive list on the different raspi's.

Search at the codesys help for: configuration of network variables.
There is a good step by step manual.

U don't need an adapter like ethernet then. The transfer is upd.


Top
   
PostPosted: Wed Apr 05, 2017 12:17 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
I understand your suggestion and I will test it, but I want to know how use EiP. In the future, raspi will communicate with industrial sensor in EiP.


Top
   
PostPosted: Wed Apr 05, 2017 7:54 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
The problem with network variables, is load of network: everyone device of network receive questions. On professionnal networ it's not good idea, I think.


Top
   
PostPosted: Wed Apr 05, 2017 8:24 pm 
Offline

Joined: Thu Apr 23, 2015 4:51 pm
Posts: 26
galexis wrote:
The problem with network variables, is load of network: everyone device of network receive questions. On professionnal networ it's not good idea, I think.

The network variables are only on a local network shared by the raspberry pis and not the general public network. These should be kept seperate really.

Sent from my SM-N9005 using Tapatalk


Top
   
PostPosted: Thu Apr 06, 2017 7:53 am 
Offline
Site Admin

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

EIP Example with two PI's

viewtopic.php?f=23&t=6247&p=17450#p17703

With 3.5SP11 (July) there will be a 'device scan' available for EIP which will improve the commissioning a lot!

BR
Edwin


Top
   
PostPosted: Sat Apr 08, 2017 10:17 pm 
Offline

Joined: Fri Jun 26, 2015 6:23 pm
Posts: 37
Thank you very much for your example.

When I try it on 2 raspi : it work.

On my project: it doesn't work. I have to force to "RUNNING" estate of adapter and scanner, but no exchange.
How do you "link" data on adapter/assemblies and each output or input in ethernet ip/module ? It's automatic or just add device ethernet ip module ?

Thanks for your help.


Last edited by galexis on Sun Apr 09, 2017 12:33 pm, edited 3 times in total.

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

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