OPC UA server example - References - SIMATIC AX - AX Hardware Engineering documentation - Hardware Engineering,

Hardware Engineering reference

Portfolio
SIMATIC AX
Product
SIMATIC AX
Software version
2.0.0-alpha1.56
Edition
08/2025
Language
English (original)
Package Name
@ax/hw-docs

The following example shows the configuration of the OPC UA Server

  • The OPC UA Server is activated by adding the OpcUaServer under Services and setting Enabled to true.
  • The server is configured to not allow unsecured connections by configuring the SecurityPolicies parameter to include Basic256Sha256Sign and Basic256Sha256SignEncrypt.
  • Permission to access the server is given to user User1 via the role OpcUaServerRole which grants the function rights OpcUAServerAccess and OpcUAManageCertificates.
  • Unauthenticated access is permitted by setting GuestAuthentication to false.
{
  "Devices": [
    {
      "Name": "Device1",
      "Modules": [
        {
          "Name": "PLC_1",
          "TypeIdentifier": {
            "OrderNumber": "6ES7 517-3AP00-0AB0",
            "Version": "V3.1"
          },
          "AccessProtection": {
            "AccessLevel": "FullAccess"
          },

          "Services": [
            {
              "Type": "OpcUaServer",
              "Enabled": true,
              "Parameters": {
                "GuestAuthentication": false,
                "SecurityPolicies": [
                  "Basic256Sha256Sign",
                  "Basic256Sha256SignEncrypt"
                ]
              }
            }
          ],

          "UserManagement": {
            "Roles": [
              {
                "Name": "OpcUaServerRole",
                "FunctionRights": [
                  "OpcUAServerAccess",
                  "OpcUAManageCertificates"
                ]
              }
            ],
            "Users": [
              {
                "Name": "User1",
                "AssignedRoles": [
                  "OpcUaServerRole"
                ]
              }
            ]
          }

        }
      ]
    }
  ]
}