SeaLevel DIO-16.LPCI User manual

Category
Interface cards/adapters
Type
User manual
Sealevel Systems, Inc.
Sealevel.com
Phone 864.843.4343
DIO-16.LCPI
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
2
ontents
BEFORE YOU GET STARTED ............................................................................................................................................ 4
WHATS INCLUDED ................................................................................................................................. 4
ADVISORY CONVENTIONS ........................................................................................................................ 4
OPTIONAL ITEMS .................................................................................................................................... 5
INTRODUCTION ..................................................................................................................................................................... 7
FEATURES .............................................................................................................................................. 7
OTHER SEALEVEL PCI DIGITAL I/O PRODUCTS ........................................................................................... 8
SOFTWARE INSTALLATION .............................................................................................................................................. 9
WHERE TO GET SEALEVEL SOFTWARE ........................................................................................................ 9
WINDOWS INSTALLATION ......................................................................................................................... 9
GUIDED SOFTWARE INSTALLATION ......................................................................................................... 10
MANUAL SOFTWARE INSTALLATION ........................................................................................................ 12
LINUX INSTALLATION ........................................................................................................................... 13
PHYSICAL INSTALLATION .............................................................................................................................................. 15
PROGRAMMING FOR WINDOWS .............................................................................................................. 17
SAMPLES AND UTILITIES ........................................................................................................................ 17
PROGRAMMING FOR LINUX .................................................................................................................... 17
DIRECT HARDWARE CONTROL ............................................................................................................... 17
REGISTER LAYOUT ............................................................................................................................... 18
READING THE INPUTS ........................................................................................................................... 18
READING THE OUTPUTS ........................................................................................................................ 18
WRITING THE OUTPUTS ........................................................................................................................ 18
INTERRUPT CONTROL ........................................................................................................................... 18
INTERRUPT MODE SELECT TABLE ........................................................................................................... 19
INTERRUPT READ ................................................................................................................................. 19
INPUT PORTS ...................................................................................................................................... 20
INPUT PORT PIN ASSIGNMENTS (DB-44 FEMALE) ..................................................................................... 20
OUTPUT PORTS (REED RELAY) ............................................................................................................... 21
OUTPUT PORTS (REED RELAY) PIN ASSIGNMENTS (DB-44 FEMALE) ............................................................ 21
POWER AND GROUND PIN ASSIGNMENTS (DB-44 FEMALE) ........................................................................ 22
DB-37 MALE PIN ASSIGNMENT ............................................................................................................. 23
TECHNICAL SPECIFICATIONS ....................................................................................................................................... 25
INPUT PORTS ...................................................................................................................................... 25
OUTPUT RELAYS .................................................................................................................................. 25
PCB DIMENSIONS ................................................................................................................................ 25
ENVIRONMENTAL SPECIFICATIONS .......................................................................................................... 26
POWER REQUIREMENTS ......................................................................................................................... 26
MANUFACTURING ................................................................................................................................ 26
APPENDIX A - TROUBLESHOOTING ........................................................................................................................... 27
SOFTWARE.......................................................................................................................................... 27
HARDWARE ........................................................................................................................................ 28
BIOS ................................................................................................................................................. 29
DEVICE MANAGER VERIFICATION ........................................................................................................... 29
TROUBLESHOOTING/VERIFICATION UTILITIES FOR SEAIO CLASSIC PRODUCTS .............................................. 30
SEAIO DEVICE DRIVER CONFIGURATION .............................................................................................................. 34
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
3
CARD SELECTION CONFIGURATION ........................................................................................................ 34
APPENDIX B - HANDLING INSTRUCTIONS ............................................................................................................. 37
ESD WARNINGS .................................................................................................................................. 37
APPENDIX C EXAMPLE CIRCUITS ............................................................................................................................ 38
INPUT CIRCUIT .................................................................................................................................... 38
OUTPUT CIRCUIT................................................................................................................................. 38
APPENDIX D 8012 PCB DRAWING .......................................................................................................................... 39
APPENDIX E - HOW TO GET ASSISTANCE .............................................................................................................. 40
TECHNICAL SUPPORT ........................................................................................................................... 40
WARRANTY ............................................................................................................................................................................. 41
WARRANTY POLICY .............................................................................................................................. 41
NON-WARRANTY REPAIR/RETEST .......................................................................................................... 41
HOW TO OBTAIN AN RMA (RETURN MERCHANDISE AUTHORIZATION) ......................................................... 41
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
4
The DIO-16.LPCI is shipped with the following items. If any of these items is missing or
damaged, please contact Sealevel for replacement.
DIO-16.LPCI Adapter
Item# 8012 ships with Low Profile PCI bracket
Item# 8012S ships with a Standard PCI bracket
Sealevel SeaI/O Software CD
Warning - The highest level of importance used to stress a condition where damage
could result to the product or the user could suffer serious injury.
Important The middle level of importance used to highlight information that might
not seem obvious or a situation that could cause the product to fail.
Note The lowest level of importance used to provide background information,
additional tips, or other non-critical facts that will not affect the use of the product.
High Voltage Warning - USE EXTREME CAUTION!
High voltages will be present on the SeaI/O family of products when high voltage is
connected. Never handle the printed circuit board when high voltage signals are
connected to the board.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
5
Depending upon your application, you are likely to find one or more of the following items
useful for interfacing the DIO-16.LPCI to real-world signals.
All items can be purchased from our website (http://www.sealevel.com) or by calling +1 864-
843-4343.
DB44 Male to DB44 Female, 72” Extension Cable (Item# CA185)
The CA185 is a standard DB44M to DB44F extension
cable. Extend a DB44 cable or locate a piece of hardware
where it is needed with this six foot (72) cable. The
connectors are pinned one-to-one so the cable is
compatible with any device or cable with DB44
connectors. The cable is fully shielded against
interference and the connectors are molded to provide
strain relief. Dual metal thumbscrews secure the cable
connections and prevent accidental disconnection.
DB44 Male to BD37 Male, 72” Cable (Item# CA206)
DB44 Male to DB37 Male Cable, 72 in Length - for 8012.
The CA206 is useful for interfacing the DB44 connector
on the 8012 to the DB37 connector on the TB02 terminal
block.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
6
Terminal Block KT111 simplifies field wiring
requirements by creating a direct connection between a
TB02 terminal block and the 8012 board. The KT111
includes the TB02 terminal block, CA206 cable, ST101
Snap Track and STDIN mounting clips.
The Digital I/O Handbook A Practical Guide to Industrial Input and Output
Applications (Item# REF101)
Renowned technical author Jon Titus and president and
CEO of Sealevel Systems, Tom O'Hanlan, clearly explain
real-world digital input/output implementation from
both a hardware and software perspective. Whether you
are a practicing engineer or a student, The Digital I/O
Handbook will provide helpful insight you will use again
and again.
Terminal Block DB37 Male and DB37 Female to 27
Screw Terminals (Item# TB02)
The TB02 terminal block can be used to break out serial
and digital DB37 connectors to screw terminals for easy
field wiring. The terminal block was designed with both
DB37 male and female connectors, therefore; it can be
used with any DB37 board regardless of the board's port
gender.
Terminal Block Kit DB37 Male and DB37 Female to 27 Screw Terminals
(Item# TB02-KT)
The TB02-KT terminal block can be used to break out
serial and digital DB37 connectors to screw terminals for
easy field wiring. The terminal block was designed with
both DB37 male and female connectors, therefore; it can
be used with any DB37 board regardless of the board's
port gender. The TB02-KT ships with a RoHS compliant
TB02 terminal block, a 6 piece of slotted Snap Track,
and two DIN-rail mounting clips.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
7
The DIO-16.LPCI provides 8 optically isolated inputs and 8 reed relay SPST (single pole-single
throw) outputs. The inputs protect the PC and other sensitive equipment from spikes and
ground loop current that can be generated in industrial environments, while the outputs
provide high quality, long life, low current (10 Watt maximum), dry contact switch closures.
Reed relays are well suited for low current applications. The relays are normally open, and will
close when energized.
The board meets the requirements for the MD1 "Low Profile" specification as defined by the
PCISIG in the PCI 2.2 Specifications Low Profile Addendum. The DIO-16.LPCI also features
Universal Bus (3.3 and 5.0V) operation.
The DIO-16.LPCI is designed to be used with a variety of Operating Systems including Windows,
Linux and DOS. The SeaI/O API (Application Programming Interface) included on the CD shipped
with the DIO-16.LPCI provides a variety of useful high-level function calls implemented as a
Windows dynamic link library (.DLL) and as a Linux static library (.a). In addition to the API,
SeaI/O includes a device driver, sample code, and utilities to simplify software development.
Eight optically isolated inputs optimized for +5V
Eight Reed relay outputs (SPST)
Highly reliable 10VA Reed relays
MD1 Low Profile and Universal Bus (3.3V and 5V) compatible
Power (+5V and +12V) and ground provided on connector
SeaI/O Classic software supports Windows and Linux Operating Systems
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
8
Product
Item#
Description
PIO-32.PCI
8010
32 TTL Inputs/Outputs
PIO-48.PCI
8005
48 TTL Inputs/Outputs
PIO-96.PCI
8009
96 TTL Inputs/Outputs
REL-16.PCI
8003
16 Reed Relay Outputs
DIO-32.PCI
8004
16 Reed Relay Outputs/16 Opto-isolated Inputs
DIO-32.PCI
8004H
16 Reed Relay Outputs/16 Opto-isolated Inputs (10-30V)
ISO-16.PCI
8006
16 Opto-isolated Inputs
ISO-16.PCI
8006H
16 Opto-isolated Inputs (10-30V)
REL-32.PCI
8007
32 Reed Relay Outputs
PLC-16.PCI
8011
8 Form C Relay Outputs/8 Opto-isolated Inputs
DIO-32.PCIE
8004e
16 Reed Relay Outputs/16 Opto-isolated Inputs
DIO-32.PCIE
8004He
16 Reed Relay Outputs/16 Opto-isolated Inputs (10-30V)
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
9
This section contains helpful information pertaining to the installation of supported Sealevel
Systems, Inc. software packages. First, the process of acquiring the software is discussed. Next,
the installation is detailed in a step-by-step guide for Windows and Linux operating systems.
All Sealevel products are shipped with media containing the installers for each software
package available. If the media is otherwise unavailable or if desired, the current versions of
Sealevel software packages can be obtained from the Sealevel website (see following
instructions). If you already have the Sealevel software, proceed to the Windows or Linux
installation section.
1. Sealevel software for Windows and Linux operating systems is available at these
links:
Software for Windows
Software for Linux
2. Choose the link for the desired software package and click on the „Download
File link to download the current driver.
3. Proceed to the Manual Software Installation guide for your operating system.
Do not connect the hardware until the software has been successfully installed.
To install Sealevel software, you must log in as an administrator or have administrator
privileges in Windows.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
10
Insert the Sealevel media into your PC.
If the „AutoRun feature is enabled for this media the software will automatically
launch.
Otherwise, navigate to the root directory of the media and double-click the
„autorun.exe‟ application to launch the installation window.
Select „Install as demonstrated in the image below.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
11
Type the part number for your adapter in the text box and press the „Enter‟ key,
or click on the drop box to scroll from the listing to select your product.
If you installed your hardware prior to loading/installing the software, please click on
the „Click here if you installed hardware before software‟ link and follow the listed
instructions.
1. Click the „Install Drivers‟ button to launch the Installation Wizard.
2. When the InstallShield Wizard‟ window appears, click the „Next‟ button to initiate
the software installation.
3. When the „License Agreement‟ window appears, accept the terms and click „Next
to continue. You can click the „Print‟ button to print out a copy of the agreement
for your records. If you do not accept the terms of the agreement, the
installation will stop.
4. When the Ready to Install the Program‟ window appears, click the „Install‟ button
to install the software onto the hard drive of your computer. The files will be
automatically installed into the „C:\Program Files‟ folder on your computer.
Some versions of Windows will halt the installation and provide you with a dialog
box which will ask you for permission for the installer to make changes to your
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
12
computer. Click on the “Allow” button to continue installation of your Sealevel
software.
5. The setup file will automatically detect the operating environment and install the
proper components. Next follow the information presented on the screens that
follow. Once the installation is complete, close the disk installation window.
6. Refer to the Physical Installation section to connect and install your hardware.
1. To install a software package from the Sealevel media, browse the Sealevel
Systems media ‟Software‟ directory. For example:
Software\SeaIO\Windows\SeaIO Installer.exe
2. If you are using Windows Vista or newer operating systems, right click on the
installer executable and choose ‟Run as Administrator‟. If you are using an
operating system prior to Windows Vista, double click on the executable to
launch the InstallShield and initiate the driver installation.
3. Please refer to step six above in the Guided Software Installation section and
follow the remaining installation steps.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
13
Most Sealevel Linux software is distributed as source code. To use the software, it must
be compiled. Refer to the README file in each package for system prerequisites.
You must have administrative privileges to install the software. It is not necessary to
have administrative privileges to build or use the software.
All command syntax is case sensitive.
1. Insert the Sealevel media into your PC.
2. If your desktop environment does not auto-mount the media, you will need to do
so manually using the mount command. You may need administrative privileges
for the mount command to succeed.
3. Next change to the Sealevel media directory. For example, if the mount point of
your optical drive is /cdrom:
$ cd /cdrom/Software/SeaIO/Linux
4. Copy [package name].tar.gz to your home directory by typing:
$ cp SeaIO_X.Y.Z.tar.gz ~
5. Change to your home directory by typing:
$ cd
6. Extract the software from the compressed archive by using:
$ tar -zxvf SeaIO_X.Y.Z.tar.gz
7. Change to the package directory by typing:
$ cd seaio
8. Compile the software from source by typing:
$ make
9. Elevate permission level by changing to root:
$ su
Or use the ‘super user do’ command:
$ sudo s
10. Install the drivers by typing:
$ make install
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
14
11. If the package contains drivers, refer to the documentation for your package to
find the command that will load your drivers. For example, the SeaI/O package
uses:
$ seaioload
At this point, the driver has enabled the hardware and it is ready to use. You now have the
option to run a test utility on it. Test utilities were compiled in Step 8, and they are located in
the package‟s folder named seaio/utilities/ and installed globally in Step 10 to: /usr/bin.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
15
The SeaIevel adapter can be installed in an ISA/PCI/PCIe expansion slot.
5V keyed PCI cards will not fit or work in 3.3V keyed PCI slots.
ISA Card Edge (5V)
PCI Bus Card Edge (5V)
Universal PCI Bus Card Edge (3.3 and 5V)
PCI Express x1
Do not install the adapter in the machine until the product software has been fully
installed.
To prevent damage from improper handling, please reference Appendix A ESD
Handling Instructions.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
16
1. Turn off PC power. Disconnect the power cord.
2. Remove the PC case cover.
3. Locate an available ISA/PCI/PCIe slot and remove the blank metal slot cover.
4. Gently insert the ISA/PCI/PCIe adapter into the slot. Make sure that the adapter is
seated properly.
5. Replace the screw you removed for the blank and use it to secure the adapter
bracket into the slot. This is required to ensure FCC Part 15 compliance.
6. Replace the cover.
7. Connect the power cord.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
17
Programming the DIO-16.LPCI
Sealevel‟s SeaI/O software is provided to assist in the development of reliable applications for
the Sealevel Systems family of digital I/O adapters. Included on the SeaI/O CD are driver
functions for use in accessing the I/O as well as helpful samples and utilities.
The SeaI/O API (Application Programmer Interface) provides a variety of useful high-level
function calls implemented in a Windows dynamic link library (DLL). The API is defined in the
help file (Start/Programs/SeaIO/SeaIO Help) under “Application Programmers Interface”. This
help file also includes detailed information dealing with installation / removal of the software
and information about latency, logic states, and device configuration.
For C language programmers we recommend using the API to access the DIO-16.LPCI. If you
are programming in Visual Basic, using the ActiveX control included with SeaI/O is advised.
A variety of sample programs and utilities (both executable and source code) are included with
SeaI/O. Further documentation on these samples can be found by selecting
“Start/Programs/SeaIO/Sample Application Description”. Information about where the files are
physically stored on your disk is also included in this same file.
SeaI/O for Linux consists of two major parts: a kernel module and a library. The kernel module
is a simple IO pass-through device, allowing the library to handle the more sophisticated
functions provided to SeaI/O users. It is provided in a „tarball‟ format and can easily be
compiled and included in the kernel build.
In systems where the users program has direct access to the hardware (DOS) the tables that
follow give the mapping and functions that the DIO-16.LPCI provides. The DIO-16.LPCI provides
two parallel input/output (I/O) ports. The ports are organized as ports A and C. Port A is an
input port interfaced to optically-isolated inputs, while port C is the reed relay output port.
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
18
Reference the following sections for more information about the meaning and use of the
registers available.
Address
Mode
Mode
D7
D6
D5
D4
D3
D2
D1
D0
Base+0
Input Port A
RD
PAD7
PAD6
PAD5
PAD4
PAD3
PAD2
PAD1
PAD0
Base+2
Output Port C
RD/WR
PCD7
PCD6
PCD5
PCD4
PCD3
PCD2
PCD1
PCD0
Base+5
Interrupt Status
RD/WR
IRQEN
IRQST
0
0
0
0
IRC1
IRC0
The inputs are active Low. If no voltage is applied across one of the differential inputs it
returns a one on that bit. If an AC or DC voltage is applied it returns a zero on that bit.
The relay ports return the ones complement of the value that is currently being used to drive
the relays. When using the API the actual value is returned not the complement of the value.
The output ports are the only ports that can be written. The relays on a standard DIO-16.LPCI
are normally open. To close a relay a one must be written to the appropriate bit.
When enabled, interrupts are generated on Port A bit D0.
IRQEN
Interrupt enable
1 = enabled
0 = disabled ( 0 on power up )
IRC0
IRC1
Interrupt mode select, see table below
Interrupt mode select, see table below
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
19
Interrupt source is Base+5 bits D1 and D0. When selecting the Interrupt Type, always disable
interrupts prior to changing or setting states. This will help prevent inadvertent or unexpected
interrupts from occurring.
IRC1
IRC0
Interrupt Type
0
0
Low Level
0
1
High Level
1
0
Falling Edge
1
1
Rising Edge
When using the High and Low Level interrupts, an interrupt occurs when input D0
changes to either a High or Low state. This will cause the computer to remain in an
interrupt state until the input state changes.
Reading the Interrupt Status port (Base+5) clears any interrupt pending.
IRQST
(D0) Interrupt Status
1 = interrupt pending, 0 = none
©Sealevel Systems, Inc.
SL9018 03/2011
DIO-16.LCPI Manual
20
Port A is an 8 bit input port connected to optically isolated input sensors. Each sensor can be
used to interface a voltage input and then sense whether the voltage is on or off. Each sensor is
isolated (with respect to a common ground) from every other sensor, and is also isolated with
respect to the host PC ground. This means that signals such as low-level AC line voltage, motor
servo voltage, and control relay signals can be sensed‟, or read by the PC, without the risk of
damage due to ground loops or ground faults.
Each sensor input pair has a current limiting resistor that is used to limit the input current to
the opto-isolator. The opto-isolator has two „back-to-back‟ diodes internally. This allows AC or
DC signals to be sensed, regardless of polarity. When the applied voltage is high enough to
cause the LED in the opto-isolator to turn-on, the output of the opto-isolator goes low (0 volts)
and the signal is read as a low logic level (binary 0) by the PC. When the input signal is too low
to turn on the opto-isolator, the output goes high and the port bit is read by the PC as a high
logic level (binary 1).
The input impedance of each isolated input is approximately 560 ohms (factory default). The
opto-isolator requires approximately 3mA to turn on. The maximum input current is 20mA.
The input circuits are not intended for monitoring 120-volt AC circuits. In addition to
being too high a voltage for the circuits, it is dangerous to have that high a voltage on
the card.
Port A Bit
Port A Pins
0
2,40
1
3,41
2
4,36
3
5,37
4
6,38
5
7,42
6
8,43
7
9,44
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41

SeaLevel DIO-16.LPCI User manual

Category
Interface cards/adapters
Type
User manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI