Interface to the pi system


Configuring I/O Rate Tags Manually



Download 0.56 Mb.
Page10/14
Date31.07.2017
Size0.56 Mb.
#24976
1   ...   6   7   8   9   10   11   12   13   14

Configuring I/O Rate Tags Manually


There are two configuration steps.

  1. Configuring the PI Point on the PI Server

  2. Configuration on the Interface Node


Configuring the PI Point on the PI Server


Create an I/O Rate Tag with the following point attribute values.

Attribute

Value

PointSource

L

PointType

float32

Compressing

0

ExcDev

0


Configuring on the Interface Node


For the following examples, assume that the name of the PI tag is blysem001, and that the name of the I/O Rate on the home node is blysem001.

  1. Edit/Create a file called iorates.dat in the PIHOME\dat directory. The PIHOME directory is defined either by the PIPCSHARE entry or the PIHOME entry in the pipc.ini file, which is located in the %windir% directory. If both are specified, the PIPCSHARE entry takes precedence.

Since the PIHOME directory is typically C:\PIPC, the full name of the iorates.dat file will typically be C:\PIPC\dat\iorates.dat.

Add a line in the iorates.dat file of the form:



blysem001, x

where blysem001 is the name of the I/O Rate Tag and x corresponds to the first instance of the /ec=x parameter in the startup command file. X can be any number between 2 and 34 or between 51 and 200, inclusive. To specify additional rate counters for additional copies of the interface, create additional I/O Rate tags and additional entries in the iorates.dat file. The event counter, /ec=x, should be unique for each copy of the interface.



  1. Set the /ec=x parameter on the startup command file of the interface to match the event counter in the iorates.dat file.

The interface must be stopped and restarted in order for the I/O Rate tag to take effect. I/O Rates will not be written to the tag until 10 minutes after the interface is started.

Startup Command File


Command-line parameters can begin with a / or with a -. For example, the /ps=M and
–ps=M command-line parameters are equivalent.

For Windows, command file names have a .bat extension. The Windows continuation character (^) allows for the use of multiple lines for the startup command. The maximum length of each line is 1024 characters (1 kilobyte). The number of parameters is unlimited, and the maximum length of each parameter is 1024 characters.

The PI Interface Configuration Utility (PI ICU) provides a tool for configuring the Interface startup command file.

Configuring the Interface with PI ICU


Note: PI ICU requires PI 3.3 or greater.

The PI Interface Configuration Utility provides a graphical user interface for configuring PI interfaces. If the interface is configured by the PI ICU, the batch file of the interface (Blysem.bat) will be maintained by the PI ICU and all configuration changes will be kept in that file and the module database. The procedure below describes the necessary steps for using PI ICU to configure the PI Bailey SemAPI Interface.

From the PI ICU menu, select Interface, then NewWindows Interface Instance from EXE..., and then Browse to the Blysem.exe executable file. Then, enter values for Point Source and Interface ID#. A window such as the following results:

“Interface name as displayed in the ICU (optional)” will have PI- pre-pended to this name and it will be the display name in the services menu.

Click on Add.

The following display should appear:



Note that in this example the Host PI System is STARSHOLLOW. However, to configure the interface to communicate with a different PI Server, select ‘Interface => Connections…’ item from PI ICU menu and make it the default server. If the remote node is not present in the list of servers, it can be added.

Once the interface is added to PI ICU, near the top of the main PI ICU screen, the Interface Type should be basemapi. If not, use the drop-down box to change the Interface Type to be basemapi.

Click on Apply to enable the PI ICU to manage this copy of the PI Bailey SemAPI Interface.





The next step is to make selections in the interface-specific tab (i.e. “basemapi”) that allow the user to enter values for the startup parameters that are particular to the PI Bailey SemAPI Interface.

Since the PI Bailey SemAPI Interface is a UniInt-based interface, in some cases the user will need to make appropriate selections in the UniInt pages. These pages allows the user to access UniInt features through the PI ICU and to make changes to the behavior of the interface.

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 to starting and stopping of the interface. The interface can also be run interactively from the PI ICU. To do that go to menu, select the Interface item and then Start Interactive.



For more detailed information on how to use the above-mentioned and other PI ICU pages and selections, please refer to the PI Interface Configuration Utility User Manual. The next section describes the selections that are available from the basemapi tab. Once selections have been made on the PI ICU GUI, press the Apply button in order for PI ICU to make these changes to the interface’s startup file.

Basemapi Interface Page


Since the startup file of the PI Bailey SemAPI Interface is maintained automatically by the PI ICU, use the basemapi page to configure the startup parameters and do not make changes in the file manually. The following is the description of interface configuration parameters used in the PI ICU Control and corresponding manual parameters.

General Tab

Basemapi





Behavior

Enable exception screening

This option controls the exception screening behavior of the ICI module. With exception screening option enabled, the INFI90 sends only deviation exceptions, no maximum time exceptions. Though this feature will significantly reduce the communications traffic, it can prevent the PI system from reconstructing the data between two exception reports accurately.
For example: if a value changes slowly, then Bailey would not send the change until the total change exceeded the deviation limit. Therefore, one cannot distinguish a step change from a linear change. Hence, this option is set to 0 by default. The EF option is primarily used for system with mostly digital or discrete data. The command line equivalent is /ef.
Enable outputs

