Difference between revisions of "Edge Gateway OPC DA Adapter"
From Datonis
(Created page with " Edge Gateway Home > '''OPC DA Adapter''' == OPC DA using DCOM Protocol == === OpcDA Protocol Connection === {| class="wikitable" |server_host |Stri...") |
(OPC DA tag_id naming update) (Tag: Visual edit) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== OPC DA using DCOM Protocol == | == OPC DA using DCOM Protocol == | ||
− | === | + | === OPC DA Protocol Connection === |
{| class="wikitable" | {| class="wikitable" | ||
|server_host | |server_host | ||
|String | |String | ||
− | |ip address or host name of the | + | |ip address or host name of the OPC DA server. |
|- | |- | ||
|server_domain | |server_domain | ||
Line 16: | Line 16: | ||
|String | |String | ||
|DCOM class id for the OPC server. Details of how to get it are mentioned below | |DCOM class id for the OPC server. Details of how to get it are mentioned below | ||
+ | |- | ||
+ | |prog_id | ||
+ | |String | ||
+ | |Optional. DCOM prog id for the OPC server. | ||
|- | |- | ||
| colspan="1" |username | | colspan="1" |username | ||
Line 32: | Line 36: | ||
# Copy the corresponding value. This is your class id. Note that you need to ignore the curly braces around the ID. | # Copy the corresponding value. This is your class id. Note that you need to ignore the curly braces around the ID. | ||
− | === | + | === OPC DA Read Tag === |
{| class="wikitable" | {| class="wikitable" | ||
|tag_id | |tag_id | ||
|String | |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 | + | |Unique tag id defined in the context of the current thing_config. This is used further in metric_mappings or derived_tags or scan_tag_ids or monitor_tag_ids to refer to this tag value |
|- | |- | ||
|node_id | |node_id | ||
|String | |String | ||
− | |The | + | |The OPC DA tag definition which is present at OPC DA server e.g. Channel1.Machine1.Tag1 or ns=2;s=Channel1.Machine1.Tag1 or 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> | + | <string identifier of the tag> OR ns=<namespace id>;s=<string identifier of the tag> OR ns=<namespace id>;i=<integer identifier of the tag> |
− | |||
− | |||
|} | |} | ||
Line 72: | Line 74: | ||
[[File:dcom-5.png]] | [[File:dcom-5.png]] | ||
# Reboot the machine. Reboot is required for these changes to take effect | # Reboot the machine. Reboot is required for these changes to take effect | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 09:58, 8 December 2017
Edge Gateway Home > OPC DA Adapter
Contents
OPC DA using DCOM Protocol
OPC DA Protocol Connection
server_host | String | ip address or host name of the OPC DA 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 |
prog_id | String | Optional. DCOM prog id for the OPC server. |
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?
- In the start menu, type regedit.
- expand HKEY_CLASSES_ROOT and look for the name that matches your OPC server.
- Once found, expand it and you will find a key named CLSID
- Copy the corresponding value. This is your class id. Note that you need to ignore the curly braces around the ID.
OPC DA Read 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 scan_tag_ids or monitor_tag_ids to refer to this tag value |
node_id | String | The OPC DA tag definition which is present at OPC DA server e.g. Channel1.Machine1.Tag1 or ns=2;s=Channel1.Machine1.Tag1 or ns=0;i=2259. The format for tag is as follows:
<string identifier of the tag> OR ns=<namespace id>;s=<string identifier of the tag> OR ns=<namespace id>;i=<integer identifier of the tag> |
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.
- Create a local Windows user called “altizon” on the OPC server machine.
- Right click Computer and click Manage
- Under Computer Management -> Users and Groups -> Users, right click and select New User…
- Set an appropriate password
- Uncheck all options and then only check the Password never expires option
- Also, add it to the Administrators group
- In the start menu, in search/run, enter dcomcnfg
- Under Console Root -> Component Services -> Computers -> My Computer, right click and select properties
- In the COM Security tab, under Access Permissions
- click Edit Limits…, In the pop up window that opens, click Add… and select the user we added in step 1.
- Select both checkboxes Local Access and Remote Access under Allow
- click Edit Defaults… In the pop up window that opens, click Add… and select the user we added in step 1.
- Select both checkboxes Local Access and Remote Access under Allow
- In the COM Security tab, under Launch and Activation Permissions
- click Edit Limits… In the pop up window that opens, click Add… and select the user we added in step 1.
- Select all checkboxes under Allow
- click Edit Defaults… In the pop up window that opens, click Add… and select the user we added in step 1.
- Select all checkboxes under Allow
- Under Console Root -> Component Services -> Computers -> My Computer -> DCOM Config look for the entry corresponding to your OPC server. Right click and select Properties
- In the Identity tab, select the user to The Interactive user.
- Reboot the machine. Reboot is required for these changes to take effect