carlos_rod Posted February 8, 2019 Report Share Posted February 8, 2019 Good morning, I am having some troubles creating a communication with a device (painting thickness measurement) , this device acts as a server. I send commands and it sends back the result. (ASCII text lines). After a command is processed, the TCP/IP connection is disconnected by the server. The problem is that I am able to stabblish the connection and to send the commands, but I don't receive or I don't know how to see any response. I am using Vision V700 and Visilogic 9.8.31 I think that the program should be as follow: - Sock init in TCP and Client (master) - 2 x Protocol TCP/IP configuration (one for send and the another one for receive) - Connect to the socket - TCP/IP Send Message - TCP/IP Scan - TCP/IP Close Socket I am using also the function 'V700 read eth card' to see the messages sends and receive, but I am not receiving any messages. Is there something wrong with this configuration? Is there another way to do it or to diagnose it? Thanks in advance , Quote Link to comment Share on other sites More sharing options...
Cam Posted February 8, 2019 Report Share Posted February 8, 2019 Is the tcp scan located in a sub routine? Quote Link to comment Share on other sites More sharing options...
carlos_rod Posted February 8, 2019 Author Report Share Posted February 8, 2019 1 hour ago, Cam said: Is the tcp scan located in a sub routine? yes, it is used in a sub routine, which is called every cycle and that do the following steps: 1: open the connection to the device 2: send the command 3: read the answer 4: disconnect the connection to the device Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted February 8, 2019 MVP 2022 Report Share Posted February 8, 2019 You're doing all of that on every scan? I don't think you can connect and disconnect on the same scan and have any good result. What protocol are you trying to use for communication? Can you post your program here? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.