Factorytalk Historian To Historian Interface User Guide
Factorytalk Historian To Historian Interface User Guide
Historian to Historian
Interface User Guide
ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death, property damage, or economic loss.
Attentions help you identify a hazard, avoid a hazard, and recognize the consequence.
IMPORTANT Identifies information that is critical for successful application and understanding of the product.
BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that surfaces may reach dangerous
temperatures.
ARC FLASH HAZARD: Labels may be on or inside the equipment, for example, a motor control center, to alert people to potential Arc Flash. Arc Flash will
cause severe injury or death. Wear proper Personal Protective Equipment (PPE). Follow ALL Regulatory requirements for safe work practices and for
Personal Protective Equipment (PPE).
Chapter 1
Introduction to the Historian to Reference manuals ..................................................................................... 8
Historian Interface Supported features ..................................................................................... 8
Diagram of hardware connection ............................................................ 12
Chapter 2
Principles of operation Interface startup ........................................................................................ 15
How the Historian to Historian Interface finds source points .............. 15
History recovery ......................................................................................... 17
Real-time data collection ........................................................................... 18
Performance considerations ..................................................................... 19
Data timestamps ....................................................................................... 20
Data type conversion................................................................................. 20
Interface status events .............................................................................. 20
Error handling ............................................................................................ 21
Source Historian Data Archive level failover for Historian to Historian
..................................................................................................................... 22
Tracking interface status .......................................................................... 25
UniInt interface failover support ............................................................. 25
Loss of connectivity to Data Archive ........................................................ 26
Chapter 3
Installation checklist Read-only and read-write interfaces ....................................................... 27
Disable read-write interface updates to the data source ................. 27
Data collection steps ................................................................................. 28
Interface diagnostics (optional) ............................................................... 29
Advanced interface features (optional) ................................................... 29
Chapter 4
Installation instructions Name conventions and requirements...................................................... 31
Interface directories ..................................................................................32
PIHOME directory tree........................................................................32
PIHOME64 directory tree ....................................................................32
Interface installation directory ........................................................... 33
Interface installation procedure ............................................................... 33
Silent installation procedure ............................................................... 33
Historian trust for interface authentication ............................................ 33
Install interface as Windows service ........................................................ 33
Install interface service with Interface Configuration Utility (ICU)...... 34
Install interface service manually .............................................................36
Chapter 5
Historian Point configuration Point attributes ..........................................................................................39
Tag (Historian Point name) ................................................................39
PointSource (point source)................................................................. 40
PointType (data type) .......................................................................... 40
Location1 (interface instance) ............................................................ 40
Location2 (time stamp adjustment) ................................................... 41
Location3 (status events, snapshot data, digital states, and point
logging) ................................................................................................. 41
Location4.............................................................................................. 42
Location5............................................................................................... 43
InstrumentTag .....................................................................................44
ExDesc...................................................................................................45
SourceTag ............................................................................................ 46
Scan .......................................................................................................47
Shutdown..............................................................................................47
Bufserv and PIBufss .............................................................................47
DataSecurity ........................................................................................ 48
PtSecurity ............................................................................................ 48
ExcMax ExcMin and ExcDev (exception processing) ...................... 48
Interface status digital point configuration ........................................... 48
Chapter 6
Startup command file Configure the interface with ICU ............................................................. 51
Historian to Historian Interface .............................................................. 53
Historian to Historian General: scan classes, host information and
interface installation path ................................................................... 53
Required tab ......................................................................................... 53
History Recovery tab ............................................................................54
Debug tab .............................................................................................. 57
Location tab .......................................................................................... 57
Optional tab ..........................................................................................59
Opt Cont tab ......................................................................................... 61
Source PI Server Failover tab ............................................................. 62
Chapter 7
Command line parameters General interface operation parameters..................................................65
History recovery and archive data collection parameters ..................... 68
Point attribute override parameters ........................................................ 70
Source Historian Data Archive-level failover parameters...................... 70
Sample PItoPI.bat file ................................................................................ 71
Sample PItoPI configuration file ............................................................. 72
The Historian to Historian Interface copies point data from one Data Archive
to another. Data is moved in one direction only, from the source to the target
Data Archive. Typical applications for the interface include the following:
• Isolate users from the source Data Archive to increase security,
improve load distribution, or resolve remote access issues.
• Maintain a copy of archive data on a secondary Data Archive, perhaps
as a backup.
• Create a test copy of a production Data Archive.
• Aggregate data from many Data Archives in a single Data Archive.
Note: You can also use the Historian to Historian interface for data replication in Historian
collectives, as an alternative to fanning data using buffering. Only use Historian to Historian
for data replication in a Historian collective if it is required for your system configuration or
security needs. For details about high-availability strategies, refer to the High Availability
Administration Guide.
Interface Historian Points are created on the target Data Archive. Each
interface point is configured to receive either exception (snapshot) or archive
data for a unique source point. Historian Points receive archive or exception
data from the source point. Exception data is data that has not yet been
subjected to compression. By default, all points in scan class 1 receive
exception data. Historian Points assigned to any other scan class receive
archive data.
The interface supports history recovery, which recovers data for time periods
when the interface was not running or was unable to collect data. The history
recovery period is configurable, and the default is eight hours.
Both source Data Archive-level failover and UniInt phase 2 interface-level
failover are supported. When running in source Data Archive-level failover
mode, the interface obtains data from one of two available source Data
Archives. To ensure that the interface obtains the same data regardless of
which source server is active, the source Data Archives must have identical
point definitions and data streams for all interface source points. In UniInt
failover mode, two copies of the interface are connected to the source Data
Archive at the same time. If the primary interface stops collecting data, the
backup interface assumes the primary role and continues data collection.
Failover maximizes interface data availability on the target Data Archive(s).
Source Data Archive-level failover and UniInt Phase 2 interface level failover
modes can be run simultaneously.
Supported features
Feature Support
Interface Part Number PI-IN-OS-PI-NTI
Auto Creates Historian Points * APS Connector
Point Builder Utility No
ICU Control Yes
Historian Point Types All data types are supported
Sub-second Timestamps Yes
Sub-second Scan Classes Yes
Automatically Incorporates Historian Point Attribute Yes
Changes
Exception Reporting Yes
Inputs to Historian Data Archive Scan-based only
Outputs to source Historian Data Archive No
APS Connector
AutoPointSync is a product that synchronizes the point configuration of
Historian Data Archives. The Historian to Historian APS Connector is
required to use APS with this interface.
Note: The Historian to Historian APS Connector contains a separate implementation of the procedure
to identify the source point for an interface point. If an interface instance is registered with APS,
consult the Historian to Historian APS Connector manual to confirm that the Historian to Historian
APS Connector version implements the same procedure as the interface, which is required to ensure
that the Historian to Historian APS Connector synchronizes with the same source point as the
interface. For a detailed explanation of how the interface identifies source points, refer to How the
Historian to Historian Interface finds source points on page 15.
Uses PI SDK
The PI SDK and the PI API are bundled together and must be installed on each
PI Interface node. This interface does not require the PI SDK.
History recovery
History recovery enables you to recover archive data for time periods when
the interface was not running or otherwise unable to collect data. History
recovery is performed on startup, after restoring a lost Historian Data Archive
connection and after a disruption in exception data collection. In addition,
when a new point is added to the interface, history recovery is performed on
that point. The history recovery period is configurable. The default is to
recover data for the previous 8 hours. To disable history recovery, set the time
Maximum hours of history to recover /RH command line parameter equal to
0. You can also recover data for a specified time period. If you specify a start
and end time, the interface recovers data for the specified period, then exits.
UniInt-based
UniInt stands for Universal Interface. UniInt is not a separate product or file;
it is a Rockwell Automation-developed template used by developers and is
integrated into many interfaces, including this interface. The purpose of
UniInt is to keep a consistent feature set and behavior across as many of
Rockwell Automation's interfaces as possible. It also allows for the very rapid
Disconnected Start-Up
The Historian to Historian interface is built with a version of UniInt that
supports disconnected start-up. Disconnected start-up is the ability to start
the interface without a connection to the Historian Data Archive. This
functionality is enabled by adding /cachemode to the list of start-up
parameters or by enabling disconnected startup using the ICU. Refer to the PI
Universal Interface (UniInt) User Guide for more details on UniInt disconnected
startup.
Enabling disconnected start-up not only creates cache files for the target
server, but also for the source server with the following format:
exename_hostname_id_dgcache.dat and exename_hostname_id_ptcache.dat
Note: If you are running multiple instances of the Historian to Historian interfaces, Rockwell
Automation recommends that you use individual folders to create cache files for each instance to
enable the various instances to access the cache files exclusively without any access violations.
SetDeviceStatus
The health point with the point attribute ExDesc = [UI_DEVSTAT] represents
the status of the source device. The following events can be written into this
point:
• 1 | Starting: The interface is starting.
• Good: The interface is properly communicating and reading data from
the server. The following events indicate a failure to communicate with
the server:
• 3 | 1 device(s) in error | Network communication error to source PI
server
• 3 | 1 device(s) in error | Unable to get archive data from source PI
server
• 3 | 1 device(s) in error | Unable to obtain snapshot events from source
PI server
• 3 | 1 device(s) in error | Unable to register for snapshot updates on
source PI server
• 4 | Intf Shutdown: The interface is stopped.
Refer to the PI Universal Interface (UniInt) User Guide for more information
about how to configure health points.
Failover
• Source Historian Data Archive-level Failover Support
Source Historian Data Archive-level failover maximizes interface data
availability on the target Data Archive(s). It enables the interface to
obtain data from one of two source Historian Data Archives. Each
source server must have identical point definitions and data streams
for interface source points. The interface initiates failover if the active
source data becomes stale or is not available due to network issues.
• UniInt Failover Support
UniInt Phase 2 failover provides support for cold, warm, or hot failover
configurations. The Historian to Historian Interface only supports
warm failover. In warm failover configurations, you can expect a small
period of data loss during a single point of failure transition. This
failover solution requires that two copies of the interface be installed
on different interface nodes with the primary collecting data and the
backup interface available on failure. Phase 2 failover requires each
interface have access to a shared data file. Failover operation is
automatic and operates with no user interaction. Each interface
participating in failover can monitor and determine liveliness and
failover status. To assist in administering system operations, the
ability to manually trigger failover to a desired interface is also
supported by the failover scheme. The failover scheme is described in
detail in the PI Universal Interface (UniInt) User Guide, which is a
supplement to this manual. Details for configuring this interface to
use failover are described in the *** section of this manual.
Diagram of hardware Rockwell Automation recommends that you install the interface on the same
computer as the source Historian Data Archive and push data to the pi buffer
connection
subsystem (which sends data to the Historian Data Archive) to reduce or
eliminate arising from a network outage.
Principles of operation
You can configure the interface to copy exception (snapshot) data or archive
data. For best performance, configure a separate instance of the interface for
each source Historian Data Archive. If you intend to copy both archive and
exception data, configure separate instances of the interface for each type of
data. Data throughput (events per second) can be limited by network quality
or system resources.
Interface startup On startup, the interface reads site-specific operating parameters such as
source and target Historian Data Archive, data update rates, and history
recovery settings, from its configuration file. Next, the interface connects to
the source and target Historian Data Archives. Each connection to a Historian
Data Archive is associated with a specific PI user. On the source server, this
user must have permission to read Historian Point attributes and data. On the
target server, the user must have read access for point attributes and read and
write data access for its points.
Next, the interface builds a list of target Historian Points, grouping points
internally by scan class. Each target point must have a source point. If an
invalid point configuration is detected, the point is either rejected or added to
the point list and marked as erroneous, and the interface logs the error.
After the interface builds its point lists, it calculates the time offset between
Historian Data Archives. Each participating node must be configured with the
correct system time for its time zone. During operation, the offset is checked
every two minutes. The offset is used for data time stamp adjustments (if
enabled) and to time stamp interface status events.
Finally, the server performs history recovery and begins real-time data
collection.
How the Historian to When the FactoryTalk Historian to Historian Interface loads a point, the
interface must identify the source point from which data will be collected. In
Historian Interface finds other parts of this manual, this process is referred to as mapping the interface
source points point to a source point.
The interface uses four receiving point attributes as possible links to the
source point: InstrumentTag, ExDesc, UserInt1, and Tag. However, the
Historian to Historian Interface /tn, /tnex , and /ptid parameters exclude one
or more of these attributes from mapping to the source point. For most
interface instances, none of these parameters are used. The following table
The interface performs the following steps to find the source point:
1. If the /tn, /tnex, and /ptid command line parameters are not specified,
and the InstrumentTag attribute is not a zero-length string, the
InstrumentTag value contains the source tag name and the search
ends. Otherwise, proceed to step 2.
2. If the /tn and /ptid command line parameters are not specified and the
ExDesc attribute begins with case-insensitive “STAG” followed by zero
or more spaces followed by “=”, the source tag name is extracted from
the remainder of the ExDesc value (as described in the following
paragraph) and the search ends. Otherwise, proceed to step 3.
To extract the source tag name, the interface ignores any spaces
following the “=”. If the next character is not a double quotation mark
("), it is the first character of the source tag name which extends to the
first comma or to the end of the ExDesc attribute. If the first non-
space following the “=” is a double quotation mark, the source tag
name begins with the following character and extends to the first
double quotation mark or to the end of the ExDesc attribute. The
interface extracts the source tag name from ExDesc and the search
ends.
3. If no /tn parameter and no /tnex command line parameter and either
the UserInt1 attribute is greater than zero or the /ptid parameter is
present, the UserInt1 attribute is the source point ID and the search
ends. Otherwise, proceed to the step 4. If the search ends in this step
History recovery History recovery enables you to recover archive data for time periods when
the interface was not running or otherwise unable to collect data. During
history recovery, the interface updates target Historian Points with values
from the source archive, according to the settings you configure. The interface
performs history recovery after the following events:
• During interface startup (before starting real-time data collection)
• After restoring a lost Historian Data Archive connection
• During queue overflow error recovery
• Whenever a new target point is added to the interface
You can specify the recovery period, time increments within the total recovery
period, a pause time between increments, and the maximum number of
archive events that are returned per data request. These parameters enable
you to manage the performance impact on the source and target Historian
Data Archives by throttling the data collection rate.
Time-range history recovery is configured in the interface startup
configuration file, which you edit using ICU. When time-range recovery is
enabled, the interface starts up, recovers archive data for the specified start
and end time then exits. Specify the recovery start and end times in the time
zone where the interface runs, even if the source Historian Data Archive is in
a different time zone than the machine where the interface runs. Ensure that
the target archive has enough space for the data to be recovered.
The starting point for history recovery is determined on a point-by-point
basis. If the current value for a point is more recent than the starting point of
the recovery period, history recovery begins at the point’s current value, to
prevent data overlap, streamline data retrieval, and prevent out-of-order data.
For points that collect future data and newly-created points with no archive
data, the interface performs history recovery for the total recovery period.
History recovery is performed independently for each scan class. Source data
is written to the target archive in one of three modes: append, replace or no
replace. This setting is configured on a point-by-point basis. The interface logs
the progress of recovery.
By default, during history recovery, the interface also collects real-time
exception data every five seconds. To configure this time interval using ICU,
go to the Optional tab and select the check box Set time interval between
clearing exception queue during history recovery. As it nears the end of its
Real-time data collection During real-time data collection, the interface reads events from the source
Historian Data Archive and sends them to the target server. There are two
options for determining where the source data comes from:
• Archive data
This data has passed exception testing by whatever interface accepted
the data and has passed compression testing on the source server.
However, reading data from the Historian Data Archive increases the
workload on the source server, because the data is read from disk.
• Exception data
This data has passed exception testing by the interface that accepted it
but has not passed compression testing by the source server. Reading
exception data imposes less workload on the source server because the
data resides in memory. To ensure the closest correspondence between
values on the source and target servers, you should configure identical
compression settings on the source and target servers. To configure a
Historian Point for exception data collection, you should assign it to
scan class 1. Because the snapshot value is not applicable to future tags,
future tags cannot be placed in the first scan class.
The source Historian Data Archive provides a time stamp for each data event.
The interface might adjust time stamps to account for time zone differences
and clock drift between Historian Data Archives. Each Historian Data Archive
must be configured with the correct time for its time zone. For individual
points, you can configure time stamp adjustment by setting the Location2
point attribute.
Target point definitions can be modified while the interface is running. The
interface checks with the target Historian Data Archive for point
configuration updates, every two minutes by default. These updates include
adding, editing, and removing points. Processing point updates is a low
priority for the interface. To prevent update processing from delaying data
collection, the interface processes a maximum of 25 point updates at a time. If
there are more than 25 point updates, the interface checks every 30 seconds
until all updates have been processed. If a large number of point edits are
made, consider stopping and restarting the interface, to force it to process all
edits by rebuilding its point list.
For example, if the interface is maintaining 10,000 target points with a scan
rate of 10 seconds, set the pending update limit and global update limit to at
least 100,000. You can also manage the workload by careful configuration of
scan rates for target points. Choose a small initial scan rate (for example 10
seconds), then use a performance point to determine the average time
required to complete the exception data scan and adjust the scan rate
accordingly.
Data timestamps The source Historian Server provides a timestamp for each data event. These
timestamps may be adjusted to account for time zone differences and clock
drift between Historian Servers. It is required that each Historian Server have
the correct system time for the configured time zone.
Timestamps are automatically adjusted for time zone differences when both
source and receiving servers are PI3. PI3 timestamps are based on the number
of seconds that have elapsed since Jan.1, 1970 UTC (Universal Coordinated
Time). Each UTC time stamp contains a time offset from Greenwich Mean
Time that represents the local time zone setting.
PI3 data includes time zone information that allows for automatic adjustment
to local time.
The interface can also adjust for clock drift between Historian Servers. Clock
drift is the time offset between Historian Servers after accounting for time
zone differences. An offset of 30 minutes or less is considered clock drift.
When the appropriate timestamp adjustment is configured, the time offset is
added to the timestamp provided by the source Historian Server adjusting it
to receiving Historian Server time. Timestamp adjustment is configured on a
tag-by-tag basis using the Location2 tag attribute.
Note: All computers (interface node, source and receiving Historian Server) must have the correct
system time for the configured time zone.
Data type conversion If the data types of the source and target Historian Points differ, the interface
can convert source data to compatible target data types as follows:
Source point data type Compatible target point data type
Float 16/32/64 Int16/32, Digital
Int16/32 Float, Digital
Digital Int16/32
String Digital
Interface status events The Historian to Historian interface may update a tag to indicate a specific
status event. These status events represent data that is generated by the
interface and therefore will not exist for the source tag. Three specific status
events can be generated by the interface:
Error handling When the interface encounters an error, it writes a message to the log file. If
an error is not Historian Point-specific, the interface determines whether it is
still connected to the Historian Data Archive. If the error is Historian Point-
specific, the point is then marked by the interface as erroneous and is
removed from the update list. The interface attempts to read erroneous points
every ten minutes. If an attempt succeeds, the point is restored to active data
collection.
Source Historian Data Source Historian Data Archive-level failover maximizes interface data
availability on the receiving Historian Data Archive. Source Historian Data
Archive level failover for Archive-level failover requires that two source Historian Data Archives having
Historian to Historian identical tag definitions and data streams for interface points are available.
This requirement ensures that the interface will obtain the same data
regardless of which source server is active.
Failover is enabled by specifying a primary and secondary source server in the
interface startup file. On startup, the interface attempts to establish a
connection to each source server then loads and initializes its tag list. Data
collection begins from the primary source server, making it the active node
while the secondary source server assumes the standby role.
However, if one of the source servers is unavailable on startup, the other
server is designated the active source regardless of whether it is configured to
be primary or secondary. Historian to Historian server-level failover can
happen in two scenarios:
When PEs are used to emulate ISU points, make sure digital PEs are used. The
local PE schedulers on each Historian Data Archive collective node must be
used and the PE data should not be buffered between members of the
collective. The PE should have a value of “0” which represents the
“RECEIVING DATA” state and the PE can either be triggered by a source
watchdog Historian Point or not:
• An example PE with source watchdog point, scheduled to update at
some frequency that is less than 60 seconds, but no more than the
watchdog point frequency:
IF ('*' - prevevent('Watch dog point','*')) < 60 THEN 0 ELSE 1
• An example PE that acts as a simple heartbeat without using a
watchdog point: simply set the PE to a constant of "0", which
represents the "RECEIVING DATA" digital state. Schedule it to update
on some frequency, e.g., every minute.
Historian to Historian source level failover causes the Historian to Historian
Interface to read the snapshot value of the status point on the server serving
up the data. The interface reads the status point at a hard-coded frequency
that is not configurable. The interface does not connect to nor read the
snapshot on the backup source server until failover occurs.
Debugging
Set /db=7 to enable the interface to print the value it receives from the call to
get the ISU digital state.
Note: Setting this parameter may result in extraneous logging.
Note:
• Source tag mapping by point ID is not compatible with Historian Data Archive-level failover. This is
because there is no guarantee of a point ID match between two source Historian Data Archives
unless they are part of a FactoryTalk Historian collective.
• Historian Data Archive-level failover cannot be configured when time range history recovery (/
HRONLY) is used, since the interface does not run continuously in that mode.
Tracking interface status To track interface status, create the following digital Historian Points on the
target Data Archive:
• Internal state Historian Point
Indicates whether the interface is in startup, performing history
recovery, scanning for data, experiencing network communication
errors, denied data or point access (security permissions) or
performing shutdown operations. To enable this point using ICU, go
to the PItoPI > Debug tab, check Interface Status Tag on Receiving PI
Server, and specify the name of the Historian Point.
• Failover status Historian Point
If you enable source Historian Data Archive-level failover, you can
configure a Historian Point that tracks failover status. To configure the
point using ICU, go to the PItoPI > Source PI Server Failover tab,
check Enable failover status logging, and specify the name of the
Historian Point.
UniInt interface failover UniInt Phase 2 Failover provides support for cold, warm, or hot failover
configurations. The Historian to Historian interface only supports the warm
support
configuration. In the warm configuration, you can expect a small period of
data loss during a single point of failure transition. This failover solution
requires two copies of the interface to be installed on different interface nodes
collecting data simultaneously from a single data source. Phase 2 Failover
Loss of connectivity to Data If the interface loses its connection to the Historian Server, it logs errors and
continues running normally, attempting to restore the connection to the
Archive server. Without connection to the Historian Data Archive, the interface will
continue operating without issue. Data sent will either be lost or buffered if
buffering is being used. If the interface restarts, without disconnected startup
configured the interface will not be able to load Historian Points nor collect
data until the connection to the Data Archive is restored.
Installation checklist
If you are familiar with running PI data collection interface programs, this
checklist helps you get the interface running. If you are not familiar with PI
interfaces, return to this section after reading the rest of the manual in detail.
This checklist summarizes the steps for installing this interface. You need not
perform a given task if you have already done so as part of the installation of
another interface. For example, you only have to configure one instance of
buffering for every interface node regardless of how many interfaces run on
that node.
Read-only and read-write Rockwell Automation provides both read-only and read-write options of
many interfaces. Due to the inherent security risks associated with writing to
interfaces the data source, Rockwell Automation recommends using the read- only
option when possible.
If you do not need to write to the data source, select the read-only version of
the interface. For more information about the read-only version of the
interface, or if you are migrating from a read-write version to a read-only
version and want to view the migration procedure, refer to the Read-Only-
Read-Write-Interfaces-FAQ.pdf in the Common
Files\Rockwell\Help\FactoryTalk Historian to Historian Interface 3.10.01
directory in the Program Files (32-bit operating system) or Program Files
(x86) (64-bit operating system) folder.
• If a read-only version is not available, disable interface updates to the
data source. For more information, refer to the section "Disable read-
write interface updates to the data source" in this document.
• If you need to write to the data source, select the read-write version of
the interface and secure your points in the following ways:
• Create an output point file that is secured so that only authorized
users can change it. For more information, refer to the PI Universal
Interface (UniInt) Framework User Guide.
• Isolate output points using a separate interface instance from the
input point interface instance.
Disable read-write Rockwell Automation recommends using the read-only option of the
interface whenever possible. If a read-only option is not available, perform the
interface updates to the
following steps to disable outputs using ICU to secure the data source.
data source
Data collection steps The data collection steps below are required.
To collect Data
1. Confirm that you can use SMT to configure Historian Data Archive.
You do not need to run SMT on the same computer on which you run
this interface.
2. If you are running the interface on an interface computer, edit the
Historian Data Archive’s Trust table to allow the interface to read
attributes and point data. If a buffering application is not running on
the interface computer, the PI trust must allow the interface to write
data.
3. Run the installation kit for the Interface Configuration Utility (ICU) on
the interface computer if the ICU will be used to configure the
interface. This kit runs the PI SDK installation kit, which installs both
the PI API and the PI SDK.
4. Run the installation kit for this interface. The kit also runs the PI SDK
installation kit which installs both the PI API and the PI SDK if
necessary.
5. If you are running the interface on an interface computer, check the
computer’s time zone properties. An improper time zone
configuration can cause the Historian Data Archive to reject the data
that this interface writes.
6. Run the ICU and configure a new instance of this interface. Essential
startup parameters for this interface are:
• Point Source (/PS=x)
• Interface ID (/ID=#)
• Historian Data Archive (/Host=host:port)
• Scan Class (/F=##:##:##,offset)
7. Use a data source-specific connection tool to confirm connection
between the interface computer and the device.
8. If you will use digital points, define the appropriate digital state sets.
9. Add the X, Y, and Z states to the system digital state set.
10. Build input tags for this interface.
PtSecurity must permit read access for the PI identity, group, or user
configured in the PI trust that is used by the interface. DataSecurity
must permit read access (buffering enabled) or read/write access
Interface diagnostics Perform the following interface diagnostic procedures to implement data
gathering mechanisms on your interface.
(optional)
Installation instructions
Name conventions and In the installation procedure below, it is assumed that the name of the
interface executable is
requirements
<interface name>.exe and that the startup command file is called <interface
name>.bat (where you replace <interfacename> with the name of your actual
interface).
For 64-bit operating systems, a typical pipc.ini file contains the following
lines:
[PIPC]
PIHOME=C:\Program Files(X86)\Rockwell Software\FactoryTalk
Historian\PIPC
The above lines define the root of the PIHOME directory on the C: drive. The
PIHOME directory does not need to be on the C: drive. Rockwell Automation
recommends using the paths shown above as the root PIHOME directory
name.
Note: Restrict the Windows accounts that can create or write files in the %PIHOME% folder and
subfolders.
Interface installation The installation kit for the read/write version will automatically install the
interface to: PIHOME\Interfaces\<interfacename> (where <interfacename> is
directory the name of your actual interface).
Note: PIHOME is defined in the pipc.ini file.
Interface installation The interface setup program uses the services of the Microsoft Windows
Installer. Windows Installer is a standard part of Windows operating
procedure systems. To install, run the appropriate installation kit.
• Interface: <interfacename>_#.#.#.#_.exe
procedure The silent.ini file is included in the interface installation kit. You can make
site-specific alterations to the file as needed. Refer to the silent.ini file for
further information and descriptions of available arguments.
Note: Please note all other modules in the interface installation kit are configured to be
installed by default.
Historian trust for interface A Historian Interface usually runs on an interface computer as a Windows
service, which is a non- interactive environment. In order for an interface to
authentication authenticate itself to a Historian Data Archive and obtain the access
permissions for proper operation, the Historian Data Archive must have a
trust that matches the connection credentials of the interface. For more
information on interface security and trusts, refer to the PI Universal Interface
(UniInt) User Guide in the installation media.
Install interface as The interface service can be created, preferably, with the Interface
Configuration Utility, or can be created manually.
Windows service
Note: For improved security, Rockwell Automation recommends running the interface service under a
non- administrative account, such as a Windows built-in service virtual account, the built-in Network
Service account, or a non-administrative account that you create.
• Password
If a Windows User account is entered in the Log on as text box, then a
password must be provided in the Password text box, unless the
account requires no password.
• Confirm password
If a password is entered in the Password text box, then it must be
confirmed in the Confirm password text box.
• Dependencies
The Installed services list is a list of the services currently installed on
this machine. Services upon which this interface is dependent should
be moved into the Dependencies list using the button. For
example, if API Buffering is enabled, then Bufserv or PIBufss should be
selected from the list at the right and added to the list on the left. To
remove a service from the list of dependencies, use the button,
and the service name will be removed from the Dependencies list.
When the interface is started (as a service), the services listed in the
dependency list will be verified as running (or an attempt will be made
to start them). If the dependent service(s) cannot be started for any
reason, then the interface service will not run.
Note: Please see the Historian Log and Windows Event Logger for messages that may
indicate the cause for any service not running as expected.
Add button
To add a dependency from the list of Installed services, select the
dependency name, and click the Add button.
Remove button
To remove a selected dependency, select the service name in the
Dependencies list, and click the Remove button. The full name of the
service selected in the Installed services list is displayed below the
Installed services list box.
• Startup type
Install interface service You can access help for installing the interface as a service at any time by
manually using the following command:
interfacename.exe /help
2. Check the Services control panel to verify that the service was added
successfully.
The services control panel can be used at any time to change the
interface from an automatic service to a manual service or vice versa.
The service installation commands in this section create an interface
service that runs under a low-privilege built-in account.
On Windows 7 and Server 2012 and later, the service logs on as the
service virtual account. For earlier versions of Windows, the service
logs on as Network Service.
Note: For best security, run this interface service under an account with minimum privileges,
such as a Windows service virtual account, the built-in Network Service account, or a non-
administrative account that you create.
The services control panel can change the account that the interface
service runs under. Changing the account while the interface service is
running does not take effect until the interface service is restarted.
The Historian Point is the basic building block for controlling data flow to and
from the Historian Data Archive. A single point is configured for each
measurement value that needs to be archived.
Point attributes Point attributes are dependent upon the configuration of your interface. Use
the point attributes below to define the Historian Point configuration for the
interface, and to identify the data you wish to transfer.
UniInt provides exception reporting, while Historian Data Archive or PIBufss
provides data compression. Both are important aspects of data collection and
archiving.
Tag (Historian Point name) The Tag attribute (or tag name) is the name for a point. There is a one-to-one
correspondence between the name of a point and the point itself. Because of
this relationship, Historian Data Archive documentation uses the terms "tag"
and "point" interchangeably.
Follow these rules for naming Historian Points:
• The name must be unique in the Historian Data Archive.
• The first character must be alphanumeric, the underscore (_), or the
percent sign (%).
• Control characters such as linefeeds or tabs are illegal.
• The following characters also are illegal: * ' ? ; { } [ ] | \ ` "
Tag length
Depending on the version of the PI API and the Historian Data Archive, this
interface supports Tag attributes whose length is at most 255 or 1023
characters. The following table indicates the maximum length of this attribute
for all the different combinations of PI API and Historian Data Archive
versions.
Supported tag length
PI API Historian Data Archive Maximum Length
1.6.0.2 or later 3.4.370.x or later 1023
1.6.0.2 or later Earlier than 3.4.370.x 255
Earlier than 1.6.0.2 3.4.370.x or later 255
Earlier than 1.6.0.2 Earlier than 3.4.370.x 255
PointSource (point source) PointSource is an identifier that associates a Historian Point with a PI
interface instance, enabling the interface to query the Historian Data Archive
for the points that it updates. This field is not case- sensitive. In the interface
(batch) startup file, the point source is specified using the /PS command-line
parameter.
The following point sources are reserved. Do not configure them for interface
instances.
Reserved point sources
Point Source Reserved By
T Totalizer Subsystem
G and @ Alarm subsystem
R Random interface
9 RampSoak interface
C Performance equations subsystem
PointType (data type) PointType specifies the data type of the point. Typically, item data types do
not need to match Historian Point data types exactly, but the data types must
be compatible. For example, integer values from a device can be sent to
floating-point or digital PI tags. Similarly, a floating-point value from the
device can be sent to integer or digital Historian Points, although the values
might be truncated.
Location1 (interface Location1 specifies the instance of the interface to which the Historian Point
belongs. The value of this attribute must match the ID configured for the
instance) interface instance. This setting plus PointSource identify the interface
instance that writes to a particular point. (/ID).
Location2 (time stamp Location2 is used to specify how data time stamps are adjusted. The source
Historian Data Archive supplies a timestamp for each data event. Users have
adjustment) the option of adjusting these timestamps to account for time differences
between Historian Data Archives. It is required that each Historian Data
Archive have the correct system time for its configured time zone. See section
Data timestamps on page 20 for a complete discussion.
Valid settings are as follows:
Location2 Value Adjust for Clock Drift* Truncate Sub-second
Time stamps**
0 or 1 -- --
2 or 3 Yes --
4 or 5 -- Yes
6 or 7 Yes Yes
Location3 (status events, Location3 is used to configure how the interface handles interface status
events, snapshot data, point-level debugging, and the writing of unexpected
snapshot data, digital digital states received from the source Historian Point to the target Historian
states, and point logging) Point.
Interface status events include IO Timeout and Access Denied events. IO
Timeout status events result in a data gap for periods of Historian Data
Archive disconnection. Refer to the section Interface status events on page 20
for a complete discussion.
If a tag is configured for archive data collection, this attribute also specifies
whether or not the snapshot value is included with each scan update. Points
configured for exception collection will always include the snapshot.
For non-digital type Historian Points, if the source Historian Point contains a
SYSTEM digital state, this attribute specifies whether or not the target
Historian Point is updated with the unexpected SYSTEM digital state. For
digital type Historian Points, if the source Historian Point contains a SYSTEM
digital state or an unexpected digital state value instead of an expected value,
this attribute specifies whether or not the target Historian Point is updated
with the SYSTEM digital state or the unexpected digital state value.
Location4
Scan-based inputs
For interfaces that support scan-based collection of data, Location4 defines
the scan class for the Historian Point. The scan class determines the frequency
at which input points are scanned for new values. In addition, points in the
first scan class will be configured for exception data collection. Points in all
other scan classes will be configured to collect archive data.
Location5 Location5 attribute is used for setting the write mode for sending archive
data to the receiving Historian Data Archive. Data can be written to Historian
Data Archive in three modes:
1. ARCAPPEND
2. ARCREPLACE
3. ARCNOREPLACE
The following table lists and describes the supported write modes for PI3:
Location5 Write Mode Description
0 ARCAPPEND Add archive event regardless of existing
(Default) Archive and Snapshot events.
Data Default snapshot behavior is to append data if
event at timestamp exists.
1 or 3 ARCNOREPLACE Add archive event unless event(s) exist at same
Archive Events Only time.
Default snapshot behavior is to append data if
event at timestamp exists.
2 ARCREPLACE Add archive event, replace if event at same
time.
Default snapshot behavior is to append data if
event at timestamp exists.
4 ARCREPLACE Add archive or snapshot event, replace if event
Archive and Snapshot at same time.
Events
5 ARCREPLACE Add archive event, replace if event at same
Future Tags time.
Must be set for future tags.
WARNING:
• The PI Buffer Subsystem v3.4.375.38 only supports writing to the archive in ARCNOREPLACE
mode. ARCNOREPLACE mode prevents the Historian to Historian interface from honoring
Location5 archive write options and can lead to data loss. Rockwell Automation recommends
using a newer version of PI Buffer Subsystem to avoid this issue.
• By default (Location5 = 0) in-order data sent to the target server's snapshot will flow into the
archive in ARCAPPEND mode; however, Location5 can be set to override the default behavior
(Location5 = 2 or Location5 = 4) and replace data in the target Historian Data Archive. Using
the override behavior can lead to mismatches between data in the source and target Historian
Data Archives, since the default behavior on the source server is to append duplicate events.
The write order established by Location5 applies to both in-order and out-of-
order data received from the source Historian Data Archive. The write order
established by Location5 also applies to all three modes of source Historian
Data Archive data retrieval modes:
• Exception based source data retrieval for Historian Points configured
to scan class 1 (Location4 = 1).
• Archive based source data retrieval for Historian Points configured to
scan classes other than 1 (Location4 > 1).
• History recovery mode, specified using either the command line
parameter /HRONLY or by using the HISTONLY INI file setting.
InstrumentTag Note: If the source tag name length exceeds 80 characters, users must use the UserInt1 attribute
for source point mapping. This is due to a limitation with the PI API programming library which
supports tag names of 80 characters or less for point ID resolution.
Length
Depending on the version of the PI API and the Historian Data Archive, this
interface supports an InstrumentTag attribute whose length is at most 32 or
1023 characters. The following table indicates the maximum length of this
attribute for all the different combinations of PI API and Historian Data
Archive versions.
PI API Historian Data Archive Maximum Length
1.6.0.2 or later 3.4.370.x or later 1023
1.6.0.2 or later Earlier than 3.4.370.x 32
Earlier than 1.6.0.2 3.4.370.x or later 32
Earlier than 1.6.0.2 Earlier than 3.4.370.x 32
If the Historian Data Archive version is earlier than 3.4.370.x or the PI API
version is earlier than 1.6.0.2, and you want to use a maximum InstrumentTag
length of 1023, you need to enable the PI SDK. See ***PI SDK Options for
information.
ExDesc
Length
As an alternative to mapping Historian Point names, you can specify the
unique PointID of the source point in this attribute of the target point. The
advantage of this approach is that the mapping remains valid if the source
point is renamed. Due to a limitation of the PI API, if the source point name is
long than 80 characters, you must use this approach to mapping.
If the Historian Data Archive version is earlier than 3.4.370.x or the PI API
version is earlier than 1.6.0.2, and you want to use a maximum ExDesc length
of 1023, you need to enable the PI SDK. Refer to PI SDK options on page 79 for
information.
Performance points
For UniInt-based interfaces, the extended descriptor is checked for the string
"PERFORMANCE_POINT". If this character string is found, UniInt treats this
point as a performance point.
Note: If event-based update tags are added to the interface and the interface is configured for
source Historian Server failover it may result in unexpected behavior. For example the interface may
get into a loop where it fails over after history recovery. It may print debug messages saying that
source PI status tag has value out of range (istat=0). Removing any event- based tags (ExDesc
attribute with Event=<tag>) from the interface will resolve this issue. Historian to Historian does not
support event-based updates.
SourceTag This interface does not support output tags (points that write data to the
point source).
Scan By default, the Scan attribute has a value of 1, which means that scanning is
turned on for the point. Setting the Scan attribute to 0 turns scanning off. If
the Scan attribute is 0 when the interface starts, a message is written to the
log and the point is not loaded by the interface. There is one exception to the
previous statement.
If any Historian Point is removed from the interface while the interface is
running (including setting the Scan attribute to 0), SCAN OFF will be written
to the Historian Point regardless of the value of the Scan attribute. Two
examples of actions that would remove a PI point from an interface are to
change the point source or set the Scan attribute to 0. If an interface-specific
attribute is changed that causes the point to be rejected by the interface,
SCAN OFF will be written to the Historian Point.
Shutdown The Shutdown attribute is 1 (true) by default. The default behavior of the PI
Shutdown Subsystem is to write the SHUTDOWN digital state to all
Historian Points when Historian is started. The timestamp that is used for the
SHUTDOWN events is retrieved from a file that is updated by the Snapshot
Subsystem. The timestamp is usually updated every 15 minutes, which means
that the timestamp for the SHUTDOWN events will be accurate to within 15
minutes in the event of a power failure. For additional information on
shutdown events, refer to Historian Data Archive manuals.
Note: The SHUTDOWN events that are written by the PI Shutdown Subsystem are independent of the
SHUTDOWN events that are written by the interface when the following command-line parameter is
specified:
/stopstat=Shutdown
Bufserv and PIBufss It is undesirable to write shutdown events when buffering is being used.
Bufserv and PIBufss are utility programs that provide the capability to store
and forward events to a Historian Data Archive, allowing continuous data
collection when the Historian Data Archive is down for maintenance,
upgrades, backups and unexpected failures. That is, when the Historian Data
Archive is shutdown, Bufserv or PIBufss will continue to collect data for the
interface, making it undesirable to write SHUTDOWN events to the PI points
for this interface. Disabling Shutdown is recommended when sending data to
a Highly Available Historian Data Archive collective. Refer to the Bufserv or
PIBufss manuals for additional information.
DataSecurity The PI identity in the PI trust that authenticates the interface must be
granted read access to the DataSecurity attribute of every Historian Point
that the interface services. If the interface is used without a buffering
application, write access also must be granted. (If the interface is used with a
buffering application, the buffering application requires write access but the
interface does not.)
PtSecurity The PI identity in the PI trust that authenticates the interface must be
granted read access to the PtSecurity attribute of every Historian Point that
the interface services.
ExcMax ExcMin and ExcDev Exception reporting enables you to capture the minimum amount of data
required to meaningfully represent a trend. The following parameters
(exception processing) configure exception reporting in the Historian interface.
• ExcMax: The maximum time period allowed between sending values
to the Historian Data Archive.
• ExcMin: The minimum time period between values sent to the
Historian Data Archive.
• ExcDev: The minimum change from the last value sent to the
Historian Data Archive required for the interface to send a new value.
Exception processing is not performed for queries that include Historian
annotations: all data retrieved by such queries is archived.
To further filter the amount of data that is captured, you can configure a tag's
compression settings so that only meaningful deviations are archived. For
more information about exception processing and compression, see the PI
Universal Interface (UniInt) Framework User Guide in the installation media.
Interface status digital The following procedure describes how to create and configure interface
status points. Create these status points on the receiving Historian server.
point configuration
First create digital state sets for the status points. The following tables display
the digital state set definitions:
• Digital states for the Internal Status point digital state set:
Digital State String
0 STARTUP
1 HISTORYRECOVERY
2 SCANNING
3 SHUTDOWN
4 ACCESSDENIED
5 SRCDISCONNECT
6 RCVDISCONNECT
• Digital states for the Failover Status point digital state set:
Digital State String Description of use by the interface
Command-line parameters can begin with a forward slash ( /)or with a dash ( -
). For example, the /ps=M and -ps=M command-line parameters are
equivalent.
ICU The Interface Configuration Utility provides a graphical user interface for
configuring Historian interfaces. If the interface is configured by the ICU, the
batch file of the interface (PItoPI.bat) will be maintained by the ICU and all
configuration changes will be kept in that file and the Historian Module
Database. The procedure below describes the necessary steps for using ICU to
configure the Historian to Historian interface.
3. Browse to the FTPItoPI.exe executable file. Then, enter values for Host
PI Server/Collective, Point Source, and Interface ID#. Interface name
as displayed in the ICU (optional) will have PI- added as a prefix to this
name and it will be the display name in the services menu. The
Note: In this example the host PI Server is S10WIN2016DC. To configure the interface to
communicate with a remote PI Server, select Connections on the ICU Interface menu
and select the default server. If the remote node is not present in the list of servers, it
can be added.
5. Once the interface is added to ICU, near the top of the main ICU
window, the interface Type should be PItoPI. If not, use the drop-
down box to change the interface Type to PItoPI.
6. Click Apply to enable the ICU to manage this instance of the Historian
To Historian interface.
7. Make selections in the interface-specific page (that is, "PItoPI ") that
allows you to enter values for the startup parameters that are
particular to the Historian to Historian interface. Since the Historian
to Historian interface is a UniInt-based interface, in some cases you
will need to make appropriate selections in the UniInt page, which
configures UniInt features through the ICU.
To set up the interface as a Windows service, use the Service page. This
page allows configuration of the interface to run as a service as well as
starting and stopping of the interface service. The interface can also be
run interactively from the ICU. To do that, select Start Interactive on
the Interface menu.
For more detailed information on how to use the above-mentioned
and other ICU pages and selections, please refer to the Historian
Historian to Historian The Historian to Historian ICU Control for ICU has seven tabs. A yellow text
box indicates that an invalid value has been entered or that a required value
General: scan classes, host has not been entered.
information and interface
installation path
Click PItoPI below General in the left hand pane to begin configuring the
seven tabs of the ICU Control.
Required tab When All Scan Classes is selected in the Settings for list, the first tab will be
titled Required. This is because the information provided in this first tab is
required when selecting configuration for all scan classes, but not for each
Additional Parameters
This Additional Parameters box is provided for any additional parameters
that the current ICU Control does not support.
The example above will recover two hours of data from the source to receiving
system; put it into the receiving PI system snapshot for all points and then
exit. This switch will override the normal checking for the most recent
snapshot time in the receiving database, thus out of order data may result.
When time-range history recovery is enabled, the value specified by the /RH
parameter is overridden. (command line parameter /HRONLY=dd-mmm-
yy:hh:mm:ss,dd- mmm-yy:hh:mm:ss)
Start history recovery beginning with the first value prior to the start
time
If the Time Range History Recovery controls are enabled, you can check the
Start history recovery beginning with the first value prior to the start time box
to retrieve history for all the points starting from the value immediately prior
Debug tab
Debug Parameters
The Debug Levels parameter is used to set a debug level for debug messaging
per scan class. Check all types of debug messages that you would like to see
logged. Any combination of debug levels can be applied. (command line
parameter /DB= #,#,#,# ... )
Location tab
Override Location 1
Ignore Location1 for each tag and load all tags configured for the specified
point source regardless of Location1 and interface ID values. ( command line
parameter /C1)
Override Location 2
Ignore Location2 for each tag and set Location2 value to be this number for all
interface tags. (command line parameter /C2= x)
Override Location 3
Ignore Location3 for each tag and set Location3 value to be this number for all
interface tags. (command line parameter /C3= x)
Override Location 4
Ignore Location4 for each tag. The value used here should be 1, to have all
points for the interface sign up for exceptions, or 2, to have all points retrieve
history only. (command line parameter /C4= x)
Override Location 5
Ignore Location5 for each tag and set all points for the interface to the same
value of this parameter (i.e., 0, 1, 2, 3, 4, or 5). (command line parameter /C5=x)
Optional tab
WARNING: If this parameter is not set, the I/O Timeout state written at reconnection will prevent
history from being recovered for the period of the disconnection. (command line parameter /TS)
The following table lists the interface-specific command line parameters used
in the interface startup batch file to configure settings. These parameters are
provided for debugging purposes to help you read the file. To ensure a
correctly-formatted file, use the Interface Configuration Utility to configure
the interface.
In addition to interface specific parameters, all UniInt interfaces support a
common set of parameters. For details, refer to the PI Universal Interface
(UniInt) User Guide.
/f=0.5,0.2 /f=1,0
Wall Clock Scheduling
Scan classes that strictly adhere to wall clock scheduling are
now possible. This feature is available for interfaces that run
on Windows and/or UNIX. Previously, wall clock scheduling
was possible, but not across daylight saving time. For
example, /f=24:00:00,08:00:00 corresponds to 1 scan a day
starting at 8 AM. However, after a Daylight Saving Time
change, the scan would occur either at 7 AM or 9 AM,
depending upon the direction of the time shift. To schedule
a scan once a day at 8 AM (even across daylight saving time),
use / f=24:00:00,00:08:00, L. The, L at the end of the scan
class tells UniInt to use the new wall clock scheduling
algorithm.
/id=x The /id parameter is used to specify the interface identifier.
Required The interface identifier is a string that is no longer than 9
characters in length. UniInt concatenates this string to the
header that is used to identify error messages as belonging
to a particular interface. Refer to Error and informational
messages from the Historian to Historian Interface on page
77 for more information. The /id parameter corresponds to
the Location1 point attribute to determine tags loaded for an
interface instance.
/ist=tagname Name of interface status point.
Optional /ist=<tagname>
tagname is a digital point on the target Historian Data
Archive.
/oc=# Number of seconds between calculating time offset between
Optional Default: /oc=30 the interface and Historian Data Archive nodes.
/omf_clear Clears the entries in the Windows Credential Manager for the
corresponding service name and the Run-As account. To
activate it, perform the following actions:
1. Stop the interface.
2. Add the /omf_clear command line option through the
Additional Parameters input in ICU.
3. Start the interface.
4. Update the service-name.config file that is in the same
directory as the interface executable, providing the
desired username/password, or clientid/clientsecret,
and restart the interface.
Note: This parameter is only recognized when the interface
is started as a service. After it finishes clearing the entries
in the Windows Credential Manager, the interface service
stops.
/ps=x The /ps parameter specifies the point source for the
Required interface. X is not case sensitive and can be any single or
multiple character string. For example, /ps-P and ps=p are
equivalent.
/src_host=name:5450 Name or Historian address of source Historian Data Archive.
Required /src_host=node_name:tcpip_port
INI File Setting: SourceHost The port number is always 5450.
parameters /fd=#(Unit) Optional Default: For future tags, sets how far into the future the interface
/fd=0s should search for data. Available units are seconds (s),
minutes (m), hours (h), days (d), months (M), and years (y).
Only a single unit can be used. Units are case-sensitive.
For example, /fd=30d would mean that each scan, the
interface searches for values between the time of the last
scan and the current time + 30 days.
By default, the interface does not search into the future.
Note: 1M=30d and 1y=365d.
/hronly [=<start,end>] Optional INI Specifies the time range to be recovered. The interface
File Setting: HistOnly recovers data for the specified period, then exits. To disable
exception data collection, omit time period.
Specify the times using Historian time string formats with a
colon or underscore separating the date and the time:
/hronly=dd-mmm-yy:hh:mm:ss,dd-mmm-yy:hh:mm:ss
or
/hronly=dd-mmm-yy_hh:mm:ss,dd-
mmm-yy_hh:mm:ss For example:
/hronly=10-dec-98:10:00,10-
dec-98:12:00
or
/hronly=10-dec-98_10:00,10-dec-98_12:00
Time stamps should use the interface node's local time.
Note: Historian Data Archive-level failover cannot be
configured when /hronly is used.
/hrpause=# Milliseconds to pause between points during history
Optional recovery. Used to throttle archive data retrieval during
INI File Setting: HistPause history recovery.
Default: /hrpause=0
/mh=x Supported for target Historian Data Archive version 3.3 or
Optional later.
Default: /mh=1000 Minimum: Sets the maximum number of archive events retrieved per
/mh=1 Maximum: /mh=10000 data request. If more than the maximum exist, the interface
makes multiple calls until all events are retrieved for the
time period. Increasing the maximum can increase data
throughput for archive data retrieval.
/ns Start history recovery beginning with the first value prior to
Optional the start time. By default, recovery begins with the first
value after the start time.
/rh=# Hours of history recovery to perform. No maximum is
Optional INI File Setting: enforced, but be sure you have sufficient disk space for the
HistRecovery archive files on the target server computer.
Default: /rh=8
/rh_inc=# Time increments within the total /rhrecovery period.
Optional For example, if /rh=48 and /rh_inc=24, the interface cycles
INI File Setting: MaxArcTimespan through the point list twice. On the first cycle, the first 24-
Default: /rh_inc=24 hour period is recovered. On the second cycle, the second
24- hour period is recovered.
/rh_qcheck=# For exception data scan classes, specify how often to clear
Optional the exception queue on the source Historian Data Archive
Default: /rh_qcheck=5 during history recovery.
To prevent queue overflow, the interface periodically
collects exceptions from the source Historian Data Archive
during history recovery. You can adjust this time interval to
tune history recovery performance.
/me=# Sets the maximum number of exception events retrieved
Optional per data request. A large count reduces the number of calls
Default: /me=5000 required to read exception updates. A small count reduces
the time to complete each request (for troubleshooting
network timeout issues).
/ssu1=tagname Name of status tag for the /src_host source Historian Data
Required Archive.
/ssu1=<tagname>
Required for monitoring source data quality (current or stale
data).
/ssu2=tagname Name of status tag for the / sec_src source Historian Data
Required Archive.
/ssu2= <tagname>
Required for monitoring source data quality (current or stale
data).
REM===========================================================
====
REM
REM PItoPI.bat
REM
REM Sample startup file for the Historian to Historian Interface
REM
REM===========================================================
====
REM
REM Rockwell Automation strongly recommends using ICU to modify startup
files.
REM
REM Sample command line
REM
.\PItoPI.exe ^
/host=XXXXXX:5450 ^
/src_host=XXXXXX:5450 ^
/ps=PItoPI ^
/id=1 ^
/f=10
REM End of PItoPI.bat File
Message logs The location of the message log depends upon the platform on which the
interface is running.
For more information about logs for interfaces running on Windows, see REF
UniIntMessageLogging \* MERGEFORMAT UniInt Interface Message
Logging for UniInt 4.5.0.x and later Interfaces.
Messages are written to the log file at the following times:
• When the interface starts, many informational messages are written to
the log. These messages include the version of the interface, the
version of UniInt, the command-line parameters used, and the
number of points.
• As the interface loads points, messages are sent to the log if there are
any problems with the configuration of the points.
• If the UniInt /dbUniInt parameter is found in the command-line, then
various informational messages are written to the log file.
PI SDK options
To access the PI SDK settings for this interface, select this interface from the
Interface list and click UniInt - PI SDK in the Parameter Category pane.
Option Description
Disable PI SDK Select this option to set the interface not to use the
PI SDK. The command line equivalent for this option
is /PISDK=0.
Use the Interface's default This option does not determine whether the
setting interface uses the PI SDK.
Enable PI SDK Select this option to set the interface to use the PI
SDK. Choose this option if the Historian Data
Archive version is earlier than 3.4.370.x or the PI API
is earlier than 1.6.0.2, and you want to use extended
lengths for the Tag, Descriptor, ExDesc,
InstrumentTag, or PointSource point attributes.
P on page 83
S - T on page 85
B-H
-B-
Buffering
n. In the Historian System, buffering is implemented as a service that stores
and forwards events to a Historian Data Archive server or collective. When the
server or collective is unavailable for any reason, the buffering service
temporarily stores the data from Historian System applications running on
the buffered computer. When the connection with Historian Data Archive is
restored, the buffering service sends all the stored data from the buffer to
Historian Data Archive in chronological order.
-H-
Historian Point
n. A single data stream stored by Historian Data Archive. For example, a
Historian Point might store the flow rate from a meter, a controller's mode of
operation, the batch number of a product, text comments from an operator,
or the results of a calculation.
I-N
-I-
ICU
The acronym for Interface Configuration Utility.
ICU Control
n. A plug-in to the Interface Configuration Utility. Whereas the ICU handles
functionality common to all interfaces, an ICU Control implements interface-
specific behavior. Most Historian interfaces have an associated ICU Control.
-M-
Message log
n. A log file that contains messages that PI Message Subsystem records. Use to
troubleshoot components that write to PI Message Subsystem, such as
Historian Data Archive, client applications, or interfaces. View the log file
with Historian SMT, the pigetmsg utility, or the PI SDK utility.
-N-
N-way buffering
n. A configuration used when buffering data to a Historian Data Archive
collective. With n-way buffering, the buffering service sends the same data to
each collective member. Of the two buffering services, Rockwell Automation
recommends PI Buffer Subsystem (pibufss) for most buffering scenarios,
including n-way buffering. PI Buffer Subsystem automatically handles n-way
buffering. API Buffer Server (bufserv) requires manual configuration
whenever a collective changes, and buffered data is compressed at Historian
Data Archive, so archives at different collective members could contain
different records.
P
-P-
Pigetmsg utility
n. A command-line utility to view messages stored by PI Message Subsystem.
The utility can retrieve messages based on characteristics like time stamp, a
search string, or the program name that generated the message.
PIHOME
n. PIHOME refers to the folder defined by the PIHOME environment variable
and is the directory in which most 32-bit client applications are installed. By
default, PIHOME is C:\Program Files(x86)\Rockwell
Software\FactoryTalk\PIPC on 64-bit machines and C:\Program Files\pipc
on 32-bit machines. Pipc does not need to be in the name, but it is in the name
by default.
PIHOME64
n. PIHOME64 refers to the folder defined by the PIHOME64 environment
variable and is the directory in which most 64-bit client applications are
installed. By default, PIHOME64 is C:\Program Files\Rockwell
Software\FactoryTalk Historian\PIPC. on 64-bit machines. Pipc does not
need to be in the name, but it is in the name by default.
Pipc.log file
The pipc.log file is a message file for Rockwell Automation interfaces based on
UniInt versions earlier than 4.5.0.x. When these interfaces run, they write
informational and error messages to the pipc.log file. View this log file with
Historian Interface Configuration Utility.
Point
n. See Historian Point.
Note: Rockwell Automation often uses the terms point and tag interchangeably. Point is
recommended unless it refers directly to the Historian tag attribute.
PI API
n. A C-based application programming interface (API) library of functions
that enable programs to access a local or remote Historian Data Archive server
across a network.
PI Message Subsystem
n. The core Historian Data Archive component that records informational and
error messages from various Historian Data Archive components in a series of
log files. PI Message Subsystem can also serve these messages to various client
applications.
PI SDK
n. The COM-based software development kit for Historian System
applications. The PI SDK is a set of programming libraries for development of
Microsoft Windows client programs or interfaces that can communicate with
most Historian Data Archive versions (PI Server 3.2.357 and up) on any
supported operating system.
S-T -S-
SMT
n. See System Management Tools (SMT).
-T-
Tag attribute
n. The Historian Point attribute that assigns a name to uniquely identify a
point.
Legal Notices Rockwell Automation publishes legal notices, such as privacy policies, license
agreements, trademark disclosures, and other terms and conditions on the
Legal Notices page of the Rockwell Automation website.
Literature Library Find installation instructions, manuals, brochures, and technical data publications. rok.auto/literature
Product Compatibility and Download Center Get help determining how products interact, check features and capabilities, and rok.auto/pcdc
(PCDC) find associated firmware.
Documentation feedback
Your comments help us serve your documentation needs better. If you have any suggestions on how to improve our content, complete the form at
rok.auto/docfeedback.
Rockwell Automation maintains current product environmental information on its website at rok.auto/pec.
Allen-Bradley, expanding human possibility, Logix, Rockwell Automation, and Rockwell Software are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Rockwell Otomayson Ticaret A.Ş. Kar Plaza İş Merkezi E Blok Kat:6 34752, İçerenkÖy, İstanbul, Tel: +90 (216) 5698400 EEE YÖnetmeliğine Uygundur