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
(6,400 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
(6,353 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
(6,339 Views)

Hi dave 

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

 

0 Kudos
Message 4 of 18
(6,321 Views)

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 

0 Kudos
Message 5 of 18
(6,318 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
(6,312 Views)

hi gokul

i just wrote a four way traffic program

and i followed this procedure http://www.ni.com/tutorial/13911/en/

0 Kudos
Message 7 of 18
(6,290 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
(6,286 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
(6,277 Views)

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

0 Kudos
Message 10 of 18
(6,257 Views)