Datonis:Edge Gateway OPC DA Adapter

From Datonis
Revision as of 06:47, 2 July 2017 by Rajesh (talk | contribs) (Rajesh moved page Datonis:Edge Gateway OPC DA Configuration to Datonis:Edge Gateway OPC DA Adapter)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Edge Gateway Home > OPC DA Adapter

OPC DA using DCOM Protocol

OpcDA Protocol Connection

server_host String ip address or host name of the OpcDA server.
server_domain String In case the user is a domain user, specify the Windows domain with this attribute.
cls_id String DCOM class id for the OPC server. Details of how to get it are mentioned below
username String Specify the user we added in the DCOM configuration section above
password String Specify the corresponding password

How to find the OPC server’s DCOM class id?

  1. In the start menu, type regedit.
  2. expand HKEY_CLASSES_ROOT and look for the name that matches your OPC server.
  3. Once found, expand it and you will find a key named CLSID
  4. Copy the corresponding value. This is your class id. Note that you need to ignore the curly braces around the ID.

OpcDA Protocol Tag

tag_id String Unique tag id defined in the context of the current thing_config. This is used further in metric_mappings or derived_tags or monitor_tag_ids to refer to this tag value
node_id String The OpcDA tag definition which is present at OpcDA server e.g. ns=0;i=2259. The format for tag is as follows:

ns=<namespace id>;s=<string identifier of the tag> OR ns=<namespace id>;i=<integer identifier of the tag>

For example: ns=2;s=Channel1.Machine1.Tag1

DCOM configuration on the OPC Server

The Datonis Gateway acts as a OPC client while fetching data from an OPC server. The default DCOM settings for a Windows host do not permit this communication. Thus it becomes necessary to make appropriate configuration changes so that this communication goes through.

  1. Create a local Windows user called “altizon” on the OPC server machine.
    1. Right click Computer and click Manage
    2. Under Computer Management -> Users and Groups -> Users, right click and select New User…
    3. Set an appropriate password
    4. Uncheck all options and then only check the Password never expires option
    5. Also, add it to the Administrators group
  2. In the start menu, in search/run, enter dcomcnfg
  3. Under Console Root -> Component Services -> Computers -> My Computer, right click and select properties
  4. In the COM Security tab, under Access Permissions
    1. click Edit Limits…, In the pop up window that opens, click Add… and select the user we added in step 1.
    2. Select both checkboxes Local Access and Remote Access under Allow
    3. click Edit Defaults… In the pop up window that opens, click Add… and select the user we added in step 1.
    4. Select both checkboxes Local Access and Remote Access under Allow 

Dcom-1.png Dcom-2.png

  1. In the COM Security tab, under Launch and Activation Permissions
    1. click Edit Limits… In the pop up window that opens, click Add… and select the user we added in step 1.
    2. Select all checkboxes under Allow
    3. click Edit Defaults… In the pop up window that opens, click Add… and select the user we added in step 1.
    4. Select all checkboxes under Allow

Dcom-3.png Dcom-4.png

  1. Under Console Root -> Component Services -> Computers -> My Computer -> DCOM Config look for the entry corresponding to your OPC server. Right click and select Properties
  2. In the Identity tab, select the user to The Interactive user.

Dcom-5.png

  1. Reboot the machine. Reboot is required for these changes to take effect

OPC DA using NGP Protocol

OpcDA-NGP Protocol Connection

server_url String Address url of the OpcUA server e.g. da:[ngp://guest:guest12@demo.openscada.org:2101 ngp://guest:guest12@demo.openscada.org:2101]

OpcDA-NGP Protocol Tag

tag_id String Unique tag id defined in the context of the current thing_config. This is used further in metric_mappings or derived_tags or monitor_tag_ids to refer to this tag value.
node_id String The OpcDA tag definition which is present at OpcDA server e.g. ns=0;i=2259. The format for tag is as follows:

ns=<namespace id>;s=<string identifier of the tag> OR ns=<namespace id>;i=<integer identifier of the tag>

For example: ns=2;s=Channel1.Machine1.Tag1