Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I need to perform some actions when creating an FB instance (pass a reference to the created instance to another FB - something like Dependency Injection). I found FB_Init and {attribute 'call_after_init'}, but in both cases, the added code when creating the FB (declared in the visualization var and created, as I understand it, along with it) is not executed. Why?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to perform some actions when creating an FB instance (pass a reference to the created instance to another FB - something like Dependency Injection). I found FB_Init and {attribute 'call_after_init'}, but in both cases, the added code when creating the FB (declared in the visualization var and created, as I understand it, along with it) is not executed. Why?