10-09-2015 02:56 PM - edited 10-09-2015 02:58 PM
Hello all,
I'm attempting to use LabVIEW to send a command through TCP/IP to an ADAM-6052 to turn on a Digital Output. I've attached the LV code below as well as a .txt file of the ADAM commands. Another engineer I work with showed me the modbus commands being sent to the ADAM through the ADAM Utility software, and the Outputs were turning on an off as expected, but when I send the same commands through TCP/IP, the outputs do not change, and the message I receive is not what I expect to receive given the commands that I send. There are no error messages, so I seem to be communicating fine, but the commands are not having the desired effect.
I've searched the ADAM documentation, but have been unable to find anything useful for this issue, nor can I find the ADAM response that my .vi is receiving in the ADAM documentation, so I wanted to check here to see if anyone sees something that I am doing wrong.
Thanks!
10-12-2015 11:38 AM
Hi,
I looked into you VI, relplicating the setup with a dummy TCP server, and I'm not getting any error messages either.
Since you're receiving a message back it doesn't seem to be a connection issue. I'm wondering if it could be an problem with the command string. Have you tried communicating with just the ascii ADAM command? It might be worth a shot to strip the extra header bytes given in the hex command and just send #011001.
10-12-2015 05:43 PM - edited 10-12-2015 05:46 PM
Thank you for the response, Will. I tried the ASCII commands and had the same result - the same received message and no output turned on.
We are trying to get this project up and running in order to show a visitor next week, so the project is time-sensitive. I've got the majority of the LabVIEW program written with good results, but I'm just having trouble with the issue described here to shut off conveyors when certain conditions are met in the main program.
In order to have something in place for the visitor, we are going to just order a PCI Card and use LabVIEW's DAQ Assistant. It's a bit overkill for this application (I only need 4 Digital Outputs), so I will return to the ADAM communication in a week or so and hopefully get that working because that method would be very beneficial in future projects.
Thanks again.
Justin