Moore ICI on NT
Interface to the PI System

version 1.3.4.0 and greater

Document Revision B

How to Contact Us

Phone / (510) 297-5800 (main number)
(510) 297-5828 (technical support)
Fax / (510) 357-8136
Internet /
World Wide Web /
Bulletin Board / (510) 895-9423
Telebit WorldBlazer modem (Hayes, MNP, or PEP compatible)
8 data bits, 1 stop bit, no parity, up to 14400 bps download
protocols: Xmodem, Ymodem, Zmodem, Kermit
Mail / OSI Software, Inc.
P.O. Box 727
San Leandro, CA 94577-0427
USA
OSI Software GmbH
Hauptstrae 30
D-63674 Altenstadt 1
Deutschland /
OSI Software, Ltd
P. O. Box 8256
Level One, 6-8 Nugent Street
Auckland 3, New Zealand

Unpublished -- rights reserved under the copyright laws of the United States.
RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c)(1)(ii)
of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013

Trademark statement—PI is a registered trademark of OSI Software, Inc. Microsoft Windows, Microsoft Windows for Workgroups, and Microsoft NT are registered trademarks of Microsoft Corporation. Solaris is a registered trademark of Sun Microsystems. HPUX is a registered trademark of Hewlett Packard Corp.. IBM AIX RS/6000 is a registered trademark of the IBM Corporation. DUX, DEC VAX and DEC Alpha are registered trademarks of the Digital Equipment Corporation.
Mici100.doc

 1997 OSI Software, Inc. All rights reserved
777 Davis Street, Suite 250, San Leandro, CA 94577

7/27/2001 7:32 AM1

Table of Contents

Introduction......

PI Point Definition......

Additional Tag Configuration Descriptors......

Point Attributes Not Used by Interface......

Model 320 ICI Hardware Configuration......

Configuring the ICI......

RS-232C Cable Setup......

Hardware Configuration......

Configuring the ICI......

RS-232C Cable Setup......

Installing the Interface......

Setting up the Interface......

Moore Products Company Supplied Software......

Running the Interface......

Running Moore ICI Interface as an NT Service......

Running PI Moore ICI Interface Interactively......

Information and Error Messages......

Troubleshooting......

Interface Operating Information......

Interface Point List......

Output Data......

Input Data......

Scanning Principles......

Local Instrument Link (LIL)......

High Level Link (HLL)......

Appendix A: TestICI Utility Introduction......

TestICI Device Independent Functions......

Btest......

Ibits......

Vbit......

TestICI Device Functions......

Display text for an ICI error number......

Asgn......

LIL Functions......

HLL Functions......

Appendix B: Interface Distributions as Self-Extracting Executables......

Documentation Updates......

List of Figures

Figure 1. ICI 320 Serial Port Board

Figure 2. Data Set/Data Terminal Connections

Figure 3. ICI 320 MPU Board Dip Switch

Figure 4. Blowup of ICC Piggyback Board

Figure 5. Setting of Jumpers W8 and W9

Figure 6. Front Panel, ICI 2.0 or 2.5

10/07/189:13 AM1

Introduction

The Moore ICI Interface provides for the bi-directional transfer of data between the Moore Products Company's Local Instrument Link (LIL) and Hi-Level Link (HLL) global data bases, and the Plant Information (PI) System. Communication between the Microsoft Windows NT computer and the HLL global database is accomplished using either Moore Products Company's Mycro Model 3932 Independent Computer Interface (ICI). The Mycro Model 3932 ICI (more commonly referred to as an ICI-2.5) uses an RS-232C serial link to the Windows NT computer. Communication between the Windows NT computer and the LIL global database is accomplished via Moore Products Company's Model 320 ICI. The Model 320 ICI uses an RS-232C serial link to the Windows NT computer. The interface can run on a Windows NT machine containing either the PI Home Node or a PI API node.

The Moore ICI Interface consists of a single executable program, a utility program for testing the connection to the HLL or LIL, and a batch file for starting the interface. There may be one or more ICI's connected to the PI System. The PI system can communicate with ICI-2.5's, and Model 320 ICI's concurrently. Every ICI requires its own copy of the interface program.

The interface uses the Moore Products Company's Moore ICI Communications Software Package Library to communicate with the ICI-2.5 or the Model 320 ICI. OSI Software, Inc. now distributes the Moore Products Company’s ICI Communications Software Library with the PI-Moore ICI interface. Inputs from an ICI are scanned on a periodic basis. Outputs are sent out to an ICI whenever an output value changes.

Supported Features
Sign up for Updates / Yes
Exception Reporting / Yes
Outputs / Yes
Vendor Software Required / Yes
Uniint Based / Yes

