Libraries must be created according to specific rules to avoid compatibility issues.
The main items include the following:
-
Select a meaningful library name (required)
-
Use templates to ensure consistency (optional)
-
Use a familiar and uniform project structure, when possible (optional)
-
Register a unique library namespace (required)
-
Enter all project information (required)
-
Apply the correct method for referencing other libraries correctly (required)
-
Design smart external and internal interfaces (required)
-
Implement a user-friendly error handling (required)
-
Apply the correct method (protection) for deployment (required)
-
Apply a consistent naming convention to get clean code (optional)
-
When revising an existing library, consider the interface compatibility with previous versions.
Please follow these guidelines when developing libraries in CODESYS: "Library Development Summary". You will find this document as a CHM file (LibDevSummary.chm) in the installation directory of CODESYS, or in the online help.
See also