Enable outputs from PI to Bailey. The command line equivalent is /of.
Connection to an HNCC

This option specified that the interface is connecting to an HNCC as opposed to an ICI03.


Communication timeout

This option specifies the ICI module watch dog timer. If the interface stops communicating with the ICI module for a period longer than the specified watch dog timer, the ICI module will go off-line, setting all the output points (PI to Bailey) bad quality. For systems using PI values in the Bailey control loops, the watch dog timer will prevent old value from being used in the control loop. Also, do not set the watchdog timer to 0 if the interface is set up as fail over primary interface. Otherwise, the secondary interface will not pick up data collection when the primary interface stops communicating with the ICI module. See the Failover Operation section for details. The command line equivalent is /to=x.
Bailey logical ICI number

Bailey logical ICI number, set to interface ID number if not defined. The command line equivalent is /ici=x.
Time sync

This option controls the time synchronization behavior between Bailey and PI systems. Note that the interface cannot change the PI system time when the interface is running on Windows. Also, if the interface is linked to a Data Acquisition version of semAPI, the interface cannot set the time on the Bailey System. The time master of the loop is determined by the time accuracy factor on each node. Hence, set the time accuracy to 15 or greater on the CIU module through the CIU utilities by connecting a terminal to the CIU termination unit. See the CIU manual for details on how to use the CIU utilities.

/ts=0 disables timesync

/ts=1 sets PI time as the master time

Note: In versions prior to 1.4.1.0 of the interface, setting the time sync to use Bailey as the master time was supported (/ts=-1). This is no longer supported. If this configuration is encountered by the ICU, /ts will be disabled (set to 0).

Send string data to the Event Logger

Event logger group #

Define the Event Logger group to be used when ASCII data (type 30) is sent to the Event Logger, where # is the group number. The command line equivalent is /evg=#.
Event logger type #

Define the Event Logger type to be used when ASCII data (type 30) is sent to the Event Logger, where # is the type. The command line equivalent is /evt=#.

Data Retrieval

Seconds between get exceptions

Delay in seconds between bailey get exceptions. The default is one second. The command line equivalent is /dl=x.
Maximum exceptions per iteration

Maximum number of exceptions per iteration. The default is 2500. The command line equivalent is /me=#.
Maximum points for interface

The maximum number of points for this interface. The default is 30000. The command line equivalent is /mp=#.

Data Handling

Enable range checking

Range Checking enabled at interface level. All analog values above (Zero + Span) will be replaced with digital state OverRange. All analog values below Zero will be replaced with digital state UnderRange. The command line equivalent is /rc.
Analog filter limit and Digital code

Enables analog filter parameters. /FV specifies a limit. If the analog values from Bailey are greater than this value, they will be replaced by a digital state code (specified by /FS) by the interface. The FV parameter has to be greater than 1000 to be considered valid by the interface. If /FV is not specific, no analog filter checking will be performed by the interface (even if /FS is specified). If /FS is omitted, the interface will default to NODATA(code 248) as the digital state to substitute the analog value over the filter limit. The Analog filter check is supported starting in version 1.3.1 of the interface. The command line equivalent is /fv=x for the Analog filter limit and /fs=x for the Digital code.

Failover / Debug Tab



Failover


A detailed discussion of failover can be found later in this manual in a section titled “Failover Operation”.
Enable failover

This option controls the failover mode of the interface. Specify /FM=1 for the primary interface and /FM=2 for the secondary interface. Also, for the secondary interface, supply the PCU number of the ICI mode communicating to the primary interface. The details of the failover mechanism are described in Failover Operation section. The command line equivalent is /fm=x.
Primary PCU address:

The failover primary PCU address is required only if failover is used, and this is the secondary interface. The command line equivalent is /fp=x.

UniInt Health Tag ID:

If failover is enabled, a UniInt Health Tag ID (UHT_ID) parameter must be specified. This parameter is used to filter UniInt Health Tags by Location3. The parameter should be different from another interface – failover member parameter. If the same /UHT_ID value is used for both instances, the text box will have yellow back color indicating a bad value. If this parameter has a bad value or missing the default value 0 for Location3 PI attribute will be used.

The command line equivalent is /UHT_ID=#, where x the number for Location3 PI Attribute.


Debug

Connect to ICI with shared access

Even though the Bailey semAPI is designed to handle multiple user clients, PI Bailey semAPI interface expects exclusive control of the ICI device, specially the configuration of the point table on the ICI. If the interface is started in trouble-shooting mode (/ICDB), the user can simultaneously communicate with the ICI via Bailey’s TALK90 program. This can be a useful debugging tool for determining the current condition of the ICI. During normal operation, this option should not be checked. The command line equivalent is /icdb.

Additional Parameters


This box is used to add any command-line parameters which are not currently supported by the ICU Control. Each command-line parameter should be separated by a space. If the argument to a command-line parameter has embedded spaces then surround the whole argument in double quotes.


Download 0.56 Mb.

Share with your friends:
1   ...   6   7   8   9   10   11   12   13   14




The database is protected by copyright ©ininet.org 2024
send message

    Main page