meilhaus electronic manual me-9000/9100/9300 2...manual me-90 pc/104-plus, me-9000/9100/9300...

122
Meilhaus Electronic Manual ME-9000/9100/9300 2.3E PCI-, PCI Express, PC/104-Plus and CompactPCI Versions RS-232 or RS-422/485 Interface Boards with up to 16 ports (optional: opto-isolation)

Upload: vuongngoc

Post on 20-May-2018

218 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Meilhaus Electronic Manual

ME-9000/9100/9300 2.3EPCI-, PCI Express, PC/104-Plus and CompactPCI Versions

RS-232 or RS-422/485 Interface Boards with up to 16 ports (optional: opto-isolation)

Page 2: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

ImprintManual ME-90/9000/9100/9300

Revision 2.3ERevised: 5. August 2009

Meilhaus Electronic GmbHFischerstraße 2D-82178 Puchheim/MunichGermanyhttp://www.meilhaus.com

© Copyright 2009 Meilhaus Electronic GmbH

All rights reserved. No part of this publication may be reproduced or distributed in any form whether photocopied, printed, put on microfilm or be stored in any electronic media without the expressed written consent of Meilhaus Electronic GmbH.

Important note:The information contained in this manual has been reviewed with great care and is believed to be complete and accurate. Meilhaus Electronic assumes no respon-sibility for its use, any infringements of patents or other rights of third parties which may result from use of this manual or the product. Meilhaus Electronic as-sumes no responsibility for any problems or damage which may result from errors or omissions. Specifications and instructions are subject to change without notice.

Borland Delphi is a trademark of Borland International Inc.Turbo/Borland C is a trademark of Borland International Inc.Visual C++ and Visual Basic are trademarks of the Microsoft Corporation.VEE Pro and VEE OneLab are trademarks of Agilent Technologies.ME-VEC and ME-FoXX are trademarks of Meilhaus Electronic.Other company names and product names found in the text of this manual are also trademarks of the companies involved.

Page 3: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Table of Content1 Introduction ........................................................................................ 7

1.1 Important Notes ......................................................................... 71.1.1 Use in Accordance with the Requirements............................ 71.1.2 Improper Application.............................................................. 81.1.3 Unforseeable Misapplication .................................................. 8

1.2 Package contents........................................................................ 91.3 Features..................................................................................... 101.4 System Requirements............................................................... 141.5 Available Software.................................................................... 14

2 Installation......................................................................................... 152.1 Hardware Installation.............................................................. 152.2 Driver Installation.................................................................... 16

2.2.1 Unpacking the Driver Software............................................ 162.2.2 Installation under Windows* 95/98/Me/2000/XP................ 172.2.3 Checking the Installation under Windows* 95/98/Me/2000/XP

182.2.4 Installation under Windows NT 4.0 ..................................... 192.2.5 Checking the Installation under Windows NT 4.0 .............. 192.2.6 Installation of the ME Software Developer Kit .................... 202.2.7 Updating the System Driver.................................................. 20

2.2.7.1 … under Windows 95/98/Me/2000/XP ............... 202.2.7.2 … under Windows NT 4.0 .................................. 21

2.3 Port Configuration ................................................................... 222.3.1 …under Windows 95/98/Me................................................ 22

2.3.1.1 Port Settings ........................................................... 232.3.1.2 Settings „Advanced“ ............................................ 24

2.3.2 …under Windows 2000/XP ............................................. 252.3.2.1 Port Settings ........................................................... 262.3.2.2 Settings „Advanced“ ............................................ 27

2.3.3 …under Windows NT 4.0..................................................... 282.3.3.1 Settings „ME SIO Ports“ ................................... 292.3.3.2 Port Settings ........................................................... 30

3 Hardware ........................................................................................... 313.1 Block Diagram ME-9000........................................................... 313.2 Block Diagram ME-9100........................................................... 323.3 Block Diagram ME-9300........................................................... 333.4 Block Diagram ME-90 PC/104-Plus.......................................... 34

Meilhaus Electronic Page 3 Table of Content

Page 4: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.5 Hardware Options .................................................................... 353.5.1 ME-9000 PCI/PCIe/cPCI........................................................ 35

3.5.1.1 Multi-I/O-Port......................................................... 353.5.1.2 Echo ON/OFF ........................................................ 36

3.5.2 ME-9100 PCI .......................................................................... 403.5.3 ME-9100 CompactPCI ........................................................... 413.5.4 ME-9300 PCI .......................................................................... 423.5.5 ME-90 PC/104-Plus................................................................ 43

3.5.5.1 Multi-I/O-Port......................................................... 433.5.5.2 Assignment of the PCI Slots ................................. 443.5.5.3 Configuration of RS-422/485 Ports ....................... 443.5.5.4 Echo ON/OFF ........................................................ 46

3.6 Connection Options ................................................................ 473.6.1 Dual/Quad/Octopus Cables ................................................. 473.6.2 Flat Ribbon Cable to 9pin D-Sub Connectors ..................... 473.6.3 Terminal Panel for ME-9000/9100........................................ 483.6.4 Terminal Panel for ME-9300 ................................................ 50

3.7 Operation Modes ...................................................................... 533.7.1 The RS-232 Standard ............................................................. 533.7.2 The RS-422/485 Standard...................................................... 55

3.7.2.1 RS-422..................................................................... 563.7.2.1.1 ME-9000 ............................................... 563.7.2.1.2 ME-9100 ............................................... 573.7.2.1.3 ME-90 PC/104-Plus .............................. 57

3.7.2.2 RS-485 half duplex................................................. 583.7.2.2.1 ME-9000 ............................................... 583.7.2.2.2 ME-9100 ............................................... 593.7.2.2.3 ME-90 PC/104-Plus .............................. 59

3.7.2.3 RS-485 full duplex.................................................. 603.7.2.3.1 ME-9000 ............................................... 603.7.2.3.2 ME-9100 ............................................... 613.7.2.3.3 ME-90 PC/104-Plus .............................. 61

4 Programming..................................................................................... 634.1 ME-9000 Multi-I/O Driver ........................................................ 63

4.1.1 Visual C++ ........................................................................ 644.1.2 Visual Basic .................................................................... 644.1.3 Delphi ............................................................................... 654.1.4 Agilent VEE............................................................................ 654.1.5 LabVIEW................................................................................ 65

4.2 Digital-I/O Section ................................................................ 664.3 Counter ................................................................................. 68

Table of Content Page 4 Meilhaus Electronic

Page 5: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

5 Function Reference ........................................................................... 715.1 General Notes ........................................................................... 715.2 Naming Conventions ............................................................... 715.3 Description of the API Functions............................................ 73

5.3.1 Error Handling ..................................................................... 755.3.2 General Functions ................................................................. 795.3.3 Digital Input/Output ............................................................. 825.3.4 Counter Functions .............................................................. 93

Appendix................................................................................................ 101A Specifications.......................................................................... 101B Pinout...................................................................................... 105

B1 ME-9000/9100 RS-232........................................................... 105B2 ME-9000/9100 RS-422/485 .................................................. 106B3 ME-9300 RS-232................................................................... 107B4 ME-90 PC/104-Plus ............................................................... 108B5 Auxiliary Connector ST2 (ME-9000) .................................... 110B6 Auxiliary Connector ST3 (ME-90 PC/104-Plus)................... 111B7 9pin male connector ME-9000/9100/9300 .......................... 112B8 9pin male connector ME-90 PC/104-Plus .......................... 112B9 8pin RJ-45 female connectors.............................................. 113B10 Null modem cable................................................................ 113

C Accessories.............................................................................. 114D Technical Questions............................................................... 116

D1 Hotline .................................................................................. 116D2 Service address ..................................................................... 116D3 Driver Update ....................................................................... 116

E Constant Definitions ............................................................. 117F Index ....................................................................................... 119

Meilhaus Electronic Page 5 Table of Content

Page 6: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Table of Content Page 6 Meilhaus Electronic

Page 7: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

1 Introduction Valued customer,

you have chosen an innovative high technology product that leftour premises in a fully functional and new condition.

Take the time to carefully examine the contents of the packagefor any loss or damage that may have occurred during shipping.If there are any items missing or if an item is damaged, contactus immediately.

Before you install the board in your computer, read this manualcarefully, especially the chapter describing board installation.The board is fully Plug&Play compatible. There are no jumpersor switches to be set.

1.1 Important Notes

1.1.1 Use in Accordance with the Requirements

The PC boards of the ME-9x00 series are serial interface boards(RS-232 or RS-422/485) to be built into a PC. Depending on typeinstall the models of the ME-9x00 series into:

… a free PCI slot, or

… a free PCI-Express slot, or

… a free CompactPCI slot

The boards of the ME-90 PC/104-Plus series are serial interfaceboards (RS-232 or RS-422/485) in the PC/104 format to be inte-grated in a PC/104-Plus stack.

For installing a plug-in board please read the manual of your PC.

Please follow the notes and the specifications from page 101 on:

• Ensure a sufficient heat conductance from the board in the PC housing.

• The partially opto-isolated inputs and outputs achieve anelectrical isolation of the application relative to PC ground ofup to 500V.

Meilhaus Electronic Page 7 Introduction

Page 8: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

• Note, that the computer must be powered up, prior connec-ting signals by the external wiring of the board.

• Basically all connections to the board should only be made or removed in a powered down state of all components.

• Ensure that no static discharge occurs when handling the board or when connecting/disconnecting the external cable.

• Ensure that the connection cable is properly connected. It must be seated firmly on the D-Sub connector and must be tightened with the both screws, otherwise proper operation of the board can not be guaranteed!

1.1.2 Improper Application

PC plug-in boards for the PCI, PCI-Express or CompactPCI busmay not be taken into operation outside of the PC. PC/104-Plusboards may not be taken into operation outside of an embeddedsystem. Never connect the devices with voltage-carrying parts,especially not with mains voltage. As power supply of the USBmodels only an authorizied power adapter may be used.

Make sure, that not any contact with voltage-carrying parts canhappen by the external wiring of the device. Basically all connec-tions should only be made or removed in a powered down state.

1.1.3 Unforseeable Misapplication

The device is not suitable to be used as children´s toy, in house-hold or under unfavourable environment conditions (e. g. in theopen). Appropriate precautions to avoid an unforseeable mis-application must be taken by the user.

Introduction Page 8 Meilhaus Electronic

Page 9: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

1.2 Package contents

We take great care to make sure that the package is complete inevery way. We do ask that you take the time to examine the con-tents of the box. Your box should consist of:

• RS-232 resp. RS-422/485 interface board (depending on versi-on ordered):

- ME-90 PC/104-Plus or…

- ME-9000 cPCI, PCI or PCIe or…

- ME-9100 cPCI or PCI or…

- ME-9300 PCI

• Manual in PDF format on CD/DVD (optional as printed version)

• Driver software on CD/DVD

• ME-9000/9100: dual-, quad- or octopus connection cable from 78pin D-Sub male connector to 2, 4 resp. 8 x 9pin D-Sub male connector, 1 m

• ME-9000 PCI/PCIe/cPCI: Additional mounting bracket for DIO port with flat ribbon cable to 25pin D-Sub female con-nector for PCI/PCIe (ME-AK-D25F/S) resp. CompactPCI slot.

• ME-90 PC/104-Plus: Flat ribbon cable for DIO port to 25pin D-Sub female connector (ME-AK-D25F)

• ME-90 PC/104-Plus: 2 x flat ribbon cable with each 4 x 9pin D-Sub male connector (2 x ME-AK-4D9M)

More connectivity options see page 47.

Meilhaus Electronic Page 9 Introduction

Page 10: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

1.3 Features

Model Overview

* The PCI-Express models, the ME-9000 PCI models (fromRev. 1.4 up) and the ME-9000 CompactPCI models (fromRev. 1.2 up) are provided with optional opto-isolation from PCground („i“-models) resp. with electrically insulation betweenthe single ports („p“-models).

Note: Further versions on request ([email protected]).

The ME-9000 series is a high-integrated serial interface boarddesigned for PCI, PCI-Express resp. CompactPCI bus. It providesa PCI controller with integrated Octo-UART of type EXARXR17D158IV for extended temperature range. The UARTs are re-gister compatible with the 16550 and provide an integrated

ME-9000 Models Serial Ports

ME-9000(i/p)*/2 RS232PCI/PCIe/cPCI

2 RS-232 ports up to 921,6 kBd

ME-9000(i/p)*/4 RS232PCI/PCIe/cPCI

4 RS-232 ports up to 921,6 kBd

ME-9000(i/p)*/8 RS232PCI/PCIe/cPCI

8 RS-232 ports up to 921,6 kBd

ME-9000(i/p)*/2 RS485PCI/PCIe/cPCI

2 RS-485 ports up to 921,6 kBd

ME-9000(i/p)*/4 RS485PCI/PCIe/cPCI

4 RS-485 ports up to 921,6 kBd

ME-9000(i/p)*/8 RS485PCI/PCIe/cPCI

8 RS-485 ports up to 921,6 kBd

ME-9000(i/p)*/2 MIXPCI/PCIe/cPCI

1 RS-232 port and 1 RS-485 port up to 921,6 kBd

ME-9000(i/p)*/8 MIXPCI/PCIe/cPCI

4 RS-232 ports and 4 RS-485 ports up to 921,6 kBd

Table 1: Model overview ME-9000

Introduction Page 10 Meilhaus Electronic

Page 11: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

64 byte transmit and receive FIFO for each port. The board al-lows transfer rates up to 921,6 kBd. There are versions availablewith up to 8 ports for RS-232 and/or RS-422/485 standard. TheME-9000 PCI and cPCI versions adapt themselves automaticallyto the level at the PCI bus of +3.3V or +5V (Universal PCI).

As a special the ME-9000 offers an 8 bit multi-I/O-port for custo-mer specific extensions. See also chapter 4.1 "ME-9000 Multi-I/ODriver" from page 63 on.

The ME-9000i models provide opto-isolation of all serial portsfrom PC ground. I. e. as seen from the application all ports referto a common, isolated ground (GND_C). The isolation voltage is500V.

ME-9000p models: each serial port is an electrically isolated„island“ with separate ground (GND_x). It is ideal for noise sen-sitive environments in industrial control. The isolation voltage is500V.

Meilhaus Electronic Page 11 Introduction

Page 12: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

The ME-9100i is a high speed serial interface board designed forPCI- resp. CompactPCI bus. There are versions which are availa-ble with 4 or 8 ports for RS-232 or RS-422/485 standard. TheUARTs are 16550 compatible and are good for transfer rates upto 921,6 kBd. Each port has an integrated 128 byte transmit andreceive FIFO. The ports are opto-isolated by default („i“-ver-sions).

The ME-9300 is a multi-port RS-232 interface board designed forthe PCI-bus. The board is available with 16 ports and is good fortransfer rates up to 921,6 kBd. The UARTs are 16550 compatibleand each port provides an integrated 128 byte transmit and recei-ve FIFO. Connecting the serial ports we recommend fitting con-nection panels, which are available in several versions (see chap.3.6 "Connection Options").

ME-9100 Models Serial Ports

ME-9100i/4 RS232PCI/cPCI

4 RS-232 ports up to 921,6 kBd with opto-isolation

ME-9100i/8 RS232PCI/cPCI

8 RS-232 ports up to 921,6 kBd with opto-isolation

