Hello all together,
currently I am creating a communication with a machine in our production using the robot socket communication. Till now everything works just fine.
Now i run into a problem… I need to know all the programs which are listed on the machine, so i receive a string which includes around 6000 characters. Is it somehow possible to read all of this with the robot because usually there is a limit by 1024 chars. Maybe with a workaround?
Does somebody of you guys have some experiance in this topic which could help me?
Thank you very much in advance!!
Kind regards
Matthias
Not sure what the limit is on the robot to send/receive over socket, but if you’re saying it’s 1024 characters I’ll believe you. You will want to somehow segment the 6000 characters into chunks. You could create a loop that reads 1000 characters at a time and stores the results into an array in URScript, and run this loop until you’ve read all the programs. Then you could concat all the strings back into one huge string if that’s what you need. Or else maybe it makes more sense to read one program at a time, and end up with an array that represents all the programs. Not sure how you want to handle the information after you have it, but you definitely need to break the task into smaller chunks.
Hello Eric,
this was also a thought of mine. Unfortunately this is not possible. When i wait for a string to be read and 6000 chars are coming, following error message will appear.
If you have any other experience with this, please feel free to share 
My solution now is that i will create a pyhton script which is running in the background and over xmlrpc i will call the python-function which can read that string into serveral chunks as you already said.
Thank you!
Kind regards
Matthias
Sounds like a good plan. Otherwise maybe check out socket_read_byte_list, which looks like it takes as an argument the number of bytes to read (maximum 30). Not sure what that looks like on the output, but at least sounds like it lends itself to chunking out larger data.