kandauru Posted September 19, 2016 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.
steve.milici Posted September 20, 2016 Posted September 20, 2016 What is the command argument that causes the timeout?
kandauru Posted September 21, 2016 Author 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
steve.milici Posted September 21, 2016 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.
kandauru Posted September 22, 2016 Author 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!
steve.milici Posted September 23, 2016 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
Recommended Posts