04-08-2014 08:26 AM - edited 04-08-2014 08:29 AM
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~
从NI网站下载的免费Modbus库,在Labview2012建立modbus TCP和PLC slaver通讯
如下图,运行时就出现Error 56,求助
Solved! Go to Solution.
04-08-2014 08:56 AM
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.
04-08-2014 09:19 PM
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
04-08-2014 10:58 PM
Hi Steven
I have solve this problem(add localhost in vi server), thank you for your help
04-09-2014 12:41 AM
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.