How to create Function Block in codesys ?
How to create function block and how to call that function block into some logic ?
i was tried but i cant found that procedure ...any one know please guide me
Voted best answer
When You create a new POU the is a radio button to make the POU a function Block.
Once the Function Block is created, you must declare VAR_INPUT & VAR_OUTPUT variables that will be used in the program to pass data to, and get data from the function block. All instances of a function block must be declared just like any other variable data type. See the attached example of calling the Funtion Block below.