Communication between 2 raspi in EthernetIP: example ?

galexis
2017-04-03
2017-04-12
  • galexis - 2017-04-03

    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.

     
  • chris.beard - 2017-04-03

    galexis hat geschrieben:
    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

     
  • galexis - 2017-04-03

    On the future, more raspi "slave" will be added. I need to use ethernet ip.
    Thanks

     
  • chris.beard - 2017-04-03

    galexis hat geschrieben:
    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

     
  • galexis - 2017-04-03

    In the future, 1 raspi need to control several raspi on ethernet ip. I don't want use network variables.

     
  • chris.beard - 2017-04-03

    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

     
  • ColonelWastl - 2017-04-04

    Is there any solution right now? I wanna do the same thing.

     
  • galexis - 2017-04-04

    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

    IMG: Capture du 2017

    IMG: Capture du 2017

     
  • galexis - 2017-04-04

    one raspi slave(s):
    I have add 8 "ethernetIP module" for each wir I want exchange

    IMG: Capture du 2017

    IMG: Capture du 2017

    IMG: Capture du 2017

     
  • ColonelWastl - 2017-04-05

    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.

     
  • galexis - 2017-04-05

    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.

     
  • galexis - 2017-04-05

    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.

     
  • chris.beard - 2017-04-05

    galexis hat geschrieben:
    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

     
  • eschwellinger

    eschwellinger - 2017-04-06

    Hi,

    EIP Example with two PI's

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

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

    BR
    Edwin

     
  • galexis - 2017-04-08

    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.

     
  • galexis - 2017-04-09

    All raspi must be in same project ?

    In your example, you have just add 1 module for input and 1 module for output: I can add as many as I want ?

    IMG: Capture.PNG

     
  • eschwellinger

    eschwellinger - 2017-04-10

    Hi,
    ''force' to running:
    -Update the deivce in the device tree to current Version

    'do they need to be in one Project?'
    no

    'add more varibales'
    yes, you need to add them on both sides - on adapter and on the EIP dapter which is below the scanner
    BR
    Edwin

     
  • galexis - 2017-04-11

    Update device doesn't work. I have to force manually to RUNNING scanner.

    Actually, exchange data in my project doesn't work ... but there isn't diffrence with your project.

     
  • galexis - 2017-04-12

    I have insert my POU and other device on your project : it's ok.

     

Log in to post a comment.