What are the requirements to be met by know-how-protected blocks so that you can compile them also in other projects?
Imported blocks with know-how protection can be compiled in STEP 7 (TIA Portal) without a password. However, here the blocks must be encapsulated functions or function blocks. When you program blocks that you also want to use in other projects, the data exchange between the blocks must always be via their interfaces. We recommend that you do not use project-specific data nor program access to the following objects:
- Global data blocks
- PLC tags and PLC data types
- Global constants
Furthermore, we recommend the manual
Programming Style Guide for S7-1200/S7-1500
Check the know-how-protected blocks for reusability.
- Right-click the block and select the "Properties..." item in the pop-up menu.
- Select the "Compilation" item.
Under "Library conformance", if the "Status:" field has the entry "The object is library-conformant", you can compile the block in STEP 7 (TIA Portal).
Know-how-protected blocks must be enabled for use in a library. If there is no reusability, the know-how-protected block has the accesses mentioned above in the program. In this case, prior to compilation you must also add to your project the necessary PLC tags and data types, constants and data blocks that the know-how-protected block accesses.
In the following cases you also need the password for compiling a know-how-protected block:
- After changing a PLC data type that the know-how-protected block uses.
- After inserting know-how-protected blocks in your S7 station in which there are already know-how-protected blocks with the same block number.
More information is available in the STEP 7 (TIA Portal) manual under Block Requirements.
The screen in this FAQ response was created with STEP 7 (TIA Portal) V15.