Creating and using the ZoneImageLayoutConfig server symbol
For storage and reuse of layouts created on the Layout page of the temperatures, one instance of the ZoneImageLayoutConfig server symbol is required per layout.
Creation of the server symbol
![]() | For each required layout a single position in the |
For this purpose it is recommended to create a dynamic array of this type. This is done in the TwinCAT HMI configuration window:
- 1. Creation of the data type
- 2. Creation of a server symbol under the category
TcHmiSrv
of the corresponding data type - 3. Setting the server symbol as persistent using the checkbox (
Persist
).
- Server symbol is created.
Using the server symbol in the configuration mode of the ZoneImageLayout control
- 1. Select ZoneImageLayout control in the Toolbox and drag it to a content.
- 2. Set
Mode
parameter under the categoryConfiguration
toConfig
. - 3. For example, using a TcHmiCombobox control to configure the number of layouts available in LiveView via the
.onSelectionChanged
event. - 4. For this purpose, a new
CASE
can be created with the value 4 for theSelectedId
parameter of the combo box. - 5. Copy and paste the
CreateBinding
function into the newCASE
and select a different array location such asZoneImageLayoutConfigList[3]
for thesymbol
transfer parameter.
- Server symbol is used correctly in configuration mode.
Using the server symbol in display mode
- 1. Select ZoneImageLayout control in the Toolbox and drag it to a content.
- 2. Under the
Configuration
category, associate theZoneImageLayoutConfig
parameter with one of the array locations of theZoneImageLayoutConfigList
server symbol and set theMode
parameter toView
. - 3. The set width and height of the ZoneImageLayout control must be set in the server symbol (
LayoutHeight
,LayoutHeightUnit
,LayoutWidth
andLayoutWidthUnit
). To do this, right-click on the server symbol in the TwinCAT HMI Configuration window and adjust the default value.
- Server symbol is used correctly in display mode.