PI Point Definition

The following information is necessary for defining a PI point to be read from or written to either the Moore LIL or HLL global databases. There may be one or more PI points associated with each global data base channel. A channel can hold up to 16 bits of data, and one or more bits combined can be used to hold separate pieces of data. Conversely, a single PI point can be the resultant of two global data base channels.

Point Source

All points defined in the PI Database to be used by the Moore ICI Interface must share a common point source. The point source is any one-character value, for example M.

Point Type

The interface supports all three PI 2 point types, real R, integer I, and discrete D, and the following five PI 3 point types float16, float32, int16, int32, digital. Multiple discrete alarm and status bits are processed to form individual PI digital points.

Location1

The first location is mainly used for digital points, but can also be used for integer points. For digital points, it is used to specify how the interface will convert an integer value into a digital state For integer points, it is used to specify a bit mask to be applied to a value. It is used when reading or outputting controller, alarm, or status information. Location1 may take on the following values:

> 0 bits are specified as decimal digits
0 word is a discrete digital
-1controller source/mode

The controller source/mode is determined for MMLC, Mycro 351, and Mycro 352 loops.

Location 1 > 0:

Up to 5 bits can be specified. The bits can be specified in any order; i.e. bits 5,6,7, and 8 could be specified as 8050706. To specify a single bit (2-state tag), enter the bit number. To specify 2 bits, enter 100 times the first bit plus the second bit. For example, bits 7 and 8 can be specified as 708. In this example, the PI tag is a digital state tag according to the following truth table:

Bit 7 / Bit 8 / PI value
0 / 0 / 0
0 / 1 / 1
1 / 0 / 2
1 / 1 / 3

Specify a 3-bit value as b1b2b3 (e.g. 80706). For digital tags, a 3-bit value has 8 possible states, and a 4-bit value would be specified as b1b2b3b4 (e.g. 5060708) and has 16 possible states.

It is up to the user to set up the appropriate truth table for a digital state tag. The states for all possible combinations must also be entered into the digital state table.

Location 1 = -1:

The controller source/mode tag uses bits 1,2,3,5,6,7,8,9, and 10 contained within the Loop Status Word for each loop. A simplified truth table is:

H / E/M / O / R / Cmp / Con / I/E / S / L / A/M / Pi
Bit 10 / Bit 9 / Bit 8 / Bit 7 / Bit 6 / Bit 5 / Bit 4 / Bit 3 / Bit 2 / Bit 1 / Val / Mode
0 / 0 / 0 / 0 / 0 / X / X / 0 / 1 / 0 / 0 / Local/Man
0 / 0 / 0 / 0 / X / 0 / X / 0 / 1 / 0 / 0 / Local/Man
0 / 0 / 0 / 0 / 0 / X / X / 0 / 1 / 1 / 1 / Loc/Auto
0 / 0 / 0 / 0 / X / 0 / X / 0 / 1 / 1 / 1 / Loc/Auto
0 / 0 / 0 / 0 / 0 / 1 / X / 0 / 0 / 0 / 2 / Cons/Man
0 / 0 / 0 / 0 / 0 / 1 / X / 0 / 0 / 1 / 3 / Cons/Auto
0 / 0 / 0 / 0 / 1 / 0 / X / 0 / 0 / 0 / 4 / Comp/Man
0 / 0 / 0 / 0 / 1 / 0 / X / 0 / 0 / 1 / 5 / Comp/Auto
X / X / X / X / X / X / X / 1 / X / X / 6 / Sync
X / 1 / X / X / X / X / X / 0 / X / X / 7 / Eman
X / 0 / 1 / X / X / X / X / 0 / X / X / 8 / Override
1 / 0 / 0 / X / X / X / X / 0 / X / 1 / 9 / Hold
0 / 0 / 0 / 1 / X / X / 0 / 0 / X / 1 / 10 / Ramp
All Other Bit Combinations / 11 / Offline

Where

0 = Logic 0
1 = Logic 1
X = either state, does not affect logic

The twelve digital states listed above must be entered into the digital state table if you are storing the mode in a digital tag.

For integer tags, the integer value

Location2

HLL (slots 1 – 15)

The HLL address specifies the High Level Link #, Satellite #, Slot #, and Channel #. The HLL address is in the form of:

LSSTTCCC

where

L = HLL number
SS = Satellite number
TT = Slot number
CCC = Channel number

Therefore, the address of a point that is located on HLL #1, Satellite #9, Slot #15, Channel #138 is:
address = 10915138

HLL Loops

Loops are always on slot 16 (Multi-Loop controller), and a Multi-Loop controller can have 64 loops per slot. Each loop consists of 4 channels, a PV, SP, output, and status/mode tag:
1 - process value
2 - set point
3 - controller output
4 - controller status/mode