ME-9100i/4 RS485PCI/cPCI

4 RS-485 ports up to 921,6 kBd with opto-isolation

ME-9100i/8 RS485PCI/cPCI

8 RS-485 ports up to 921,6 kBd with opto-isolation

Table 2: Model overview ME-9100

ME-9300 Models Serial Ports

ME-9300/16 RS232PCI

16 RS-232 ports up to 921,6 kBd

Table 3: Model overview ME-9300

Introduction Page 12 Meilhaus Electronic

Page 13: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Note: Further versions on request ([email protected]).

The ME-90 PC/104-Plus series is a serial interface board com-pliant to PC/104-Plus specification 2.3 with PCI interface (3.3V or5V) and a „looped through“ ISA bus. I. e. if you have a PC/104-Plus single board computer, which supports PCI as well as ISAbus you can combine the ME-90 PC/104-Plus with ISA-based PC/104 boards without problems.

The ME-90 PC/104-Plus provides a PCI controller with integra-ted Octo-UART of type EXAR XR17D158IV for extended tempe-rature range. The UARTs are register compatible with the 16550and provide an integrated 64 byte transmit and receive FIFO foreach port. The board allows transfer rates up to 921,6 kBd. Thereare versions available either with 8 RS-232, 8 RS-422/485 or mi-xed with 4 RS-232 and 4 RS-422/485 ports. The routing of the PCI-bus signals CLK, IDSEL and INT0# is done by jumpers. The ME-90PC/104-Plus adapts itself automatically to the level at the PCI-busof +3.3V or +5V (Universal PCI).

With its extended temperature range from -40°C to +85°C itis the ideal solution for industrial applications.

As a special the ME-90 PC/104-Plus offers an 8 bit multi-I/O-portfor customer specific extensions. See also chapter 4.1 "ME-9000Multi-I/O Driver" from page 63 on.

ME-90 PC/104-Plus Models Serial Ports

ME-90/8 RS232 PC/104-Plus 8 RS-232 ports up to 921,6 kBd

ME-90/8 RS485 PC/104-Plus 8 RS-422/485 ports up to 921,6 kBd

ME-90/8 MIX PC/104-Plus 4 RS-232 ports and 4 RS-422/485 ports up to 921,6 kBd

Table 4: Model overview ME-90 PC/104-Plus

Meilhaus Electronic Page 13 Introduction

Page 14: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

1.4 System Requirements

The ME-9000/9100/9300 can be installed into any computer withan Intel® Pentium® or compatible computer with a free standardPCI, PCI Express or CompactPCI slot (depends on model).

The ME-90 PC/104-Plus can be used as a PCI-based peripheralboard in a PC/104 stack.

1.5 Available Software

The provided software enables quick integration of the boardsunder all common operating systems. Using Windows the portscan be accessed as standard COM ports.

Note: The ME-9000 and ME-90 PC/104-Plus are not suppor-ted under Windows 95/98/Me!

System Drivers Current driver support see README files

High level language support Every programming language which supports access to Win32Com API (e. g. Visual C, Delphi)

Graphical programming languagese. g.: HP VEE, HP VEE Lab, Agilent VEE Pro, Agilent VEE OneLab, LabView™: no extra driver neccessary; ports can be accessed as COM ports under Windows

For the newest versions and latest software releases, please con-sult the README files included with the driver software.

Introduction Page 14 Meilhaus Electronic

Page 15: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

2 InstallationImportant Note:

If you have got the driver software as an archive file (e. g. bydownload or the Windows 9x driver coming with CD/DVD),please unpack the software before installing the board to a di-rectory of your choice.

Now insert the board into your computer (see chapter „HardwareInstallation) and then install the driver software (see chapter„Driver Installation“). This order of operation is important to gua-rantee the Plug&Play operation under Windows* 95/98/Me/2000/XP and Vista. Windows NT 4.0 needs an analogous order of ope-ration however the installation procedure differs slightly.

*If the Windows version is supported by the appropriate board type (seereadme files).

2.1 Hardware Installation

The following chapter applies also to the installation of PC/104(-Plus) boards.

Please read your computer manual instructions first on how to in-stall new hardware components.

Basically use the following procedure for installing the board.

Make sure that the computer is turned off.

Caution: some of the more sensitive components can be dama-ged by static electricity!

That´s why: Make sure to ground yourself by touching an ex-posed metal part of the PC case before handling the board.

Unplug the power cable from your computer.

Open the computer case.

Pick up your board carefully with both hands. Be careful not tobend the board or to damage the edges in any way. This couldlead to short circuits on the board. Do not exert too much pres-sure when inserting the board into the slot. A small amount of

Meilhaus Electronic Page 15 Installation

Page 16: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

force should be all that is required to seat the board fully and pro-perly into the slot.

Close the computer case.

Connect the power cable to your computer.

Power up your computer and continue with the chapter „Driver Installation“.

2.2 Driver Installation

2.2.1 Unpacking the Driver Software

Proceed the following steps if you have got the driver update asa self extracting archive (e. g. by download or the Windows 9xdriver coming with the CD/DVD, if supported by the regardingmodel). Else you can start directly with the driver installation (seethe following chapters).

Navigate to the appropriate archive file (e.g.<Drive>:\InstallWindows\Serial\me-9x00\win9x\

me9x00vxd.exe) and unpack the driver software by double clicking the archive file.

Enable the option „Overwrite Files Without Prompting“ (default)

Only Windows NT 4.0: enable the option „When Done Unzip-ping Run: setup.exe“

Choose a directory and click on „Unzip“. By default the direc-tory C:\Meilhaus\ME-9x00\install will be used.

⇒ The driver software will be unpacked.

Click on „Close“

Continue with the following chapters.

Installation Page 16 Meilhaus Electronic

Page 17: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

2.2.2 Installation under Windows* 95/98/Me/2000/XP

*If the Windows version is supported by the appropriate board type (seereadme files)

! If you have got the driver as a self extracting archive (e.g. by download or the Windows 9x driver coming with the CD/DVD) you must unpack the driver software first. See chap. 2.2.1 "Unpacking the Driver Software".

After inserting the board and rebooting it will be detected auto-matically by the Windows „Hardware Wizard“ and the message„New Hardware Found“ will be displayed. The dialogs may differslightly depending on your Windows version.

Note for Windows Vista: For safty reasons the user accountcontrol of Windows Vista requires your confirmation to proceedwith the installation for several times. If you don´t have the ap-propriate rights contact your system administrator.

With the hardware wizard select the option „Specify a locati-on:“ and click the button Browse.

Select the source for the installation of the driver software and start the installation by OK.

⇒ The driver will be installed.

⇒ The currently installed board will be added to the device manager under „Multi-function Adapter“ (Windows 95/98/Me) resp. „Multi-port Serial Adapter“ (Windows 2000/XP).

⇒ The ports of the board will be added to the device mana-ger under „Ports (COM & LPT)“.

Reboot your computer.

For high level language support, demos and test programs please install the ME-Software-Developer-Kit (see separat chapter).

Test the function of the board by the test program.

Meilhaus Electronic Page 17 Installation

Page 18: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

2.2.3 Checking the Installation under Windows* 95/98/Me/2000/XP

*If the Windows version is supported by the appropriate board type (seereadme files)

Use the Device Manager to check the proper entry of the board.

Run the Device Manager:

• under Windows 95/98/Me:

START-Menu Settings System Control System Device Manager

• under Windows 2000:

START-Menu Settings System Control Sy-stem System Properties Hardware Device Manager

• under Windows XP:

START-Menu System Control Performance and Maintenance System Hardware Device Manager

Check the entry of your board in the device manager. The entry must not be marked with the symbol „exclamation mark on a yellow circle“. This would indicate an installati-on error.

By double clicking, open the window „Settings for…“. ⇒ When clicking the property page Resources, the follo-wing resource settings are shown: interrupt, memory ran-ge and I/O range. Under „Device conflicts:“ the message „No conflicts“ must be found.

If one of the above noted entries does not exist, check the follo-wing items:

? Your new board was assigned to the device class „? Other Components“. This could happen when installing Windows when a new board is plugged in the computer or if the instal-lation was cancelled (depending on the system).

⇒ If this occurs, delete the entry, reboot your computer and run the driver installation once more.

Installation Page 18 Meilhaus Electronic

Page 19: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

? Is there an address or interrupt conflict?

⇒ Edit the BIOS-Settings of your computer if necessary (pos-sibly reserving an IRQ channel for ISA boards) or change the interrupt assignment under Windows. Refer to the ma-nuals of the relevant devices.

⇒ The property page General should show „Device is ready to run“ under „Device Status“ and the property page Re-sources must show „No conflicts“ under „Device con-flicts“.

⇒ Reboot your computer if you have changed any settings.

2.2.4 Installation under Windows NT 4.0

! If you have got the driver as a self extracting archive (e.g. by download or from CD/DVD) you must unpack the driver soft-ware first. See chap. 2.2.1 "Unpacking the Driver Software".

If the setup program doesn´t start automatically after un-packing the driver browse to the ME-9x00 driver installation (default: C:\Meilhaus\ME-9x00\install\sys) and start the SETUP.EXE file there by double-click.

⇒ The driver will be installed.

Reboot your computer.

For high level language support, demos and test programs please install the ME-Software-Developer-Kit (see separat chapter).

Test the function of the board by the test program.

2.2.5 Checking the Installation under Windows NT 4.0

The proper entries for the memory range and interrupt can bechecked in Windows NT Diagnostics under Resources.

Meilhaus Electronic Page 19 Installation

Page 20: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

2.2.6 Installation of the ME Software Developer Kit

The ME Software Developer Kit (ME-SDK) provides program-ming support for all common high level languages as well assamples, test programs and tools for all ME PCI boards. The in-stallation is optional.

Navigate to the directory with the self-extracting archieve file of the ME-SDK (mesdk.exe). When installing from the ME-Power-DVD choose <Drive>:\Legacy\me-boards\me-sdk. Select the file „mesdk.exe“ and start unpacking by OK.

Enable the option „Overwrite Files Without Prompting“

Choose a directory and click on „Unzip“. By default the files are copied to the directory C:\Meilhaus\me-sdk.

⇒ High level language support, examples, tools and test pro-grams will be copied.

Click on „Close“

Note: The system driver must be installed separatly.

2.2.7 Updating the System Driver

If you have got the driver update as a self extracting archive (e. g.by download) please unpack the driver software first (see „Un-packing the Driver Software” on page 16).

2.2.7.1 … under Windows 95/98/Me/2000/XP

Run the Device Manager:

• under Windows 95/98/Me:

START-Menu Settings System Control System Device Manager

• under Windows 2000:

START-Menu Settings System Control Sy-stem System Properties Hardware Device Manager

Installation Page 20 Meilhaus Electronic

Page 21: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

• under Windows XP:

START-Menu System Control Performance and Maintenance System Hardware Device Manager

Choose the property page Driver in the device manager and click on the button Update Driver.

The Device Driver Wizard will be started. Choose the option „Specify a location:“ and click on Browse.

Choose the source for the driver update, e. g. CD/DVD. If you got the driver update as an archive file (e. g. by download), browse your computer for the directory you unpacked the driver to (default: C:\Meilhaus\ME-9x00\install\…). Start the update with OK.

⇒ The driver will be updated.

Reboot your computer.

2.2.7.2 … under Windows NT 4.0

! If you have got the driver as a self extracting archive (e.g. by download or from CD/DVD) you must unpack the driver soft-ware first. See chap. 2.2.1 "Unpacking the Driver Software".

Install the new driver as described in chapter 2.2.4 "Installati-on under Windows NT 4.0".

Meilhaus Electronic Page 21 Installation

Page 22: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

2.3 Port Configuration

2.3.1 …under Windows 95/98/Me

Use the device manager to check the port assignments and tochange the settings. Choose:

START-Menu Settings System Control System Device Manager

The ports of the ME-9100/9300 will be added under „Ports (COM& LPT)“ and the COM ports automatically assigned. In the follo-wing diagram you see a typical installation of a ME-9100 with 4ports for RS-485 operation:

Diagram 1: Entry of ports in the device manager

Installation Page 22 Meilhaus Electronic

Page 23: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Mark the appropriate port in the device manager under „Ports“(see diagram 1) and click the button „Properties“ to display theproperties.

2.3.1.1 Port Settings

For most of the application programs the „Port Settings“ done inthe device manager are not relevant. Exception: board specificparameters like the operation mode (see chap. 2.3.1.2). Thereforecheck the transfer parameters in your application program (e. g.Hyper Terminal). The following settings are possible:

• Bits per Second: depending on board version all settings sel-ectable in Windows up to 921,6 kbps (see also appendix A "Specifications", page 101)

• Data bits: 4; 5; 6; 7; 8

• Parity: None, Odd, Even, Mark, Space

• Stop bits: 1; 1,5; 2

• Flow control: Xon/Xoff, Hardware, None

Diagram 2: Port Settings (standard)

Meilhaus Electronic Page 23 Installation

Page 24: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

2.3.1.2 Settings „Advanced“

The property page „Advanced“ offers you the ability to set theoperation mode of RS422/485 ports (see chap. 3.7 "OperationModes") and the FIFO trigger level. Every port provides separatetransmit and receive FIFOs. Each of them with a size of 128 Bytes(ME-9100/9300). For adaption to your system there is the possi-bility to set the trigger level for reading resp. writing the FIFO.When the trigger level is matched an interrupt occurs. For mostapplications the default setting is useful.

Diagram 3: Port Settings „Advanced“

Only for RS422/485 ports!

Installation Page 24 Meilhaus Electronic

Page 25: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

2.3.2 …under Windows 2000/XP Use the device manager to check the port assignments andchange the settings. Choose:

… under Windows 2000:

START-Menu Settings System Control System System Properties Hardware Device Manager

… under Windows XP:

START-Menu System Control Performance and Maintenance System Hardware Device Manager

The ports of the ME-9000/9100/9300 as well as the ME-90 PC/104-Plus will be added under „Ports (COM & LPT)“ and the COMports automatically assigned. In the following diagram you see atypical installation of a ME-9100 with 4 ports for RS-485 operati-on:

Diagram 4: Entry of ports in the device manager

Meilhaus Electronic Page 25 Installation

Page 26: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Mark the appropriate port in the device manager under „Ports“(see diagram 4) and click the button „Properties“ to display thesettings.

2.3.2.1 Port Settings

For most of the application programs the „Port Settings“ done inthe device manager are not relevant. Exception: board specificparameters like the operation mode (see chap. 2.3.2.2). Thereforecheck the transfer parameters in your application program (e. g.Hyper Terminal). The following settings are possible:

• Bits per Second: depending on board version all settings sel-ectable in Windows up to 921,6 kbps (see also appendix A "Specifications" on page 101)

• Data bits: 4; 5; 6; 7; 8

• Parity: None, Odd, Even, Mark, Space

• Stop bits: 1; 1,5; 2

• Flow control: Xon/Xoff, Hardware, None

Diagram 5: Port Settings (standard)

Installation Page 26 Meilhaus Electronic

Page 27: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

2.3.2.2 Settings „Advanced“

