I know that object oriented programming is a new feature of Codesys V3. However, I wonder if it is possible to have limited OOP support even in v2. For example, I would like to create two different implementations of a function block, but keep the interface the same. Callers should be able to call according to this interface, without having to know which implementation is in use. The selection between the two different implementations should be done by runtime (at startup or similar). What's the best way of solving this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I know that object oriented programming is a new feature of Codesys V3. However, I wonder if it is possible to have limited OOP support even in v2. For example, I would like to create two different implementations of a function block, but keep the interface the same. Callers should be able to call according to this interface, without having to know which implementation is in use. The selection between the two different implementations should be done by runtime (at startup or similar). What's the best way of solving this?
yes i do a lot of oop in V2.3 have alook into placeholders.