Image Watch
The Image Watch Control offers many other tools and information displays in addition to the image display. An overview of the areas and components can be found in the subchapter Structure of the control. The description of each configuration option can be found under the following categories on this page. For each category there are sub-chapters with further information, details and application examples. In order to directly display TwinCAT Vision images from the PLC, the Vision extension for the HMI server is also required.
For all the following attributes, the control has a getter and a setter method. For example, the two methods All further attributes, events and permissions provided by the base class Controls can be found in the TwinCAT HMI documentation. |
Category: Colors
Attribute | Type | Description |
---|---|---|
|
| Toolbar and Infobar color (see categories Toolbar and Infobar). |
|
| Color of the contours of the shapes that can be drawn on the image (see category Shapes). |
|
| Color of the handles of the shapes that can be drawn on the picture (see category Shapes). |
Category: Common
The following attributes specify the resource from which the images to be displayed are loaded.
Attribute | Type | Description |
---|---|---|
|
| Resource for the image to be displayed. Can be either a path to an image file or a data URI. |
|
| List of named image resources. If the list is not empty, the binding of |
|
| Selects which of the image resources from the list will be displayed if |
|
| Alternative text that will be displayed if the current image resource is not available. |
Function | Description |
---|---|
| Triggers a browser-specific download of the currently displayed image in its original size. Can alternatively be triggered via a UI element in the toolbar. |
Category: View
The following attributes and functions determine the section of the displayed image and how it can be changed.
Attributes | Type | Description |
---|---|---|
|
| If active, the currently displayed image is fixed and will not be updated until |
|
| Position of the upper left corner of the image in the coordinate system of the control. |
|
| Scaling of the image in percent based on |
|
| At At At At |
|
| If active, the image can be moved using the mouse or touch. In the process, |
|
| If active, the image can be scaled using the mouse wheel or multitouch. In the process, |
|
| Minimum |
|
| Maximum |
|
| Point that remains fixed when scaled via the At At At When scaling using the mouse wheel, the position of the cursor always remains fixed. |
|
| Specifies the displayed section of the image in terms of a region of interest. The format is: |
Function | Description |
---|---|
| Adjusts the |
| Adjusts |
| Changes |
Category: Toolbar
The following attributes can be used to customize the toolbar of the control.
Attribute | Type | Description |
---|---|---|
|
| Toolbar display. |
|
| Selection of elements to be displayed in the toolbar. |
|
| Scaling values displayed and selectable in the |
|
| Height of the toolbar. |
|
| Width of the |
|
| Width of the |
|
| If active, values can be manually typed into the |
Category: Infobar
The following attributes can be used to customize the infobar of the control.
Attribute | Type | Description |
---|---|---|
|
| Display of the infobar. |
|
| Selection of elements to be displayed in the infobar. |
|
| Function that generates a text for the infobar from the value of the |
|
| Function that generates a text for the infobar from the value of the |
|
| Height of the infobar. |
Category: Shapes
The following attributes help to draw shapes on the image.
Attribute | Type | Description |
---|---|---|
|
| If active, a shape (based on |
|
| Shape type. Possible are:
|
|
| If active, suitable shapes can be rotated using a handle in the UI. (line, rectangle, square, ellipse, polygon) |
|
| Geometric description of the shape. Can be used to query the data of a drawn shape or to display a specific predefined shape. |
|
| If active, |
|
| Thickness of the lines of the displayed shape. |
|
| Size of the handles of the displayed shape. |
|
| Size of the clickable area for the handles of the displayed shape. Can be used to simplify editing the shape on touch panels without displaying the handles unnecessarily large. |
|
| Step size in which the rotation of the shape can be changed. For example, with a value of |
|
| Indicates whether the displayed shape is completely within the image area or not. Can be useful to check the validity of |
|
| If active, the shape can only be drawn or edited within the image. |
|
| Specifies whether |
Function | Description |
---|---|
| Deletes the displayed shape, also resetting |
Category: Thumbnail
The following attributes determine the display of a thumbnail. The thumbnail gives an overview of which section of the image is visible.
Attribute | Type | Description |
---|---|---|
|
| Display of the thumbnail. |
|
| Position of the thumbnail. |
|
| Size of the thumbnail. Determines the width of the thumbnail; the height is automatically calculated based on the aspect ratio. |
Category: Overlay
The following attributes allow objects to be overlaid on the image (e.g. as positioning or marking aids).
Attribute | Type | Description |
---|---|---|
|
| Display overlays. |
|
| Image overlaid on the displayed image. |
|
| Geometric elements overlaid on the displayed image. |
Category: Info
The following attributes can be used to obtain information about the image or specific pixels of the image.
Attribute | Type | Description |
---|---|---|
|
| Determines when
|
|
| Color of the selected image pixel. |
|
| Position of the selected image pixel in image coordinates. |
|
| Original size of the displayed image. |
|
| Display size of the displayed image. |
Events
All events are listed in the "Vision" category.
Event | Description |
---|---|
| This event is triggered if Internally, the event updates the values of the attributes |
| This event is triggered when the control receives an image. |
| This event is triggered as soon as the attribute |
| This event is triggered when a shape is set or an interaction with it is completed. |
Themed Resources
The following attributes can be used to change the appearance of sub-controls (the combo boxes in the toolbar) at the Themes settings. A detailed description of the individual attributes can be found in the standard HMI documentation.
Attribute | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|