OPC DA
OPC DA ingestion collects current Point values on a Windows host that can access the OPC DA Server. When taosX runs on Linux, use a taosX-Agent with the COM/DCOM dependencies installed. After configuring and ingesting one Point, a successful save or connectivity check still does not replace value and quality verification.
Entry point: taosExplorer → Data Ingestion → OPC-DA.
1. Prepare an identity and one Point
Ask the source administrator for the Server host, ProgID, one readable Point, its type, current value, quality, and timestamp. Confirm that the actual service account has COM/DCOM launch, activation, and access permissions. An interactive logon user being able to browse does not mean the taosX-Agent service account can do so.
Have an authorized TDengine TSDB administrator create a separate target database in the taosExplorer Data Browser or taos CLI, for example CREATE DATABASE opcda_demo PRECISION 'ms';. Confirm that the OPC plugin matches. Configure remote DCOM permissions and firewalls according to source policy. Do not troubleshoot by granting access to all users or opening all ports.
2. Minimal configuration
- Add an OPC-DA data source, select
opcda_demo, and specify the actual Windows collection host. - Enter the service address using the host/ProgID provided by the administrator, for example the form
源主机/Matrikon.OPC.Simulation.1. Replace the example ProgID with the actual value. Confirm that the actual Windows collection process identity has the required COM/DCOM permissions, then check connectivity. - Start the Point set with a CSV template and retain only one test Point. After downloading the Point generation template, check mapping columns such as
tag_name,stable, andtbname, then upload it. Use UTF-8. - Confirm the time source, time columns, value column, and quality mapping. Check the preview or generated Point list to confirm the actual target table. Submit and start.
The Point identifier and target table name are different CSV fields and are not interchangeable. Do not use an OPC UA ns=... NodeId directly for OPC DA, or copy UA time-source strings. Follow the current DA page and template column definitions.
2.1 Connection and retries
Under Data Ingestion, click Create New Task, select OPC-DA, and enter the task name, target database, and Windows agent. In Connection Configuration, use the actual host and registered ProgID for the service address. The address below only illustrates the format.

| Field | Initial value on a new form | Usage |
|---|---|---|
| Reconnection Attempts | 100 | Controls attempts to recover the connection; does not replace source availability checks. |
| Reconnection Interval | 1000 milliseconds | Wait time in the reconnection policy. Distinguish it from the collection interval in seconds; it is not the connection-call timeout. |
| Add Point Retry Count | 100 | Retries failed Point additions; does not correct an invalid Point identifier. |
| Add Point Retry Interval | 500 milliseconds | Wait before another attempt to add the Point. |
| Maximum Reconnection Failures | 50 | Used with the reconnection policy. For persistent failures, check logs and permissions rather than merely increasing the count. |
Another Connection Configuration group after the Point set shows Connection Timeout and Collection Timeout:
| Field | Effective parameter and range | Usage |
|---|---|---|
| Connection Timeout | connect_timeout, integer 1–86400 seconds | Maximum wait to connect to the OPC server. A new form starts at 10 seconds; omitting the parameter uses 60 seconds. |
| Collection Timeout | request_timeout, integer 1–86400 seconds | Maximum wait for an individual read, browse, Point addition/deletion, metadata batch, or shutdown operation. A new form starts at 10 seconds; omitting the parameter uses 60 seconds. Initial registration is timed per Point, so registering the entire Point list may take longer. |
A timeout terminates the current collection plugin, and the task follows its failure policy. Normal sampling waits and data reporting are excluded from the read budget. Without standby addresses, normal reconnection and Point re-addition backoff are also excluded from the individual COM-call budget. Adjust budgets for large Point lists using actual operation times. Continue to investigate identity, registration, or DCOM permission errors through OPC DA connection troubleshooting.
For standalone connectivity checks or Point scans, each candidate's helper process has a total budget of connect_timeout + 3 × request_timeout + 300 seconds, including output reading. Omitting the timeout parameters gives 540 seconds. A scan may include multiple metadata batches and throttling waits. Increase timeouts for large Point lists or slow scans so the total budget covers the complete scan. When the budget expires, the current helper is terminated and reaped before the next candidate is attempted.
Older DA connectors ignored saved connect_timeout and request_timeout values; the new version honors these explicit values. Before upgrading, review existing tasks configured with 10 seconds and adjust for connection, read, and scan times. The system does not rewrite existing task parameters automatically.

