Configuring a project so that live data can be obtained from an OPC DA server
Configuring a project so that live data can be obtained from an OPC DA server
As of DBDOC 11.7, it is possible to configure projects and CIUMon so that live data from an OPC DA server can be displayed by Hyperview. This is an overview of what needs to be done in various applications in order to accomplish this.
- Configure CIUMon to connect to an OPC DA server. See Connecting to an OPC DA server. Note that part of this process involves specifying an alias. This is the string which is either specified as the opc_server_alias Custom Edit in BuildPlus, or else it must match the FIELD_TX2 value for OPC tags. It is possible in principle to run multiple CIUMons connected to different OPC DA servers, each represented by a different alias, but only if these alias strings appear in FIELD_TX2. Chains of CIUMons using Relay Mode CIUMon to get through firewalls etc work in the usual manner when OPC data is involved.
- Determine how the OPC ItemIds in your OPC DA server relate to the ABB tags in your system. Sometimes they are just the very same tags. Sometimes they are the value found in FIELD_TX3 in the tag database. There may well be other schemes that we do not yet support. Do a Custom Edit in BuildPlus and specify opc_tag_mode accordingly.
- If the OPC ItemIds are the same as the ABB tag names for the OPC tags, specify opc_tag_mode as TAGNAME as a Custom Edit.
- If the OPC ItemIds are the same as the FIELD_TX3 values for the corresponding tags, specify opc_tag_mode as FIELD_TX3 as a Custom Edit.
- If the OPC ItemIds have neither of the above relationships to the ABB tag name, contact us, so we can support the new option.
- Choose an alias which represents the OPC DA server. This can be any short string. In BuildPlus, specify it as the Custom Edit value for opc_server_alias. This alias string must match the alias specified in CIUMon (see Connecting to an OPC DA server). If no alias is specified via Custom Edit, then the value of FIELD_TX2 found in the database for the OPC tag will be used as the alias.
Note: There is not yet a way to specify in the build configuration that some OPC tags are served by one OPC DA server, and some by another, unless their FIELD_TX2 values are different (and opc_server_alias is NOT specified in Custom Edits). If this is a situation you face, please contact us.
- In Hyperview, connect in the usual manner (host:port) to the CIUMon which is connected to the OPC DA server. Connection information will be displayed in the usual manner. Live data, live loop annotations, and Watch Window data should all behave normally for OPC tags, if the Hyperview is connected to a CIUMon talking to an OPC DA server. OPC tags are those with TAGSRC = OPC in their database entries.
See also