The property page „Advanced“ (see diagram 5) offers you theability to set the operation mode of RS422/485 ports (see chap.3.7 "Operation Modes") and the FIFO trigger level. Every portprovides separate transmit and receive FIFOs. Each of them witha size of 64 Byte (ME-9000 and ME-90 PC/104-Plus) resp.128 Bytes (ME-9100/9300). For adaption to your system there isthe possibility to set the trigger level for reading resp. writing theFIFO. When the trigger level is matched an interrupt occurs. Formost applications the default setting is useful.

Diagram 6: Port Settings „Advanced“

We recommend not to change the assignment of the COM-Portsby the pull down menu „COM Port Number“.

Only for RS422/485 ports!

Meilhaus Electronic Page 27 Installation

Page 28: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

2.3.3 …under Windows NT 4.0

The assignment of COM ports is done automatically by the ope-ration system. Under „Control Panel“ double click the icon„ME SIO Ports“ to check the port assignments and change the set-tings.

Diagram 7: Control Panel

In the following diagram you see a typical installation of twoboards the first one with 4 RS-232 ports and the second one with4 RS-485 ports. You get the following information:

Beginning from the left side the name is displayed which refersto the port, followed by the assignment of the port number to theboard, the corresponding serial number and last the interfacestandard (RS232 or RS485). COM10 is not visible on the diagram.

Diagram 8: Control panel „ME SIO Ports“

Installation Page 28 Meilhaus Electronic

Page 29: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

2.3.3.1 Settings „ME SIO Ports“

