07-27-2020 01:44 PM
I am trying to communicate with a Stanley QPM controller using Atlas Copco's OPEN protocol by a TCP connection. Here is some documentation on the protocol. This is through an Ethernet connection using a unique IP through port 4545. I am unsure if my VI is able to send and receive commands, I can ping the IP and it recieves, but when I send an initialization through TCP write "00200001 ". Nothing returns. Is this the correct way to approach this communication protocol?
Solved! Go to Solution.
07-27-2020 02:59 PM - edited 07-27-2020 03:15 PM
Quickly going over the manual, it looks like it expects a header of 20 bytes then an optional data field and message end. From what I can tell you are sending the header correctly, but not adding the null terminator. I would concat. your message with 0x00 to add the nul.
Add a string constant, change the display to hex and enter 00, then concat that with your message before sending it over TCP.
Edit -
Also in your read, you specify 57 bytes but you really don't know how many bytes will be written back without looking at the header. You should expect at least 20 bytes from the header, but then need to decode from that how many more bytes there are to read.
07-27-2020 06:01 PM
Yup that seemed to work. Here is the new VI with a response
07-27-2020 08:29 PM
Nice! Interesting communication protocol I've never used before but the documentation is pretty good.
11-30-2020 10:10 AM
Hi, I am currently trying to communicate a Desoutter controller for a screw driver, could you share that vi?
What controller are you using?
-Jorge