![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#46 |
Lifetime Supporting Member
|
I found a codesys Library Specifically do to this.
https://github.com/NothinRandom/CoDeSys_EIP I haven't tried it yet. the author says that he handles the EIP stack himself and uses Codesys TCP FBs for send and receive data.
__________________
SkyCad is by far the Best ECAD Schematic Software I have used. Fact my "Fun Facts" are never fun ![]() |
![]() |
![]() |
#47 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
Quote:
|
|
![]() |
![]() |
#48 |
Member
![]() ![]() Join Date: Jan 2012
Location: melbourne
Posts: 175
|
Hi Alfredo,
In omron when you do a 4c command the request path length in words is the first byte of the request path. This is for CIP explicit message and so the request path from 0x91 needs to be an even number of bytes, or get padded with 00. If you are using the generic_service function block with service code 16#4c this maybe needed. Image attached. 1.png |
![]() |
![]() |
#49 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
Quote:
By the way, I used the ODVA Molex tool and confirmed exactly what you explain. Please see screenshot below: |
|
![]() |
![]() |
#50 |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
AustralIan: Thanks so much for your follow-up and advice. Tried what you say but Logix is unhappy about the connection size, as you can see in screenshot below. By the way, if only "produced" tags can be used with connected, even if we get this working Codesys can get data from Logix, but could not send data to Logix. Is that your understanding too?
Last edited by AlfredoQuintero; November 18th, 2020 at 02:05 AM. Reason: Minor typo |
![]() |
![]() |
#51 | |
Member
![]() ![]() Join Date: Jan 2013
Location: Germany
Posts: 1,196
|
Quote:
You could guess connection sizes, or wireshark a Rockwell to Rockwell produce consume connection. |
|
![]() |
![]() |
#52 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
Quote:
Last edited by AlfredoQuintero; November 18th, 2020 at 02:33 AM. Reason: Minor typo |
|
![]() |
![]() |
#53 |
Member
![]() ![]() Join Date: Jan 2013
Location: Germany
Posts: 1,196
|
See this post for getting around it with the message router.
http://www.plctalk.net/qanda/showpos...3&postcount=10 Yeah, that library looks like it will do it for you. Let us know if anyone gets a result |
![]() |
![]() |
#54 |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
![]()
Guys, I cracked it!!!!
I worked out communication parameters that allow the class 1 connection to go into "running". I am exhausted. I need a beer. |
![]() |
![]() |
#55 |
Member
![]() ![]() Join Date: Jan 2013
Location: Germany
Posts: 1,196
|
Alfredo, that's fantastic news! Those green arrows are always a treat.
![]() I am curious to know what datatype dummy is in the Logix Processor. |
![]() |
![]() |
#56 |
Member
![]() ![]() Join Date: Jan 2012
Location: melbourne
Posts: 175
|
|
![]() |
![]() |
#57 |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
I am for-life indebted to the developer who wrote this program and to the manager who decided to donate it to the ODVA. I have used many, many times. And it is free of charge.
|
![]() |
![]() |
#58 | |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
Quote:
![]() Sorry about that. I should have added this crucial info. Please see below. Next I want to try PCCC messaging, now that I have the adapter running. If I succeed I will post both the Logix and the Codesys program. |
|
![]() |
![]() |
#59 |
Lifetime Supporting Member
|
Passing the data through an OPC-UA server might be a good option depending on your needs. What is the application?
|
![]() |
![]() |
#60 |
Lifetime Supporting Member
![]() ![]() Join Date: Feb 2015
Location: Yokohama
Posts: 439
|
Hello einnh:
This thread was initiated by theColonel26 and as per the post's title the requirement is Read Tag from Rockwell PLC from Codesys? I have interest in Codesys, Logix and EtherNet/IP so I got involved to try to help and I even suggested what you mention in your post above, which woull require an eternal device which can exchange data from the Codesys OPCUA server and the Logix tags. I do not even know whether theColonel26 is following the thread, so I do not know if he has succeeded by means of other venues. But I am curious and did manage to establish a connection between Codesys and Logix. I am doing this in my spare time. Now that we figured out how to establish a connection, the next step is how to access the tags in Logix from Codesys. The explicit message function in Codesys only support logic segments so it is not possible to use symbolic path with the 3S libraries. It seems there is an open source library that allows this mentioned in an earlier post of this thread. I want to try to use PCCC, which is represented as a CIP class, so it should possible to use the 3S libraries. If I succeed I will post my programs and an explanation. But for the record, by far the easiest way to connect Logix and Codesys is by means of the Codesys ErtherNet/IP adapter library which requires a license in addition to the soft PLC license and which does not work in evaluation mode. I bought one license and got this working very easily. |
![]() |
![]() |
Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cheap PLC that can read Data from its SD card or USB Flash Drive? | theColonel26 | LIVE PLC Questions And Answers | 10 | May 25th, 2019 11:38 AM |
FactoryTalk 8.0: how to display choosen tag value from PLC | Suseh | LIVE PLC Questions And Answers | 4 | June 18th, 2015 02:59 PM |
Any idea how to access the Omron simulator? | strantor | LIVE PLC Questions And Answers | 9 | March 13th, 2015 07:01 PM |
RSLogix 5000 Multiple Aliases to Same Tag | davidc100 | LIVE PLC Questions And Answers | 10 | May 27th, 2014 09:04 PM |
Read and write data from pc to plc via rs232 cable | MANISH VORA | LIVE PLC Questions And Answers | 4 | August 23rd, 2011 02:47 PM |