Download Print this page

Advertisement

Quick Links

USB-I/O Manual
UHRO-16 - DIN-Rail-Version
UPRO-16 - Board-Version
16 photo couple input / 16 relay output channels
Product Code: AUSB16P/R USB 16 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

loading
Need help?

Need help?

Do you have a question about the UHRO-16 and is the answer not in the manual?

Questions and answers

Summary of Contents for Merz UHRO-16

  • Page 1 USB-I/O Manual UHRO-16 - DIN-Rail-Version UPRO-16 - Board-Version 16 photo couple input / 16 relay output channels Product Code: AUSB16P/R USB 16 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 Data Product Code: Features: AUSB16P/R USB 16 PHOTO ISO./ RELAY BOARD For direct DIN-Rail mounting UHRO-16 - DIN-Rail-version Also as board without DIN Rail adapter available UPRO-16 - 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 TB2/3 ISOLATOR Input Ports Signal Description Signal Description IN0+ Opto-isolator Ch. 00 + Input IN8+ Opto-isolator Ch. 08 + Input IN0- Opto-isolator Ch. 00 - Input IN8- Opto-isolator Ch. 08 - Input IN1+ Opto-isolator Ch. 01 + Input IN9+ Opto-isolator Ch. 09 + Input IN1- Opto-isolator Ch.
  • Page 6 TB4/5 Relay-Output Signal Description Signal Description NO 0 Relay Ch. 00 - Output NO 8 Relay Ch. 08 - Output COM 0 Relay Ch. 00 - Output COM 8 Relay Ch. 08 - Output NO 1 Relay Ch. 01 - Output NO 9 Relay Ch.
  • Page 7 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 8 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 9 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 14 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 15 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 16: 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 17: 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 18: 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 19: 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 20 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 21 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 22 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 23: 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 24 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 25 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 26 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 27 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 28 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 29 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 30: 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 31: 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.

This manual is also suitable for:

Upro-16