Mark a port in the control panel „ME SIO Ports“ (see diagram 8)and click the button „Settings“. The next dialog offers you theability to set the operation mode of RS422/485 ports (see chap.3.7 "Operation Modes") and the FIFO trigger level. Every portprovides separate transmit and receive FIFOs. Each of them witha size of 64 bytes (ME-9000 and ME-90 PC/104-Plus) resp.128 bytes (ME-9100/9300). For adaption to your system there isthe possibility to set the trigger level for reading resp. writing theFIFO. When the trigger level is matched an interrupt occurs. Formost applications the default setting is useful. (RX Buffer = Re-ceive FIFO and TX Buffer = Transmit FIFO.

Diagram 9: Settings „ME SIO Ports“ (RS232)

Diagram 10: Settings „ME SIO Ports“ (RS422/485)

Meilhaus Electronic Page 29 Installation

Page 30: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

2.3.3.2 Port Settings

For most of the application programs the settings done in thecontrol panel „Ports“ are not relevant. Exception: board specificparameters like the operation mode (see chap. 2.3.3.1). Thereforecheck the transfer parameters in your application program (e. g.Hyper Terminal). The following settings are possible:

• Bits per Second: depending on board version all settings sel-ectable in Windows up to 921,6 kbps (see also appendix A "Specifications" on page 101)

• Data bits: 4; 5; 6; 7; 8

• Parity: None, Odd, Even, Mark, Space

• Stop bits: 1; 1,5; 2

• Flow control: Xon/Xoff, Hardware, None

Installation Page 30 Meilhaus Electronic

Page 31: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3 Hardware

3.1 Block Diagram ME-9000

Diagram 11: Block diagram of the ME-9000(i/p)

*2, 4 or 8 RS-232 and/or RS-422/485 ports depending on version.Optional:

„i“-models: with a common electrically insulation from PC ground.

„p“-models: with electrically insulation from PC ground andbetween the ports („island-ports“).

ME-9000ME-9000

*

*

*

*

*

*

Digital-I/O&

Counter

8 Digital-I/Os (MIO_x)

TMRCK

20pi

nID

C c

onne

ctor

Address-/Data-bus

UARTs*(16550 compatible)

with integratedtransmit and receiveFIFO for each port

PC interface logic

78pi

n D

-Sub

con

nect

or (

fem

ale)

"i"-m

odel

s: c

omm

on in

sula

tion

from

GN

D_P

C*

"p"-

mod

els:

ele

ctric

ally

insu

latio

n fr

om G

ND

_PC

and

bet

wee

n th

e si

ngle

por

ts*

Meilhaus Electronic Page 31 Hardware

Page 32: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.2 Block Diagram ME-9100

Diagram 12: Block diagram of the ME-9100i

*2, 4 or 8 RS-232 and/or RS-422/485 ports depending on version.

ME-9100ME-9100

*

*

*

*Quad UART 2*

(16550 compatible)with integrated

transmit and receive FIFOfor each port

Quad UART 1(16550 compatible)

with integratedtransmit and receive FIFO

for each port

Address-/data-bus

Opto

isola

tion*

PCI bus interface logic

78pin

D-S

ub c

onnect

or

(fem

ale

)

Hardware Page 32 Meilhaus Electronic

Page 33: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.3 Block Diagram ME-9300

Diagram 13: Block diagram of the ME-9300

*8 or 16 RS-232 ports depending on version.

Address/Data-Bus

ME-9300ME-9300

PCI-bus interface logic

Quad UART 1

with integratedtransmit and receive

FIFO per port

Quad UART 2

with integratedtransmit and receive

FIFO per port

Quad UART 4*

with integratedtransmit and receive

FIFO per port

Quad UART 3*

with integratedtransmit and receive

FIFO per port

*

*B

68pi

n V

HD

C fe

mal

e co

nnec

tor

A

68pi

n V

HD

C fe

mal

e co

nnec

tor

68pi

n V

HD

C fe

mal

e co

nnec

tor

Meilhaus Electronic Page 33 Hardware

Page 34: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.4 Block Diagram ME-90 PC/104-Plus

Abb. 14: Blockschaltbild der ME-90 PC/104-Plus

8 RS-232 ports or 8 RS-422/485 ports or mixed 4 RS-232 and 4 RS-422/485 ports depending on version.

Digital-I/O&

Counter

8 Digital-I/Os (MIO_x)

TMRCK

20pi

nID

C c

onne

ctor

Address-/Data-bus

UARTs(16550 compatible)

with integratedtransmit and receiveFIFO for each port

PC/104-Plus Interface (PCI)

40pi

n ID

C c

onne

ctor

40pi

n ID

C c

onne

ctor

ME-90 PC/104-PlusME-90 PC/104-Plus

Hardware Page 34 Meilhaus Electronic

Page 35: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.5 Hardware Options

Depending on the model the boards differ concerning:

• Number of ports

• Standard-TTL (without opto-isolation), with common opto-isolation („i“-models) and with „island-ports“ („p“-models).

• RS-232 or RS-422/485 ports or mixed

The „MIX“ versions provide RS-232 as well as RS-422/485 ports.The RS-232 ports occupy always the lower significant ports follo-wed by the RS-485 ports.

With the following diagrams you can determine what version youare using if necessary.

3.5.1 ME-9000 PCI/PCIe/cPCI

3.5.1.1 Multi-I/O-Port

On the ME-9000 PCI (from Rev. 1.4 up), ME-9000 cPCI (from Rev.1.2 up) and ME-9000 PCI Express the multi-I/O port of the EXARXR17D158 chip can be used for customer specific extensions.The 26pin IDC connector (ST2) provides VCC (depending onmodel +5V or +3.3V), PC ground (GND_PC), 8 multi-I/O pins(MIO_x) and the clock input TMRCK. All the other pads are notconnected (n.c.). The pinout of ST2 can be found in appendixB5. A detailed description of the chip can be found in the data-sheet of the manufacturer under www.exar.com.

Attention: VCC at ST2 must not exceed 300 mA!

Meilhaus Electronic Page 35 Hardware

Page 36: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.5.1.2 Echo ON/OFF

On the RS-422/485 models of the ME-9000 you can determine thereceiver´s control by soldering bridges at the bottom of theboard. With that you can adapt the single ports to the needs ofyour application individually. See also description of the operati-on modes from page 56 up.

• Echo ON: Set the soldering bridge „ON“ and the receiver listens permanently (default setting).

• Echo OFF: Set the soldering bridge „OFF“ to control the receiver by the RTS signal. The reception becomes disabled during transmission.

Diagram 15: Soldering bridges

The position of the soldering bridges can be found with diagram17 (PCI), diagram 19 (PCIe) resp. diagram 21 (cPCI). Alternativlyyou can send your board to our service department. We will con-figure your board for your needs.

RS-232 RS-422/485

Echo ON(default)

n.c. Echo OFFON

OFF

Hardware Page 36 Meilhaus Electronic

Page 37: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Diagram 16: ME-9000 PCI Rev. 2.2 (top view)

Diagram 17: ME-9000 PCI Rev. 2.2 (bottom view)

ME-9000

Components forRS-232 ports

Components"p"-models

ST21

1

2

3

4

5

6

7

8

1

2

3

4

5

6

7

8

Components"i, p"-models

1

2

3

4

5

6

7

8

Components"i"-models

Universal PCI

Components "i, p"-models(only RS-232)

Soldering bridges for echo ON/OFF(only for RS-422/485)

1

2

3

4

5

6

7

8

1

2

3

4

5

6

7

8

Components for RS-422/485

Meilhaus Electronic Page 37 Hardware

Page 38: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Diagram 18: ME-9000 PCI-Express (top view)

Diagram 19: ME-9000 PCI-Express (bottom view)

ME-9000

ST21

Bestückung fürRS-232 Ports

Bestückung"p"-Modelle

1

2

3

4

5

6

7

8

1

2

3

4

5

6

7

8

Bestückung"i, p"-Modelle

1

2

3

4

5

6

7

8

Bestückung"i"-Modelle

Bestückung "i, p"-Modelle(nur RS-232)

Lötbrücken für Echo ON/OFF(nur für RS-422/485)

1

2

3

4

5

6

7

8

1

2

3

4

5

6

7

8

Bestückung für RS-485 Ports

Hardware Page 38 Meilhaus Electronic

Page 39: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Diagram 20: ME-9000 CompactPCI Rev. 2.2 (top view)

Diagram 21: ME-9000 CompactPCI Rev. 2.2 (bottom view)

ME-9000

Fis

cher

stra

ße

2 •

8217

8 P

uchh

eim

• h

ttp://

ww

w.m

eilh

aus.

de

ST2

1

1

2

3

4

5

6

7

8

1

2

3

4

5

6

7

8

Universal PCI

Components forRS-232 ports

Components"p"-models

Components"i, p"-models

Components"i"-models

1

2

3

4

5

6

7

8

Components "i, p"-models(only RS-232)

Soldering bridges for echo ON/OFF(only for RS-422/485)

1

2

3

4

5

6

7

8

1

2

3

4

5

6

7

8

Components for RS-422/485

Meilhaus Electronic Page 39 Hardware

Page 40: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.5.2 ME-9100 PCI

Diagram 22: ME-9100 PCI (top view)

Diagram 23: ME-9100 PCI (bottom view)

ME-9100

Components forRS-232 ports

1

2

3

4

5

6

7

8

UART 2

UART 1

Components foroptical isolation

Components forRS-485 ports

Components foroptical isolation

1

2

3

4

5

6

7

8

Hardware Page 40 Meilhaus Electronic

Page 41: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.5.3 ME-9100 CompactPCI

Diagram 24: ME-9100 CompactPCI (top view)

Diagram 25: ME-9100 CompactPCI (bottom view)

ME-9100

Fis

cher

stra

ße

2 •

8217

8 P

uchh

eim

• h

ttp://

ww

w.m

eilh

aus.

de

Component forRS-232 ports

Component foroptoical isolation

1

2

3

4

5

6

7

8

UART 2 UART 1

Components forRS-485 ports

1

2

3

4

5

6

7

8

Components foroptical isolation

Meilhaus Electronic Page 41 Hardware

Page 42: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.5.4 ME-9300 PCI

Diagram 26: ME-9300 PCI

Depending on the number of ports you need one terminal panelfor the ME-9300/8 resp. two for the ME-9300/16. They are provi-ded with either 9pin D-Sub male connectors or 8pin RJ-45 femaleconnectors (RS-232 Rocket-Port pinout). See also chapter 3.6"Connection Options".

Diagram 27: Connection example

UART 1

UART 2

UART 3*

UART 4*

* *

* *

* *

* *

A

B

51

62

73

84

ME AB-D9/8-V

68pol. 1:1 cable

68pol. 1:1 cable

51

62

73

84

ME AB-D9/8-V

Hardware Page 42 Meilhaus Electronic

Page 43: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.5.5 ME-90 PC/104-Plus

Diagram 28 shows the position of jumpers, soldering bridges andconnectors.

Diagram 28: ME-90 PC/104-Plus Jumper

*ISA-bus looped through for other PC/104 boards.

**Automatic level adaption to 3.3V or 5V PCI-bus (Universal-PCI).

3.5.5.1 Multi-I/O-Port

On the ME-90 PC/104-Plus the multi-I/O port of the EXARXR17D158 chip can be used for customer specific extensions.The 20pin IDC connector (ST3) provides VCC (+5V), PC ground(GND_PC), 8 multi-I/O pins (MIO_x) and the clock inputTMRCK. All the other pads are not connected (n.c.). The pinoutof ST3 can be found in appendix B6 on page 111. A detailed de-scription of the chip can be found in the datasheet of the manu-facturer under www.exar.com.

Attention: VCC at ST3 must not exceed 300 mA!

J2J1

ST3

COM8COM7COM6COM5

COM1COM2COM3COM4

Echo

ON/OFF

Echo

ON/OFF

Echo

ON/OFF

Echo

ON/OFF

Echo

OFF/ON

Echo

OFF/ON

Echo

OFF/ON

Echo

OFF/ON

ST2

ST1

PCI**ISA*

Meilhaus Electronic Page 43 Hardware

Page 44: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.5.5.2 Assignment of the PCI Slots

Because of the „stack architecture“ of PC/104-Plus the signals forall extension boards are routed via one connector (in opposite tothe single slots of a motherboard). This means for the ME-90 PC/104-Plus, that the signals CLK, IDSEL and INT0# must be routedto the PCI-bus in a way, which prevents conflicts with other pe-ripheral boards. The jumpers J1 and J2 control this (see diagram29).

Diagram 29: Assignment of PCI slots ME-90 PC/104-Plus

3.5.5.3 Configuration of RS-422/485 Ports

On the RS-422/485 models of the ME-90 PC/104-Plus series theport configuration is done individually by the jumpers shown indiagram 31. The assignment to the single ports is shown in dia-gram 28. You have the following configuration possibilities:

1. Termination of the input and output buffer with the resistors RT_IN and RT_OUT (default: 120 Ω).

2. Operation mode RS-485 half-duplex (see diagram 50 on page 59). The connection between TxD+ and RxD+ as well as TxD- and RxD- can be bridged easily by jumpers on the board.

3. Control of transmitter and receiver change-over alternatively by the RTS (default) or DTR signal. Note, that one of both settings must always be plugged.

4. Echo ON/OFF see chapter 3.5.5.4.

J1J2

Assignment of the PCI slots:

J1 J2 CLK IDSEL INT0# Slot* 0 0 CLK0 IDSEL0 INTA# 1 (default) 1 0 CLK1 IDSEL1 INTB# 2 0 1 CLK2 IDSEL2 INTC# 3 1 1 CLK3 IDSEL3 INTD# 4

*Up to 4 boards can be set per "slot".

Hardware Page 44 Meilhaus Electronic

Page 45: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Diagram 30: Configuration RS-422/485 ports ME-90 PC/104-Plus

Diagram 31: Jumper for port configuration ME-90 PC/104-Plus

Please note, that the placement of the soldering bridges of portsCOM5…8 is rotated by 180° compared to COM1…4.

*On demand, these jumpers can plugged in the operation mode„RS-485 half-duplex“. They enable a comfortable connection ofRxD and TxD signal without external bridging. In all other ope-ration modes these jumpers are unplugged.

TxD+

RxD-

TxD-

RxD+

ME-90 PC/104-Plus

Echo

RTS

DTR

ONOFF

RT_OUT

RT_IN

Soldering bridge

RT_IN

plugged: RS-485 half-duplex*

RT_OUT

plugged: RS-485 half-duplex*

DTR RTS (default)

plugged: RS-485 half-duplex*

RT_OUT

plugged: RS-485 half-duplex*

RT_IN

DTRRTS

COM5…8:

COM1…4: (default)

Meilhaus Electronic Page 45 Hardware

Page 46: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.5.5.4 Echo ON/OFF

On the RS-422/485 models of the ME-90 PC/104-Plus you can de-termine the receiver´s control by soldering bridges at the top ofthe board (see diagram 28). With that you can adapt the singleports to the needs of your application individually. See also des-cription of the operation modes from page 56 up.

• Echo ON: Set the soldering bridge „ON“ and the receiver listens permanently (default setting).

• Echo OFF: Set the soldering bridge „OFF“ to control the receiver by the RTS resp. DTR signal. The reception becomes disabled during transmission.

Diagram 32: Soldering bridges ME-90 PC/104-Plus

Please note, that the placement of the soldering bridges of portsCOM5…8 is rotated by 180° compared to COM1…4.

The position of the soldering bridges can be found with diagram28. Alternativly you can send your board to our service depart-ment. We will configure your board for your needs.

RS-232 RS-422/485

Echo ON (default)n.c. Echo OFF

ON OFF

COM5…8:

RS-232 RS-422/485

Echo ON (default)n.c. Echo OFF

ON OFF

COM1…4:

Hardware Page 46 Meilhaus Electronic

Page 47: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.6 Connection Options

3.6.1 Dual/Quad/Octopus Cables

With the ME-9000 andME-9100 a dual, quad oroctopus cable is includedwith the board dependingon the number of ports.The pinout is defined as astandard, see pinout in ap-pendix B.

3.6.2 Flat Ribbon Cable to 9pin D-Sub Connectors

Two flat ribbon cables each with 4 x 9pin D-Sub male connectors(ME-AK 4D9M) are included with the ME-90 PC/104-Plus. Thepinout for RS-232 and RS-422/485 can be found on page 112, dia-gram 65. With RS-232 ports VCC (+5V) is attached to an open endof the flat ribbon cable.

Diagram 33: Flat ribbon cable to 4 x 9pin D-Sub male connector

Meilhaus Electronic Page 47 Hardware

Page 48: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.6.3 Terminal Panel for ME-9000/9100

• ME AB-D9/8-78 + ME AK-D78/1:Octo terminal panel in a closed box from 78pin D-Sub male connector to 8 x 9pin D-Sub male connectors. Suitable con-nection cable ME AK-D78/1 (1 m) from 78pin D-Sub male connector to 78pin D-Sub female connector.

Diagram 34: ME AB-D9/8-78 with ME AK-D78/1 (diagram similar)

• ME AB-D9/8-78-H + ME AK-D78/1:Octo terminal panel for DIN rail mounting from 78pin D-Sub male connector to 8 x 9pin D-Sub male connectors. Suitable connection cable ME AK-D78/1 (1 m) from 78pin D-Sub male connector to 78pin D-Sub female connector.

Diagram 35: ME AB-D9/8-78-H with ME AK-D78/1 (diagram similar)

Hardware Page 48 Meilhaus Electronic

Page 49: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

• ME AB-RJ45/8x8-V + ME AK-D78/VHDCI:Octo terminal panel in a closed box from 78pin D-Sub male connector to 8 x 8pin RJ-45 female connectors. Suitable con-nection cable ME AK-D78/VHDCI (1 m) from 78pin D-Sub male connector to 68pin VHDCI female connector.

Diagram 36: ME AB-RJ45/8x8-V with ME AK-D78/VHDCI

Note: Not suitable for ME-9000p!

• ME AB-RJ45/8x8-PV + ME AK-D78/VHDCI:Octo terminal panel without case for integration in user spe-cific systems from 78pin D-Sub male connector to 8 x 8pin RJ-45 female connectors. Suitable connection cable ME AK-D78/VHDCI (1 m) from 78pin D-Sub male connector to 68pin VHDCI female connector.

Diagram 37: ME AB-RJ45/8x8-PV with ME AK-D78/VHDCI

Note: Not suitable for ME-9000p!

Meilhaus Electronic Page 49 Hardware

Page 50: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.6.4 Terminal Panel for ME-9300

• 2 x ME AB-D9/8-V + 2 x VHDCI cable:Octo terminal panel in a closed box from 68pin VHDCI con-nector to 8 x 9pin D-Sub male connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

Diagram 38: ME AB-D9/8-V withVHDCI cable

• 2 x ME AB-D9/8-HV + 2 x VHDCI cable:Octo terminal panel for DIN rail mounting from 68pin VHDCI connector to 8 x 9pin D-Sub male connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

Diagram 39: ME AB-D9/8-HV with VHDCI cable

Hardware Page 50 Meilhaus Electronic

Page 51: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

• 2 x ME AB-RJ45/8x8-V + 2 x VHDC cable:Octo terminal panel in a closed box from 68pin VHDCI con-nector to 8 x 8pin RJ-45 female connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

Diagram 40: ME AB-RJ45/8x8-V with VHDCI cable

• 2 x ME AB-RJ45/8x8-PV + 2 x VHDCI cable:Octo terminal panel without case for integration in user spe-cific systems from 68pin VHDCI connector to 8 x 8pin RJ-45 female connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

Diagram 41: ME AB-RJ45/8x8-PV with ME AK-D78/VHDCI

Meilhaus Electronic Page 51 Hardware

Page 52: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

• ME AB-D9/16-V + 2 x VHDCI cable:16 port terminal panel for 19“ rack-mount from VHDCI con-nector (2 x 68pin) to 16 x 9pin D-Sub male connectors. Con-nection via two 1:1 VHDCI cable (1 m).

Diagram 42: ME AB-D9/16-V

Hardware Page 52 Meilhaus Electronic

Page 53: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.7 Operation Modes

Both the RS-232 and the RS-422/485 ports can be accessed likestandard COM ports under Windows. The RS-422/485 ports canbe used in the operation modes „RS-422“, „RS-485 half duplex“and „RS-485 full duplex“. Each port of the board is configurableindependently. The configuration has to be done by the systemcontrol (see chap. 2.3 "Port Configuration"). However check thetransfer parameters in your application program (e. g. Hyper Ter-minal).

Caution:Never use more than one driver on an RS-422 bus, and in anRS-485 system do not use an RS-422 driver. The electrical signalsare not compatible and may cause damage to the hardware.

3.7.1 The RS-232 Standard

The RS-232 interface used on the ME-9000/9100/9300 and ME-90PC/104-Plus is an asynchronous serial standard interface e.g. fordata transfer between computers and terminals. A distinction isdrawn between DTE (Data Terminal Equipment) and DCE (DataCommunication Equipment). Terminals, printers and computersbelong to DTEs, modems belong to DCEs. The max. transfer ratedepends on the cable length and should not exceed 19,2 kBd fora distance of 15 m.

The following signals are available:

TxD (Transmitted Data): This line carries serial data from theDTE to the corresponding pin on the DCE. The line is held at anegative voltage during periods of line idle.

RxD (Received Data): This line carries serial data from the DCEto the corresponding pin on the DTE.

RTS (Request to Send): This line requests data from the DCE.

CTS (Clear to Send): When a half duplex modem is receiving, theDTE keeps RTS inhibited. When it becomes the DTE´s turn totransmit, it advises the modem by asserting the RTS pin. Whenthe modem asserts the CTS, it informs the DTE that it is now safeto send data. The procedure is reversed when switching fromtransmit to receive.

Meilhaus Electronic Page 53 Hardware

Page 54: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

DSR (Data Set Ready): This is also called DCE Ready. In the ans-wer mode, the answer tone and the Data Set Ready are assertedtwo seconds after the telephone goes off hook.

GND (Signal Ground): This is the common return line for the dataTransmit and Receive signals. The connection between the twoends is always made.

DCD (Data Carrier Detect): This is also called the Received LineSignal Detector. It is asserted by the modem when it receives aremote carrier and remains asserted for the duration of the link.

DTR (Data Terminal Ready): This line enables, but does not cau-se, the modem to switch onto the line. In originate mode, DataTerminal Ready must be asserted in order to auto dial. In answermode, Data Terminal Ready must be asserted to auto answer.

RI (Ring Indicator): This pin is asserted during a ring on the line.

Diagram 43: Operation mode RS-232

Note: Keep the signal levels (see appendix A "Specifications").

DTE(e.g. computer)

3

2

7

8

6

5

1

4

9

3

2

7

8

6

5

1

4

9

DCE(e.g. modem)

Data Terminal Ready (DTR)

Ring Indicator (RI)

Data Carrier Detect (DCD)

Ground (GND)

Clear to Send (CTS)

Request to Send (RTS)

Received Data (RxD)

Transmit Data (TxD)

Data Set Ready (DSR)

Hardware Page 54 Meilhaus Electronic

Page 55: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.7.2 The RS-422/485 Standard

In comparison to the RS-232 standard the RS-422 and RS-485 stan-dard allow reliable data transfer over greater distances. For opti-mum noise immunity twisted pair wires will be used. The datatransfer is done in a differential way. A voltage difference of morethan +200mV at the receiver input is defined as high level and avoltage difference of less than -200mV as low level. The RS-485standard is an extension of the RS-422 standard and allows up to32 transmitters/receivers, which can be in half duplex or full du-plex mode. Every transmitter/receiver must have a uniqueaddress.

Note that the transfer rate decreases with increasing cable length.See the following diagram to calculate the max. transfer rate(max. 921,6 kBd, depending on board version) in dependency ofcable length (max 1200 m).

Diagram 44: Dependency of cable length to max. transfer rate with terminated lines

Note: Keep the signal levels (see specifications on page 101).

[Bit/s]10

1000

[m]

10M100k

100

1k 10k 1M

12

1200

120

cabl

e le

ngth

max. transfer rate

Meilhaus Electronic Page 55 Hardware

Page 56: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.7.2.1 RS-422

The RS-422 standard provides serial data transfer up to 1200m bytwo twisted pair wires for optimum noise immunity. Beside theME-9000/9100 resp. ME-90 PC/104-Plus maximum one moretransmitter and up to 10 receivers are allowed. Usage of termina-tion resistors RT (50…500 Ω, depending on characteristic resi-stance) is recommended.

Note:

Under Windows the configuration is done per port in the systemsettings (see chapter 2.3 "Port Configuration"). Flow control ishandled automatically by the driver.

Under Linux the transmitter must be controlled by the user withthe RTS resp. DTR signal as wanted (logical „0“ sets the transmit-ter driving).

3.7.2.1.1 ME-9000

Diagram 45: Operation mode „RS-422“ ME-9000

Controlling the receiver (echo ON/OFF) can be adapted by a sol-dering bridge to the requirements or your application if necessary(see also page 36). Factory setting: echo ON.

Receivern-1

TxD+

TxD-

RxD-

RxD+

RT

Receivern-2

RT

Receivern (max. 10)

opt. 1 Transmitter

RT

RT

ME-9000

RTS

Echo

ON

OFF

Hardware Page 56 Meilhaus Electronic

Page 57: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.7.2.1.2 ME-9100

Diagram 46: Operation mode „RS-422“ ME-9100

3.7.2.1.3 ME-90 PC/104-Plus

Diagram 47: Operation mode „RS-422“ ME-90 PC/104-Plus

Flow control is can be changed from RTS (default) to DTR signalby jumper (see diagram 31 on page 45). Controlling the receiver(echo ON/OFF) can be adapted by a soldering bridge to the re-quirements or your application if necessary (see diagram 32 onpage 46). Factory setting: echo ON. The termination resistors RThave 120 Ω and are not jumpered by default.

Receivern-1

RT

ME-9100Receiver

n-2

RT

Receivern (max. 10)

opt. 1 Transmitter

RT

RT

DTR*

TxD+

TxD-

RxD-

RxD+

Receivern-1

Receivern-2

RT

Receivern (max. 10)

opt. 1 Transmitter

RT

TxD+

RxD-

TxD-

RxD+

ME-90 PC/104-Plus

Echo

RTS

DTR

ONOFF

RT

RT

Meilhaus Electronic Page 57 Hardware

Page 58: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.7.2.2 RS-485 half duplex

In „RS-485 half duplex“ operation mode, data can be either sentor received over one twisted pair wire. This feature is providedby the ability of the line drivers to be set in high impedance statebesides low and high. Note that only one transmitter can be ac-tive at any given time. Up to 32 transmitters are allowed and thecable length should not exceed 1200m. Usage of termination re-sistors RT (50…500 Ω, depending on characteristic resistance) isrecommended.

Note:

Under Windows the configuration is done per port in the systemsettings (see chapter 2.3 "Port Configuration"). Flow control ishandled automatically by the driver.

Under Linux the transmitter must be controlled by the user withthe RTS resp. DTR signal as wanted (logical „0“ sets the transmit-ter driving).

3.7.2.2.1 ME-9000

Diagram 48: Operation mode „RS-485 half duplex“ ME-9000

Controlling the receiver (echo ON/OFF) can be adapted by a sol-dering bridge to the requirements of your application if necessary(see also page 36). Factory setting: echo ON.

Transmitter/Receiver

n-2

Transmitter/Receiver

n-1

RT RT

Transmitter/Receiver

n (max. 32)ME-9000

RTS

Echo

ON

OFF

TxD+

TxD-

RxD-

RxD+

Hardware Page 58 Meilhaus Electronic

Page 59: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.7.2.2.2 ME-9100

Diagram 49: Operation mode „RS-485 half duplex“ ME-9100

Depending on your needs you have the possibility to remove theecho of the transmitter in the system settings (see chapter 2.3"Port Configuration") of Windows.

3.7.2.2.3 ME-90 PC/104-Plus

Diagram 50: Operation mode „RS-485 half duplex“ ME-90 PC/104-Plus

Flow control is can be changed from RTS (default) to DTR signalby jumper (see diagram 31 on page 45). Controlling the receiver(echo ON/OFF) can be adapted by a soldering bridge to the re-quirements or your application if necessary (see diagram 32 onpage 46). Factory setting: echo ON. The termination resistors RThave 120 Ω and are not jumpered by default.

In this operation mode it is easy to connect the signals TxD+ withRxD+ and TxD- with RxD- by the appropriate jumpers (see dia-gram 31 on page 45) – no external bridging required.

Transmitter/Receiver

n-2

Transmitter/Receiver

n-1

ME-9100

RT RT

Transmitter/Receiver

n (max. 32)

DTR*

TxD+

TxD-

RxD-

RxD+

Transmitter/Receiver

n-2

Transmitter/Receiver

n-1

RT

Transmitter/Receiver

n (max. 32)

TxD+

RxD-

TxD-

RxD+

ME-90 PC/104-Plus

Echo

RTS

DTR

ONOFF

RT

RT

Meilhaus Electronic Page 59 Hardware

Page 60: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

3.7.2.3 RS-485 full duplex

In „RS-485 full duplex“ operation mode, data can be sent andreceived over two twisted pair wires at the same time. Up to 32transmitters are allowed and the cable length should not exceed1200m. Usage of termination resistors RT (50…500 Ω, dependingon characteristic resistance) is recommended.

Note:

Under Windows the configuration is done per port in the systemsettings (see chapter 2.3 "Port Configuration"). Flow control ishandled automatically by the driver.

Under Linux the transmitter must be controlled by the user withthe RTS resp. DTR signal as wanted (logical „0“ sets the transmit-ter driving).

3.7.2.3.1 ME-9000

Diagram 51: Operation mode „RS-485 full duplex“ ME-9000

Controlling the receiver (echo ON/OFF) can be adapted by a sol-dering bridge to the requirements or your application if necessary(see also page 36). Factory setting: echo ON.

Transmitter/Receiver

n-2

Transmitter/Receiver

n-1

RT

RT

RT

RT

Transmitter/Receiver

n (max. 32)ME-9000

RTS

Echo

ON

OFF

TxD+

TxD-

RxD-

RxD+

Hardware Page 60 Meilhaus Electronic

Page 61: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

3.7.2.3.2 ME-9100

Diagram 52: Operation mode „RS-485 full duplex“ ME-9100

3.7.2.3.3 ME-90 PC/104-Plus

Diagram 53: Operation mode „RS-485 full duplex“ ME-90 PC/104-Plus

Flow control is can be changed from RTS (default) to DTR signalby jumper (see diagram 31 on page 45). Controlling the receiver(echo ON/OFF) can be adapted by a soldering bridge to the re-quirements or your application if necessary (see diagram 32 onpage 46). Factory setting: echo ON. The termination resistors RThave 120 Ω and are not jumpered by default.

Transmitter/Receiver

n-2

Transmitter/Receiver

n-1

RT

ME-9100

RT

RT

RT

Transmitter/Receiver

n (max. 32)

DTR*

TxD+

TxD-

RxD-

RxD+

Transmitter/Receiver

n-2

Transmitter/Receiver

n-1

RT

RT

Transmitter/Receiver

n (max. 32)

TxD+

RxD-

TxD-

RxD+

ME-90 PC/104-Plus

Echo

RTS

DTR

ONOFF

RT

RT

Meilhaus Electronic Page 61 Hardware

Page 62: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Hardware Page 62 Meilhaus Electronic

Page 63: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

4 ProgrammingFor programming the serial boards of type ME-9000/9100/9300and ME-90 PC/104-Plus no board specific programming inter-faces are required. The ports can be accessed as COM ports bythe standard API under Windows.

For programming the digital-I/O and counter section of theME-9000 and ME-90 PC/104-Plus a special ME-9000 multi-I/Odriver is available for Windows 98/Me/2000/XP and NT4.0. Seethe following chapters.

4.1 ME-9000 Multi-I/O Driver

The ME-9000 multi-I/O driver (ME9000MIO) provides an exten-sive function library for programming the digital-I/O lines andthe counter of the ME-9000 and ME-90 PC/104-Plus. The functionreference can be found in chapter 5 on page 55.

The system driver consists of the following components:

• WDM driver (me9000mio.sys) for Windows 98/Me/2000/XP.

• Kernel driver (me9000mio.sys) for Windows NT.

• API-DLL (me9000mio.dll) for Visual C++ and Delphi.

• API-DLL (me9000mio.dll) for Visual Basic.

To make it easy for your we provide simple demo programs andsmall projects with source code to help understanding of thefunctions and how to include them into your project. These de-mo programs can be found within the ME Software Developer Kit(ME-SDK), which is installed to the directory C:Meilhaus\me-sdk by default. Please read the notes in the appropriateREADME files.

Meilhaus Electronic Page 63 Programming

Page 64: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

4.1.1 Visual C++

Visual C++ support for your board is included with the ME-SDKon CD/DVD or under www.meilhaus.de/download.

4.1.2 Visual Basic

Visual Basic support for your board is included with the ME-SDKon CD/DVD or under www.meilhaus.de/download.

Important Notes: Partly the function prototypes for Visual Basicdiffer in the number of parameters and the datatype of singleparameters. Please note the file me9000mio.bas, included withthe ME-SDK. Instead of the standard API me9000mio.dll youhave to use the specific API me9000mioEx.dll. „Missing“ para-meters are marked with the symbol „VB“ in the function refe-rence.

Because of the threading model was changed in Visual Basic 6.0,the usage of callback functions is not possible there. However itis possible in Visual Basic 5.0.

API-DLL me9000mio.dll System driver

Function prototypes me9000miodll.h ME-SDK

Constant definitions me9000miodefs.h ME-SDK

Function prefix me9000mio…

Table 5: Visual C++

API-DLL me9000mioEx.dll System driver

Function prototypes me9000mio.bas ME-SDK

Constant definitions me9000mio.bas ME-SDK

Function prefix me9000mioVB_…

Table 6: Visual Basic

Programming Page 64 Meilhaus Electronic

Page 65: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

4.1.3 Delphi

Delphi support for your board is included with the ME-SDK onCD/DVD or under www.meilhaus.de/download.

4.1.4 Agilent VEE

The serial ports of the ME-9000/9100/9300 and ME-90 PC/104-Plus can be accessed by the menu „I/O – „Instrument Mana-ger…“. The digital-I/O and counter functions are not supportedin VEE. For basics of VEE programming please use your VEE do-cumentation and the VEE online help index.

4.1.5 LabVIEW

The ports of the ME-9000/9100/9300 and ME-90 PC/104-Plus canbe accessed as serial standard interfaces. The digital-I/O andcounter functions are not supported in VEE. For basics of Lab-VIEW™ programming please use your LabVIEW™ documentati-on and the LabVIEW™ online help index.

API-DLL me9000mio.dll System driver

Function prototypes me9000miodll.pas ME-SDK

Constant definitions me9000miodefs.pas ME-SDK

Function prefix me9000mio…

Table 7: Delphi

Meilhaus Electronic Page 65 Programming

Page 66: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

4.2 Digital-I/O Section

The ME-9000 provides 8 bidirectional digital-I/O lines. The mul-ti-I/O bits (MIO_0…7) can be configured very flexible (In/Out,interrupt function, inverting inputs, high impedance outputs).

Use the functions …DIOConfig and …DIOOutput for configura-tion and note the following diagram:

Diagram 54: Configuration of the multi-I/O bits

Note: A bit configured for output can be read back!

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

MIO_IN

<Invert>1)

