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
hi jacobson
Glad to see a reply, can you elaborate procedure a bit.
i followed this procedure http://www.ni.com/tutorial/13911/en/
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
hi gokul
i just wrote a four way traffic program
and i followed this procedure http://www.ni.com/tutorial/13911/en/
01-05-2017 04:07 AM
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
Here is the Modbus Library. I use this instead of a I/O server. Gives you more control for the communication.
http://digital.ni.com/public.nsf/allkb/47F898161792C62F8625756A005D0E7E