IEC methods/functions have to return types that are compatible with IEC. IEC methods/functions that can have return values are methods that either:
- have the attribute
[User] - have the attribute
[Execution], are called__Processand are in a class with the attribute[Function] - have the attribute
[Function]and are in a class with the attribute[FunctionContainer]
Explicitly allowed types are
CSharp basic types:
boolsbyteshortintlongbyteushortuintulongfloatdouble
.Net basic types:
BooleanSByteInt16Int32Int64ByteUInt16UInt32UInt64SingleDouble
IEC types:
enumsattributed with[Enumeration]
Eplicitly forbidden:
- all
Any* types Iec022 - Structures
[Structure]or Arrays[Array]Iec022 IecStringEx,IecString80,IecWString,IecWString80TODO-LINKING
Change the return type to one of the explicitly allowed types.
