Skip to main content

Configuration and commissioning of the OPC UA Server

The OPC UA Server can be adapted to different environments, which may require different levels of security. For this purpose, the OPC UA Server provides various configurable security features.

Important

For versions less than V3.5 SP20, changing these settings always requires the PLC to be restarted.

These values can be set by means of the Device Security Settings (OPC UA Server) of the PLC.

For more information, see the following: Using a Secure OPC UA Server

Creating a project for OPC UA access

  1. Create a new project with a CODESYS Control Win SL controller.

  2. Declare some variables of different types in the program PLC_PRG.

  3. Insert a Communication Manager object below the application.

  4. You can configure the server either based on the information model or as an OPC UA Server (with an implicit information model).

    • If you want to publish data of an OPC UA information model, then add an OPC UA Information Model object below the Communication Manager object.

      The next steps can be found under Using OPC UA Information Models.

    • If you want to exchange IEC variables of the application with other OPC UA Clients via the OPC UA Server, then add an OPC UA Server object below the Communication Manager object.

      The next steps can be found under IEC Symbol Set Configuration.

Specification-compliant configuration of the OPC UA Server

To operate the OPC UA Server according to the OPC UA specification, the following settings are required:

  1. The City location has to be configured for the certificate.

  2. An OPC UA Server certificate has to be generated

  3. The CRL checks EnableCRLChecks have to be enabled.

  4. The CommunicationMode has to be set to MIN_SIGNED or SIGNED_AND_ENCRYPTED.