TcMotion / Component_Motion_OOP_Axis

Component Motion OOP Axis
4 stars 0 forks source link

interface method with different inputs and quantity according to the FB class where it is implemented, with Abstract FB, or as it would be...?? #12

Open runtimevic opened 1 year ago

runtimevic commented 1 year ago

interface method with different inputs and quantity according to the FB class where it is implemented, with Abstract FB, or as it would be...??

Hello,

I have a method declared in an interface, it can have different inputs and number and quantity depending on the FB class where the interface is implemented, as it would be with Abstract FB, can someone give me a small example?

Best regards, Víctor.

561-TwinCATMethoddifferentsinputs

runtimevic commented 1 year ago

Hello,

This was just answered on the linkedin forum:

"Unfortunately overloading is not allowed in twincat 3. Not for methods, properties nor variables themselves.

it sucks I know, but you gotta play with the cards you got..

So you need to do something around the limitations."