kandauru Posted September 19, 2016 Share Posted September 19, 2016 Hi, recently my communication module based on Power PMAC Component stopped working. I found that GetResponse function returns status "TimeOut" instead of "OK". Also, I found out, that our application must send a huge amount of data when the problem happens. So, my question, is there any parameter (wait time) that should be adjusted according to amount of data is going to be sent to the controller? Or maybe any other solution? Please, advise. Link to comment Share on other sites More sharing options...
steve.milici Posted September 20, 2016 Share Posted September 20, 2016 What is the command argument that causes the timeout? Link to comment Share on other sites More sharing options...
kandauru Posted September 21, 2016 Author Share Posted September 21, 2016 Dear Steve, Look at my log file. You can see that I am trying to send 12500 lines like "&1 open Rotary M1==3 Z-267.210570803917Y389.866514857707A-0.358278226601289B89.3536535032119X782.157273835703 Close ", of course, positions are different from line to line. When I try do so, the connection is lost. TIMEOUT problem happens on the next loop, so, it happens because of the lost connection. But, can you help me with the original problem? I tried to increase buffer size while defining rotary buffer: "&1 define rotary bufferSize" Then, I tried to add buffer size as last parameter of ConnectGpAscii function: connection.ConnectGpAscii(ipaddress, port, user, password, bufferSize). But, the situation is still same. I cannot send a big amount of data(commands) with a single call of GetResponse function. Looks like there is a limitation of buffer size. If I have short trajectories, let's say 2500 lines, it is working perfectly. Please, advise.LogFile.txt Link to comment Share on other sites More sharing options...
steve.milici Posted September 21, 2016 Share Posted September 21, 2016 You cannot use the GetResponse with large command arguments. The response can be large though. To send large amounts you should use GetResponse in increments or use one of the “download” features. Link to comment Share on other sites More sharing options...
kandauru Posted September 22, 2016 Author Share Posted September 22, 2016 Ok, I will try to change it as you say. What do you mean - "download" features? Can I get an example? Do you have it described in manuals? Thank you! Link to comment Share on other sites More sharing options...
steve.milici Posted September 23, 2016 Share Posted September 23, 2016 You must have the latest version for this, 2.1.0.107. See the example in: C:\DeltaTau\Power PMAC Component\C#\BuildAndDownloadExample Link to comment Share on other sites More sharing options...
Recommended Posts