To calculate the channel for a PV:
channel = loop_number * 4 - 3

Therefore, the address of a loop PV that is located on HLL #1, Satellite #9, Loop #23 is:
address = 10916089(channel = 23 * 4 – 3 = 89)

Likewise, to calculate the channel for the SP on the same loop:
channel = loop_number * 4 – 2, or simply add 1 to the PV channel number

And the address for the SP on the same HLL, Satellite, and Loop is:
address = 10916090(channel = 23 * 4 – 2 = 90) or (channel = PV for same loop + 1)

Note There can be:
1 - 4 HLL's on an ICI
1 - 15 Satellite Stations on an HLL
1 - 16 Slots on a Satellite Station
1 - 256 Channels on a Slot

LIL

If the value of the tag is an output to a LIL device, such as a Mycro 352, then its LIL global data base address must be specified. The address specifies the Station # and Channel#. The address is in the form of:

SSCCC

where

SS = Station number
CCC = Channel number

Therefore, the address of a point that is located on Station #13, Channel #22, and Parameter #1 is:
address = 13022

The address of a point that is located on Station #3, Channel #9 is:
address = 3009
Note that the leading 0 is neither required, nor is it possible to have a location code with a leading 0.

Note, there can be:
1 - LIL per ICI
2 - 64 Stations on a LIL
1 - 256 Channels on a Station
1 - 256 Parameters on a Channel

Only parameter 1 will be read from or output to.

Location3

The third location indicates whether the PI tag will be the result of adding two input values together or if the tag is an output. If the PI tag is the resultant of two values, Location3 should be 1. If the PI tag is to be the resultant of two values, and if the resultant is to be divided by 100, Location3 should be 2. This applies to various data obtained from Mycro 382's. Both integer and real tags can be the resultant of two input values. The maximum allowable value for an integer is 32767. If the PI tag is to be an output, Location3 should be 3. If the PI tag is none of the above, Location3 should be 0.

0 - single value
1 - combine two values together
2 - combine two values together, divide total by 100
3 - tag is an output value

Location4

This parameter determines the scan class of the tag. Currently, the interface only supports one scan class, and all Moore ICI tags must a 1 in location4. The scan frequency is specified in the interface startup command file.

Location5

The fifth location is used to indicate whether an input or output point is specified to be reverse acting. For inputs, the value in engineering units will be equal to: value = 100. - value. For outputs, value = 100. - value, and the value is then converted back to counts (128 - 3840). The requirements for specifying a point to be reverse acting are: the square root field must be 0, the point must be Real, and the Zero and Span must be 0. and 100. respectively. The most likely case for specifying a point to be reverse acting is for reverse acting controller outputs (the signal from the controller which is an input).

0 = not reverse acting
1 = reverse acting
Extended Descriptor

The extended descriptor is now used to identify input points whose value is contained in a 16 bit signed integer. If the instrument zero is NOT 0 counts and/or the instrument span is NOT 4095 counts, the string %RAW must be contained somewhere within the Extended Descriptor. In addition, the instrument zero and instrument span must be specified in the Extended Descriptor. This now provides for an allowable range of -65535 - 65535 for the instrument. See Extended Descriptor section below for more information.

Extended Descriptor

ICI number;%RAW;raw zero;raw span

Example: 1;%RAW;-10000;10000

Meaning that -10000 is the zero and 10000 is the high range.

The first element is the number of the ICI that the interface is connected to. There can be up to 99 ICI's interfaced to the PI system.

Square Root Code

The square root code is used by the interface to take the square root of, or square output and input data. The requirements for specifying square root extraction or squaring are: the point must be Real and Location5 must be set equal to 0.

Square Root Code / Result
0 / raw value
1 / square root of value
2 / value squared

Additional Tag Configuration Descriptors

There are additional tag configuration parameters that are not unique to the Moore ICI interface but are required for proper operation. These parameters are listed below:

  • Tag Name
  • Descriptor
  • Typical Value
  • Engineering Units
  • Starting Digital State Code
  • Number of Digital States
  • Filter Code
  • Archiving Flag
  • Compression Flag
  • Resolution Code
  • Compression Deviation
  • Compression Minimum Time
  • Compression Maximum Time
  • Zero
  • Span

Point Attributes Not Used by Interface

  • Totalization Code
  • Scan Flag
  • Conversion Factor
  • UserReal1
  • UserReal2

Model 320 ICI Hardware Configuration

Configuring the ICI

