I have test it but I have problems with inherited methods:
To use inherited methods with the first method it is necessary to overload the method in the inherited class and call the method using this^. After that it is possible to erase the inherited method and the this^. In this case the method doesn't works if it has not outputs, and is not possible to update pins.
The better solution is using the second option that Scott has said:
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Dears.
It is possible to call a fb.method feom an cfc editor?
Originally created by: scott_cunningham
Yes. Calling it can be a bit tricky.
My CoDeSys version underneath my OEM software: 3.5.6.66
Thanks a lot Scott.
I have test the first solution and it has not work. I suppose it is a version problem.
But the question is: how you have disvovered the second solution.
Scott.
I have test it but I have problems with inherited methods:
To use inherited methods with the first method it is necessary to overload the method in the inherited class and call the method using this^. After that it is possible to erase the inherited method and the this^. In this case the method doesn't works if it has not outputs, and is not possible to update pins.
The better solution is using the second option that Scott has said:
Thanks