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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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).
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
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!
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)>
Much tks to Edwin!
And I am new one on codesys.So What I should do?
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
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.
If you want hide namespace,just following the jpg shows!
Tks to Edwin and scott!