LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ModbusTCP Control of ATV71 Drive

I have also recently encountered this error and believe there is a bug in the Modbus library. I have received a copy of the code which is not password protected and found an area in the code that is using a feedback node to store the Transaction ID. I believe this gets out of sync in the library when an error occurs. In my case, once I get into this state there is no recovery. I have limited access to the device I am communicating with because it is in a production environment (I am developing a replacement for a current application in use) and need to wait for maintenance windows to test. I will be looking into this further over the next week or so.I will update this thread as I find out more information.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 11 of 17
(1,481 Views)

Mark,

It looks like I may have had my Modbus Libraries mixed up. I was originally using the open free library and not the one that ships with the DSC module. I have since tried both the DSC version, the free version, and the Plasmionique version and they all seem to have issues. To recap: The DSC module version returns an Error 66 after 3 calls to the drive, the free version returns Error 538193 Transaction ID error, and the Plasmionique library won't even allow a single call to the drive and returns an Exception code 2, not sure why when all the other libraries are able to connect just fine. I'll keep an eye on that thread and hopefully we can figure out what is causing the error.

Thanks!

0 Kudos
Message 12 of 17
(1,467 Views)

Try downloading the latest Modbus library from VIPM and see if that resolves your issue. I found the latest version corrected my problem with error 538193. It is version 1.2.1.42.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 13 of 17
(1,462 Views)

The funny thing is that the 538193 error I'm getting is happening as a result of using the VIPM modbus library! 

0 Kudos
Message 14 of 17
(1,459 Views)

What fixed mine was not actually the latest from VIPM but the latest source code for the library. THat did fix my issue. All I did with the latest from source code control was to rebuild it with the password protection off so I could debug the library. After install that version I no longer got the error. According to the build spec the next build version would have been 1.2.1.43. I will contact the NI folks I worked with and see if we can get an updated version posted.

 

Interesting note about the library I got was that that the only change made was to change the transaction ID from a U8 to a U16. What I discovered is that I always encountered the error after the transaction ID rolled over.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 15 of 17
(1,456 Views)

I am having the same problem. Using NI Modbus Library 1.2.1.42 and I get error 538193 after a few seconds. Any update on a new version or a fix to the current version?

0 Kudos
Message 16 of 17
(1,428 Views)

I had the wrong version installed. Upgrading to 1.2.1.42 seems to have fixed my problem. Sorry for any confusion.

0 Kudos
Message 17 of 17
(1,419 Views)