Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Questions about creating your own library

leon517
2016-04-11
2016-04-16
  • leon517 - 2016-04-11

    Questions about creating your own library
    1 how to hide the contents of the library, so that users can not view the code
    2 how call the library without writing the namespace, like TON, without the need to write Standard.TON

    Tks in advance.

    BR Junfeng.Li

     
  • leon517 - 2016-04-11
     
  • Anonymous - 2016-04-12

    Originally created by: scott_cunningham

    A compiled library (save as compiled library) should keep your code hidden. You can also password protect it. Be sure to test!

    Whether or not the namespace has to be included depends on the user setting of the system. If you want to shut off include namespace, check your CoDeSys options either under the Project tab or the Tools tab (sorry not in front of my system to know the exact lik).

     
  • eschwellinger

    eschwellinger - 2016-04-12

    Hi,

    yes Scott thanks for this.
    Detail: If you set:

    LanguageModelAttribute(Text) := 'qualified-access-only' effects that the symbols of the library are only accessible via the namespace.

    Access by using the Namespace is mandatory.
    BR
    Edwin

    IMG: qualiyfied

     
  • leon517 - 2016-04-14

    scott_cunningham hat geschrieben:
    A compiled library (save as compiled library) should keep your code hidden. You can also password protect it. Be sure to test!
    Whether or not the namespace has to be included depends on the user setting of the system. If you want to shut off include namespace, check your CoDeSys options either under the Project tab or the Tools tab (sorry not in front of my system to know the exact lik).

    As the jpg shows.Where can I find the menu (Save as compiled library)?
    And if you mind tell where can find the docuement shows the setting about the security.Just in the codesys help?

    Tks any way!

    IMG: 1.JPG

     
  • eschwellinger

    eschwellinger - 2016-04-14

    Hi,
    if you would use current Version this will be available as Default.
    In older Versions (<sp8) you="" need="" to="" change="" tools-="">Options-Feature-Sets-Switch to Professional
    BR
    Edwin</sp8)>

    IMG: Professional.jpg

     
  • leon517 - 2016-04-14

    Edwin Schwellinger hat geschrieben:
    Hi,
    yes Scott thanks for this.
    Detail: If you set:
    LanguageModelAttribute(Text) := 'qualified-access-only' effects that the symbols of the library are only accessible via the namespace.
    Access by using the Namespace is mandatory.
    BR
    Edwin

    Much tks to Edwin!
    And I am new one on codesys.So What I should do?

    IMG: 2.JPG

     
  • Anonymous - 2016-04-14

    Originally created by: scott_cunningham

    Ah, OK, the term "Project" is used with two meanings...

    In general, project means the CoDeSys file (Open Project, Save Project, New Project). But then there is a difference below that:

    You cannot save a project as a library. You must choose to create a library (File -> New -> Empty library). All is not lost, since you can easily copy the whole POU(s) from one "project" to another.

    For easy use, the last two step above can be replaced simply with: File -> Save project and install into library repository

     
  • leon517 - 2016-04-15

    scott_cunningham hat geschrieben:
    Ah, OK, the term "Project" is used with two meanings...
    In general, project means the CoDeSys file (Open Project, Save Project, New Project). But then there is a difference below that:
    You cannot save a project as a library. You must choose to create a library (File -> New -> Empty library). All is not lost, since you can easily copy the whole POU(s) from one "project" to another.
    For easy use, the last two step above can be replaced simply with: File -> Save project and install into library repository

    I did create a library not a project,and my version is SP5
    And I find the settings as jpg shows.Maybe not same to SP8.
    After change to profesional I can find save as compiledlibrary.

    Another question?How I need not write namespace,like TON without Standard.TON

    Tks very much.

    IMG: 3.JPG

     
  • leon517 - 2016-04-16

    If you want hide namespace,just following the jpg shows!

    Tks to Edwin and scott!

    IMG: 1.JPG

     

Log in to post a comment.