It is described in the RAPID reference manual that, “a character string consists of a number of characters ( a maximum of 80) enclosed by quotation marks”.
My questions is, why to limit the string length to 80 characters in RAPID? Does there have some historical reasons?
If this limit comes from the limit of memory / CPU at the time when RAPID was invented, then this limit could be removed for modem designed Robot Controller, isn’t it?
A string isn’t a data type in the same sense as an integer or character. It’s actually a class. So when I say the amount of memory assigned, it is whoever designed the string class, how much memory/number of characters they decided to allow. So what you say about memory not being very limited is right, but for whatever reason the person who developed the string class had, they decided 80 was the limit.
I’m up for thinking – but need the specific case to be relevant to your application. I’ve “worked around” string size by using an array of strings, but it was probably a much simpler issue than what you’re dealing with…