Module Chart Checks : (C5089) Subroutines with illegal parameter type or return type

(C5089) Subroutines with illegal parameter type or return type

Error In:
Correctness
Description:
There is a subroutine where a User-Defined Type (UDT) is the return type, or the type of a parameter. The following table below lists the illegal definitions for UDTs.
(*) In these cases, a middle UDT is needed. For example, if the return type of a function should be an array of string, it should be defined as:

UDT array of STR_UDT, and STR_UDT, a string

 

 

Example:
subroutine F1
return type ARR_STR1, defined as array of string STR_QUEUE1,
type of parameter P1, defined as queue
 
Erroneous Elements:
Subroutines