Ethernet/Ip Slave

Runtime
2014-08-06
2020-04-08
1 2 > >> (Page 1 of 2)
  • yannickasselin1

    yannickasselin1 - 2014-08-06

    Are there any way to turn my Raspberry Pi into an Ethernet/Ip adapter (Slave) in order to Read/Write Codesys arrays from an Allen Bradley ControlLogix PLC?
    I'm trying to find an easy way to make my Raspberry Pi communicate with a ControlLogix PLC through Ethernet. Any suggestions?

    Thank you.

     
  • eschwellinger

    eschwellinger - 2014-08-07

    Hi,

    this is an open point on the roadmap I see the following improvement in our database:
    CDS-31944 EtherNet/IP: Implement EtherNet/IP Adapter
    Is it possible to realize it vice versa Raspberry Pi = EtherNet/IP Scanner , Rockwell = EtherNet/IP Adpater?
    found this tutorial which demonstrates how to setup Ethernet/IP scanner(sure with another adapter): https://www.youtube.com/watch?v=QrV7laAJkDk

    BR
    Edwin

     
  • yannickasselin1

    yannickasselin1 - 2014-11-06

    Thanks for your reply but I don't think it is possible to use a ControlLogix as an Ethernet/IP adapter.
    Would it be possible to use Produced/Consumed tags over Ethernet/IP between CODESYS and a ControlLogix?

     
  • Bastler83

    Bastler83 - 2015-01-23

    No, it's not possible. I think this feature ist availabel in version 3.5Sp7.
    The EtherNet/IP adapter in the actual version have not a functionality.
    This is the answer from the official codesys support:

    wir haben bisher nur den Scanner als eigenen Stack,
    der Adapter wird vermutlich zu 3.5Sp7 folgen,
    das heitß Sie können das aktuelle noch nicht mit dem PI Machen
    Der grund warum man den in CODESYS dazumachen kann ist weil er als BASIS für eine Hilscher Cifx Karte mal konfiguriert wurde..
    Bin mir aber nicht sicher ob das aktuell noch geht.
    Ich hoffe das wird aus dem CODESYS Setup entfernt werden und erst wieder reingemacht wenn unser eigener Slave Stack
    Fertig ist.

     
  • yannickasselin1

    yannickasselin1 - 2015-01-24

    Thanks a lot for your reply.

    I'll be watching for 3.5 SP7.

    Thank you.

     
  • Bastler83

    Bastler83 - 2015-08-28

    With the new Version V3.5 SP7 Patch 1 it works.
    The EtherNet_IP_Adapter must be version 3.5.7.10.

    Instructions in the appendix!

    RSLogix5000 to CoDeSys V3.pdf [370.41 KiB]

     
  • advctrl

    advctrl - 2015-09-07

    Hello,

    I am very new to CodeSys so if this is an obvious answer please bear with me.

    I was able to create a very simple project and add the EthernetIP modules for inputs & outputs.

    I Configured an AB L32E Compactlogix processor for generic ethernet io and that appears to be functional as well. The IO tree indicates no problems. If I unplug the ethernet cable from the RPi the IO tree indicates an issue. If I manually edit the input value it gets reset to zero. So I am pretty sure the L32E is talking to the RPi OK.

    My goal was to have a single line ladder program that moved the Ethernet Input word to the Ethernet Output word. Thus if I change the output word in the L32E it should show up in the input word in the L32E. However I have been unable to accomplish this. I can not even get the Ethernet Input word to show any indication that it is receiving data from the L32E.

    Any help would be greatly appreciated.

     
  • advctrl

    advctrl - 2015-09-07

    Progress!!! But new questions.

    I believe I ran into my 2 hr limit and after that the Ethernet devices had a red triangle next to them. I could not figure out how to start the bus again so I deleted the ethernet/ip devices and re-entered them. My simple program with a single rung (mov) instruction now works. Not sure what the heck was wrong to begin with.

    First new question, how do I get the red triangles to disappear without deleting & re-entering the Ethernet/IP devices?

    2nd Question, is there any way to have more than one input and one output word for the Ethernet/IO slave?

     
  • yannickasselin1

    yannickasselin1 - 2015-09-22

    I also want to know how to add more IOs in the EthernetIp Module.

    It must be possible to exchange an array of bytes for exemple?

    Thank you.

     
  • eschwellinger

    eschwellinger - 2015-09-22

    Hi,

    that way.. and let me check if array's and more is possible.

    BR
    Edwin

    IMG: EthernetIPApdapter.jpg

     
  • ikonecto

    ikonecto - 2015-12-06

    Hi everyone,

    Sure it's possible to use Raspi as an node with CompactLogix AB, but not sure if it's possible to read and write data, actualy, with my setup, i can read data from Raspi with my compactlogix, but in the other direction (Write Data from CompactLogix to Raspi), look's bad for the moment!

    At the Codesys Side (Raspi), i create 1 ENIP module (For Input transaction) and 1 ENIP module (For Output transaction) only Output working!

    From Compactlogix, to read data from raspi node, i use Service Code 0X0EH an it run and to tried to write data to Raspi, i used Service Code 0X10H but i receive this message (Unsupported service requested)!!!!

    If somebody did, could you help me?

    Regards

    Eric Dostie
    iko innovations

     
  • phongpham

    phongpham - 2016-02-01

    Bastler83 hat geschrieben:
    With the new Version V3.5 SP7 Patch 1 it works.
    The EtherNet_IP_Adapter must be version 3.5.7.10.

    Instructions in the appendix!

    This looks very exciting. I can get the Pi online with no errors, but seems not able to read it from the Controllogix. Which CIP message should I use?

    I appreciate the help so much!

     
  • eschwellinger

    eschwellinger - 2016-02-01

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

    BR
    Edwin

    CODESYS_EtherNetIP_Adapter.zip [1.7 KiB]

     
    • joelsimon15

      joelsimon15 - 2020-04-08

      Hi I was trying to use raspberry Pi as an ethernet ip adapter to my micro 800 PLC. While I was setting up the MSG_CIPGEN FUCTION . I had to enter a port number along with my IP address for example. '1217,192.168.1.18'. I found a port number value at my device communication settings this was 1217. This doesnt seems to work I got an error to check the port number.
      I was actually using a micro 800 simulator. I should be able to simulate ethernet IP communication using this method. For some reason this doesn't seems to work.

      I also had to ENTER a CIP SERVICE CODE and a CIP MEMBER ID which I couldnt find from any of the documents.

      Do you have any experience setting up an explicit ethernet Ip messaging between Codesys running on Rpi and micro800?

      Thanks
      Joel

       
  • phongpham

    phongpham - 2016-02-01

    Thank you for the reply Edwin!
    I tried to install the EDS file with RSLinx on the controllogix, however I still cannot get the Controllogix talk to the Pi...
    I attached some screenshots which indicates the communication loss.
    Any helps are highly appreciated!

    IMG: Untitled2.png

    IMG: Untitled1.png

    IMG: Untitled.png

     
  • eschwellinger

    eschwellinger - 2016-02-01

    Hi,
    if you are online is the EIP Adapter 'green'?
    You could add the device name of the adapter (name in the device tree) to the watchlist to have more diagnosis Information.

    BR
    Edwin

     
  • phongpham

    phongpham - 2016-02-01

    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.

     
  • eschwellinger

    eschwellinger - 2016-02-01

    Hi,
    sorry I mean does it stay "green" after connection established...
    Need the info from screenshot.
    BR
    Edwin

    IMG: EIP_Adapter.png

     
  • phongpham

    phongpham - 2016-02-01

    Looks like I do not get that error when the Pi is online.

    IMG: Untitled3png.png

     
  • eschwellinger

    eschwellinger - 2016-02-01

    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

     
  • phongpham

    phongpham - 2016-02-01

    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 hat geschrieben:
    Hi,
    I would recommend to use the attached EDS file.
    This is the EDS which is installed in the CODESYS device repository
    BR
    Edwin

     
  • phongpham

    phongpham - 2016-02-01

    I figured it out. Thank you so much Edwin!

     
    • joelsimon15

      joelsimon15 - 2020-04-08

      Hi I was trying to use raspberry Pi as an ethernet ip adapter to my micro 800 PLC. While I was setting up the MSG_CIPGEN FUCTION . I had to enter a port number along with my IP address for example. '1217,192.168.1.18'. I found a port number value at my device communication settings this was 1217. This doesnt seems to work I got an error to check the port number.
      I was actually using a micro 800 simulator. I should be able to simulate ethernet IP communication using this method. For some reason this doesn't seems to work.

      I also had to ENTER a CIP SERVICE CODE and a CIP MEMBER ID which I couldnt find from any of the documents.

      Do you have any experience setting up an explicit ethernet Ip messaging between Codesys running on Rpi and micro800?

      Thanks
      Joel

       
  • kelad

    kelad - 2016-03-10

    phongpham, can you please share your solution. Thanks

     
  • tonteria24

    tonteria24 - 2016-11-30

    Hello

    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 !

    IMG: shot.png

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.