Components Compiler Error (PLCNEXT0006): The program name '...' inside the program description must be equal to the program description file name '...'.
The referenced library contains an error. The name of the program specified in the program description file (*.progmeta) and the name of the program 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 .progmeta file and open the file with a text editor. (The .progmeta file is in practice an XML file which contains the description of the programs contained in the library.)
- In the .progmeta file, ensure that the "name" attribute contains the name of the .progmeta file. Modify the name, if required.Example:
File name "name" attribute value MyLibProgram.progmeta <Program name="MyLibProgram" ....> - 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".