As a prerequisite for creating an OPC UA connection, an OPC UA server must be configured on your controller and must be started.
For a description of the procedure required for starting the emulation of Schneider Electric controllers from EcoStruxure Machine Expert, refer to the How to Emulate User Guide in the EcoStruxure Machine Expert online help.
For information about starting an OPC UA server on a PacDrive LMC controller, refer to the OPC UA Server Configuration in the LMC Device Objects and Parameters part of the EcoStruxure Machine Expert online help.
For information about starting an OPC UA server on a Modicon M262 Logic/Motion Controller, refer to the OPC UA Server Configuration in the M262 Logic/Motion Controller - Programming Guide in the EcoStruxure Machine Expert online help.
|
Step |
Action |
|---|---|
|
1 |
In the view, right-click inside the table and run the command from the contextual menu. Result: A new row is added to the table with = . |
|
2 |
Select this row and configure the connection in the view. |
|
3 |
In the section, edit the parameter to enter the IP address and the port of the controller you want to connect to. Use the following format as an example, using the default port 4840: opc.tcp://127.0.0.0:4840
|
|
4 |
In the view, right-click the row you created for the connection and run the command from the contextual menu. |
|
5 |
Enter the and in the dialog box.
NOTE: If anonymous login is allowed by the OPC UA server, select the check box in the view to avoid this dialog box for future logins.
Result: The message is displayed. |
|
6 |
Verify that you are about to connect to the correct URL and you trust the certificate. Click to proceed or to cancel. Result: After the connection to the controller is established, you can see = displayed in the row of the selected connection. The available tags are read from the OPC UA server, as indicated in the view by the messages and . The controller variables can be selected within EcoStruxure Machine Expert Twin. Subscribed controller variables are listed in the view. |
The contextual menu of the view does not provide any OPC UA-specific commands apart from those described in General Commands of the Connections View.
The following settings of the view are specific to OPC UA connections:
|
Parameter |
Description |
|---|---|
|
|
|
|
|
If anonymous login is allowed in the OPC UA server (for details, refer to the description of the parameter in the OPC UA Server Configuration in the M262 Logic/Motion Controller - Programming Guide in the EcoStruxure Machine Expert online help) select this check box to avoid entering credentials. |
|
|
Enter the minimum delay (in ms) that must elapse between the OPC UA client data requests sent to the OPC UA server. Default value: 16 ms
NOTE: Consider the impact this polling frequency can have on the performance of the OPC UA server when reducing the value. If you transfer a large amount of data using an OPC UA connection, consider increasing the polling frequency to avoid slowing down the performance of the OPC UA server.
|
|
|
Enter the IP address and the port of the controller you want to connect to. Use the following format as an example, using the default port 4840: opc.tcp://127.0.0.0:4840
|
|
|
Select this check box to activate the publish/subscribe data exchange between the OPC UA client and server. |
For a description of the general settings, refer to General Parameters of the Properties View.