Ejemplo n.º 1
0
 public static void __Process(
     [Output] ref FUExampleStruct FU_with_complex_data_type,
     [Input] ref FUExampleStruct IN1)
 {
     FU_with_complex_data_type = IN1;
     FU_with_complex_data_type.a++;
 }
Ejemplo n.º 2
0
        // NOT SUPPORTED! Do not return complex data types. This code pattern is NOT supported by the Engineering tools.
        //[Execution]
        public static FUExampleStruct ProcessReturningStruct([Input] ref FUExampleStruct IN1)
        {
            FUExampleStruct result;

            result = IN1;
            result.a++;

            return(result);
        }