Cfc methos

2017-03-02
2017-03-03
  • josepmariarams - 2017-03-02

    Dears.

    It is possible to call a fb.method feom an cfc editor?

     
  • Anonymous - 2017-03-02

    Originally created by: scott_cunningham

    Yes. Calling it can be a bit tricky.

    My CoDeSys version underneath my OEM software: 3.5.6.66

    IMG: screenshot.png

     
  • josepmariarams - 2017-03-02

    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.

     
  • josepmariarams - 2017-03-03

    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

    IMG: Captura de 2017

     

Log in to post a comment.