Creating an Image Pool
Creating an Image Pool
- 1. In the Solution Explorer, select the PLC project object or a folder below it in the PLC project tree. In the context menu select the command Add > Image Pool.
- The Add Image Pool dialog opens.
- 2. Enter a name for the image pool (for example "Images1") and confirm the dialog by clicking the Open button.
- The image pool is added in the PLC project tree and opens in an editor.
- 3. Double-click on the ID field and assign a suitable ID (for example "Icon1").
- 4. Double-click on the File name column. Click on .
- The standard Open dialog opens.
- 5. Select the image file.
- 6. Enter an ID in the ID column. If you do not enter an ID, the file name is automatically inserted.
- A thumbnail view of the image file is displayed in the Image column. The path is displayed in the File name, the name of the file or the ID you specified is displayed in the ID field. The image file can now be referenced by the name “Images1.Icon1”.
Using an image file in the image visualization element
When you insert an image element in a visualization, you can set the image type:
- Static image: In the element configuration (property Static ID) enter the ID of the image file or the name of the image pool + ID. Note the information on search order and access provided above.
- Dynamic image: In the element configuration (property Bitmap ID variable) enter the variable that defines the ID of the image file, for example MAIN.imagevar. In online mode a dynamic element can be replaced based on a variable
Using an image file for the visualization background
You can specify an image in the background definition for a visualization. The image can be defined by the name of the image pool plus the file name, as described above for a visualization element.