Overloading & Twincat 2.3

2010-12-10
2010-12-15
  • JanRobroeks - 2010-12-10

    Hello,

    I'm creating a library for HVAC applications. For example: a normal pump has a ON/OFF control. The function output() describes if the pump should be active or not (ON or OFF). But there are many sorts of pumps which will be used, thereofore there is need for pumps with more capabilities, such as a pump with 0-100% output instead of ON/OFF.

    In C++ you can overload a function and change the algoritm of a function which its overloaded from. This means I want to overload the function output() and change ON/OFF to 0-100%. Is there a possibillty to do so with CoDeSys?

     
  • ndzied1 - 2010-12-10

    I'm not sure CoDeSys is quite there yet.

    Read this recent article on the subject of OOP & IEC 61131-3 programming
    http://www.3s-software.com/se_data/_fil ... W_IEEE.pdf

    I'm not familiar with V3 as our hardware suppliers are just starting to move to that platform...

     
  • shooter - 2010-12-13

    jan please contact me at 0653300739 i am in this field of hvac, and i do know codesys too.
    have you seen oscat.de btw?
    why overload? better to have correct prog. if not 0% it is on.

     
  • JanRobroeks - 2010-12-15

    Well, its not better to correct the algoritm. This was just a simple example. There may be much more complicated functions. Yes I have seen oscat.de and its in line with my question, but I can't see if its usable in combination with Codesys V2.3 & Twincat.

    Many thanks ndzied1,

    That article is very usefull. See also http://www.3s-software.com/index.shtml?en_v3_oop. The part of overwriting is what we call overloading. I have a meeting soon were we will discuss the Twincat 3 platform because it may prevent us a lot of work in future.

     

Log in to post a comment.