Before you can configure the ICI you must remove the three-card assembly from the casing. Remove the front panel by flipping the door down on the front panel and removing the screw. The card assembly can then be removed. The MPU is the bottom board, the middle board is the link board, and the top board is the serial port board. Remove the screws that attach the boards to one another so that you can get at the jumpers and switches located on the MPU and the serial port boards. The cable adapter board (otherwise known as the data set/data terminal board) is connected to terminal C, which is located on the back of the casing.

  • The selection of RS-232C or RS-422 is determined by the jumper positions of W5 and W6 on the serial port board. Refer to Figure 1 that is a schematic of the serial port board.
  • Two possible cable pinouts are possible, as determined by the connector used on the cable adapter board that mounts on terminal strip C. Figure 2 shows the wiring of that board and the required pinouts for the ICI to appear as either a data set (DS or DCE) or a data terminal (DT). If the ICI is configured as a DS then the DB25 female connector is used. If the ICI is configured as a DT then the DB25 male connector is used. Configure the ICI as a DS if the cable used is a straight cable. Configure the ICI as a DT if the cable used is a null modem.
  • Figure 2 shows the required placement of the jumpers W1 and W2 for setting flow control to either DSR or CTS. Remove both jumpers if no flow control is to be used.
  • Set the baud rate of the ICI to match the baud rate of the PC. A baud rate of 19200 is recommended. This is done by setting the W7 jumper to the proper setting. Refer to Figure 1.
  • Enable the null data response function. This is done by setting Switch 3 on the MPU board to the open position. Refer to Figure 3.
  • Enable the response delay function. This is done by setting Switch 4 on the MPU board to the open position. Refer to Figure 3.
  • Set the operational mode to BINARY by setting Switch 5 on the MPU board to the closed position. Refer to Figure 3.
  • The Model 320 ICI provides send command security. Depending upon what security level is chosen, information contributed by the computer to the ICI is restricted. The security level is set from Switches 1 and 2 on the MPU board. See Figure 3. If the computer is going to both read and output data, the recommended security level is RECORD. If the computer is to read data only, the recommended security level is PARAMETER.

The data format of the computer port should be set to odd parity and 8 data bits. This is done by setting Bit 8 of Switch 2 (SW2-8) to the open position and Bit 4 of Switch 2 (SW2-4) to the open position. Switch 2 is located on the serial port board. Refer to Figure 1.

Note Closed is synonymous with on, open is synonymous with off.

RS-232C Cable Setup

The computer is connected to the ICI using the appropriate connector located on terminal strip C. The desired RS-232C signal from the computer that is to drive the ICI CTS input line is jumper selectable by W1 when using the data set connector and by W2 when using the data terminal connector. The jumper may be removed completely to always enable the signal. Refer to Figure 2 for a schematic of the cable pinouts. Only the TRANSMIT DATA, RECEIVE DATA, AND SIGNAL GROUND are required.

Hardware Configuration

Configuring the ICI

The ICI-2.5 must be configured as listed below. Before the configurations can be set however, the ICI front panel cover must first be removed.

  • Set the ICI-2.5 as a Data Set (DS) device if the cable used is a straight cable. Set the ICI-2.5 as a Data Terminal (DT) device if the cable used is a null modem. See Figure 4, which contains a blowup of the piggyback board of the ICI's Interface Computer Assembly (it is the top board but is labeled as board 5). Before pulling the piggyback board and the ICI Interface Computer Assembly board, turn the power off to the ICI and unplug the ribbon cable from the piggyback board. Use a wrist strap grounded to the ICI unit before sliding the card assembly most of the way out. Set the W8 jumper either to the DS or DT position and remove the W9 jumper. A jumper is set to the DS position if the line dividing the two sections of the jumper is parallel to the front edge of the card. It is set to the DT position if the line is perpendicular to the front edge of the card.

The following settings are made on the front panel of the Interface Communication Computer, see Figure 5.

  • Set the baud rate of the ICI-2.5 to match the baud rate of the PC. A baud rate of 19200 is recommended. This is done setting bit 3 to ON and bit 4 to OFF of switch 2.
  • Enable the null data response function. This is done by setting bit 2 of switch 2 to ON.
  • Enable the response delay function. This is done by setting bit 1 of switch 2 to ON.
  • Set the operational mode to BINARY with switch 5.

Note: ON corresponds to the 1 state and OFF corresponds to the 0 state.

RS-232C Cable Setup

The RS-232C cable plugs into a DB25 female connector located in the rear of the ICI-2.5.

The connection between the PC and the ICI-2.5 is directly to a serial port on the PC, so only the TRANSMIT DATA, RECEIVE DATA, AND SIGNAL GROUND are required.

Installing the Interface

Prior to the installation of the Moore ICI interface, if the PI Server is not running on the same computer as the interface will be, you need to install the PI-API.