Meilhaus Electronic ME-90 Series Electronic Manual

Rs-232 or rs-422/485 interface boards with up to 16 ports
Table of Contents

Advertisement

Quick Links

Meilhaus Electronic Manual
ME-90/9000/9100/9300 Series
3.0E
(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)

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ME-90 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Meilhaus Electronic ME-90 Series

  • Page 1 Meilhaus Electronic Manual ME-90/9000/9100/9300 Series 3.0E (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)
  • Page 2 Electronic assumes no responsibility 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 assumes no responsibility for any problems or damage which may result from errors or omissions.
  • Page 3: Table Of Contents

    Content Introduction ............7 Important Notes ..............7 1.1.1 Use in Accordance with the Requirements ......7 1.1.2 Improper Application ............8 1.1.3 Unforeseeable Misapplications ..........8 Package Contents ..............9 Features ................. 9 System Requirements ............12 Available Software ..............12 Installation ............
  • Page 4 Hardware ............29 Block Diagram ME-9000 ............29 Block Diagram ME-9100 ............30 Block Diagram ME-9300 ............31 Block Diagram ME-90 PC/104-Plus .......... 32 Hardware Options ..............33 3.5.1 ME-9000 PCI/PCIe/cPCI ............33 3.5.1.1 Multi-I/O Port............... 33 3.5.1.2 Echo ON/OFF ............... 33 3.5.2 ME-9100 PCI ..............
  • Page 5 3.7.2.3 RS-485 Full-duplex ............58 3.7.2.3.1 ME-9000 ..............59 3.7.2.3.2 ME-9100 ..............59 3.7.2.3.3 ME-90 PC/104-Plus ..........60 Programming ............61 ME-9000 Multi-I/O Driver ............61 4.1.1 Visual C++ ............... 61 4.1.2 Visual Basic ..............62 4.1.3 Delphi ................62 4.1.4 Agilent VEE ...............
  • Page 6 B10 Null Modem Cable ..............113 Accessories ................. 114 Technical Questions .............. 116 D1 Hotline ................116 Constant Definitions ........... 117 Index ................... 119...
  • Page 7: Introduction

    Introduction Valued customer, Thank you for purchasing this device from Meilhaus Electronic. You have chosen an innovative high-technology product that left our premises in a fully functional and new condition. Please take the time to carefully examine the contents of the package for any loss or damage that may have occurred during shipping.
  • Page 8: Improper Application

     All unused inputs should be connected to the ground reference of the appropriate functional section. This avoids cross talk between the input lines.  The opto-isolated inputs and outputs achieve an electrical isolation of the application relative to PC ground. ...
  • Page 9: Package Contents

    Package Contents We take great care to ensure your delivery is complete. Nonetheless, please check the list enclosed to verify the contents of your delivery. You should find included:  RS-232 resp. RS-422/485 interface board (depending on version ordered): o ME-90 PC/104-Plus or o ME-9000 cPCI, PCI or PCIe or o ME-9100 cPCI or PCI or o ME-9300 PCI...
  • Page 10 ME-9000(i/p)*/8 RS485 8 RS-485 ports up to 921,6 kBd PCI/PCIe/cPCI ME-9000(i/p)*/2 MIX 1 RS-232 port and 1 RS-485 PCI/PCIe/cPCI ports up to 921,6 kBd ME-9000(i/p)*/8 MIX 4 RS-232 ports and 4 RS-485 PCI/PCIe/cPCI ports up to 921,6 kBd The PCI-Express models, the ME-9000 PCI models (from Rev. 1.4 up) and the ME-9000 CompactPCI models (from Rev.
  • Page 11 ME-9100 Models Serial Ports ME-9100i/4 RS232 4 RS-232 ports up to 921,6 kBd with PCI/cPCI opto-isolation ME-9100i/8 RS232 8 RS-232 ports up to 921,6 kBd with PCI/cPCI opto-isolation ME-9100i/4 RS485 4 RS-485 ports up to 921,6 kBd with PCI/cPCI opto-isolation ME-9100i/8 RS485 8 RS-485 ports up to 921,6 kBd with PCI/cPCI...
  • Page 12: System Requirements

    PCI-, PCI-Express- or CompactPCI-slot (depends on model). The ME-90 PC/104-Plus can be used as a PCI-based peripheral board in a PC/104 stack. The board is supported by the Meilhaus Electronic Intelligent Driver System (ME-iDS). Available Software The provided software enables quick integration of the boards under all common operating systems.
  • Page 13 Note: The ME-9000 and ME-90 PC/104-Plus are not supported under Windows 95/98/Me! System Drivers: Current driver support see README-files. High-level language support: Each programming language that supports access to Win32Com- API (e.g. Visual C, Delphi) Graphical programming languages, i.e.: HP VEE, HP VEE Lab, Agilent VEE Pro, Agilent VEE OneLab, LabView™: no extra driver necessary;...
  • Page 14: Installation

    Installation Important Note: If you have got the driver software as an archive file (e.g. by download or the Windows 9x driver coming with CD/DVD), please unpack the software before installing the board to a directory of your choice. Now insert the board into your computer (see chapter „Hardware Installation) and then install the driver software (see chapter „Driver Installation“).
  • Page 15: Driver Installation

    should be all that is required to seat the board fully and properly 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”. Driver Installation 2.2.1 Unpacking the Driver Software Proceed with the following steps if you have got the driver update...
  • Page 16: Checking Installation Under Windows

    After inserting the board and rebooting, it will be detected automatically by the Windows „Hardware Wizard“ and the message „New Hardware Found“ will be displayed. The dialogs may differ slightly depending on your Windows version. Note for Windows Vista: For safety reasons the user account control of Windows Vista requires your confirmation to proceed with the installation for several times.
  • Page 17 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 installation error.
  • Page 18: Installation Under Windows Nt 4.0

    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.
  • Page 19: Updating The System Driver

    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 15). 2.2.7.1 …under Windows 95/98/Me/2000/XP  Run the Device Manager: o Under Windows 95/98/ME: START-Menu ➜...
  • Page 20: Port Configuration

    Port Configuration 2.3.1 …under Windows 95/98/Me Use the device manager to check the port assignments and to change the settings. Choose: START-Menu ➜ Settings ➜ System Control ➜ System ➜ Device Manager The ports of the ME-9100/9300 will be added under „Ports (COM &...
  • Page 21: Port Settings

    Mark the appropriate port in the device manager under „Ports“(see Picture 1) and click the button „Properties“ in order to display the properties. 2.3.1.1 Port Settings For most of the application programs the „Port Settings“ done in the device manager are not relevant. Exception: board-specific parameters like the operation mode (see 2.3.1.2 Settings „Advanced“).
  • Page 22: Settings „Advanced

    2.3.1.2 Settings „Advanced“ The property page „Advanced“ offers you the ability to set the operation mode of RS422/485 ports (see chap 3.7 Operation Modes) and the FIFO trigger level. Every port provides separate transmit and receive FIFOs. Each of them with a size of 128 bytes (ME-9100/9300).
  • Page 23: Port Settings

    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 COM ports automatically assigned. In the following picture you see a typical installation of a ME-9100 with 4 ports for RS-485 operation: Mark the appropriate port in the device manager under “Ports”...
  • Page 24: Settings "Advanced

     Bits per Second: depending on board version all settings selectable in Windows up to 921,6 kbps (see also appendix A "Specifications", page 100)  Data bits: 4; 5; 6; 7; 8  Parity: None, Odd, Even, Mark, Space  Stop bits: 1;...
  • Page 25: Under Windows Nt 4.0

    We recommend not to change the assignment of the COM ports by the pull-down menu “COM Port Number”. 2.3.3 …under Windows NT 4.0 The assignment of COM ports is done automatically by the operation system. Under „Control Panel“ double-click the icon „ME SIO Ports“...
  • Page 26 In the following picture you see a typical installation of two boards, the first one with 4 RS-232 ports and the second one with 4 RS- 485 ports. You get the following information: Beginning from the left side the name is displayed which refers to the port, followed by the assignment of the port number to the board, the corresponding serial number and last the interface standard (RS232 or RS485).
  • Page 27: Settings "Me Sio Ports

    2.3.3.1 Settings “ME SIO Ports” Mark a port in the control panel „ME SIO Ports“ (see Picture 8) and click the button „Settings“. The next dialog offers you the ability to set the operation mode of RS422/485 ports (see chap. 3.7 Operation Modes) and the FIFO trigger level.
  • Page 28 “ME SIO Ports”). Therefore check 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 selectable in Windows up to 921,6 kbps (see also appendix A "Specifications", page 101) ...
  • Page 29: Hardware

    Hardware Block Diagram ME-9000 *2, 4 or 8 RS-232 and/or RS-422/485 ports depending on version. Optional: „i“-models: with a common electrical insulation from PC ground. „p“-models: with electrical insulation from PC ground and between the ports („island-ports“).
  • Page 30: Block Diagram Me-9100

    Block Diagram ME-9100 *2, 4 or 8 RS-232 and/or RS-422/485 ports depending on version.
  • Page 31: Block Diagram Me-9300

    Block Diagram ME-9300 *8 or 16 RS-232 ports depending on version.
  • Page 32: Block Diagram Me-90 Pc/104-Plus

    Block Diagram 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.
  • Page 33: Hardware Options

    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 followed by the RS-485 ports.
  • Page 34  Echo OFF: Set the soldering bridge „OFF“ to control the receiver by the RTS signal. The reception becomes disabled during transmission. The position of the soldering bridges can be found with picture 17 (PCI), picture 19 (PCIe) resp. picture 21 (cPCI). Alternatively you can send your board to our service department.
  • Page 39: Me-9100 Pci

    3.5.2 ME-9100 PCI...
  • Page 40: Me-9100 Compactpci

    3.5.3 ME-9100 CompactPCI...
  • Page 41: Me-9300 Pci

    3.5.4 ME-9300 PCI Depending on the number of ports you need one terminal panel for the ME-9300/8 resp. two for the ME-9300/16. They are provided with either 9-pin D-Sub male connectors or 8-pin RJ-45 female connectors (RS-232 Rocket-Port pinout). See also chapter 3.6 Connection Options.
  • Page 42: Pc/104-Plus

    3.5.5 ME-90 PC/104-Plus Picture 28 shows the position of jumpers soldering bridges and connectors. *ISA bus looped through for other PC/104 boards. **Automatic level adaption to 3.3 V or 5 V 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 EXAR XR17D158 chip can be used for customer-specific extensions.
  • Page 43: Assignment Of The Pci Slots

    3.5.5.2 Assignment of the PCI Slots Because of the „stack architecture“ of PC/104-Plus the signals for all extension boards are routed via one connector (in opposite to the single slots of a motherboard). This means for the ME-90 PC/104-Plus, that the signals CLK, IDSEL and INT0# must be routed to the PCI bus in a way that prevents conflicts with other peripheral boards.
  • Page 44 Please note that the placement of the soldering bridges of ports COM5…8 is rotated by 180° compared to COM1…4. *On demand, these jumpers can be plugged in the operation mode „RS-485 half-duplex“. They enable a comfortable connection of RxD and TxD signal without external bridging. In all other operation modes these jumpers are unplugged.
  • Page 45: Echo On/Off

    3.5.5.4 Echo ON/OFF On the RS-422/485 models of the ME-90 PC/104-Plus you can determine the receiver’s control by soldering bridges at the top of the board (see Picture 28). With that you can adapt the single ports to the needs of your application individually. See also description of the operation modes from page 56 up.
  • Page 46: Connection Options

    Connection Options 3.6.1 Dual/Quad/Octopus Cables With the ME-9000 and ME-9100 a dual, quad or octopus cable is included with the board depending on the number of ports. The pinout is defined as a standard, see B Pinout in Appendix B. 3.6.2 Flat Ribbon Cable to 9-pin D-Sub Connectors Two flat ribbon cables each with 4 x 9-pin D-Sub male connectors (ME-AK 4D9M) are included with the ME-90 PC/104-Plus.
  • Page 47: Terminal Panel For Me-9000/9100

    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 78-pin D-Sub male connector to 8 x 9-pin D-Sub male connectors. Suitable connection cable ME AK-D78/1 (1 m) from 78-pin D-Sub male connector to 78- pin D-Sub female connector.
  • Page 48  ME AB-D9/8-78-H + ME AK-D78/1: Octo terminal panel for DIN rail mounting from 78-pin D-Sub male connector to 8 x 9-pin D-Sub male connectors. Suitable connection cable ME AK-D78/1 (1 m) from 78-pin D-Sub male connector to 78- pin D-Sub female connector. ...
  • Page 49: Terminal Panel For Me-9300

     ME AB-RJ45/8x8-PV + ME AK-D78/VHDCI: Octo terminal panel without case for integration in user specific systems from 78-pin D-Sub male connector to 8 x 8-pin RJ- 45 female connectors. Suitable connection cable ME AK-D78/ VHDCI (1 m) from 78-pin D-Sub male connector to 68-pin VHDCI female connector.
  • Page 50  2 x ME AB-D9/8-HV + 2 x VHDCI cable: Octo terminal panel for DIN rail mounting from 68-pin VHDCI- connector to 8 x 9-pin D-Sub male connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice. ...
  • Page 51  2 x ME AB-RJ45/8x8-PV + 2 x VHDCI cable: Octo-terminal panel without case for integration in user specific systems from 68-pin VHDCI connector to 8 x 8-pin RJ-45 female connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.
  • Page 52: Operation Modes

    Operation Modes Both the RS-232 and the RS-422/485 ports can be accessed like standard COM ports under Windows. The RS-422/485 ports can be used in the operation modes „RS-422“, „RS-485 half-duplex“ and „RS-485 full-duplex“. Each port of the board is configurable independently.
  • Page 53: The Rs-422/485 Standard

    to send data. The procedure is reversed when switching from transmit to receive. DSR (Data Set Ready): This is also called DCE Ready. In the answer mode, the answer tone and the Data Set Ready are asserted two seconds after the telephone goes off hook. GND (Signal Ground): This is the common return line for the data Transmit and Receive signals.
  • Page 54: Rs-422

    transfer is done in a differential way. A voltage difference of more than +200 mV at the receiver input is defined as high-level and a voltage difference of less than -200 mV as low-level. The RS-485 standard is an extension of the RS-422 standard and allows up to 32 transmitters/receivers, which can be in half-duplex or full-duplex mode.
  • Page 55: Me-9000

    Note: Under Windows the configuration is done per port in the system settings (see chapter 2.3 Port Configuration). Flow control is handled automatically by the driver. Under Linux the transmitter must be controlled by the user with the RTS resp. DTR signal as wanted (logical „0“ sets the transmitter driving).
  • Page 56: Pc/104-Plus

    3.7.2.1.3 ME-90 PC/104-Plus Flow control can be changed from RTS (default) to DTR signal by jumper (see picture 31 on page 45). Controlling the receiver (echo ON/OFF) can be adapted by a soldering bridge to the requirements or your application if necessary (see picture 32 on page 45). Factory setting: echo ON.
  • Page 57: Me-9000

    3.7.2.2.1 ME-9000 Controlling the receiver (echo ON/OFF) can be adapted by a soldering bridge to the requirements of your application if necessary (see also page 33). Factory setting: echo ON. 3.7.2.2.2 ME-9100 Depending on your needs you have the possibility to remove the echo of the transmitter in the system settings (see chapter 2.3 Port Configuration) of Windows.
  • Page 58: Pc/104-Plus

    3.7.2.2.3 ME-90 PC/104-Plus Flow control can be changed from RTS (default) to DTR signal by jumper (see picture 31 on page 45). Controlling the receiver (echo ON/OFF) can be adapted by a soldering bridge to the requirements or your application if necessary (see picture 32 on page 46). Factory setting: echo ON.
  • Page 59: Me-9000

    3.7.2.3.1 ME-9000 Controlling the receiver (echo ON/OFF) can be adapted by a soldering bridge to the requirements of your application if necessary (see also page 33). Factory setting: echo ON. 3.7.2.3.2 ME-9100...
  • Page 60: Pc/104-Plus

    3.7.2.3.3 ME-90 PC/104-Plus Flow control can be changed from RTS (default) to DTR signal by jumper (see picture 31 on page 44). Controlling the receiver (echo ON/OFF) can be adapted by a soldering bridge to the requirements or your application if necessary (see picture 32 on page 45). Factory setting: echo ON.
  • Page 61: Programming

    Programming For programming the serial boards of type ME-9000/9100/9300 and ME-90 PC/104-Plus no board specific programming inter- faces are required. The ports can be accessed as COM ports by the standard API under Windows. For programming the digital I/O and counter section of the ME- 9000 and ME-90 PC/104-Plus a special ME-9000 multi-I/O driver is available for Windows 98/Me/2000/XP and NT4.0.
  • Page 62: Visual Basic

    Visual C++ support for your board is included with the ME-SDK on CD/DVD or under http://www.meilhaus.de/en/download. 4.1.2 Visual Basic API-DLL me9000mioEx.dll System driver Function prototypes me9000mio.bas ME-SDK Constant definitions me9000mio.bas ME-SDK Function prefix me9000mioVB_… Visual Basic support for your board is included with the ME-SDK on CD/DVD or under www.meilhaus.de/download.
  • Page 63: Agilent Vee

    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 Manager…“. The digital I/O and counter functions are not supported in VEE. For basics of VEE programming please use your VEE documentation and the VEE online help index.
  • Page 64 Note: A bit configured for output can be read back! 1) Parameter of the function …  <BitNumber> Select the multi-I/O bit wanted.  <Direction> Choose between input or output.  <Invert> The polarity of an input can be inverted. ...
  • Page 65 Parameter of the function … <CntEvent>  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.
  • Page 66: Counter

    Counter ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ The ME-9000 provides a 16-bit counter. A start value must be loaded into the counter by the function … . Calling the function … starts counting down to „0“. On zero axis crossing either an interrupt can be triggered and/or the multi-I/ O bit MIO_0 can be driven.
  • Page 67  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 the pin becomes an output automatically. If the board will be damaged no guarantee can be given! ...
  • Page 69: Function Reference

    Function Reference General Notes  Function Prototypes: In the following function description the generic function proto- types for Visual C++ are used. The definitions for other supported programming languages which are partly using different data types can be found in the appropriate definition files included with the ME-SDK.
  • Page 70: Description Of The Api Functions

    will be italic in body text e.g. <parameters> will be in brackets as shown and in font Courier. [square brackets] will indicate physical units. parts of programs will be in Courier main(…) type Description of the API Functions The functions will be described by functional groups as listed below. Within each functional group the individual functions will be described in alphabetical order: „5.3.1 “Error Handling“...
  • Page 71 me9000mioGetDLLVersion Determine DLL version number me9000mioGetDriverVersion Determine driver version number me9000mioGetSerialNumber Determine serial number Digital Input/Output me9000mioDIOClose Close the „Digital-I/O“ operation me9000mioDIOConfig Configuring the digital-I/O lines 80 me9000mioDIOGetBit Getting one bit me9000mioDIOGetByte Getting a byte me9000mioDIOGetIrqCount Determine number of IRQs me9000mioDIOOpen Open „Digital-I/O“...
  • Page 72: Error Handling

    5.3.1 Error Handling me9000mioErrorGetMessage ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ 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);...
  • Page 73 me9000mioErrorGetLastMessage ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ This function returns the last error caused by a „me9000mio…“ API function and retrieves the error description text. Definitions VC: me9000mioErrorGetMessage (int iErrorCode, char* pcBuffer, unsigned int uiBufferSize); VB: me9000mioVB_…(see me9000mio.bas) ➔...
  • Page 74 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: ...
  • Page 75 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. ☞...
  • Page 76: General Functions

    5.3.2 General Functions me9000mioGetBoardCount ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ Number of boards of type ME-9000 installed in your system will be determined. Definitions VC: me9000mioGetBoardCount(void);: VB: me9000mioVB_…(see me9000mio.bas) ➔ Parameter none ‹ Return value If the function is successfully executed, a '0' ME9000MIO_NO_ERROR) is returned.
  • Page 77 Definitions VC:me9000mioGetBoardVersion(unsigned int uiBoardNumber,unsigned short* pus Version); VB: me9000mioVB_…(see me9000mio.bas) ➔ Parameters <BoardNumber> Number of the board to be accessed of type ME-9000. <Version> Pointer to the device ID. ‹ Return value If the function is successfully executed, a '0' ME9000MIO_NO_ERROR) is returned.
  • Page 78 ‹ 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 determined with the functions for error handling. me9000mioGetDriverVersion ✎...
  • Page 79 me9000mioGetSerialNumber ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ Determines the serial number of the selected board. Definitions VC:me9000mioGetSerialNumer (unsigned int uiBoardNumber; unsigned long* pulSerialNumber); VB: me9000mioVB_…(see me9000mio.bas) ➔ Parameters <Version> Number of the board to be accessed of type ME-9000. <Serial Number>...
  • Page 80: Digital Input/Output

    5.3.3 Digital Input/Output me9000mioDIOClose ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ This function closes the digital-I/O operation opened with … . Hardware resources which were reserved are released again. Definitions VC:me9000mioDIOClose(unsigned int uiBoardNumber); VB: me9000mioVB_…(see me9000mio.bas) ➔...
  • Page 81 Call this function separately for each bit. A bit configured as output can also be read back! To set a bit configured as output in the high-impedance state use the function … Definitions VC:me9000mioDIOConfig (unsigned int uiBoardNumber, unsigned int uiBitNumber, inti Direction, inti Invert, inti Interrupt);...
  • Page 82 Enable interrupt functions fort he selected bit. Condition: Bit must be configured as input: o ME9000MIO_DIO_INT_DISABLE: Interrupt disabled o 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.
  • Page 83 Choose multi-I/O bit: o ME9000MIO_DIO_LINE_0: MIO_0 o ME9000MIO_DIO_LINE_1: MIO_1 o ME9000MIO_DIO_LINE_2: MIO_2 o ME9000MIO_DIO_LINE_3: MIO_3 o ME9000MIO_DIO_LINE_4: MIO_4 o ME9000MIO_DIO_LINE_5: MIO_5 o ME9000MIO_DIO_LINE_6: MIO_6 o ME9000MIO_DIO_LINE_7: MIO_7 <Value> Pointer to an integer value which returns the state of the bit. „0“: input line is low „1“: input line is high ‹...
  • Page 84 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> Number of the board to be accessed of type ME-9000. <BitValue> Pointer to an “unsigned char” value, which returns the read byte.
  • Page 85 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 configured as interrupt input (IRQ-DIO). ‹ Return value If the function is successfully executed, a '0' ME9000MIO_NO_ERROR) is returned.
  • Page 86 ‹ Return value If the function is successfully executed, an '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 determined with the functions for error handling. me9000mioDIOOutput ✎...
  • Page 87 <OutputMode> Set the output bit in a driving or high-impedance state: o ME9000MIO_DIO_OUTPUT_ENABLE: Set output bit driving o 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.
  • Page 88 ‹ 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 determined with the functions for error handling. me9000mioDIOSetBit ✎...
  • Page 89 o ME9000MIO_DIO_LINE_5: MIO_5 o ME9000MIO_DIO_LINE_6: MIO_6 o ME9000MIO_DIO_LINE_7: MIO_7 <BitValue> Pointer 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.
  • Page 90 ➔ 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.
  • Page 91: Counter Functions

    <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 determined with the functions for error handling.
  • Page 92 ‹ Return value If the function is successfully executed, an '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 determined with the functions for error handling. me9000mioDIOCntClose ✎...
  • Page 93 o ME9000MIO_CNT_RETRIGGER_DISABLE: „Single Shot“ (counting once to „0“) o ME9000MIO_CNT_RETRIGGER_ENABLE: „Retrigger“ (reloading the start value on zero axis crossing). <CntEvent> Multi-I/O pin MIO_0 to output a counter event (on zero axis crossing): o ME9000MIO_CNT_EVENT_DISABLE: Disable counter event o ME9000MIO_CNT_EVENT_ENABLE: Enable counter event Please note: Pin MIO_0 may not be switched as an input because the pin becomes an output automatically.
  • Page 94 code unequal to '0' is returned. The cause of the error can be determined with the functions for error handling. me9000mioCntGetIrqCount ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ This function determines the number of interrupts from the counter.
  • Page 95 me9000mioCntOpen ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ 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. ‹...
  • Page 96 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). ‹ 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.
  • Page 97 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 determined with the functions for error handling.
  • Page 98 me9000mioCntStop ✎ Description ME-9000 ME-9100 ME-9300 ME-90 PC/104-Plus ✔ – – ✔ Stop the counter in mode “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. ‹...
  • Page 99 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.
  • Page 100: Appendix

    Appendix Specification PC Interface Resources are assigned automatically (Plug&Play) ME-9000 PCI/cPCI (Rev. PCI local bus specification version 2.2 2.2) (32 bit, 33 MHz, Universal-PCI: 5 V/3,3 V) ME-9000 PCI-Express PCI-Express x1 specification version 2.0 (32 bit, 33 MHz, 3,3 V) ME-9100/9300 PCI/cPCI PCI local bus specification version 2.1 (32 bit, 33 MHz, 5 V)
  • Page 101 Transfer rates 75/110/134/150/300/600/1200/1800/2400/ 4800/7200/9600/14.400/19.200/38.400/5 7.600/115.200/128.000/230.400/460.800/ 921.600 Bd Parity none, odd, even, mark, space Data bits 4; 5; 6; 7; 8 Stop bits 1; 1,5; 2 Flow 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, RI Transfer distance max.
  • Page 102 - to PC ground: 500 V - between the ports (only „p“-models): 500 V Multi-I/O Pins (ME-9000, ME-90 PC/104-Plus) Number 8-bit bidirectional Type TTL ports Interrupt IRQ-DIO (must be enabled) Output level : max. 0,55 V at 6 mA (Vcc = 5 V±10 %) : min.
  • Page 103 Connection ME-9000 78-pin D-Sub female connector with dual, quad or octopus cable to 9-pin D-Sub male connectors 20-pin IDC connector (ST2) for MIO pins incl. flat ribbon cable to 25-pin. Connection ME-9100 78-pin D-Sub female connector with dual, quad or octopus cable to 9pin D-Sub male connectors (ST2) for MIO pins incl.
  • Page 104: B Pinout

    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. The RS-232 ports occupy always the lower significant ports followed by the RS-485 ports. ME-9000/9100 RS-232...
  • Page 105: B2 Me-9000/9100 Rs-422/485

    ME-9000/9100 RS-422/485 *see note on page 111!
  • Page 106: B3 Me-9300 Rs-232

    ME-9300 RS-232 Pinout is valid for both VHDC connectors (connector A: lower, connector B: upper). The numbers in brackets describe the port numbers of connector B.
  • Page 107: B4 Me-90Pc/104-Plus

    ME-90PC/104-Plus Both of the 40-pin IDC connectors for COM1…4 and COM5…8 are allocated identically (see the following table). RS-232 Direction RS-422/485 Direction 1 or 5 Input RxD+ Input 1 or 5 Input reserved – 1 or 5 Input RxD- Input 1 or 5 Output reserved...
  • Page 108 RS-232 Direction RS-422/485 Direction 2 or 6 +5 V n.c. – 3 or 7 Input RxD+ Input 3 or 7 Input reserved – 3 or 7 Input RxD- Input 3 or 7 Output reserved – 3 or 7 Output TxD+ Output 3 or 7 Input...
  • Page 109: B5 Auxiliary Connector St2 (Me-9000)

    Auxiliary Connector ST2 (ME-9000) ME-AK-D25F/S: Adapter cable from 20-pin IDC connector to mounting bracket with 25-pin D-Sub female connector (comes with the board). Note: Connect the mounting bracket pin 1 of the flat ribbon cable (red marked line) as shown above to the IDC connector ST2.
  • Page 110: B6 Auxiliary Connector St3 (Me-90 Pc/104-Plus)

    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 20-pin IDC connector to 25-pin D-Sub female connector (comes with the board). Note: Connect pin 1 of the flat ribbon cable (red marked line) as shown above to pin 1 of the IDC connector ST3.
  • Page 111: B7 9-Pin Male Connector Me-9000/9100/9300

    9-pin male connector ME-9000/9100/9300 *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.
  • Page 112: B8 9-Pin Male Connector Me-90 Pc/104-Plus

    9-pin male connector ME-90 PC/104-Plus 8-pin RJ-45 female connectors...
  • Page 113: B10 Null Modem Cable

    Null modem cable * see note on page 111! **not for ME-90 PC/104-Plus...
  • Page 114: C Accessories

    Accessories We recommend to use high-quality connector cables with single- shielded lines per channel. For further accessories please refer to the current Meilhaus Electronic catalog and the internet: www.meilhaus.de/en/pc-boards/accessories/ Connectivity options for ME-9000/9100: • ME AK-DDual Connection cable from 78-pin D-Sub male connector to 2 x 9-pin D-Sub male connectors (1 m).
  • Page 115 Connectivity options for ME-9300: • 2 x ME AB-D9/8-V + 2 x VHDCI cable: Octo terminal panel in a closed box from 68-pin VHDCI connector to 8 x 9-pin D-Sub male connectors. Connection via 1:1 VHDCI cable (1 m). Terminal panel and cable are required twice.
  • Page 116: D Technical Questions

    Download-Server and Driver Update: To download current driver versions for Meilhaus Electronic devices as well as manuals in PDF format, please go to: www.meilhaus.org/driver Service Department with RMA Process: In case you need to return a board for repair purposes, we strongly...
  • Page 117: E Constant Definitions

    Constant Definitions Note: The following constant definitions are valid for Windows. Please note also the current definition file (me9000miodefs.h) included with the Meilhaus Electronic Developer Kit (ME-SDK). The Linux driver uses its own constant definitions (see Linux driver). Constant Value...
  • Page 118 ME9000MIO_DIO_OUTPUT ME9000MIO_DIO_INPUT ME9000MIO_DIO_LINE_ENABLE ME9000MIO_DIO_LINE_DISABLE ME9000MIO_DIO_INT_DISABLE ME9000MIO_DIO_INT_ENABLE ME9000MIO_DIO_INV_DISABLE ME9000MIO_DIO_INV_ENABLE Constant Value Counter ME9000MIO_CNT_INT_DISABLE ME9000MIO_CNT_INT_ENABLE ME9000MIO_CNT_RETRIGGER_DISABLE ME9000MIO_CNT_RETRIGGER_ENABLE ME9000MIO_CNT_EXT_CLOCK_DISABLE ME9000MIO_CNT_EXT_CLOCK_ENABLE ME9000MIO_CNT_EXT_EVENT_DISABLE ME9000MIO_CNT_EXT_EVENT_ENABLE...
  • Page 119: F Index

    Index Accessories General Functions Agilent VEE General Notes Appendix Assignment of the PCI Slots Available Software Hardware Hardware Options Hotline Block Diagram ME-90 PC/104-Plus Block Diagram ME-9000 Block Diagram ME-9100 Block Diagram ME-9300 Important Notes Improper Application Index Installation Configuration of RS-422/485 Ports Introduction Connection example Connection Options...
  • Page 120 Port Settings 21, 27 Programming Technical Questions Terminal Panel for ME-9000/9100 Terminal Panel for ME-9300 Requirements Visual Basic Visual C++ Settings “ME SIO Ports” Specification System Requirements...

This manual is also suitable for:

Me-9000Me-9100 seriesMe-9300 series

Table of Contents