Skip to main content

PI

Use one readable Point to complete PI ingestion: prepare the Windows collection environment, limit the source object scope, review the model, backfill one minute of archived data, and verify new real-time values. Topic pages cover production deployment, template-based scope expansion, and failure recovery.

Entry point: taosExplorer → Data Ingestion → PI or PI backfill.

info

PI backfill reads archived events in a specified range. PI real-time tasks receive subsequent changes. Both use the same connection and target model, but maintain independent progress and recovery state.

1. Prerequisites​

PI reads must run on a Windows host. Deploy taosX directly on that host, or connect a Windows taosX-Agent to taosX on Linux or Windows. Installing AF SDK locally on Linux cannot replace the Windows collection path.

ItemPreparationCheck
Collection softwareA PI plugin matching the taosX version, PI AF Client 2018+ (including AF SDK), and .NET Framework 4.8+; prepare Windows Server 2016+ or Windows 10+ as required by the ingestion guide.Confirm installation on the actual Windows collection host.
PI Data ArchiveHostname, actual port (default TCP 5450), one readable test Point, and a known range of archived events.Use the collection identity to check Point attributes, historical values, status, and time.
AF modeOnly AF ingestion requires the AF Server hostname, database name, and actual port (default TCP 5457).Confirm that the target database, elements, and attributes are readable in PI System Explorer.
Service identityThe Windows account actually used by the taosX or taosX-Agent service.Check the logon configuration in Windows Services. Access by an interactive user does not imply access by the service account.
Agent modeThe Windows taosX-Agent can reach the source and the intended taosX gRPC address (default 6055).Install and bring it online as described in Agent deployment and maintenance.
TDengineTarget cluster, online Xnode, separate test database, task management permissions, and table creation/write permissions.Run SHOW XNODES; in the taosExplorer Data Browser or taos CLI, and confirm the target database and permissions.

Check source network connectivity in PowerShell on the Windows collection host, replacing the hostnames with actual values. Only AF mode requires the second check:

$piHost = 'pi-archive.example.com'
Test-NetConnection -ComputerName $piHost -Port 5450
$afHost = 'pi-af.example.com'
Test-NetConnection -ComputerName $afHost -Port 5457

Expect TcpTestSucceeded to be True. If it fails, check DNS, routing, and firewalls. Even after it succeeds, verify Windows authentication and PI permissions.

1.1 Configure Windows authentication and PI permissions​

Connection fieldsIdentity usedRequired action
Username, Password, and Domain all emptyThe collection process's Windows identity.Verify the service logon account, then have the PI administrator grant access.
Username and Password both filled in, with Domain set as required by the environmentThe specified Windows account.Enter both fields together; this is not a PI internal account or a TDengine account.
warning

Entering only a username or only a password may fall back to the process identity, making the actual account different from the intended account. In production, use a dedicated service account and an organization-approved credential rotation policy. Do not grant PI write permissions.

  1. Have the PI administrator map the actual Windows identity to the appropriate PI Identity under Mappings in PI System Management Tools (SMT), and grant read access to the test Point's attributes and data.
  2. For AF mode, also grant this identity Read and Read Data permissions on the target AF database, elements, and attributes in PI System Explorer (PSE).
  3. Verify source reads with the same identity, and record one test object and its archived events.
  4. Create PI backfill under Data Ingestion in taosExplorer. Enter the task name, target database, and Windows collection agent. For Data Archive only, select PI Data Archive Only and enter the PI DA Server Name. For AF, select PI Data Archive and Asset Framework (AF) Server, enter the AF Server and database name, then check connectivity.

Field locations for a PI Data Archive-only connection

Field locations for PI Data Archive and AF Server

The hostnames in the images only illustrate the fields. Data Archive-only mode does not require installing or connecting to AF Server.

Have a TDengine TSDB administrator with the required permissions create a separate test database. Use another name if the database already exists:

CREATE DATABASE pi_demo PRECISION 'ms';

2. Complete single-Point ingestion​

The model CSV describes the mapping from source objects to target database tables. Data Archive Only uses a single-column model, with one child table per Point. AF multi-column models organize attribute columns by element. See PI model configuration files.

2.1 Filter and download the model​

  1. Select the single-column model, limit Dataset Filter to the approved test Point, and click Download Default Configuration. Do not download the entire Point list directly.
  2. Check the CSV with a UTF-8 text editor. Retain the supertable definition and corresponding Point mapping, and prevent spreadsheet software from converting Point names, dates, or long IDs.
  3. Confirm the timestamp, value, and status columns and source tags, then use Upload Configuration File. The browser download directory is not the plugin directory on the collection host.