<OutputMode>2)

<Direction>1)

MIO_OUT

OR

<Interrupt>1)

AND

AND

IRQ-DIO

<CntEvent>3)

<Bitnumber>1)2)

Pin:MIO_0…7

Programming Page 66 Meilhaus Electronic

Page 67: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

1) Parameter of the function …DIOConfig:

• <BitNumber> Select the multi-I/O bit wanted.

• <Direction> Choose between input or output.

• <Invert> The polarity of an input can be inverted.

• <Interrupt> Bit becomes an edge triggered interrupt in-put. Condition is that the bit will be configured as input. The interrupt is directly forwarded to the system. All enabled in-terrupt bits initate one common interrupt of the digital-I/O section (IRQ-DIO). The single bit can not be determined as the interrupt source.

2) Parameter of the function …DIOOutput:

• <OutputMode> A bit configured for output can also set to a high impedance state (tristate).

3) Parameter <CntEvent> of the function …CntConfig:

• Please note, in combination with the counter the pin MIO_0 provides a special function. If wanted you can use it to output a counter event. In that case the bit may not be switched as an input because of it becomes an output automatically. If the board is damaged no guarantee can be given.

The diagram on the following page shows the basic programflow:

Meilhaus Electronic Page 67 Programming

Page 68: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Diagram 55: Programming Digital-I/O Section

4.3 Counter

The ME-9000 provides a 16 bit counter. A start value must beloaded into the counter by the function …CntWrite. Calling thefunction …CntStart starts counting down to „0“. On zero axiscrossing either an interrupt can be triggered and/or the multi-I/O bit MIO_0 can be driven. You can choose between „singleshot“ and „retrigger“ mode. In „single shot“ mode counting willbe ended on reaching „0“, in the „retrigger“ mode the start valuewill be reloaded into the counter. In that case the counting ope-ration will be ended by the function …CntStop.

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Read bit or byte…DIOGetBit or …DIOGetByte

Write bit or byte…DIOSetBit oder …DIOSetByte

Configuration of the DIO pins (MIO_0…7)…DIOConfigInput Output

Enable DIO operationme9000mioDIOOpen

Begin

End

Set digital output in high impedance state

me9000mioDIOOutput

End DIO operationme9000mioDIOClose

Programming Page 68 Meilhaus Electronic

Page 69: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

For configuration use the functions …CntConfig and …CntWriteand note the following diagram:

Diagram 56: Configuration Counter

1) Parameter of the function …CntConfig:

• <Retrigger> Choose between „Single Shot“ (counting once to „0“) or „Retrigger“ (reloading the start value on zero axis crossing).

• <CntEvent> Enable this option to use the multi-I/O pin MIO_0 to output a counter event (on zero axis crossing).

Please note: In that case the pin MIO_0 may not be switched as an input because of the pin becomes an output automati-cally. If the board will be damaged no guarantee can be given!

• <ClockSource> Choose between internal clock (14,7456MHz) or external clock by pin TMRCK.

• <Interrupt> On zero axis crossing the counter interrupt (IRQ-CNT) will be triggered. The interrupt is directly forwar-ded to the system.

2) Parameter of the function …CntWrite:

• <Value> A 16 bit start value will be loaded into the counter.

16 bit counter

<CntEvent>1)

ext. clock (TMRCK)

int. clock (14,7456MHz)

load start value <Value>2)

<ClockSource>1)

me9000mioDIOStart/Stop

MIO_0

<Retrigger>1)

no interrupt

IRQ-CNT

<Interrupt>1)

single shot

MIO_OUT

zero axis crossing

Meilhaus Electronic Page 69 Programming

Page 70: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

The following diagram shows the basic program flow:

Diagram 57: Programming the counter

Configuration of the counter…CntConfig

Enable counter operationme9000mioCntOpen

Begin

End

End counter operationme9000mioCntClose

Load start value…CntWrite

Start counter…CntStart

yesnoRetrigger?

Stop counter…CntStopCounter state = 0

Programming Page 70 Meilhaus Electronic

Page 71: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

5 Function Reference

5.1 General Notes

• Function Prototypes:In the following function description the generic function pro-totypes for Visual C++ are used. The definitions for other sup-ported programming languages which are partly using different data types can be found in the appropriate definition files included with the ME-SDK.

• Parameter „BoardNumber“When using a single board of a board family, the board num-ber is always „0“ (integer value). In systems running several boards from the same board family the computer assigns the board number. Use this number to access the board. Determi-ne the assignment of board numbers after installation of the boards.

Tip: Verify the assignment of „BoardNumber“ and serial num-ber at the beginning of your program (see function …Get-SerialNumber).

5.2 Naming Conventions

The API functions of the „ME9000MIO“ function library concernboards of type ME-9000 with hardware revision 1.4 or higher andfor ME-90 PC/104-Plus. The function names consist of the prefix“me9000mio“ and several components representing the respecti-ve function as descriptive as possible. (e. g. "DIO" for "Digital-I/O").

For Visual C++ and Delphi no language specific identification isgiven, i. e. the function name follows the prefix directly e. g.me9000mioDIOConfig. However for Agilent VEE the characters„“VEE_“ (e. g. me9000mioVEE_DIOConfig), for LabVIEW the cha-racters „“LV_“ (e. g. me9000mioLV_DIOConfig) and for VisualBasic the characters „VB_“ (e. g. me9000mioVB_DIOConfig) areinserted.

Meilhaus Electronic Page 71 Function Reference

Page 72: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

For the description of the functions, the following standards willbe used:

function name will be italic in body text e. g. me9000mioGetDLLVersion.

<parameters> will be in brackets as shown and in font Courier.

[square brackets] will indicate physical units.main(…) parts of programs will be in Courier type

Function Reference Page 72 Meilhaus Electronic

Page 73: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

5.3 Description of the API Functions

The functions will be described by functional groups as listed be-low. Within each functional group, the individual functions willbe described in alphabetical order:

„5.3.1 Error Handling“ on page 75

„5.3.2 General Functions“ on page 79

„5.3.3 Digital Input/Output“ on page 82

„5.3.4 Counter Functions“ on page 93

Function Short Description Page

Error Handling

me9000mioErrorGetMessage Assign error string to a error number

75

me9000mioErrorGetLastMessage Assign error string to the last error occured

76

me9000mioErrorSetDefaultProc Install predefined global error routine for API

77

me9000mioErrorSetUserProc Install user defined global error routine for API

78

General Functions

me9000mioGetBoardCount Number of boards of type ME-9000 installed in the system

79

me9000mioGetBoardVersion Determine device ID 79

me9000mioGetDLLVersion Determine DLL version number 80

me9000mioGetDriverVersion Determine driver version number 81

me9000mioGetSerialNumber Determine serial number 81

Digital Input/Output

me9000mioDIOClose Close the „Digital-I/O“ operation 82

me9000mioDIOConfig Configuring the digital-I/O lines 83

me9000mioDIOGetBit Getting one bit 85

me9000mioDIOGetByte Getting a byte 86

me9000mioDIOGetIrqCount Determine number of IRQs 86

me9000mioDIOOpen Open „Digital-I/O“ operation 87

Table 8: Overview library functions

Meilhaus Electronic Page 73 Function Reference

Page 74: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

me9000mioDIOOutput Set output in a high impedance state

88

me9000mioDIOReset Reset the digital I/O section 89

me9000mioDIOSetBit Setting one bit 90

me9000mioDIOSetByte Setting a byte 91

me9000mioDIOSetCallback Install callback function 92

Counter Functions

me9000mioCntClose Close counter operation 93

me9000mioCntConfig Configuring the counter 93

me9000mioCntGetIrqCount Determine number of IRQs 95

me9000mioCntOpen Open counter operation 96

me9000mioCntRead Read back start value 96

me9000mioCntReset Reset counter 97

me9000mioCntStart Start counter 98

me9000mioCntStop Stop counter 98

me9000mioCntWrite Write start value into the counter 99

Function Short Description Page

Table 8: Overview library functions

Function Reference Page 74 Meilhaus Electronic

Page 75: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

5.3.1 Error Handling

Description

This function can be used to determine the error text from an error number returned from the API functions.

Definitions

VC: me9000mioErrorGetMessage(int iErrorCode, char* pcBuffer, unsigned int uiBufferSize);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<ErrorCode>

The error number caused by the API function.

<Buffer>

Pointer to the error description text.

<BufferSize>

Buffer size in bytes for the error description text (max. of 256 characters).

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioErrorGetMessage

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 75 Function Reference

Page 76: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

This function returns the last error caused by a „me9000mio…“ API function and retrieves the error description text.

Definitions

VC: me9000mioErrorGetLastMessage(char* pcBuffer, unsigned int uiBufferSize);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<Buffer>

Pointer to the error description text.

<BufferSize>

Buffer size in bytes for the error description text (max. of 256 characters).

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioErrorGetLastMessage

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 76 Meilhaus Electronic

