Scheffie
Hello,

I would like to use a user defined datatype (structure of several variables) to pass information of my main program into the my own function block.

I've tried several options (using global variables, defined as an external variable in my program and function block; or using a variable in the function block defined as an INOUT type) but I can't seem to get it working.

I'm used to do this in Allen Bradley (as INOUT variabele). How can I achieve this same function in OpenPLC?

Thanks!
Bart
Reply 0 0
thiagoralves
Yes, just click on the grey plus (+) sign icon on the left panel to create a new custom data type. Then create a variable of the data type you just created and use it as any other.
Reply 0 0
Reply