The image selects single-column mode and shows a single-Point filter using point and pi_test_point. This name has not been verified as readable at the source. In actual operation, first confirm that the collection identity can read the Point, then enter the actual Point name and download the model.

PI single-column mode with a point filter for one Point and model download/upload

2.2 Review the single-Point model​

This example requires an actual, readable numeric Point named pi_test_point. If the name differs, replace the last row. Adjust the data type to match the source Point:

SuperTable,pi_numeric
SubTable,${point_name}
Filter,
ts,KEY,TIMESTAMP,$ts
value,COLUMN,DOUBLE,$value
status,COLUMN,INT,$status
point_name,TAG,VARCHAR(100),$point_name

pi_test_point,POINT,pi_numeric

SuperTable defines the target supertable. SubTable generates the child-table name from the Point name. ts retains the source event time. value and status store the Point value and quality status separately. The final POINT row references the defined supertable; update this row when changing the table name. An empty Filter, means no additional record filtering and does not change the dataset filter scope.

For AF multi-column mode, also check attribute value columns, status columns, and actual element IDs. A model with Template may initialize all instances of the template. Filter match counts do not represent the production collection scope. Before submission, verify the scope as described in Multi-column templates and collection scope.

2.3 Backfill one minute of archived data​

  1. In the PI backfill task already created, select pi_demo, the collection host, and the reviewed single-Point model.
  2. Enter the full start and end times of a one-minute window. Confirm that source archived events exist in this period, and record the page's time zone.
  3. Submit and start the task. Wait for the range to finish processing. Task completion does not replace data verification.

Historical backfill start and end times for PI Backfill

Query the actual window in the taosExplorer Data Browser or taos CLI. Replace the following times with the one-minute range just used:

DESCRIBE pi_demo.pi_numeric;
SELECT ts, value, status, point_name
FROM pi_demo.`pi_test_point`
WHERE ts >= '2024-01-01T00:00:00.000Z'
AND ts < '2024-01-01T00:01:00.000Z'
ORDER BY ts;

Compare source archived event times, values, and status individually. Do not treat interpolated samples as original archived events. For the complete single-Point procedure, see Backfill a historical range from PI.

2.4 Verify new real-time values​

  1. Create a PI task with the same connection and model, keeping the target within the separate test scope.
  2. Set Restart Compensation Time explicitly. Its initial value on a new form is 0 minutes. Set it explicitly if compensation is required; it is not unlimited historical backfill.
  3. Initially disable maintenance options such as automatic scope expansion, element deletion, and historical modifications. Then submit and start.
  4. Ask the administrator to produce an identifiable new value for pi_test_point. Check the source time, value, and status in the target child table.

Restart compensation time for a PI real-time task

PI model maintenance switches and batch options

Some maintenance switches shown on the page may initially be enabled. Check their actual values individually. The form values of info for log level, 1000 for batch size, and 1 second for batch delay can be used for initial small-scope verification. For direct DSN defaults, units, and precedence, see PI connection and runtime parameters. For the conditions and deletion risks of maintenance options, see PI historical backfill and real-time continuation.

3. Verification​

Compare source and target using the same source object, time zone, and window, and check quality status as well. For multi-column models, also compare by element, attribute, and event time. An unchanged attribute is not equivalent to a source null value.

4. Troubleshooting​

SymptomCheck
Missing plugin or AF SDKCheck the actual Windows collection host and the service runtime environment.
User tools can read, but the task is deniedCheck the service identity, PI Mapping, and object permissions.
Backfill produces no dataQuery the source archived range with the same identity, and check the time zone and CSV Point.
New Points are not ingestedCheck the fixed CSV, automatic discovery rules, feature switches, and modeling logs.

For other task, write, and runtime problems, see Troubleshooting by symptom.

5. Stopping, recovery, and limitations​

After stopping the original task, retain the CSV, identity configuration, progress, and files on the execution host. Check the failure window after recovery. Use bounded backfill for history outside the finite compensation range. Changing Xnodes does not automatically transfer the original task state. When historical and real-time ranges overlap, also check the boundaries and update results. See PI task maintenance and recovery for procedures, and PI historical backfill and WinCC real-time collection for PI and WinCC continuation.

6. Topic navigation​

Complete production ingestion in this order:

StepMain page
Choose direct connection, agent mode, or multi-plant aggregationPI collection options
Limit the Point, element, path, or template scopePI dataset filtering
Review single-column and multi-column models and mapping expressionsPI model configuration files
Run historical backfill and real-time continuation, and verify maintenance optionsPI historical backfill and real-time continuation
Handle interruption backfill, original-node recovery, and cross-node takeoverPI task maintenance and recovery