Page 77: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Description

This function can be used to install a predefined global error routine for the entire API. This global error routine is automatically called if an API function call returns an error. The following information is re-turned in the form of a message box:

- Name of the function that returned an error

- Short error description

- Error code

Note

Only one global error routine can be installed (…ErrorSetDefaultProc or …ErrorSetUserProc)

Definitions

VC: me9000mioErrorSetDefaultProc(int iDefaultProcStatus);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<DefaultProcStatus>

• ME9000MIO_ERROR_DEFAULT_PROC_ENABLEInstalling the predefined error routine.

• ME9000MIO_ERROR_DEFAULT_PROC_DISABLEUninstall the predefined error routine.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioErrorSetDefaultProc

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 77 Function Reference

Page 78: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

This function is used to install a global user defined error routine for the API. This function is automatically called when an API function returns an error. The function …ErrorGetMessage is used to assign an error description to the error code.

Note

Only one global error routine can be installed (…ErrorSetDefaultProc or …ErrorSetUserProc)

Definitions

Type definition for ME9000MIO_P_ERROR_PROC:

typedef void (_stdcall * ME9000MIO_P_ERROR_PROC) (char* pcFunctionName, int iErrorCode)

VC: me9000mioErrorSetUserProc(ME9000MIO_P_ERROR_PROC pErrorProc);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<ErrorProc>

Pointer to an error routine. The name of the faulty function and the error code will be passed to the function installed there. Pas-sing a NULL will uninstall a previously installed error routine.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioErrorSetUserProc

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 78 Meilhaus Electronic

Page 79: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

5.3.2 General Functions

Description

Number of boards of type ME-9000 installed in your system will be determined.

Definitions

VC: me9000mioGetBoardCount(void);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters none

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

This function determines the board version for an installed ME-4600 series board.

Definitions

VC: me9000mioGetBoardVersion(unsigned int uiBoardNumber, unsigned short* pusVersion);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

me9000mioGetBoardCount

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

me9000mioGetBoardVersion

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 79 Function Reference

Page 80: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

<Version>

Pointer to the device ID.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

Determines the version number of the driver DLL.

Definitions

VC: me9000mioGetDLLVersion(unsigned long* pulVersion);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<Version>

Version number. The 32 bit value contains the main version (hig-her 16 bits) and the sub version (lower 16 bits). Example: 0x00020001 is the version 2.01

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioGetDLLVersion

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 80 Meilhaus Electronic

Page 81: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Description

Determines the version number of the driver.

Definitions

VC: me9000mioGetDriverVersion(unsigned long* pulVersion);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<Version>

Pointer to a value containing the driver version (hex coded).

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

Determines the serial number of the selected board.

Definitions

