Variables that will be exchanged between the controller and (multiple) HMI devices using the transparent Machine Expert protocol must be published in the controller using the . They will then be available as EcoStruxure Machine Expert variables in Vijeo-Designer, EcoStruxure Operator Terminal Expert, or OPC server.
In order to get the symbol configuration functionality available, add the symbol configuration object to the application in the IECVarAccess.library is automatically added to the .
as described in the Opening the Symbol Configuration paragraph. ThisYou can define the variables to be exported as symbols in the symbol configuration editor or via pragmas (attribute symbol), which are to be added at the declaration of the variables.
{attribute 'const_replaced'}
and {attribute 'const_non_replaced'}
.
However, in any case the following is true: Constants in a global variable list (GVL) or in another POU are only available in the dialog box of the GVL or POU.
, if the GVL or POU is used in the program code, or if the compiler option is activated in theAnother possibility is provided by the SFC editor: You can define the implicitly created element flags in the element properties for export to the symbol configuration.
The name of a symbol created by the symbol configuration is composed according to the following syntax:
<application name>.<POU name>.<variable name>
Examples:
MyApplication.PLC_PRG.a
MyApplication.GVL.a
For accessing the variable, define the symbol name completely.
To open the
, proceed as follows:
Step |
Action |
---|---|
1 |
Select the node in the , click the green plus button, and select the command .Result: The dialog box will be displayed. |
2 |
In the editor. dialog box, optionally configure settings like whether to include comments or not. The settings can be modified later in the |
3 |
Click the button.Result: A node is created under the node in the . The is displayed on the right-hand side. |
For details on the variables interchange between the controller and HMI part, refer to the chapter EcoStruxure Machine Expert Controller-HMI Data Exchange.
A symbol set is a defined set of symbols. If supported by the target device, you can combine different symbols of the application to form symbol sets in the symbol configuration editor. The symbol sets information transferred to the controller with the software download. You can grant access to each symbol set for the individual user groups. The access rights are assigned in the view of the device editor.
Prerequisites for using symbol sets:
A
is available in the application.The
option is enabled in the settings of the symbol configuration.The controller has a user management enabled.
In the following example, a user group must be available that is granted the rights required for servicing the plant. The user group
is by default available for this purpose.To create a symbol set and assign access rights, proceed as follows:
Step |
Action |
Comment |
---|---|---|
1 |
Open the tab of the device editor to configure the connection to the controller. |
– |
2 |
Open the |
Result: The dialog box opens. |
3 |
Enter a name for the set: |
– |
4 |
In the toolbar of the |
Result: The symbols available in the project are displayed. |
5 |
Select the symbols you want to add to this set and save the project. |
– |
6 |
Click the button. |
Result: The view of the device editor opens. |
7 |
Click the |
Result: The display of symbol sets is synchronized with the device.
NOTE: If the user management is not yet enabled on the controller, a dialog box will be displayed, prompting you to do so.
|
8 |
Click to close the dialog box. |
– |
9 |
Select the view of the device editor, click the |
Result: The dialog box opens. |
10 |
Log in. If you log in for the first time, execute the steps as described in the chapter. |
Result: After successful login, the configuration of the device user management is displayed in the views. and |
11 |
Log in to the controller by executing the command and click to confirm that the application is downloaded to the controller. |
– |
12 |
After successful login, select the |
Results:
The access allowed for each symbol is defined in the editor (read, write, execute). |
13 |
On the left-hand side, select the symbol set |
Results:
|
You can download modifications performed on a symbol set definition to the controller by executing an online change. When the application is deleted on the controller, the symbol sets are also deleted. When building the application, you can create and save a symbol file in XML format for each symbol set.