Internal Error CILG0001

Hello, My project is using libraries from methods written in C#. So far was working fine. Until I added the last FB from my library and then I get that error, what does it mean? Thanks.

Hello Alex,

this problem might be caused by the In and Outputs of your FB.

Maybe you have a In Out Port that is not connected to the same variable at the IN and Out put?

Please provide a screenshot of your FB.
Or the relevant sourceCode : https://phoenixcontact.sharefile.eu/r-r37ba399d58c46a58 kind regards,
Oliver

Thanks Oliver, Your answer pointed me in the right direction. My FB has several outputs with same name but with suffix (for example: myOut1, myOut2, myOut3, etc.). In Visual Studio I was using a FOR loop to set those outputs. When I changed the code to explicitly set those outputs, the error cleared. Thanks, Alex