Hi all
I am currently working with an B&R controller using structured text. I have some code, that has previously worked with CODESYS, but when I use exactly the same code in B&R, it gives me this error "Function '....' returns array, string or structure" (Error code 1210). It seems to me that Function in B&R can only return basic data type. But when I read the Help document of Automation Studio, it says that "The function supports return values of the basic types, data types derived from the basic types, enumerations, structures, arrays and string types" . This confuses me.
Do you have any ideas how I could work around this problem?
Thanks
I am currently working with an B&R controller using structured text. I have some code, that has previously worked with CODESYS, but when I use exactly the same code in B&R, it gives me this error "Function '....' returns array, string or structure" (Error code 1210). It seems to me that Function in B&R can only return basic data type. But when I read the Help document of Automation Studio, it says that "The function supports return values of the basic types, data types derived from the basic types, enumerations, structures, arrays and string types" . This confuses me.
Do you have any ideas how I could work around this problem?
Thanks