Try changing the name of the tool to something that hasn’t got the word “tool” in it. I think “tool” may be a keyword. I seem to recall similar issues in the past, but it was a while ago. Worth a try anyway.
That seems reasonable, but I noticed a couple of things:
D’oh!
When I looked for things named …tool… I found my error.
I made a function and transposed the function name and the returned datatype.
This apparently polluted the keyword “tooldata”, so that Robotstudio thinks it’s no longer a datatype name–because ALL the tooldata declarations became bogus (it only tells you about the first one).
so, changing
FUNC RelToolData tooldata …
to
FUNC tooldata RelToolData …
fixes it.
Thanks!!
(although, I must comment that the error message was sort of misleading!)