Components Compiler Error (PLCNEXT0005): The component name '...' inside the component description must be equal to the component description file name '...'.
The referenced library contains an error. The name of the component specified in the component description file (*.compmeta) and the name of the component description file are not identical. Probably, the error was generated when creating the library.
Background: A library is a zip file with a different extension (*.pcwlx) containing a folder structure of the library-specific files. Renaming the .pcwlx file to .zip will enable you to uncompress the library file just like any other zip file.
Remedy
- Re-create the library and then re-import it into to your project as described in the topic "Adding libraries".For PLCnext Technology controllers, use the PLCnext Technology Toolchain for the creation of the library (the Toolchain is available in the download area of your controller at phoenixcontact.net/products). Or
- Uncompress and edit the .pclwx content as follows:
Note
This procedure is intended for experts only.- Locate the .pcwlx file on your disk. (By default, the library files are stored in the directory specified in the 'Extras > Options' dialog under the 'Tool | Directories' category.)
- Rename the .pcwlx file to .zip and uncompress it to a directory on your disk.
- In the folder structure, locate the .compmeta file and open the file with a text editor. (The .compmeta file is in practice an XML file which contains the description of the components contained in the library.)
- In the .compmeta file, ensure that the "name" attribute contains the name of the .compmeta file. Modify the name, if required.Example:
File name "name" attribute value MyLibComponent.compmeta <Component name="MyLibComponent" ....> - Once you have made the change, select all files, compress it to a zip archive and rename it to the original .pcwlx.
- Add the library to your project as described in the topic "Adding libraries".