Without standby addresses, the five reconnection and Point-recovery parameters in the earlier table, starting with Reconnection Attempts, apply. New forms use that table's initial values. If these retry parameters are omitted from a direct DSN or set to 0, the accompanying connection library's defaults apply; this does not disable retries or mean zero wait. After startup, find opcda connect with reconnect_times: in the logs and check the reconnection count, interval, add-Point retries, and read-failure threshold reported together. If values differ from expectations, first inspect the saved task configuration. A successful UI save does not replace verification. For complete key names and conditions, see OPC DA connection parameters.
2.2 Point list and collection configuration
On the Upload CSV Configuration File tab, click Download Data Points and first check source Point identifiers and types. Alternatively, start with Empty CSV Template, fill it in, then click Choose File to upload. Follow OPC DA Point mapping CSV for each mapping field, enable flag, and quality conversion. Some interface help still shows enable; the CSV enable-column header must be enabled. Disabling can delete the corresponding child table. Do not test uploads by disabling production Points.

Expand Collection Configuration and check Report Abnormal Values, Collection Interval, and Point maintenance settings. A new form uses a collection interval of 1 second and a Point update interval of 600 seconds. Initially keep update mode none and verify only one Point. Whether abnormal quality is retained must match target quality-column verification requirements. A running task does not prove correct abnormal-value handling.

