background image

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

T49 (0)5483-77002

T49 (0)5483-77003

http://www.decision-computer.de

 

USB-I/O Manual

Summary of Contents for UHRO-8

Page 1: ...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 7700...

Page 2: ...iver Windows will use HID interface and sample for program ming Linux driver and sample for programming Package includes the following items USB 8PR Board USB cable Software and Manual CD The DIN Rail...

Page 3: ...able The power supply of our products must be 5V external DC It is to pay attention to correct polarity Otherwise the product could be damaged If the board is by wrong power supply except function you...

Page 4: ...below 4 8V for USB I O board it can t work normally and sometimes it will cause device manager keeping refreshing itself or can t recognize the device S1 Reset Button To reset the hanging USB Module...

Page 5: ...e strong sources of interference If the cable must be led by an area with significant electromagnetic interference shielded cables with grounding on the source should be used Avoid placing your cable...

Page 6: ...rting JP9 means setting DIO_00 to DIO_07 as input mode otherwise opening JP9 means setting DIO_00 to DIO_07 as output mode When shorting JP10 means setting DIO_08 to DIO_15 as input mode otherwise ope...

Page 7: ...NC 0 Relay Ch 00 Output 2 COM 0 Relay Ch 00 Output 3 NO 0 Relay Ch 00 Output 4 NC1 Relay Ch 01 Output 5 COM 1 Relay Ch 02 Output 6 NO 1 Relay Ch 02 Output 7 NC 2 Relay Ch 03 Output 8 COM 2 Relay Ch 03...

Page 8: ...er installation is required The functions for access and control of HID hid dll you can find in the Windows System32 folder Installation Windows 7 installation example 1 Power supply 5V connect 2 USB...

Page 9: ...tion software can access the USB device in the same way as it would access a standard COM port This function is only implemented in USBLABKIT Linux Support dcihid 0 5 1 Basic function library and demo...

Page 10: ...N 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...

Page 11: ......

Page 12: ......

Page 13: ......

Page 14: ......

Page 15: ......

Page 16: ......

Page 17: ...ts in materials and workmanship and be fully functional under normal usage In the event of the failure of a SmartLab product within the specified warranty period SmartLab will at its option replace or...

Page 18: ......

Page 19: ...oducts 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 re...

Page 20: ...tions to open and close Devices 7 6 Functions for digital input output 10 7 Functions for reset hardware device 16 8 Functions for analog input output 17 9 Functions for watch dog 18 10 Using USBDII w...

Page 21: ...created to provide a standard way to access the functionality provided by all USB data acquisition products Specifically the USBDII provides the following features Platform independent The library is...

Page 22: ...a types used may not be present in the programming language you want to use Please find the following data type conversion table for your convenience HANDLE An opaque 32 bit integer BYTE A 8 bit unsig...

Page 23: ...ee Device Type Table ID Table following below Return value A valid handle representing the device or INVALID_HANDLE_VALUE 1 if an error occurred For USB_STARTER there is no ID selection and device_id...

Page 24: ...ters device_type The type of the device to open device_id Device s id on the board For more information please see Device Type Table ID Table following below port_num Com Port Num to open Return value...

Page 25: ...eDevice 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 Device Type Table Pro...

Page 26: ...3 4 OFF 0 2 3 4 OFF 1 ON 1 1 3 4 OFF 2 ON 2 3 4 OFF 1 2 ON 3 1 2 4 OFF 3 ON 4 2 4 OFF 1 3 ON 5 1 4 OFF 2 3 ON 6 4 OFF 2 3 4 ON 7 1 2 3 OFF 4 ON 8 2 3 OFF 1 4 ON 9 1 3 OFF 2 4 ON 10 3 OFF 1 2 4 ON 11 1...

Page 27: ...nipulate The first port has index 0 For more information please see Write Address Table following below byPortState The new state of the port Return value TRUE if successful FALSE otherwise If an erro...

Page 28: ...elow byPortState The new state of the port Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The handle passed w...

Page 29: ...PR 0x01 OUT07 to OUT00 0x02 DIO7 to DIO0 0x03 DIO15 to DIO8 USB_4PR 0x02 OUT03 to OUT00 USB_8RO 0x02 OUT07 to OUT00 USB_16RO 0x02 OUT07 to OUT00 0x03 OUT15 to OUT08 USB_32RO 0x00 OUT07 to OUT00 0x01 O...

Page 30: ...more information please see Read Address Table following below lpbyPortState A pointer to a variable of type BYTE receiving the new state of the port Return value TRUE if successful FALSE otherwise I...

Page 31: ...pointer to a variable of type BYTE receiving the new state of the port Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_P...

Page 32: ...08 USB_8PR 0x00 IN07 to IN00 0x02 DIO7 to DIO0 0x03 DIO15 to DIO8 0x10 JP9 JP10 Settings USB_4PR 0x00 IN03 to IN00 USB_8PI 0x00 IN07 to IN00 USB_16PI 0x00 IN07 to IN00 0x01 IN15 to IN08 USB_32PI 0x00...

Page 33: ...output It can be defined by Jumper 10 and Jumper 11 on the board And we can use hid_GetDigitalByte com_GetDigitalByte function to read Jumper State to determine witch port is either input or output hi...

Page 34: ...aration BOOL hid_ResetHW HANDLE hDevice Parameters hDevice A valid device handle Return value TRUE if successful FALSE otherwise Example hid_ResetHW hDevice com_ResetHW This function directly resets t...

Page 35: ...e A pointer to a variable of type DWORD receiving the new state of the port Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVA...

Page 36: ...type UINT receiving the new state of the port Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The handle pass...

Page 37: ...singed 32 bit integer receiving the new state of the port Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The...

Page 38: ...inged 32 bit integer receiving the new state of the port Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The h...

Page 39: ...lue to assign new value to DA channel Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The handle passed was in...

Page 40: ...l value to assign new value to DA channel Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The handle passed wa...

Page 41: ...mal value to assign new value to DA channel Return value TRUE if successful FALSE otherwise If an error occurred GetLastError may return the following values ERROR_INVALID_PARAMETER The handle passed...

Page 42: ...n the following values ERROR_INVALID_PARAMETER The handle passed was invalid or the port number was out of range for the device selected hid_EnableWD This function enables disables Watch Dog Declarati...

Page 43: ...I h include file then you can use any of the functions provided by the USBDII DLL Be sure to include the import library USBDII lib during the linking step of your application So your applications succ...

Page 44: ...rsion 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 Fix the problem of hid_GetDigitalByte can not re...

Reviews: