Sinc_green
Member
I'm using IndraWorks LOGIC 11V04.0022, trying to write a multiple move FB in ST. The editor is CoDeSys based, 3.x if I'm not mistaken.
FUNCTION_BLOCK Move3
VAR_INPUT
In1 : ANY;
In2 : ANY;
In3 : ANY;
END_VAR
VAR_OUTPUT
Out1 : ANY;
Out2 : ANY;
Out3 : ANY;
END_VAR
VAR
END_VAR
Out1 := In1;
Out2 := In2;
Out3 := In3;
I can type in the above or use the Auto declare function to create the ANY variables (it's one of the available selections). When I build it tells me I haven't declared Out1-3 and In1-3. Likewise the function block shows no I/O pins. The ANY datatype is not mentioned anywhere in the help files - so why is it selectable and highlighted as a key word in ST? If it isn't for usage similar to above then what is it for?
Thanks!
Bill
FUNCTION_BLOCK Move3
VAR_INPUT
In1 : ANY;
In2 : ANY;
In3 : ANY;
END_VAR
VAR_OUTPUT
Out1 : ANY;
Out2 : ANY;
Out3 : ANY;
END_VAR
VAR
END_VAR
Out1 := In1;
Out2 := In2;
Out3 := In3;
I can type in the above or use the Auto declare function to create the ANY variables (it's one of the available selections). When I build it tells me I haven't declared Out1-3 and In1-3. Likewise the function block shows no I/O pins. The ANY datatype is not mentioned anywhere in the help files - so why is it selectable and highlighted as a key word in ST? If it isn't for usage similar to above then what is it for?
Thanks!
Bill