LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plc to Labview tcp/ip communication

Solved!
Go to solution

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

0 Kudos
Message 1 of 18
(8,405 Views)
Solution
Accepted by topic author ramprabhakar26

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.

Matt J | National Instruments | CLA
Message 2 of 18
(8,358 Views)

What PLC are you trying to communicate with? Also, what Protocal? Most PLC's today can open UPD sockets, 

0 Kudos
Message 3 of 18
(8,344 Views)

Hi dave 

Thanks dave for reply im using schneider tm218 plc for this experiment

 

0 Kudos
Message 4 of 18
(8,326 Views)

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 

0 Kudos
Message 5 of 18
(8,323 Views)
Solution
Accepted by topic author ramprabhakar26

hi,

    what program u wrote in inside the PLC and which one is master and what is method you use oil or register type.

0 Kudos
Message 6 of 18
(8,317 Views)

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

0 Kudos
Message 7 of 18
(8,295 Views)
Solution
Accepted by topic author ramprabhakar26

hi,

    best way you can use modbus library.

                                    http://www.ni.com/example/29756/en/ 

0 Kudos
Message 8 of 18
(8,291 Views)

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

 

 

0 Kudos
Message 9 of 18
(8,282 Views)

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

0 Kudos
Message 10 of 18
(8,262 Views)