VC: me9000mioGetSerialNumber(unsigned int uiBoardNumber, unsigned long* pulSerialNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<SerialNumber>

Pointer to a value containing the serial number.

me9000mioGetDriverVersion

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

me9000mioGetSerialNumber

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 81 Function Reference

Page 82: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

5.3.3 Digital Input/Output

Description

This function closes the digital-I/O operation opened with …DIO-Open. Hardware resources which were reserved are released again.

Definitions

VC: int me9000mioDIOClose (unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOClose

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 82 Meilhaus Electronic

Page 83: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Description

This function configures the multi-I/O bits (MIO_0…7). They can be configured very flexible (In/Out, interrupt function, inverting the in-puts). See chapter 4.2 on page 66.

Call this function separatly for each bit. A bit configured as output can also be read back!

To set an bit configured as output in the high impedance state use the function …DIOOutput.

Definitions

VC: me9000mioDIOConfig(unsigned int uiBoardNumber, unsigned int uiBitNumber, int iDirection, int iInvert, int iInterrupt);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<BitNumber>

Choose multi-I/O bit:

• ME9000MIO_DIO_LINE_0: MIO_0

• ME9000MIO_DIO_LINE_1: MIO_1

• ME9000MIO_DIO_LINE_2: MIO_2

• ME9000MIO_DIO_LINE_3: MIO_3

• ME9000MIO_DIO_LINE_4: MIO_4

• ME9000MIO_DIO_LINE_5: MIO_5

• ME9000MIO_DIO_LINE_6: MIO_6

• ME9000MIO_DIO_LINE_7: MIO_7

<Direction>

Direction of the bit:

• ME9000MIO_DIO_OUTPUT: Output bit

• ME9000MIO_DIO_INPUT: Input bit

<Invert>

Polarity of an input bit:

• ME9000MIO_DIO_INV_DISABLE: Polarity not inverted

• ME9000MIO_DIO_INV_ENABLE: Polarity inverted

me9000mioDIOConfig

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 83 Function Reference

Page 84: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

<Interrupt>

Enable interrupt functions for the selected bit. Condition: Bit must be configured as input:

• ME9000MIO_DIO_INT_DISABLE: Interrupt disabled

• ME9000MIO_DIO_INT_ENABLE: Interrupt enabled

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Function Reference Page 84 Meilhaus Electronic

Page 85: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Description

This function returns the state of the specified bit. Outputs can be read back with this function.

Note

The ports must be configured with the function …DIOConfig first. The bit has to be configured as input.

Definitions

VC: me9000mioDIOGetBit(unsigned int uiBoardNumber, unsigned int uiBitNumber, int *piBitValue);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<BitNumber>

Choose multi-I/O bit:

• ME9000MIO_DIO_LINE_0: MIO_0

• ME9000MIO_DIO_LINE_1: MIO_1

• ME9000MIO_DIO_LINE_2: MIO_2

• ME9000MIO_DIO_LINE_3: MIO_3

• ME9000MIO_DIO_LINE_4: MIO_4

• ME9000MIO_DIO_LINE_5: MIO_5

• ME9000MIO_DIO_LINE_6: MIO_6

• ME9000MIO_DIO_LINE_7: MIO_7

<BitValue>

Pointer to an integer value which returns the state of the bit.

„0“: input line is low

„1“: input line is high

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOGetBit

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 85 Function Reference

Page 86: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

This function reads a byte from the 8 digital-I/O lines (MIO_0…7). Outputs can be read back with this function.

Note

The ports must be configured with the function …DIOConfig first. All bits must be configured as inputs.

Definitions

VC: me9000mioDIOGetByte(unsigned int uiBoardNumber, unsigned char *pucByteValue);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<ByteValue>

Pointer to an „unsigned char“ value, which returns the read byte.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

This function determines the number of interrupts from all multi-I/O bits which are configured as interrupt input. Condition: interrupt operation enabled by function me9000mioDIOConfig . By call up the value of parameter Count it is possible to determine relative to a previous call up whether an interrupt occured or not.

me9000mioDIOGetByte

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

me9000mioDIOGetIrqCount

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 86 Meilhaus Electronic

Page 87: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Definitions

VC: me9000mioDIOGetIrqCount(unsigned int uiBoardNumber, unsigned long *pulCount);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<Count>

Total number of interrupts from all multi-I/O bits, which are con-figured as interrupt input (IRQ-DIO).

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

This function opens programming of the digital-I/O section.

Definitions

VC: int me9000mioDIOOpen (unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOOpen

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 87 Function Reference

Page 88: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

Use this function to set a multi-I/O bit in the high impedance state which was configured as output by the function …DIOConfig.

Definitions

VC: me9000mioDIOOutput(unsigned int uiBoardNumber, unsigned int uiBitNumber, int iOutputMode);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<BitNumber>

Choose multi-I/O bit:

• ME9000MIO_DIO_LINE_0: MIO_0

• ME9000MIO_DIO_LINE_1: MIO_1

• ME9000MIO_DIO_LINE_2: MIO_2

• ME9000MIO_DIO_LINE_3: MIO_3

• ME9000MIO_DIO_LINE_4: MIO_4

• ME9000MIO_DIO_LINE_5: MIO_5

• ME9000MIO_DIO_LINE_6: MIO_6

• ME9000MIO_DIO_LINE_7: MIO_7

<OutputMode>

Set the output bit in a driving or high impedance state:

• ME9000MIO_DIO_OUTPUT_ENABLE: Set output bit driving

• ME9000MIO_DIO_OUTPUT_DISABLE: Set output bit in a high impedance state

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOOutput

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 88 Meilhaus Electronic

Page 89: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Description

All the multi-I/O bits (MIO_0…7) are reset, i. e.:

• All bits are set to input

• Inputs not inverting

• Interrupt function disabled

• Output driving

Definitions

VC: int me9000mioDIOReset (unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOReset

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 89 Function Reference

Page 90: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

This function sets the state of the specified output bit.

Note

The ports must be configured with the function …DIOConfig first.

Definitions

VC: me9000mioDIOSetBit(unsigned int uiBoardNumber, unsigned int uiBitNumber, int iBitValue);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<BitNumber>

Choose multi-I/O bit:

• ME9000MIO_DIO_LINE_0: MIO_0

• ME9000MIO_DIO_LINE_1: MIO_1

• ME9000MIO_DIO_LINE_2: MIO_2

• ME9000MIO_DIO_LINE_3: MIO_3

• ME9000MIO_DIO_LINE_4: MIO_4

• ME9000MIO_DIO_LINE_5: MIO_5

• ME9000MIO_DIO_LINE_6: MIO_6

• ME9000MIO_DIO_LINE_7: MIO_7

<BitValue>

Possible values are:

„0“: Bit is set low level

„1“: Bit is set to high level

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOSetBit

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 90 Meilhaus Electronic

Page 91: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Description

Wirtes a byte to all of the 8 digital-I/O lines (MIO_0…7).

Note

The ports must be configured with the function …DIOConfig first. All bits must be configured as output bit.

Definitions

VC: me9000mioDIOSetByte(unsigned int uiBoardNumber, unsigned char ucByteValue);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<ByteValue>

Value to be output; possible values are: 0...255 (00Hex...FFHex).

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOSetByte

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 91 Function Reference

Page 92: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

Function to install a callback routine.

Definitions

VC: me9000mioDIOSetCallback(unsigned int uiBoardNumber, ME9000MIO_P_DIO_PROC pDIOIrqProc, void *pDIOIrqContext);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<DIOIrqProc>

Callback routine to be called repeatedly.

<DIOIrqContext>

User defined pointer to be passed to the callback routine.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioDIOSetCallback

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 92 Meilhaus Electronic

Page 93: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

5.3.4 Counter Functions

Description

This function closes the operation opened with the function …CntOpen. Hardware resources which were reserved are released again.

Definitions

VC: int me9000mioCntClose (unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

This function is for configuration of the 16 bit counter. After loading the start value by the function …CntWrite and calling the function …CntStart it counts down to „0“. On zero axis crossing either an in-terrupt can be triggered and/or the multi-I/O bit MIO_0 can output a counter event. You can choose between „Single Shot“ and „Retrig-ger“ mode. In „Single Shot“ mode the counter stops at „0“, in „Retrig-ger“ mode the counter becomes reloaded with the start value. In that case the counter operation will be ended with the function …Cnt-Stop. See chapter 4.3 on page 68.

me9000mioCntClose

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

me9000mioCntConfig

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 93 Function Reference

Page 94: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Definitions

VC: me9000mioCntConfig(unsigned int uiBoardNumber, int iRetrigger, int iCntEvent, int iClockSource, int iInterrupt, ME9000MIO_P_CNT_PROC pCntIrqProc, void *pCntIrqContext);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<Retrigger>

Choose counter mode:

• ME9000MIO_CNT_RETRIGGER_DISABLE: „Single Shot“ (counting once to „0“)

• ME9000MIO_CNT_RETRIGGER_ENABLE: „Retrigger“ (reloa-ding the start value on zero axis crossing).

<CntEvent>

Multi-I/O pin MIO_0 to output a counter event (on zero axis crossing):

• ME9000MIO_CNT_EVENT_DISABLE: Disable counter event

• ME9000MIO_CNT_EVENT_ENABLE: Enable counter event

Please note: Pin MIO_0 may not be switched as an input becau-se of the pin becomes an output automatically. If the board will be damaged no guarantee can be given!

<ClockSource>

Choose between internal clock (14,7456MHz) or external clock by pin TMRCK.

• ME9000MIO_CNT_CLOCK_INTERNAL: internal clock

• ME9000MIO_CNT_CLOCK_EXTERNAL: external clock

<Interrupt>

On zero axis crossing an interrupt (IRQ-CNT) can be triggered. The interrupt is directly forwarded to the system.

• ME9000MIO_CNT_INT_DISABLE: Disable interrupt

• ME9000MIO_CNT_INT_ENABLE: Enable interrupt

<CntIrqProc>

Callback function, which can be called on zero axis crossing. If no callback function is required, pass the constant ME9000MIO_POINTER_NOT_USED.

<CntIrqContext>

This is a user defined pointer that is passed to the callback function. If no callback function is required, pass the constant ME9000MIO_POINTER_NOT_USED.

Function Reference Page 94 Meilhaus Electronic

Page 95: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

This function determines the number of interrupts from the counter. Condition: interrupt operation enabled by function me9000mioCntConfig . By call up the value of parameter Count it is possible to determine relative to a previous call up whether an in-terrupt occured or not.

Definitions

VC: me9000mioCntGetIrqCount(unsigned int uiBoardNumber, unsigned long *pulCount);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<Count>

Total number of interrupts from the counter (IRQ-CNT).

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioCntGetIrqCount

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 95 Function Reference

Page 96: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

This function opens programming the counter functions.

Definitions

VC: int me9000mioCntOpen (unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

With this function the start value of the counter can be read back.

Definitions

VC: me9000mioCntRead(unsigned int uiBoardNumber, unsigned short *pusValue);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<Value>

Start value of the counter (16 bit).

me9000mioCntOpen

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

me9000mioCntRead

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 96 Meilhaus Electronic

Page 97: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

The counter will be stopped and reset:

• Mode „Single Shot“

• Counter event disabled

• Internal clock

• Interrupt disabled

Definitions

VC: me9000mioCntReset(unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioCntReset

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 97 Function Reference

Page 98: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Description

Starts counting down in the choosen mode (see …CntConfig).

Definitions

VC: me9000mioCntStart(unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

Stoppt den Zähler im Modus „Retrigger“.

Definitions

VC: me9000mioCntStop(unsigned int uiBoardNumber);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

me9000mioCntStart

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

me9000mioCntStop

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Function Reference Page 98 Meilhaus Electronic

Page 99: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

Description

With this function you can load a 16 bit start value into the counter. Start the counter operation by calling the function me9000mioCntStart.

Definitions

VC: me9000mioCntWrite(unsigned int uiBoardNumber, unsigned short usValue);

VB: me9000mioVB_… (see me9000mio.bas)

Parameters

<BoardNumber>

Number of the board to be accessed of type ME-9000.

<Value>

16 bit start value for counter; value range: 0…65535 (0000Hex…FFFFHex)

Return value

If the function is successfully executed, a '0' (ME9000MIO_NO_ERROR) is returned. If an error occurs, an error code unequal to '0' is returned. The cause of the error can be deter-mined with the functions for error handling.

me9000mioCntWrite

ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus

– –

Meilhaus Electronic Page 99 Function Reference

Page 100: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Function Reference Page 100 Meilhaus Electronic

Page 101: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Appendix

A Specifications

PC InterfaceResources are assigned automatically (Plug&Play)ME-9000 PCI/cPCI (Rev. 2.2) PCI Local Bus Specification Rev. 2.2

(32 bit, 33 MHz, Universal-PCI: 5V/3.3V)ME-9000 PCI-Express PCI Express x1 Specification Rev. 2.0

(32 bit, 33 MHz, 3.3V)ME-9100/9300 PCI/cPCI PCI Local Bus Specification Rev. 2.1

(32 bit, 33 MHz, 5V)ME-90 PC/104-Plus PC/104-Plus Specification Rev. 2.3

(32 bit, 33 MHz, Universal-PCI: 5V/3.3V)

Note: On „MIX“ versions RS-232 and RS-422/485 ports can be combined on one board.

UARTs (ME-9000/9100/9300, ME-90 PC/104-Plus)Number of ports ME-9000: 2, 4 or 8 (RS-232, RS-422/485)(RS-232 + RS-422/485) ME-9100: 4 or 8 (RS-232, RS-422/485)

ME-9300: 16 (RS-232)ME-90 PC/104-Plus: 8 (RS-232, RS-422/485)

Type ME-9000 and ME-90 PC/104-PlusOcto-UART integrated in the PCI controller of type EXAR XR17D158IV; register com-patible to the 16550 with integrated trans-mit and receive FIFO for each port

Type ME-9100 1 resp. 2 Quad-UARTs of type OX16C954 or compatibles (depends on number of ports); register compatible to the 16550 with integrated transmit and receive FIFO for each port

Type ME-9300 4 Quad-UARTs of type OX16C954 or com-patibles; register compatible to the 16550 with integrated transmit and receive FIFO for each port

FIFO capacity ME-9000/ME-90 PC/104-Plus: each 64 byteME-9100/9300: each 128 byte

Transfer rates 75/110/134/150/300/600/1.200/1.800/2.400/4.800/7.200/9.600/14.400/19.200/38.400/57.600/115.200/128.000/230.400/460.800/921.600 Bd

Meilhaus Electronic Page 101 Specifications

Page 102: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Parity none, odd, even, mark, spaceData bits 4; 5; 6; 7; 8Stop bits 1; 1,5; 2Flow control Xon/Xoff, hardware, none

RS-232 Ports (ME-9000/9100/9300, ME-90 PC/104-Plus)Signals RxD, TxD, DCD, DTR, DSR, RTS, CTS, RITransfer distance max. 15 mVoltage level for output signals (TxD):

logical „0“: typ. +5,4V (+5V < U < +13,2V)logical „1“: typ. -5,4V (-13,2V < U < -5V)

Voltage level for input signals (RxD): logical „0“: +3V < U < +25Vlogical „1“: -25V < U < -3V

ESD protection up to 15 kV (IEC 1000)Electrical isolation for „i“-versions up to 500V

for „p“-versions up to 500V

RS-422/485 Ports (ME-9000/9100, ME-90 PC/104-Plus)Operation modes - RS-422

- RS-485 half duplex (automatic flow control)- RS-485 full duplex

Transfer distance max. 1200 mDifferential output voltage of the buffer

2…4.8 VDifferential input voltage for high level

min. 200 mVDifferential input voltage for low level

max. 200 mVOutput offset voltage relating to GND

2…3 V Electrical isolation for „i“ and „p“ versions:

- to PC ground: 500V- between the ports (only „p“-models): 500V

Multi-I/O Pins (ME-9000, ME-90 PC/104-Plus)Number 8 bit bidirectionalType TTL portsInterrupt IRQ-DIO (must be enabled)Output level UOL: max. 0,55V @ 6mA(Vcc = 5V±10%) UOH: min. 2,4V @ -2mA

Specifications Page 102 Meilhaus Electronic

Page 103: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Input level UIL: -0,5 < 0,8V (Vcc = 5V±10%) UIH: 2,0V < 6,0VReference to GND PC ground (GND_PC)

Counter (ME-9000, ME-90 PC/104-Plus)Number 1 x 16 bit Type Down counterModes „Single-Shot“ or „Retrigger“Clock source internal/externalInternal Oscillator Crystal oscillator (14,7456 MHz/100 ppm)Ext. clock input TMRCKInterrupt IRQ-CNT (must be enabled)Reference to GND PC ground (GND_PC)

General InformationPower consumption typ. 2.3 A @ +5 VMax. load of VCC on the customer design area (CDA) resp. ST2 of the ME-9000:

max. 300 mA @ VCC (+5V resp. +3.3V)Max. load of VCC via ST3 of the ME-90 PC/104-Plus:

max. 300 mA @ VCC (+5V)Physical size ME-9000 PCIe: 124 x 99 mm(without mounting bracket ME-9000 PCI: 124 x 99 mm and connectors) ME-9100 PCI: 136 x 99 mm

ME-9300 PCI: 129 x 99 mmME-90 PC/104-Plus: 90 x 96 mmCompactPCI models: 3U CompactPCI

Connection ME-9000 78pin D-Sub female connector with dual, quad or octopus cable to 9pin D-Sub male connectors 20pin IDC connector (ST2) for MIO pins incl. flat ribbon cable to 25pin D-Sub female connector

Connection ME-9100 78pin D-Sub female connector with dual, quad or octopus cable to 9pin D-Sub male connectors

Connection ME-9300 2 x 68pin VHDC female connectorsConnection ME-90 PC/104-Plus

Bus connectors for PCI and ISA bus (ISA bus looped through only), 2 x 40pol. IDC connectors (with 90° angle) incl. 2 flat rib-bon cables with each 4 x 9pin D-Sub male connector, 20pin IDC connector (ST3) for MIO pins incl. flat ribbon cable to 25pin D-Sub female connector

Meilhaus Electronic Page 103 Specifications

Page 104: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Operating temperature ME-9000: -40…+71°C ME-9100/9300: 0…70°C; ME-90 PC/104-Plus: -40…+85°C

Storage temperature ME-9000/9100: -40…100°CME-9300: -40…100°CME-90 PC/104-Plus: -40…100°C

Relative humidity 20…55% (not condensing)

CE CertificationEMC Directive 89/336/EMCEmission EN 55022Noise immunity EN 50082-2

Specifications Page 104 Meilhaus Electronic

Page 105: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

B Pinout

Note the different pinout of the RS-232 and RS-422/485 ports. The„MIX“ versions provide RS-232 as well as RS-422/485 ports. TheRS-232 ports occupy always the lower significant ports followedby the RS-485 ports.

B1 ME-9000/9100 RS-232

Diagram 58: Pinout of the 78pin D-Sub female connector for RS-232 ports

*see note on page 112!

Po

rt 8

Po

rt 3

Po

rt 4

Po

rt 2

Po

rt 1

Po

rt 5

Po

rt 6

Po

rt 7

59

58

57

56

55

54

53

52

51

50

49

48

47

46

45

44

43

42

41

40

39

38

37

36

35

34

33

32

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

reserved

reserved

RI8

DSR8

CTS8

RTS8

GND*

RI7

DSR7

CTS7

RTS7

RI6

DSR6

CTS6

RTS6

GND*

RI5

DSR5

CTS5

RTS5

reserved

reserved

RI4

DSR4

CTS4

RTS4

GND*

RI3

DSR3

CTS3

RTS3

RI2

DSR2

CTS2

RTS2

GND*

RI1

DSR1

CTS1

RTS1

78

77

76

75

74

73

72

71

70

69

68

67

66

65

64

63

62

61

60

reserved

DCD4

DTR4

RxD4

TxD4

GND*

DCD3

DTR3

RxD3

TxD3

DCD2

DTR2

RxD2

TxD2

GND*

DCD1

DTR1

RxD1

TxD1

GND*

DCD8

DTR8

RxD8

TxD8

n.c.

DCD7

DTR7

RxD7

TxD7

DCD6

DTR6

RxD6

TxD6

GND*

DCD5

DTR5

RxD5

TxD5

Meilhaus Electronic Page 105 Pinout

Page 106: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

B2 ME-9000/9100 RS-422/485

Diagram 59: Pinout of the 78pin D-Sub female connector for RS-422/485 ports

*see note on page 112!

Po

rt 8

Po

rt 3

Po

rt 4

Po

rt 2

Po

rt 1

Po

rt 5

Po

rt 6

Po

rt 7

59

58

57

56

55

54

53

52

51

50

49

48

47

46

45

44

43

42

41

40

39

38

37

36

35

34

33

32

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

reserved

reserved

reserved

reserved

reserved

reserved

GND*

reserved

reserved

reserved

reserved

reserved

reserved

reserved

reserved

GND*

reserved

reserved

reserved

reserved

reserved

reserved

reserved

reserved

reserved

reserved

GND*

reserved

reserved

reserved

reserved

reserved

reserved

reserved

reserved

GND*

reserved

reserved

reserved

reserved

78

77

76

75

74

73

72

71

70

69

68

67

66

65

64

63

62

61

60

reserved

RxD4+

RxD4-

TxD4+

TxD4-

GND*

RxD3+

RxD3-

TxD3+

TxD3-

RxD2+

RxD2-

TxD2+

TxD2-

GND*

RxD1+

RxD1-

TxD1+

TxD1-

GND*

RxD8+

RxD8-

TxD8+

TxD8-

n.c.

RxD7+

RxD7-

TxD7+

TxD7-

RxD6+

RxD6-

TxD6+

TxD6-

GND*

RxD5+

RxD5-

TxD5+

TxD5-

Pinout Page 106 Meilhaus Electronic

Page 107: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

B3 ME-9300 RS-232

Diagram 60: 68pin VHDC female connector of the ME-9300

Pinout is valid for both VHDC connectors (connector A: lower,connector B: upper). The numbers in brackets describe the portnumbers of connector B.

34

32

30

28

26

24

22

20

18

16

14

12

10

8

6

4

2

RTS8 (16)

CTS6 (14)

DCD6 (14)

RxD6 (14)

RTS6 (14)

CTS7 (15)

DCD7 (15)

RxD7 (15)

RTS7 (15)

CTS1 (9)

DCD1 (9)

RxD1 (9)

RTS1 (9)

CTS4 (12)

DCD4 (12)

RxD4 (12)

RTS4 (12)

GND

RxD8 (16)

DCD8 (16)

CTS8 (16)

RTS5 (13)

RxD5 (13)

DCD5 (13)

GND

DTR2 (10)

TxD2 (10)

RI2 (10)

DSR2 (10)

GND

RTS3 (11)

RxD3 (11)

DCD3 (11)

GND

TxD8 (16)

RI8 (16)

DSR8 (16)

DTR5 (13)

TxD5 (13)

RI5 (13)

DSR5 (13)

CTS5 (13)

RTS2 (10)

RxD2 (10)

DCD2 (10)

CTS2 (10)

DTR3 (11)

TxD3 (11)

RI3 (11)

DSR3 (11)

CTS3 (11)

DTR8 (16)

DSR6 (14)

RI6 (14)

TxD6 (14)

DTR6 (14)

DSR7 (15)

RI7 (15)

TxD7 (15)

DTR7 (15)

DSR1 (9)

RI1 (9)

TxD1 (9)

DTR1 (9)

DSR4 (12)

RI4 (12)

TxD4 (12)

DTR4 (12)

68

66

64

62

60

58

56

54

52

50

48

46

44

42

40

38

36

67

65

63

61

59

57

55

53

51

49

47

45

43

41

39

37

35

33

31

29

27

25

23

21

19

17

15

13

11

9

7

5

3

1

Meilhaus Electronic Page 107 Pinout

Page 108: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

B4 ME-90 PC/104-Plus

Diagram 61: 40pin IDC connector of the ME-90 PC/104-Plus

Both of the 40pin IDC connectors for COM1…4 and COM5…8are allocated identically (see the following table).

Pin COM RS-232 Direction RS-422/485 Direction

1 1 or 5 DCD Input RxD+ Input

2 1 or 5 DSR Input reserved –

3 1 or 5 RxD Input RxD- Input

4 1 or 5 RTS Output reserved –

5 1 or 5 TxD Output TxD+ Output

6 1 or 5 CTS Input reserved –

7 1 or 5 DTR Output TxD- Output

8 1 or 5 RI Input reserved –

9 1 or 5 GND Masse GND Masse

10 1 or 5 +5V VCC n.c. –

11 2 or 6 DCD Input RxD+ Input

12 2 or 6 DSR Input reserved –

13 2 or 6 RxD Input RxD- Input

14 2 or 6 RTS Output reserved –

15 2 or 6 TxD Output TxD+ Output

16 2 or 6 CTS Input reserved –

17 2 or 6 DTR Output TxD- Output

18 2 or 6 RI Input reserved –

19 2 or 6 GND Masse GND Masse

Table 9: Pinout of the 40pin IDC connector

39 37 35 33 31 29 27 25 23 21 19 17 15 13 11 9 7 5 3 1

40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2board/print

Pinout Page 108 Meilhaus Electronic

Page 109: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

20 2 or 6 +5V VCC n.c. –

21 3 or 7 DCD Input RxD+ Input

22 3 or 7 DSR Input reserved –

23 3 or 7 RxD Input RxD- Input

24 3 or 7 RTS Output reserved –

25 3 or 7 TxD Output TxD+ Output

26 3 or 7 CTS Input reserved –

27 3 or 7 DTR Output TxD- Output

28 3 or 7 RI Input reserved –

29 3 or 7 GND Masse GND Masse

30 3 or 7 +5V VCC n.c. –

31 4 or 8 DCD Input RxD+ Input

32 4 or 8 DSR Input reserved –

33 4 or 8 RxD Input RxD- Input

34 4 or 8 RTS Output reserved –

35 4 or 8 TxD Output TxD+ Output

36 4 or 8 CTS Input reserved –

37 4 or 8 DTR Output TxD- Output

38 4 or 8 RI Input reserved –

39 4 or 8 GND Masse GND Masse

40 4 or 8 +5V VCC n.c. –

Pin COM RS-232 Direction RS-422/485 Direction

Table 9: Pinout of the 40pin IDC connector

Meilhaus Electronic Page 109 Pinout

Page 110: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

B5 Auxiliary Connector ST2 (ME-9000)

ME-AK-D25F/S: Adapter cable from 20pin IDC connector tomounting bracket with 25pin D-Sub female connector (comeswith the board).

Diagram 62: Pinout of ST2 on ME-9000(i)

Note: Connect the mounting bracket pin 1 of the flat ribbon ca-ble (red marked line) as shown above to the IDC connector ST2.

n.c.

n.c.

n.c.

n.c.

n.c.

n.c.

GND_PC

MIO_0

MIO_2

MIO_4

MIO_6

GND_PC

13

12

11

10

9

8

7

6

5

4

3

2

1

25

24

23

22

21

20

19

18

17

16

15

14

n.c.

n.c.

n.c.

n.c.

n.c.

n.c.

TMRCK

GND_PC

MIO_1

MIO_3

MIO_5

MIO_7

VCC(5V/3,3V)

ME-9000

ST2

11

25

23

21

19

17

15

13

11

9

7

5

3

1

n.c.

n.c.

n.c.

TMRCK

GND_PC

MIO_1

MIO_3

MIO_5

MIO_7

VCC (5V/3,3V)

26

24

22

20

18

16

14

12

10

8

6

4

2

n.c.

n.c.

n.c.

n.c.

GND_PC

MIO_0

MIO_2

MIO_4

MIO_6

GND_PC

ST2

Pinout Page 110 Meilhaus Electronic

Page 111: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

B6 Auxiliary Connector ST3 (ME-90 PC/104-Plus)

ME-AK-D25F: Adapter cable for multi-I/O port of the ME-90 PC/104-Plus from 20pin IDC connector to 25pin D-Sub female con-nector (comes with the board).

Diagram 63: Pinout of ST3 of the ME-90 PC/104-Plus

Note: Connect pin 1 of the flat ribbon cable (red marked line) asshown above to pin 1 of the IDC connector ST3.

25

23

21

2

4

6

8

10

12

14

16

18

20

GND_PC

MIO_6

MIO_4

MIO_2

MIO_0

GND_PC

n.c.

n.c.

n.c.

n.c.

26

24

22

1

3

5

7

9

11

13

15

17

19

VCC (5V)

MIO_7

MIO_5

MIO_3

MIO_1

GND_PC

TMRCK

n.c.

n.c.

n.c.

ST3

14

15

16

17

18

19

20

21

22

23

24

25

1

2

3

4

5

6

7

8

9

10

11

12

13

GND_PC

MIO_6

MIO_4

MIO_2

MIO_0

GND_PC

n.c.

n.c.

n.c.

n.c.

n.c.

n.c.

VCC (5V)

MIO_7

MIO_5

MIO_3

MIO_1

GND_PC

TMRCK

n.c.

n.c.

n.c.

n.c.

n.c.

n.c.

1

ST3

ME-90

COM8

PCI

1

Meilhaus Electronic Page 111 Pinout

Page 112: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

B7 9pin male connector ME-9000/9100/9300

Diagram 64: 9pin D-Sub male connector ME-9x00

* Ground Reference ME-9000 Series

Note the different ground reference at the GND pins of the connectors of the ME-9000 series:

- TTL models (without opto-isolation): PC ground (GND_PC).

- „i“-models: from application view one common ground (GND_C) isolated to PC ground.

- „p“-models: ground of the single ports isolated from each another and to PC ground, so called „island-grounds“ (GND_x).

B8 9pin male connector ME-90 PC/104-Plus

Diagram 65: 9pin D-Sub male connector of ME-90 PC/104-Plus

DCD

RxD

TxD

DTR

GND*

DSR

RTS

CTS

RI

1

2

3

4

5

6

7

8

9

RS-232 RS-422/485

RxD+

TxD+

TxD-

RxD-

GND*

reserved

reserved

reserved

reserved

1

2

3

4

5

6

7

8

9

DCD

RxD

TxD

DTR

GND

DSR

RTS

CTS

RI

1

2

3

4

5

6

7

8

9

RS-232 RS-422/485

RxD+

RxD-

TxD+

TxD-

GND

reserved

reserved

reserved

reserved

1

2

3

4

5

6

7

8

9

Pinout Page 112 Meilhaus Electronic

Page 113: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

B9 8pin RJ-45 female connectors

Diagram 66: 8pin RJ-45 female connector for RS-232 ports(Rocket-Port pinout)

Diagram 67: 8pin RJ-45 female connector for RS-422/485 ports(not Rocket-Port compatible)

B10 Null modem cable

Diagram 68: Null modem cable RS-232 (left), RS-422/485 (right)

*see note on page 112! **not for ME-90 PC/104-Plus

RxDDCDDSRCTS

8

TxDGND*DTRRTS

1

RS-232

TxD+RxD+reservedreserved

8

TxD-GND*RxD-

reserved1

RS-422/RS-485

RxD+

TxD+

TxD-

RxD-

GND*

1

2

3

4

5

1

2

3

4

5

RxD+

TxD+

TxD-

RxD-

GND*

RxD

TxD

CTS

RTS

GND*

2

3

7

8

5

2

3

7

8

5

RxD

TxD

CTS

RTS

GND*RS-232 RS-422/485**

Meilhaus Electronic Page 113 Pinout

Page 114: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

C Accessories

Connectivity options for ME-9000/9100:

• ME AK-DDual Connection cable from 78pin D-Sub male con-nector to 2 x 9pin D-Sub male connectors (1 m).

• ME AK-DQuad Connection cable from 78pin D-Sub male connector to 4 x 9pin D-Sub male connectors (1 m).

• ME AK-DOcto Connection cable from 78pin D-Sub male con-nector to 8 x 9pin D-Sub male connectors (1 m).

• ME AB-D9/8-78 + ME AK-D78/1:Octo terminal panel in a closed box from 78pin D-Sub male connector to 8 x 9pin D-Sub male connectors. Suitable con-nection cable ME AK-D78/1 (1 m) from 78pin D-Sub male connector to 78pin D-Sub female connector.

• ME AB-D9/8-78-H + ME AK-D78/1:Octo terminal panel for DIN rail mounting from 78pin D-Sub male connector to 8 x 9pin D-Sub male connectors. Suitable connection cable ME AK-D78/1 (1 m) from 78pin D-Sub male connector to 78pin D-Sub female connector.

• ME AB-RJ45/8x8-V + ME AK-D78/VHDCI (not for ME-9000p):Octo terminal panel in a closed box from 78pin D-Sub male connector to 8 x 8pin RJ-45 female connectors. Suitable con-nection cable ME AK-D78/VHDCI (1 m) from 78pin D-Sub male connector to 68pin VHDCI female connector.

• ME AB-RJ45/8x8-PV + ME AK-D78/VHDCI (not for ME-9000p):Octo terminal panel without case for integration in user spe-cific systems from 78pin D-Sub male connector to 8 x 8pin RJ-45 female connectors. Suitable connection cable ME AK-D78/VHDCI (1 m) from 78pin D-Sub male connector to 68pin VHDCI female connector.

Accessories Page 114 Meilhaus Electronic

Page 115: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

Connectivity options for ME-9300:

• 2 x ME AB-D9/8-V + 2 x VHDCI cable:Octo terminal panel in a closed box from 68pin VHDCI con-nector to 8 x 9pin D-Sub male connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

• 2 x ME AB-D9/8-HV + 2 x VHDCI cable:Octo terminal panel for DIN rail mounting from 68pin VHDCI connector to 8 x 9pin D-Sub male connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

• ME AB-D9/16-V + 2 x VHDCI cable:16 port terminal panel for 19“ rack-mount from VHDCI con-nector (2 x 68pin) to 16 x 9pin D-Sub male connectors. Con-nection via two 1:1 VHDCI cable (1 m).

• 2 x ME AB-RJ45/8x8-V + 2 x VHDC cable:Octo terminal panel in a closed box from 68pin VHDCI con-nector to 8 x 8pin RJ-45 female connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

• 2 x ME AB-RJ45/8x8-PV + 2 x VHDCI cable:Octo terminal panel without case for integration in user spe-cific systems from 68pin VHDCI connector to 8 x 8pin RJ-45 female connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.

Connectivity options for ME-90 PC/104-Plus

• ME AK 4D9M flat ribbon cable from 40pin IDC connector to 4 x 9pin D-Sub male connector.

Meilhaus Electronic Page 115 Accessories

Page 116: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

D Technical Questions

D1 HotlineIf you should have any technical questions or problems that canbe put down to your Meilhaus device, please send a fax to ourhotline:

Fax hotline: + 49 (0) 89/89 01 66 28eMail: [email protected]

Please give a full description of the problems and as much infor-mation as possible, including operating system information.

D2 Service address

If a technical error should occur with your device please contactus at the following address:

Meilhaus Electronic GmbH

Service DepartmentFischerstraße 2D-82178 Puchheim/Germany

If you want to send back a device to be repaired it is strictly ne-cessary to request for a RMA number and to follow the notes todeal with the RMA process. Please attach a detailed error descrip-tion of the problem, including information about operating sy-stem and application software!

D3 Driver Update

The current driver versions for Meilhaus devices and our manualsin PDF format are available under www.meilhaus.com.

Technical Questions Page 116 Meilhaus Electronic

Page 117: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

E Constant Definitions

Note: The following constant definitions are valid for Windows.Please note also the current definition file (me9000miodefs.h)included with the Meilhaus Developer Kit (ME-SDK). The Linuxdriver uses its own constant definitions (see Linux driver)..

Constant Value

General

ME9000MIO_BOARD_0 0x0

ME9000MIO_BOARD_1 0x1

ME9000MIO_BOARD_2 0x2

ME9000MIO_BOARD_3 0x3

ME9000MIO_VALUE_NOT_USED 0

ME9000MIO_POINTER_NOT_USED NULL

ME9000MIO_NO_ERROR 0x00000000

Error Handling

ME9000MIO_ERROR_DEFAULT_PROC_DISABLE 0x0

ME9000MIO_ERROR_DEFAULT_PROC_ENABLE 0x1

Digital Input/Output

ME9000MIO_DIO_LINE_0 0x0

ME9000MIO_DIO_LINE_1 0x1

ME9000MIO_DIO_LINE_2 0x2

ME9000MIO_DIO_LINE_3 0x3

ME9000MIO_DIO_LINE_4 0x4

ME9000MIO_DIO_LINE_5 0x5

ME9000MIO_DIO_LINE_6 0x6

ME9000MIO_DIO_LINE_7 0x7

ME9000MIO_DIO_OUTPUT 0x0

ME9000MIO_DIO_INPUT 0x1

ME9000MIO_DIO_LINE_ENABLE 0x0

ME9000MIO_DIO_LINE_DISABLE 0x1

ME9000MIO_DIO_INT_DISABLE 0x0

ME9000MIO_DIO_INT_ENABLE 0x1

ME9000MIO_DIO_INV_DISABLE 0x0

ME9000MIO_DIO_INV_ENABLE 0x1

Table 10: Constant definitions

Meilhaus Electronic Page 117 Constant Definitions

Page 118: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

Counter

ME9000MIO_CNT_INT_DISABLE 0x0

ME9000MIO_CNT_INT_ENABLE 0x1

ME9000MIO_CNT_RETRIGGER_DISABLE 0x0

ME9000MIO_CNT_RETRIGGER_ENABLE 0x1

ME9000MIO_CNT_EXT_CLOCK_DISABLE 0x0

ME9000MIO_CNT_EXT_CLOCK_ENABLE 0x1

ME9000MIO_CNT_EXT_EVENT_DISABLE 0x0

ME9000MIO_CNT_EXT_EVENT_ENABLE 0x1

Constant Value

Table 10: Constant definitions

Constant Definitions Page 118 Meilhaus Electronic

Page 119: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

F Index

Function Reference

me9000mioCntClose 93

me9000mioCntConfig 93

me9000mioCntGetIrqCount 95

me9000mioCntOpen 96

me9000mioCntRead 96

me9000mioCntReset 97

me9000mioCntStart 98

me9000mioCntStop 98

me9000mioCntWrite 99

me9000mioDIOClose 82

me9000mioDIOConfig 83

me9000mioDIOGetBit 85

me9000mioDIOGetByte 86

me9000mioDIOOpen 87

me9000mioDIOOutput 88

me9000mioDIOReset 89

me9000mioDIOSetBit 90

me9000mioDIOSetByte 91

me9000mioDIOSetCallback 92

me9000mioErrorGetLastMessage 76

me9000mioErrorGetMessage 75

me9000mioErrorSetDefaultProc 77

me9000mioErrorSetUserProc 78

Meilhaus Electronic Page

me9000mioGetBoardCount 79

me9000mioGetBoardVersion 79

me9000mioGetDLLVersion 80

me9000mioGetDriverVersion 81

me9000mioGetIrqCount 86

me9000mioGetSerialNumber 81

A

Accessories 114

Adapter Cable 110, 111

API-DLL 63

Appendix 101

B

Block Diagram 31, 32

C

Cable 9

COM Ports

under Windows 2000/XP 25

under Windows 95/98/Me 22

under Windows NT4.0 28

Connections Options 47

Constant definitions 117

Counter Functions

me9000mioCntClose 93

me9000mioCntConfig 93

me9000mioCntGetIrqCount 95

119 Index

Page 120: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

me9000mioCntOpen 96

me9000mioCntRead 96

me9000mioCntReset 97

me9000mioCntStart 98

me9000mioCntStop 98

mme9000mioCntWrite 99

D

Delphi 65

Description of the API Functions 73

Digital Input/Output

me9000mioDIOClose 82

me9000mioDIOConfig 83

me9000mioDIOGetBit 85

me9000mioDIOGetByte 86

me9000mioDIOOpen 87

me9000mioDIOOutput 88

me9000mioDIOReset 89

me9000mioDIOSetBit 90

me9000mioDIOSetByte 91

me9000mioDIOSetCallback 92

me9000mioGetIrqCount 86

Driver general 63

Driver Update 116

E

Error Handling

me9000mioErrorGetLastMessage 76

Index Page

me9000mioErrorGetMessage 75

me9000mioErrorSetDefaultProc 77

me9000mioErrorSetUserProc 78

F

FIFO Trigger Level

under Windows NT4.0 29

under Windows 2000/XP 27

under Windows 95/98/Me 24

Flat ribbon cable ME-90 PC/104-Plus 47

Function reference 71

G

General Functions

me9000mioGetBoardCount 79

me9000mioGetBoardVersion 79

me9000mioGetDLLVersion 80

me9000mioGetDriverVersion 81

me9000mioGetSerialNumber 81

H

Hardware Description 31

Hardware Options 35

I

Important Notes 7

Installation of Hardware 15

Installation of Software 16

under Windows 95/98/Me/2000/XP 17

120 Meilhaus Electronic

Page 121: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E

under Windows NT 19

Introduction 7

J

Jumper Positions

ME-90 PC/104-Plus 43

K

Kernel driver 63

L

LabVIEW™ Programming 65

M

ME Software Developer Kit 20

ME-90 PC/104-Plus 43

ME-9000 PCI 35

ME-9100 cPCI 41

ME-9100 PCI 40

ME-9300 PCI 42

Model Overview 10

N

Null modem cable 113

O

Operation mode

RS-232 53

RS-422 56

RS-485 full duplex 60

RS-485 half duplex 58

P

Package contents 9

Meilhaus Electronic Page

PCI Slot Assignment

ME-90 PC/104-Plus 44

Performance Notes 10

Pinout 105

Port Configuration

under Windows 2000/XP 25

under Windows 95/98/Me 22

under Windows NT4.0 28

Programming 63

Counter 68

Digital-I/O 66

under Delphi 65

under Visual Basic 64

under Visual C++ 64

R

RS-422/485

Jumper ME-90 PC/104-Plus 44

S

Service and Support 116

Settings "ME SIO Ports" 29

Settings Advanced

under Windows 2000/XP 27

under Windows 95/98/Me 24

Software available 14

Specifications 101

System driver 63

System Requirements 14

121 Index

Page 122: Meilhaus Electronic Manual ME-9000/9100/9300 2...Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe Rev. 2.3E Meilhaus Electronic Page 3 Table of Content Table of Content 1

Rev. 2.3E Manual ME-90 PC/104-Plus, ME-9000/9100/9300 cPCI/PCI/PCIe

T

Terminal Panel

ME-9300 50

U

Updating the System Driver 20

under Windows 95/98/Me/2000/XP 20

under Windows NT4.0 21

V

VEE Programming 65

Visual Basic 64

Visual C++ 64

W

WDM driver 63

Index Page

122 Meilhaus Electronic