Advertisement

Quick Links

USB-I/O Manual
UHRO-8 - DIN-Rail-Version
UPRO-8 - Board-Version
8 photo couple input / 8 relay output channels / 16 DIO
AUSB8P/R USB 8 PHOTO ISO./ RELAY BOARD
DECISION-COMPUTER Jürgen Merz e.K.
Lengericher Str. 21
49536 Lienen
Telefon +49 (0)5483-77002
Telefax +49 (0)5483-77003
http://www.decision-computer.de

Advertisement

Table of Contents
loading

Summary of Contents for Merz UHRO-8

  • Page 1 USB-I/O Manual UHRO-8 - DIN-Rail-Version UPRO-8 - Board-Version 8 photo couple input / 8 relay output channels / 16 DIO AUSB8P/R USB 8 PHOTO ISO./ RELAY BOARD DECISION-COMPUTER Jürgen Merz e.K. Lengericher Str. 21 49536 Lienen Telefon +49 (0)5483-77002 Telefax +49 (0)5483-77003...
  • Page 2 Product Code: Features: AUSB8P/R USB 8 PHOTO ISO./ RELAY BOARD For direct DIN-Rail mounting UHRO-8 - DIN-Rail-version Also as board without DIN Rail adapter available UPRO-8 - Board-version High Speed 8051 μC Core Bus: USB 2.0 USB 2.0 Function Controller...
  • Page 3 J1 USB Connection USB-B A suitable cable is included +5 VDC (USB VBUS POWER) Data - Data + SGND Signal Ground USB wiring is very sensitive against EMI errors (mainly sparking when opening contacts). The U-EMI-1 Kit is included with the DIN rail version and includes two Würth folded cores for the USB data cable and a Ferrite sleeve for the power cable.
  • Page 4 S1 Reset Button To reset the "hanging" USB-Module S2 USB ID Set different ID for each board Card ID Multiple Boards Connect When you need to connect more than 3 boards on one PC, please make sure the following below 1.
  • Page 5 TB3 ISOLATOR Input Ports Signal Description TB 3 IN0+ Opto-isolator Ch. 00 + Input IN0- Opto-isolator Ch. 00 - Input IN1+ Opto-isolator Ch. 01 + Input IN1- Opto-isolator Ch. 01 - Input IN2+ Opto-isolator Ch. 02 + Input IN2- Opto-isolator Ch. 02 - Input IN3+ Opto-isolator Ch.
  • Page 6 Digital Input / Output Port Setting UHRO-8 provide 16 digital channels (TTL level) and allow user to set them as 8 channel input port or 8 channel output port. Default setting is both of the ports as input Signal Description TB 4 DIO 00 Digital input/output Ch.
  • Page 7 TB1/2 Relay-Output - Power-Supply Signal Description TB1 Signal Description TB2 NC 0 Relay Ch. 00 - Output Relay Ch. 08 - Output COM 0 Relay Ch. 00 - Output COM 5 Relay Ch. 08 - Output NO 0 Relay Ch. 00 - Output NO 5 Relay Ch.
  • Page 8 Installation The decision-computer USB devices use the HID (human interface device). The HID belongs to the generic device class is integrated in the operating system. If a new HID device is connected, no driver installation is required. The functions for access and control of HID hid.dll you can find in the Windows System32 folder.
  • Page 9 USB test Program.exe is a diagnostic tool to test USB devices on Windows/XP. The USB test software can be found on the decision-Studio CD. The examples and drivers be developed continuously. See the latest on the decision-computer-Merz „Service CD“. An important way to get more informations you find at http://www.usb-industrial.com Software support on the short way: http://www.usb-industrial.com/support.html...
  • Page 10 USB by LAN or Wireless The remote control of Decision USB products by LAN or wireless with a remote-PC is very simple with a multi port USB Server Because no driver should be installed to the installation and programming is very easy. Under Windows, are the external USB I/O directly in the Device Manager and can be connect or control such as in the original host PC.
  • Page 17 A.1 Copyright Copyright DECISION COMPUTER INTERNATIONAL CO., LTD. All rights reserved. No part of SmartLab software and manual may be produced, transmitted, transcribed, or translated into any language or computer language, in any form or by any means, electronic, mechanical, magnetic, optical, chemical, manual, or otherwise, without the prior written permission of DECISION COMPUTER INTERNATIONAL CO., LTD.
  • Page 19 Dynamic Industrial Interface V 2.0.1.9 A Universal Application Programming Interface To Data Acquisition Products Users Manual Design & Implementation by Decision Computer International Company No parts of this documentation may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording, or otherwise) without the prior written permission of Decision Computer International Company.
  • Page 20: Table Of Contents

    Contents Introduction Features Device Type definition Data Types of Function calls Functions to open and close Devices Functions for digital input/output Functions for reset hardware device Functions for analog input/output Functions for watch dog Using USBDII with different programming language 10.1.
  • Page 21: Introduction

    Introduction This document provides the USB Dynamic Industrial Interface Specifications, including all function calls, and operating procedures. Disclaimer: Decision Computer International Company (DECISION) cannot take responsibility for conse- quential damages caused by using this software. In no event shall DECISION be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if we have been advised of the possibility of such damages.
  • Page 22: Device Type Definition

    Device Type Definition Below are names for device types and its' corresponding defined value: USB_16PIO 0x01 // USB 16 Channel Photo Input / 16 Channel Photo Output Board USB_LABKIT 0x02 // USB LABKIT USB_16PR 0x03 // USB 16 Channel Photo Input / 16 Channel Relay Output Board USB_STARTER 0x04 // USB STARTER...
  • Page 23: Functions To Open And Close Devices

    Functions to open and close Devices hid_OpenDevice This function opens a device for further access by USB. Please do not use this function to open USB_14ADDA or USB_16ADDA. Declaration HANDLE hid_OpenDevice ( DWORD device_type, DWORD device_id ); Parameters device_type The type of the device to open. device_id Device's id on the Board.
  • Page 24 com_OpenDevice This function opens a device for further access by Serial Port. Please use this function to open USB_14ADDA or USB_16ADDA. Declaration HANDLE com_OpenDevice ( DWORD device_type, DWORD device_id, DWORD port_num ); Parameters device_type The type of the device to open. device_id Device's id on the board.
  • Page 25 com_CloseDevice This function closes a device by Serial Port. Declaration BOOL com_CloseDevice(HANDLE hDevice) Parameters hDevice A valid device handle. Return value TRUE if successful, FALSE otherwise. Example com_CloseDevice(hDevice); Remarks Please see “Serial_Communication.pdf” to set hardware for serial communication, and USB_LAB- KIT, USB_STARTER, USB_8PR are not supported by serial communication.
  • Page 26 Device ID Table ( Switch Setting on the Device Board ) Switch Setting device_id 1, 2, 3, 4 OFF 2, 3, 4 OFF, 1 ON 1, 3, 4 OFF, 2 ON 3, 4 OFF, 1, 2 ON 1, 2, 4 OFF, 3 ON 2, 4 OFF, 1, 3 ON 1, 4 OFF, 2, 3 ON 4 OFF, 2, 3, 4 ON...
  • Page 27: Functions For Digital Input/Output

    Functions for digital input/output hid_SetDigitalByte This function sets or clears a byte on a digital output line by USB. Declaration BOOL hid_SetDigitalByte ( HANDLE hDevice, DWORD dwPort, BYTE byPortState Parameters hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice dwPort The index of the port on the card to manipulate.
  • Page 28 com_SetDigitalByte This function sets or clears a byte on a digital output line by Serial Port. Declaration BOOL com_SetDigitalByte ( HANDLE hDevice, DWORD dwPort, BYTE byPortState Parameters hDevice A valid device handle, previously obtained from com_OpenDevice dwPort The index of the port on the card to manipulate. The first port has index 0. For more information, please see “Write Address Table”...
  • Page 29 Write Address Table Product dwPort Content USB_16PIO 0x02 OUT07 to OUT00 0x03 OUT15 to OUT08 USB_LABKIT 0x03 P1D07 to P1D00 USB_STARTER 0x03 P1D07 to P1D00 USB_16PR 0x02 OUT07 to OUT00 0x03 OUT15 to OUT08 USB_8PR 0x01 OUT07 to OUT00 0x02 DIO7 to DIO0 0x03 DIO15 to DIO8...
  • Page 30 hid_GetDigitalByte This function reads a complete byte from a digital input port of a device by USB. Declaration BOOL hid_GetDigitalByte ( HANDLE hDevice, DWORD dwPort, LPBYTE lpbyPortState Parameters hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice dwPort he index of the port on the card to manipulate. The first port has index 0. For more information, please see “Read Address Table”...
  • Page 31 com_GetDigitalByte This function reads a complete byte from a digital input port of a device by Serial Port. Declaration BOOL com_GetDigitalByte ( HANDLE hDevice, DWORD dwPort, LPBYTE lpbyPortState Parameters hDevice A valid device handle, previously obtained from com_OpenDevice dwPort The index of the port on the card to manipulate. The first port has index 0. For more information, please see “Read Address Table”...
  • Page 32 Read Address Table Product dwPort Content USB_16PIO 0x00 IN07 to IN00 0x01 IN15 to IN08 USB_LABKIT 0x02 P0D07 to P0D00 USB_STARTER 0x02 P0D07 to P0D00 USB_16PR 0x00 IN07 to IN00 0x01 IN15 to IN08 USB_8PR 0x00 IN07 to IN00 0x02 DIO7 to DIO0 0x03 DIO15 to DIO8...
  • Page 33 0x10 Port 0 default value 0x11 Port 1 default value 0x12 Port 2 default value 0x13 Port 3 default value 0x14 Port 4 default value 0x15 Port 5 default value 0x16 Port 6 default value 0x17 Port 7 default value 0x18 Port DIO default value 0x19...
  • Page 34: Functions For Reset Hardware Device

    Functions for reset hardware device hid_ResetHW This function directly resets the hardware device by USB. And all channels on the board will load default value. If you need to control the device again, please use hid_open to get the handle again. Declaration BOOL hid_ResetHW(HANDLE hDevice)
  • Page 35: Functions For Analog Input/Output

    Functions for analog input/output hid_GetAnalogChannel This function reads a complete word from an analog input port of a device by USB. Declaration BOOL hid_GetAnalogChannel ( HANDLE hDevice, DWORD dwPort, LPDWORD lpdwPortState Parameters hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice dw- Port The index of the port on the card to manipulate.
  • Page 36 com_GetADHex This function reads a complete word in hex from an analog input port of a device by USB. Declaration BOOL com_GetADHex(HANDLE hDevice, UINT dwPort, UINT *lpdwValue Parameters hDevice A valid device handle, previously obtained from com_OpenDevice dwPort The index of the port on the card to manipulate. The first port has index 0. lpdwValue A pointer to a variable of type UINT receiving the new state of the port Return value...
  • Page 37 com_GetADMilli This function reads the result in decimal millivolt from an analog input port of a device by USB. Declaration BOOL com_GetADMilli (HANDLE hDevice, UINT dwPort, LONG *lpdwValue Parameters hDevice A valid device handle, previously obtained from com_OpenDevice dwPort The index of the port on the card to manipulate. The first port has index 0. lpdwValue A pointer to a variable of type singed 32-bit integer receiving the new state of the port...
  • Page 38 com_GetADMicro This function reads the result in decimal microvolt from an analog input port of a device by USB. Declaration BOOL com_GetADMicro (HANDLE hDevice, UINT dwPort, Long *lpValue Parameters hDevice A valid device handle, previously obtained from com_OpenDevice dwPort The index of the port on the card to manipulate. The first port has index 0. lpValue A pointer to a variable of type singed 32-bit integer receiving the new state of the port Return value...
  • Page 39 com_SetDAHex This function writes a complete word in hex to an analog output port of a device by USB. Declaration BOOL com_SetDAHex(HANDLE hDevice, UINT dwPort, UINT dwValue Parameters hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice dwPort The index of the port on the card to manipulate. The first port has index 0. dwValue An unsigned hexical value to assign new value to DA channel Return value...
  • Page 40 com_SetDAMilli This function writes a singed decimal value in millivolt to an analog output port of a device by USB. Declaration BOOL com_SetDAMilli(HANDLE hDevice, UINT dwPort, LONG lnValue Parameters hDevice A valid device handle, previously obtained from com_OpenDevice dwPort The index of the port on the card to manipulate. The first port has index 0. lnValue An signed decimal value to assign new value to DA channel Return value...
  • Page 41 com_SetDAMicro This function writes a singed decimal value in microvolt to an analog output port of a device by USB. Declaration BOOL com_GetADHex(HANDLE hDevice, UINT dwPort, LONG lnValue Parameters hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice dwPort The index of the port on the card to manipulate. The first port has index 0. lnValue An signed decimal value to assign new value to DA channel Return value...
  • Page 42: Functions For Watch Dog

    Functions for Watch dog hid_SetWD This function sets time interval for Watch Dog. Declaration BOOL hid_SetWD( HANDLE hDevice, BYTE byMode Parameters hDevice A valid device handle, previously obtained from hid_OpenDeviceDevice byMode Time interval for Watch Dog (Value 1~5 as 1/5/10/30/60 seconds, default as 10s) Return value TRUE if successful, FALSE otherwise.
  • Page 43: Visual Basic

    Using the Dynamic Industrial Interface with different programming languages This chapter provides an overview about how to best utilize the Dynamic Industrial Interface in various programming languages. If you experience difficulties calling the Dynamic Industrial Interface functions from your program- ming language, or are using a programming language not covered in this documentation, please feel free to visit our web-site, to which we will post updated information regarding DII programming issues.
  • Page 44 Release notes 2015/02/17 Version 2.0.1.9 Fix multiple cards open for USB_M_4IO Version 2.0.1.8 Fix slow open speed for USB_M_4IO Version 2.0.1.7 Add support for USB_M_4IO 2012/11/09 Version 2.0.1.6 x64 version released 2011/11/17 Version 2.0.1.3 Release analog input/output functions for virtual com port. 2011/11/16 Version 2.0.1.2 Remove address checking...

This manual is also suitable for:

Upro-8

Table of Contents