library inside library

jorenbeyl
2 days ago
4 hours ago
  • jorenbeyl - 2 days ago

    I am currently developing a library that contains real‑time data. To handle this real‑time data, I am using additional libraries called SysTime and SysTypes Interfaces.
    When I compile my library on its own, no errors occur. However, when I use this library in a project and compile the project, I get an error indicating that the SysTime data type is not recognized. This happens even though the SysTime library is visible as a dependency under my library.
    Does anyone know how to correctly include a library within another library so that the project recognizes the sub‑library without causing compilation errors?

     
  • TimvH

    TimvH - 4 hours ago

    1)
    it should be possible to access the type SysTime in the project as A_Lib.SysTime.
    2)
    you could add the SysTimeCore library to the library manager of your library (POU Pool). This might seem as a double library, but because of the placeholder resolution only one will be used.
    Then, in your library manager of your library, select the SysTimeCore library, right-click, select "Properties" and enable the option "Publish all IEC symbols ...."

    For more information about library development, you could follow our advanced training course in Ridderkerk. The next is scheduled for 24 and 25 June 2026 https://www.extendsmartcoding.nl/codesys-training/

     

Log in to post a comment.