01-04-2017 05:12 AM
hello people
I was trying to communicate PLC with LabVIEW and my attempt was successfull i used modbus I/o server and communicated PLC with Labview,I would like to do the same experiment with tcp/ip function blocks but i dont know where to start
regards
ram
Solved! Go to Solution.
01-04-2017 10:34 AM
Are you still going to be using Modbus? If you have access to the I/O Servers you should also have the Modbus API which has an example in the example finder "Modbus Library.lvproj". The API itself is pretty simple, you create a master/slave session, read or write to specific coils/registers, and close the session when you are done.
01-04-2017 01:46 PM
What PLC are you trying to communicate with? Also, what Protocal? Most PLC's today can open UPD sockets,
01-05-2017 02:50 AM
Hi dave
Thanks dave for reply im using schneider tm218 plc for this experiment
01-05-2017
02:58 AM
- last edited on
06-24-2025
11:44 PM
by
Content Cleaner
hi jacobson
Glad to see a reply, can you elaborate procedure a bit.
i followed this procedure https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0QgCAI&l=en-US
thanks
01-05-2017 03:17 AM
hi,
what program u wrote in inside the PLC and which one is master and what is method you use oil or register type.
01-05-2017
03:44 AM
- last edited on
06-24-2025
11:45 PM
by
Content Cleaner
hi gokul
i just wrote a four way traffic program
and i followed this procedure https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x0QgCAI&l=en-US
01-05-2017
04:07 AM
- last edited on
06-24-2025
11:45 PM
by
Content Cleaner
hi,
best way you can use modbus library.
http://www.ni.com/example/29756/en/
01-05-2017 04:12 AM
hi gokul
thanks a lot for reply but imusing labview 11 i couldn't open a vi that you sent me
can you convert to Labview 2011 and send me
01-05-2017
06:18 AM
- last edited on
06-24-2025
11:45 PM
by
Content Cleaner
Here is the Modbus Library. I use this instead of a I/O server. Gives you more control for the communication.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LP9SAM&l=en-US