LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plc to Labview tcp/ip communication

Solved!
Go to solution

thanks for link dave, why is this method preffered than I/o servers 

0 Kudos
Message 11 of 18
(2,227 Views)

For me, I like it because it can be in your Vi or a plug in vi. If in the same Vi, you can have the communication loop and the code loop in your vi. You do not have to worry about deploying an I/O Server, making sure it is started and if it is communicating. I can also control how it handles communication failure and control values when communication fails. I used the I/O servers when NI first started using them (labview 8.0 I think) and there were bugs. I am sure they work better now. So for these reasons I choose to use the Modbus library VIs. The  examples in the library can easily test your plc connectivity without creating an IO server. .

0 Kudos
Message 12 of 18
(2,225 Views)

The only disadvantage using the Vi library as opposed to the I/O server is you have to format real and 32 bit data from 16 bit data. Modbus data is stored in 16 bit register's and bits (coils). So you have to format the data into the correct data type (2 registers for a real or 32 bit Integers data) The I/O server does this for you.

0 Kudos
Message 13 of 18
(2,215 Views)

hi dave 

i remeber you have sent me a link yesterday and im afraid those links are not working.and do you have example vi of your program so that i can understand what it is even clearly

thanks

0 Kudos
Message 14 of 18
(2,199 Views)

hello dave 

first of all i would like to thank you for your help this method is very convenient than i/o servers 

but im having problems with write to coil can you help me with that

0 Kudos
Message 15 of 18
(2,172 Views)

hi,

        you can download directly modbus libray based on which labview version your using.ther have lot of examples.like this link .

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

0 Kudos
Message 16 of 18
(2,156 Views)

hi gokul 

thanks for the reply i have one final uestion to ask im an applications engineer can i use these modbus libraries in my projects will it cause any problem

 

 

0 Kudos
Message 17 of 18
(2,141 Views)

hi,

       problem means what kind of you think.use no issues.

0 Kudos
Message 18 of 18
(2,138 Views)