Page 1
ADU208/ADU218 USB Relay I/O Interface User Manual Ver 2.0 www.ontrak.net...
Page 2
Ontario CANADA P3A 4R7 Phone Number (705) 671-2652 Fax, Email (705) 671-6127 tom@ontrak.net Name of Person binding the manufacturer. Tom Fortin- Director January 10, 2018 Ontrak Control Systems Inc Sudbury , Ontario, CANADA Page 2 of 18 ADU208/ADU218 User Manual...
ADU208/ADU218 Features The ADU208/ADU218 STATUS LED AduHidTest USB Device Test Program ADU208/ADU218 Command Summary ADU208/ADU218 Command Descriptions 6a) Relay Commands 6b) Digital Input Commands 6c) Event Counter Commands 6d) Watchdog Timer Commands Specifications Dimensions Page 3 of 18 ADU208/ADU218 User Manual...
.NET, Linux, Python, OSX etc.), and our AduHidtest software is available at: www.ontrak.net/programming.htm First time users should first review the ASCII command set for the ADU208/ADU218 and then use AduHidTest USB test software to become familiar with the operation of the various features of the product.
GREEN -ADU208/ADU218 powered and enumerated by host computer. -ADU208/ADU218 disconnected from USB bus. The ADU208/ADU218 can be connected to the USB bus via the enclosed 10' A-B USB cable. The cable provides both power and communications connections to the ADU208/ADU218. When first connected, the STATUS led will turn RED indicating power is applied.
AduHidTest is a Windows based USB device test program used to test the connection of ADU data acquisition devices to a USB port. The program is also a useful tool to allow programmers to become familiar with the ADU208/ADU218 command set before programming in other languages. AduHidTest software can be downloaded from the Ontrak website at: www.ontrak.net/programming.htm...
Page 7
Figure 2: ShowList Window The window indicates that there is one ADU208 connected with serial number C31784. Select the device by double clicking on the text “ADU208 serial number = C31784”. The AduHidTest main window will now display the product ID and Serial number.
Page 8
Type "SK0" (set relay K0) into the device pipe send window and click Send ADU. An OK will appear beside the Send ADU button if successful, as shown in Figure 4, and the ADU208/ADU218 relay K0 will close. Note that ADU commands are not case sensitive.
Page 9
Some commands cause a response to be sent from the ADU208/ADU218 back to the host computer. For example, if an "RE3" (read event counter on PA3) command is sent, the ADU208/ADU218 will send back the value of the event counter. To read responsive commands, simply click the Receive ADU button and the data will be displayed.
ADU208/ADU218 Command Descriptions 6a) Relay Commands The ADU208/ADU218 interfaces feature eight relay outputs. They are configured as PORT K with individual assignments of K0 thru K7. The relay contacts have no polarity requirements and switch either AC or DC loads.
6b) Digital Input Commands (PORT A and PORT B) The ADU208/ADU218 device contains two 4-bit input ports labelled PORT A and PORT B. Both input ports are isolated from all other external connections, and from each other, using opto-isolators with better than 2500V isolation.
Page 13
Returns status of PORT A and PORT B in decimal format. Response is 3 bytes (000 to 255 in decimal) Ex1. Response (PB3 is HIGH, all others are LOW) Ex2. response (PA0 and PA1 are HIGH, all others are LOW) Page 13 of 18 ADU208/ADU218 User Manual...
Returns present count and clears event counter (x = 0 - 7) Response 5 bytes (00000 to 65535 in decimal) 00156 Response (PA3 has seen 156 low to high transitions, event counter 3 is cleared) Page 14 of 18 ADU208/ADU218 User Manual...
Page 15
Sets de-bounce time of event counters (n=0, 1 or 2) (0 =10ms, 1 = 1ms (Default), 2 = 100us) De-bounce is set to 10ms Returns present de-bounce setting. Response (De-bounce is currently set to 10ms) Page 15 of 18 ADU208/ADU218 User Manual...
After a watchdog timeout occurs, the watchdog setting must be reloaded. The host application should poll the watchdog setting to determine if a watchdog timeout has occurred. Note that the watchdog timer is reset when any command is received by the ADU208/ADU218. This includes invalid commands.
Need help?
Do you have a question about the ADU208 and is the answer not in the manual?
Questions and answers