here you go
as a function can only give one variable back (or a structure) i have to put all outs in one structure.
in a function block you can have several in and out
shooter hat geschrieben:
here you go
as a function can only give one variable back (or a structure) i have to put all outs in one structure.
in a function block you can have several in and out
Try the above in function declaration
Am asking about var_in_out in declaration
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
What is the difference between function & function block in terms of using var_in_out in codesys v2?
function no need to instantiate & it returns a value in Version2.
In version3 function can have outputs also.
a function can have only one output (this can be a structure) and a FB can have more vars.
Yes function returns a value.
I need info about using var_In_Out in function
Thanks
here you go
as a function can only give one variable back (or a structure) i have to put all outs in one structure.
in a function block you can have several in and out
WERK.zip [475 Bytes]
Try the above in function declaration
Am asking about var_in_out in declaration
in a function it is impossible to have in-out,
start a new function and you will not be able to select it from the assistant.
pls check the attached pgm
function allows in_out
func.pro [33.93 KiB]
you declared it yes , but how do you get the result from internal to external?
ie you do not use over (which is the output of the function.)