Before submission, check source Points, target database tables, time source, and actual Windows collection location. After submission, confirm the runtime state in the task list. Start it if it is not running, then query target records. A successful save or connectivity check does not replace the value and quality verification below.
2.3 Sequential failover between redundant servers
Confirm that all candidates provide equivalent ItemIDs, types, units, and timestamp meanings, and that the actual Windows execution host's service account can access each candidate. Before use, update matching versions of taosExplorer, xnoded, taosX, Windows taosX-Agent, and its OPC plugin. Update xnoded first, then taosX and taosX-Agent, and configure standbys only after all updates finish. Older taosX-Agent or plugin versions may not recognize the new configuration; a successful UI save does not prove execution-side support.
Enter standby addresses in Failover Service Addresses in the required order, separated by ASCII commas. With standbys configured, the primary and each standby must contain exactly one host and its ProgID. Do not combine a primary multi-host list with standbys. The following connection fragment uses example addresses and ProgIDs; replace them with site values:
{
"endpoint": "opcda://192.168.10.11/Matrikon.OPC.Simulation.1",
"failover_endpoints": "opcda://192.168.10.12/Matrikon.OPC.Simulation.1,opcda://192.168.10.13/Matrikon.OPC.Simulation.1"
}
taosX starts with the primary. Only connection failure, server communication failure, or an operation timeout ends current collection and advances to the next address. A task collects from one endpoint at a time and does not proactively return from a healthy standby. If all candidates fail, that round fails. The service scheduler restarts it under the existing retry policy, starting with the primary. Standalone execution without an outer scheduler reports an error after one failed round.
Configuring standbys disables lower-level automatic reconnection to the current address. Reconnection counts, intervals, and post-reconnection Point re-addition retries apply only without standbys. An empty standby list retains the original automatic reconnection behavior. Connectivity Check succeeds at the first reachable candidate; verify standbys individually because it does not check them all.
- Failure detection, old-connection shutdown, standby connection, and the first sample create an interruption window. Intermediate device-value changes may be permanently missed; historical backfill and seamless failover are not guaranteed.
- An online server returning stale cache, unchanged values, or unchanged source timestamps is not considered failed. Individual Point errors, Bad Quality, or no output after filtering do not independently switch the entire endpoint.
- Switching may duplicate writes and does not guarantee strict exactly-once delivery. Same-primary-key rows follow the actual TDengine schema and write semantics. Standbys reuse the original task's Point list and target mapping.
- Windows taosX or taosX-Agent is still required. This does not provide execution-host redundancy or control the DCS's own primary/standby roles.
3. Verification
For a complete single-Point CSV, executable queries, and wide-table checks, see OPC DA Point mapping CSV. Query the latest records from the CSV-specified child table in the taosExplorer Data Browser or taos CLI. Check Point values, time, and quality encoding. Ask the administrator to change a Point approved for testing and confirm that its source timestamp updates, then check whether the corresponding value appears at the target. Retain table-name case. Do not assume that a new row every second is a fixed requirement.
3.1 String truncation at NUL
By default, strings are truncated at the first NUL character, retaining only the preceding portion. NUL means the actual U+0000 character, not the two visible characters \0 or an ordinary space. Numeric Points are not affected by this string option. If the actual source contains ABC, NUL, and DEF, the default written string is ABC. Do not first assume that the target field is too short.
If the full string must be retained, first use an approved test Point to check the source value and type and whether the target can accept this character. Then set truncate_at_nul=false in the source DSN, save, and restart the original task. It is not a standalone command-line flag. Do not assume a form control of the same name exists. If the setting cannot be entered, confirm the accompanying configuration method first. Do not directly edit generated files that task planning or Point updates may overwrite.
The startup log opcda string normalization configured includes the actual truncate_at_nul value. Check the log before comparing target values for the test Point. If raw retention is enabled, files contain values before truncation; do not expect them to match the default processed target strings exactly. For viewing instructions, see OPC ordinary Point-value retention. For parameter conditions, see OPC collection and runtime parameters.
3.2 Batch Points and maintenance
Besides uploading CSV, browse on the page and filter Points by root node, node ID, or node name, then configure target supertable/child-table templates and the time primary key. Before batch ingestion, preview the expanded result and check types, name conflicts, and quality mappings. Rule-based target primary-key settings are original_ts, request_ts, or received_ts, meaning source, request, and receive time respectively. Do not reuse the old spelling origin_ts.
The collection interval controls polling for all Points within a task. Split tasks if different intervals are needed. The form's initial collection interval is 1 second. For a direct DSN with the value unset or nonpositive, the plugin uses 10 seconds. These are not the same default. If the source denies access, check identity and permissions first; increasing the collection interval or UI timeout fields does not solve it.
Rule-based Point sets support None, Append, and Update Point update modes. Append only adds new Points to the running Point list. Update also removes running Points that no longer match, but removal from collection does not mean deletion of the target child table. CSV enabled=0 has a separate path that may delete the target table and historical data; do not confuse the two. For exact definitions and pre-maintenance checks, see Point updates and disabling. UA's Automatically Synchronize New Points switch does not apply to DA. Do not copy it merely because both use the OPC plugin.
To add a few Points to an existing CSV task, follow Manually add a few Points: back up the original Point list, check update mode, and complete the Add Data Points dialog using DA's tag_name source field. None performs no periodic Point-list updates. A successful append does not mean the new Point has joined the running collection. Verify that existing Points continue collection and new Points write to the correct tables. Convert descriptions, engineering units, and ranges from vendor dumps to custom TAGs using Metadata conversion and tag maintenance. Use that section's IDMP or SQL workflow for existing tags. Do not delete existing data by disabling Points or rebuilding models. Changing the Point list or sampling interval does not require reinstalling taosX-Agent.
Caching only protects data already received. Before enabling it, assess disk space, service identity, and cache-path permissions on the actual Windows collection host. See Restart, checkpoints, and store-and-forward. For raw retention, batch, and concurrency configuration and checks, see Tuning and resource control. Do not enter a Linux taosX directory as a Windows taosX-Agent directory.
4. Troubleshooting
| Symptom | Check |
|---|---|
| Server not registered or class not found | Check ProgID, component installation and architecture, and Windows collection location. |
| Access denied | Check COM/DCOM permissions with the actual service identity. Testing only in an administrator terminal is insufficient. |
| Connected but no values | Check Point identifiers, readability, quality, and Point-list enable/mapping settings. |
| Historical tables exist but new data goes to the wrong table | Check stable, tbname, time, and value columns; do not compare only Point names. |
For comparison steps covering error codes, ProgID, plugin architecture, and service identities, see OPC DA connection troubleshooting. Collect read-only evidence first. Schedule foreground comparisons and runtime-mode changes during a maintenance window; do not directly stop an agent hosting other tasks.
For other task, write, and runtime problems, see Troubleshooting by symptom.
5. Stopping, recovery, and limitations
After stopping the original task, save the Point list and identity configuration. Check new values after recovery. DA current values do not recover every historical change missed while the service was stopped. Configure store-and-forward separately according to its own conditions. For continuation from PI history, use PI historical backfill and WinCC real-time collection. Merely creating a set of new tables with the same names is insufficient.