LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Any Ethernet/IP examples or tutorials?

Hi!

 

So, for the first time, i have to work with the ethernet/ip protocol.

 

I would like to know if there is any examples or tutorials about the protocol and how to program the communication read/write.

 

I've check on the internet and read the documentation and i know a bit how to do it with the address and everything but nothing more.

 

One thing i don't know what it is, is the "number of elements" input. Is it only the number of element in my array for example? So, if my array contain 4 values and i put 3 elements in the inputs of the "Tag Read", i will only read the first 3 values?

 

Another thing is that i dont have access to a PLC for now. Is there a way to simulate one? So i can know my path is good, know if i send/receive the data i want and test more things before having the PLC with me?

 

Thank you!

    - Dave

0 Kudos
Message 1 of 8
(5,749 Views)

Look under Help --> Find Examples and then search for TCP/IP.  There are a few (hopefully) helpful examples.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 8
(5,724 Views)

@ddufour wrote:

So, for the first time, i have to work with the ethernet/ip protocol.


LabVIEW gives you UDP and TCP, no access to lower levels of the protocol (ethernet, or IP).

 


@ddufour wrote:

One thing i don't know what it is, is the "number of elements" input. Is it only the number of element in my array for example? So, if my array contain 4 values and i put 3 elements in the inputs of the "Tag Read", i will only read the first 3 values?


It is not clear what functions you are looking at. Typical TCP and UDP functions don't have any inputs resembling your description. All data needs to be flattened to a string for transport. Are you using a toolkit? Can you show us some code? Is this classic LabVIEW or NXG?

 

0 Kudos
Message 3 of 8
(5,713 Views)

@billko wrote:

Look under Help --> Find Examples and then search for TCP/IP.  There are a few (hopefully) helpful examples.


Bill, the OP is talking about EtherNet/IP, which is an industrial protocol.  NI sells a driver for it.

 

It has been too long since I messed around with that driver and I no longer have access to it.  I could potentially dig around to see if I have a copy of an old project, but I am just going to back away from this and hope somebody with better knowledge comes in.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 8
(5,694 Views)

@crossrulz wrote:

@billko wrote:

Look under Help --> Find Examples and then search for TCP/IP.  There are a few (hopefully) helpful examples.


Bill, the OP is talking about EtherNet/IP, which is an industrial protocol.  NI sells a driver for it.

 

It has been too long since I messed around with that driver and I no longer have access to it.  I could potentially dig around to see if I have a copy of an old project, but I am just going to back away from this and hope somebody with better knowledge comes in.


I can't believe I misread that.  To the OP - sorry about that!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 8
(5,681 Views)


@crossrulz wrote:

@billko wrote:

Look under Help --> Find Examples and then search for TCP/IP.  There are a few (hopefully) helpful examples.


Bill, the OP is talking about EtherNet/IP, which is an industrial protocol.  NI sells a driver for it.

 

It has been too long since I messed around with that driver and I no longer have access to it.  I could potentially dig around to see if I have a copy of an old project, but I am just going to back away from this and hope somebody with better knowledge comes in.




Hi!

I have played a bit with Labview and the driver to see if i can do something and i think i have something! But it could be nice to see an example of a working project so i could double check what i did, if yours arent too far, it would be appreciated!

 

@billko No problems! Can happen haha

0 Kudos
Message 6 of 8
(5,649 Views)

@ddufour wrote:

So, for the first time, i have to work with the ethernet/ip protocol.


Obviously, you could have avoided a lot of confusion by using the correct lettercase (EtherNet/IP vs. ethernet/ip) and even put it in quotes or include a link.

... especially since they had the horrible idea to reuse well defined generic terms for a very specific protocol. What were they thinking? 😮

0 Kudos
Message 7 of 8
(5,633 Views)

Have you been able to provide find any?

0 Kudos
Message 8 of 8
(734 Views)