D
DFB ST code is as follows:
>>>>>Structured Text Start <<<<<
VAR
GET_4X_1 : GET_4X;
END_VAR
GET_4X_1 (OFF := Start_4X);
RegOut := GET_4X_1.VAL;
>>>>> Structured Text End <<<<<
Start_4X is UINT
RegOut is WORD
Apparently it gets sick because it can't resolve the output of type ANY for the GET_4X call. All docs including Insert FFB menu option lead you to believe you should be able to get away with this.
Tried calling it as function as opposed to function block without declaring it as in:
RegOut := GET_4X (OFF := Start_4X);
Function isn't recognized in this case.
Can you not use FBs with outputs of type ANY in ST?
Anyone?
>>>>>Structured Text Start <<<<<
VAR
GET_4X_1 : GET_4X;
END_VAR
GET_4X_1 (OFF := Start_4X);
RegOut := GET_4X_1.VAL;
>>>>> Structured Text End <<<<<
Start_4X is UINT
RegOut is WORD
Apparently it gets sick because it can't resolve the output of type ANY for the GET_4X call. All docs including Insert FFB menu option lead you to believe you should be able to get away with this.
Tried calling it as function as opposed to function block without declaring it as in:
RegOut := GET_4X (OFF := Start_4X);
Function isn't recognized in this case.
Can you not use FBs with outputs of type ANY in ST?
Anyone?