02-15-2019 02:49 PM
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
02-15-2019 03:33 PM - edited 02-15-2019 03:34 PM
Look under Help --> Find Examples and then search for TCP/IP. There are a few (hopefully) helpful examples.
02-15-2019 04:16 PM - edited 02-15-2019 04:30 PM
@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?
02-16-2019 01:33 PM
@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.
02-16-2019 08:46 PM
@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!
02-18-2019 08:25 AM - edited 02-18-2019 08:27 AM
@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
02-18-2019 11:22 AM
@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? 😮
06-19-2024 01:16 PM
Have you been able to provide find any?