Properties displayed twice with extended function blocks and interfaces

tvm
2018-06-30
2018-06-30
  • tvm - 2018-06-30
    INTERFACE Interface1_ITF
    //contains properties: Prop1, Prop2
    INTERFACE Interface2_ITF
    //contains properties Prop3, Prop4
    FUNCTION BLOCK FB_1 IMPLEMENTS Interface1_ITF
    FUNCTION BLOCK FB2 EXTENDS FB1 IMPLEMENTS Interface2_ITF
    

    My question is, when I go online with a project, in FB_2 I will see the properties from the first interface twice
    Prop1
    Prop2
    Prop1
    Prop2
    Prop3
    Prop4

    I don't understand why. I should see Prop1 and Prop2 because FB_2 is extending FB_1, and I should see Prop3 and Prop4 because it's implementing Interface2_ITF. Why are Prop1 and Prop2 shown twice?

    thanks

    Tim

     
  • tvm - 2018-06-30

    Interesting. It turns out that when you clock "Implement Interfaces" on a function block, it automatically creates all properties, including ones from base function blocks. I assumed that that was how it was supposed to be, but it looks like if you do that, you'll get the issue I was having.

     

Log in to post a comment.