LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modbus TCP error 56

Solved!
Go to solution

download modbus library for NI, setup modbus TCP communication with PLC slaver in labview 2012,

but when i run the VI, error 56 happens.Help~Smiley Sad

 

 

 

从NI网站下载的免费Modbus库,在Labview2012建立modbus TCP和PLC slaver通讯

如下图,运行时就出现Error 56,求助

 

 

 

 

 

Snap5.jpg

0 Kudos
Message 1 of 5
(5,023 Views)
Solution
Accepted by topic author JnKuuga

1)enable highlight execution and determine where the error is occuring, its likely occuring in the initialization node because of a setting that might not be right. 

2)Check your settings, typically port 502 is used

3)Check your IP settings

4) there is a new modbus library from NI that might offer you better results, and seems to be easier to employ. 

 

Here is the link for the new library.  

https://decibel.ni.com/content/docs/DOC-30140

 

You will need VI Package Manager installed first to install this add on, if you choose to use the new library. 

 

Steven Howell
Certified LabVIEW Developer
Certified Professional Instructor
Systems Developer
Optimation - Houston
steven.howell@optimation.us
0 Kudos
Message 2 of 5
(5,009 Views)

Hi Steven

 

     After installing VIPM, install the add on(.vip) error happen. It say there is vi server setting error.

But i try to do as it say , fail is the same.Please help me ~

And i just send you an email about this~

 

Err

VIPM Err.jpg

 

Download All
0 Kudos
Message 3 of 5
(4,988 Views)

Hi Steven

 

  I have solve this problem(add localhost in vi server), thank you for your help Cat Happy

0 Kudos
Message 4 of 5
(4,979 Views)

JnKuuga,

 

My apologies for not checking my messages, yes VIPM has to be set up with the right port settings or it throws errors. Glad you figured it out.

 

Hope you can get the Modbus stuff straightened out. 

 

Good luck, if you have anymore questions, feel free to ask.

 

Steven Howell
Certified LabVIEW Developer
Certified Professional Instructor
Systems Developer
Optimation - Houston
steven.howell@optimation.us
0 Kudos
Message 5 of 5
(4,970 Views)