This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form
without prior written permission of the manufacturer.
Disclaimer
The information in this document is subject to change without prior
notice in order to improve reliability, design, and function and does
not represent a commitment on the part of the manufacturer.
In no event will the manufacturer be liable for direct, indirect,
special, incidental, or consequential damages arising out of the
use or inability to use the product or documentation, even if
advised of the possibility of such damages.
Environmental Responsibility
ADLINK is committed to fulfill its social responsibility to global
environmental preservation through compliance with the European Union's Restriction of Hazardous Substances (RoHS) directive and Waste Electrical and Electronic Equipment (WEEE)
directive. Environmental protection is a top priority for ADLINK.
We have enforced measures to ensure that our products, manufacturing processes, components, and raw materials have as little
impact on the environment as possible. When products are at their
end of life, our customers are encouraged to dispose of them in
accordance with the product disposal and/or recovery programs
prescribed by their nation or company.
Conventions
Take note of the following conventions used throughout this
manual to make sure that users perform certain tasks and
instructions properly.
Preface iii
NOTE:
NOTE:
CAUTION:
WARNING:
Additional information, aids, and tips that help users perform
tasks.
Information to prevent minor physical injury, component damage, data loss, and/or program corruption when trying to complete a task.
Information to prevent serious physical injury, component
damage, data loss, and/or program corruption when trying to
complete a specific task.
ivPreface
USB-7230/7250
Table of Contents
Revision History...................................................................... ii
Preface .................................................................................... iii
List of Figures ....................................................................... vii
List of Tables.......................................................................... ix
The USB-7230/7250 are USB-based digital I/O modules, featuring
high voltage ON/OFF control and monitoring, and isolation voltage
supported up to 2500V
isolated digital I/O and 2-channel frequency/event counters, and
USB-7250 provides 8-channel isolated digital inputs, 8-channel
solid-state relays, and 2-channel frequency/event counters.
The USB-powered USB-7230/7250 have removable screw-down
terminals for easy device connectivity, and the included multi-functional stand fully supports desktop, rail, or wall mounting.
The USB-7230/7250 are suitable for industrial I/O control applications requiring high voltage and excellent protection. High isolation
voltage protects against damage from accidental contact with high
external voltage and eliminates troublesome ground loops. U-Test,
a free ready-to-use testing program, is included to enable operation or testing of all ADLINK USB DAQ series functions with no
programming requirement.
. The USB-7230 provides 32-channel
RMS
1.2Features
X High-speed USB 2.0
X USB-powered
X USB-7230: 16CH isolated DI, 16CH isolated DO, 2CH fre-
quency/event counters
X USB-7250: 8CH solid state relays, 8CH isolated DI, 2CH
frequency/event counters
X Programmable digital filter removing unexpected glitches on
input channels
X Programmable initial DO status
X Up to 2500V
X Removable screw-down terminal on module
X Lockable USB cable for secure connectivity
X Ready-to-use testing application (U-Test) included
Ambient temperature: 0 to 55°C
Relative humidity: 10% to 90%, non-condensing
Ambient temperature: -20 to 70 °C
Relative humidity: 5% to 95%, non-condensing
1.4.2Digital Input (DI)
USB-7230USB-7250
Optical Isolated Input
Number of channels168
PolarityBi-directional (non-polarity)
Logic levelVIH=5~24V, VIL=0~1.5V
Or dry contact
Input resistance2.4k @ 0.5W
Isolated voltage2500V
2Introduction
(channel to system)
RMS
USB-7230/7250
USB-7230USB-7250
Min. pulse width for change
of state (COS) detection
Data transferProgrammed I/O
Optical Isolated Frequency/Event Counter
Number of channels2
Logic levelVIH=5~12V, VIL=0~1.5V
Event counter width32-bit
Max. input frequency
(DC coupled)
Min. input frequency
(DC coupled)
Max. frequency error0.5% (f≤50kHz)
Data transferProgrammed I/O
20.83 ns (software programmable)
1 MHz
0.1 Hz
1% (50kHz<f≤500kHz)
2% (500kHz<f≤1MHz)
1.4.3Digital Output (DO)
USB-7230
Channels16 (optical isolation)
Output typeOpen drain MOSFET
Supply voltage5-35VDC
Max. sink current250 mA @ 100% duty (/channel)
Data transferProgrammed I/O
USB-7250
Channels8 (solid state relay, non-latching)
Contact rating
(/channel)
Relay ON/OFF time Operate time2 ms
Contact resistance75mΩ (max.)
Expected lifetime
Introduction 3
Max. switching power60 W, 125 VA
Max. switching voltage220 VDC, 250VAC
Max. switching current2 A
Release time1 ms
50 VDC 0.1A (resistive), 1x10
6
operations
Breakdown voltage1000 VAC
Data transferProgrammed I/O
1.5Software Support
ADLINK provides comprehensive software drivers and packages
to suit various user approaches to system building. In addition to
programming libraries, such as DLLs, for most Windows-based
systems, ADLINK also provides drivers for other application environments such as LabVIEW® and MATLAB®. ADLINK also pro
vides ActiveX component ware for measurement and
SCADA/HMI, and breakthrough proprietary software. All software
options are included in the ADLINK All-in-One CD.
Be sure to install the driver & utility before use.
1.6Driver Support for Windows
UD-DASK
UD-DASK is composed of advanced 32/64-bit kernel drivers for
customized DAQ application development. USB-DASK enables
you to perform detailed operations and achieve superior performance and reliability from the data acquisition system. DASK ker-
nel drivers now support Windows 7/Vista
®
OS.
Only UD-DASK versions 1.0.5 and later support the
USB-7230/7250 module.
NOTE:
NOTE:
DAQPilot
DAQPilot is a SDK with a graphics-driven interface for various
application development environments. DAQPilot represents
ADLINK's commitment to full support of its comprehensive line of
data acquisition products and is designed for novice to most
4Introduction
USB-7230/7250
experienced programmers. As a task-oriented DAQ driver, SDK
and wizard for Windows systems, DAQPilot helps shorten development time while accelerating the learning curve for data acquisition programming. Download and install DAQPilot from:
http://www.adlinktech.com/TM/DAQPilot.html
Only UD-DASK versions 2.3.4.1109 and later and later support the USB-7230/7250 module.
NOTE:
NOTE:
1.7Utilities for Windows
U-Test
U-Test is a free and ready-to-use utility assisting instant testing
and operation of all ADLINK USB DAQ product functions with no
programming requirment. In addition to data collection and monitoring functions, U-Test also supports basic FFT analysis and
direct control of analog output and digital I/O with a user-friendly
interface.
Download and install U-Test from:
http://www.adlinktech.com
Introduction 5
1.8Schematics and Dimensions
All dimensions shown are in millimeters (mm)
NOTE:
NOTE:
1.8.1Module
Figure 1-1: USB-7230/7250 Module Rear View
6Introduction
156.5
Figure 1-2: USB-7230/7250 Module Side View
USB-7230/7250
114
Introduction 7
114
41.3
Figure 1-3: USB-7230 Module Front View
8Introduction
114
USB-7230/7250
41.3
Figure 1-4: USB-7250 Module Front View
1.8.2Module Stand
The multi-function USB-7230/7250 stand is compatible with desk,
rail, or wall mounting. To fix the module in the stand, slide the module body into the stand until a click is heard. To remove the module
Introduction 9
from the stand, twist the bottom of the stand in a back-and forth
motion and separate from the module.
Figure 1-5: Module, Stand, Connector, and USB Cable
10Introduction
USB-7230/7250
200.1
169.4
156.5
Figure 1-6: Module, Stand, & Wall Mount Kit Side View (w/ connections)
Introduction 11
Figure 1-7: Module in Stand Front View
114.3
12Introduction
USB-7230/7250
26
B
20.4
Figure 1-8: Module Stand Top View
Introduction 13
20.4
Figure 1-9: Module Stand Side Cutaway View
3.4
6
1.5
5.89
100
Figure 1-10: Module Stand Front View
14Introduction
USB-7230/7250
1.8.3Rail Mounting
The multi-function stand can be mounted on the DIN rail using the
rail-mount kit as shown.
Figure 1-11: Rail Mount Kit
Introduction 15
Figure 1-12: Module Pre-Rail Mounting
16Introduction
USB-7230/7250
Figure 1-13: Module Rail-Mounted
Introduction 17
1.8.4Wall Mounting
The multi-function stand can be fixed to a wall using four flush
head screws as shown. The four screw holes should be approximately 3.4 mm in diameter.
20.4
13.0
Figure 1-14: Wall Mount Holes
18Introduction
USB-7230/7250
Figure 1-15: Module with Wall Mount Apparatus
Introduction 19
1.9Connector Pin Assignment
The USB-7230/7250 module is equipped with 40-pin removable
screw-down terminal connectors, with pin assignment as follows.
PinFunctionPinFunction
20VDD40DO15
19DO739DO14
18DO638DO13
17DO537DO12
16DO436DO11
15DO335DO10
14DO234DO9
13DO133DO8
12DO032IGND
11IGND31IGND
10CNT030CNT1
9CGND29 COM
8DI728DI15
7DI627DI14
6DI526DI13
5DI425DI12
4DI324DI11
3DI223DI10
2DI122DI9
1DI021DI8
Table 1-1: USB-7230 Pin Assignment
Signal NameReferenceDirection Description
DI<0..15>COMIIsolated digital input channel
20Introduction
USB-7230/7250
Signal NameReferenceDirection Description
COM--------Common ground or common
power of isolated digital input
channel
CNT<0,1>CGNDIFrequency/event counter
channel
CGND--------Ground of Frequency/event
counter
DO<0..15>IGNDOIsolated digital output
channel
IGND--------Ground return path for
isolated output channel
VDDIGNDICommon power input
junction for isolated output
channel
Table 1-2: USB-7230 I/O Signal Description
Pin
20NO740GND1
19COM739CNT1
18NO638GND0
17COM637CNT0
16NO536DI7L
15COM535DI7H
14NO434DI6L
13COM433DI6H
12NC332DI5L
11N O 33 1D I 5 H
10COM330DI4L
Introduction 21
Functi
on
9NC229DI4H
8NO228DI3L
7COM227 DI3H
6NC126DI2L
5NO125DI2H
Pin
Fu
ncti
on
Pin
Signal NameReferenceDirection Description
COM<0..7>----------ICommon pin of relay <0..7>
NO<0..7>COM<0..7>INormal open pin of relay
NC<0..3>COM<0..3>INormal close pin of relay
DI<0..7>HDI<0..7>LIHigh input of isolated
DI<0..7>L--------ILow input of isolated
CNT<0,1>GND<0,1>IFrequency/event counter
GND<0,1>--------Ground of Frequency/event
Table 1-4: USB-7250 I/OSignal Description
Functi
on
4COM124DI1L
3NC023DI1H
2NO022DI0L
1COM021DI0H
Table 1-3: USB-7250 Pin Assignment
Pin
Fu
ncti
<0..7>
<0..3>
differential digital input
differential digital input
channel
counter
on
22Introduction
2Getting Started
The appropriate driver must be installed before connection to
the computer system. See Section 1.5: Software Support for
WARNING:
2.1Unpacking Checklist
driver support information.
Before unpacking, check the shipping carton for any damage. If
the shipping carton and/or contents are damaged, inform the
dealer immediately. Retain the shipping carton and packing
materials for inspection. Obtain authorization from the dealer
before returning any product to ADLINK. Ensure that the following items are included in the package.
X USB-7230/7250
X Stand
X Two removable screw terminals
X USB cable (2-meter length)
X Railmount kit
X ADLINK All-in-One CD
X User’s manual
USB-7230/7250
2.2Connecting the USB-7230/7250 Module
1. Turn on the computer.
2. Connect the USB-7230/7250 module to one USB 2.0
port on the computer using the included USB cable.
3. The first time the USB-7230/7250 module is connected,
a New Hardware message appears. It will take a few
seconds to load the firmware. When loading is complete,
the LED indicator on the rear of the USB DAQ module
changes from amber to green and the New Hardware
message closes.
4. The USB-7230/7250 module can now be located in the
hardware Device Manager.
Getting Started 23
The USB-7230/7250 module is exclusively powered by the
USB port and requires 400 mA @ 5 V. If the USB-7230/7250
NOTE:
NOTE:
module cannot be detected, power provided by the USB port
may be insufficient.
2.3Device ID
A rotary control on the rear of the module (as shown) controls
device ID setting and can be set from 0 to 7. The device ID allows
dedicated control of the USB-7230/7250 module irrespective of
the connected USB port. When more than one USB module of the
same type is connected, each must be set to a different ID to avoid
conflicts and errors in operation.
Figure 2-1: Device ID Selection Control
24Getting Started
USB-7230/7250
All remaining hardware configuration is software programmable,
including sampling/update rate, input/output channel, input range,
and others. Please see the UD-DASK Function Reference manual
for details.
Getting Started 25
This page intentionally left blank.
26Getting Started
3Operations
Figure 3-1: USB-7230 Functional Block Diagram
USB-7230/7250
The USB-7250 provides 8CH optical isolation digital inputs, 8CH
relay outputs (4CH form C and 4CH form A), and 2CH frequency/event counters.
Operations 27
Figure 3-2: USB-7250 Functional Block Diagram
3.1Isolated Digital Input
The USB-7230/7250 support 16 or 8 opto-isolated input channels,as follows, with digital input first routed through a photo-coupler (PC3H4), and normal input voltage range for high state from 5
to 24V.
For USB-7230, all digital inputs share the same common junction (COM), with connections either common power or com-
NOTE:
NOTE:
mon ground, and with USB-7250, each input channel has an
individual differential input pair, preventing connections from
being polarity sensitive, irrespective of the connected voltage.
28Operations
USB-7230/7250
Figure 3-3: USB-7230 Isolated Input
Figure 3-4: USB-7250 Isolated Input
3.2Change of State (COS) Detection
COS (Change of State) refers to input state (logic level) changing
from low to high or vice versa, wherein the COS detection circuit
registers the edge of the level change.
Operations 29
In the USB-7230/7250, the COS detection circuit is applied to all
DI channels, with the channel(s) to enable COS detection selectable by software. When an enabled channel changes logic level,
the COS detection circuit generates an interrupt request to the
USB microcontroller, which, when detected, latches corresponding
DI data into the COS latch register. In COS architecture, DI data is
sampled by a 48 MHz base clock, such that pulse width of the digital input exceeds 21 ns, or the COS latch register cannot latch the
correct input data. The COS latch register is cleared when the register is read out, resuming availability to latch the susequent COS.
Maximum frequency of COS detection depends on software
latency and computer performance, and is not guaranteed if
NOTE:
NOTE:
COS frequency exceeds 1 kHz.
DI0-DI7DI0-DI7
Digital
Filter
0~7
USB
Bridge
DI8-DI15DI8-DI15
Digital
CPLD
INT
Filter
8~15
USB
BUS
Figure 3-5: COS Detection Architecture
30Operations
USB-7230/7250
DI
(all channels
enable)
Interrupt
Request
Interrupt
Clear
COS
Latch
register
0027
XXXX
00280029FFFF
0028FFFF
Figure 3-6: COS Example
3.3Optical Isolated Frequency/Event Counter
Calculates the number of rising or falling edges occurring on the
input channel, with counter width of 32 bits counting up from 0.
The polarity (rising or falling edge) of valid events is software configurable.
The frequency counter base clock is 48MHz. The frequency counter calculates base clocks occurring within a period (rising edge to
rising edge or falling edge to falling edge) of the repetitive input
signal, which is then converted to frequency value. Counter polarity can be adjusted to rising edge active or falling edge active.
The following example shows frequency measurement of a 1 MHz
signal by counter0 with rising-edge polarity and 500 kHz signal by
Operations 31
counter1 with falling-edge polarity. Counter value is updated and
reset in every period.
CLK
CNT0
Polarity
CNT0
Freq = 1 MHz
CNT0
FREQ
CNT1
Polarity
CNT1
CNT1
FREQ
1234647481
Freq = 500 KHz
1241
241
Figure 3-8: Frequency Counter Example
Since the signals are sampled by a 48MHz base clock, latch timing can generate measurement error, maximum error ratio vs.
input frequency is as follows.
32Operations
Error
(%)
USB-7230/7250
2
1.5
1
.5
1000100
Figure 3-9: Frequency Counter Error %
10000
Frequency (Hz)
1000001000000
3.4Digital Filtering
Filters unexpected glitch signals from the input channels. By
default, when enabled, the input channel ignores signal changes
from one state to another when not remaining in the state for a
pre-defined period. The digital filter function is applied on all DI
channels and counters, with the default setting disabled. When
enabled by software,it is necessary to configure the minimum
pulse-width value. This value represents the minimum period of
time guaranteed to pass through the filter when the signal
changes. The digital filter uses an internal 16-bit counter to define
the specified filter value. Data is sampled by a 48 MHz base clock,
with minimum pulse-width value a multiple of 20.83 ns and multiple number from 1 to 65535, representing the minimum
pulse-width from 20.83 ns to 1.365 ms.
In an examplary digital filter operation, as shown, data is sampled
by a 48 MHz base clock, and filter stage is 10, such that minimum
pulse width value is 208.3 ns. The pulse width of the first two signals is 180 ns, shorter than the specified filter value 208.3 ns.
Accordingly, the first two pulses are ignored, and the next two signals, with pulse width of 230 ns (longer than the specified filter
value 208.3 ns) are recognized. When pulse width of last two sig-
Operations 33
nals is 180 ns when filter is disabled, definitely, the last two states
are recognized.
1291282891891012 8910
CLK
filter
enable
filter
stage
filter_in
filter_out
Pulse Width = 180 ns
Pulse Width = 210 ns
Pulse Width = 180 ns
000A
Pulse Width = 210 ns
Pulse Width = 210 ns
12 8912 8912
Pulse Width = 180 ns
Pulse Width = 180 ns
Pulse Width = 210 ns
XXXX
Pulse Width = 180 ns
Pulse Width = 180 ns
Figure 3-10: Digital Filter Example
To reject a signal deviating from a state for the specified period of
time (minimum pulse width), the filter stage must be set to agree
with: 20.83 ns × filter stage < minimum pulse Width (ns).
3.5Isolated Digital Output (USB-7230 only)
As shown, when isolated digital output is ON, sink current is conducted through the power MOSFET, and when OFF, no current
flows through the power MOSFET. When the load is of an “inductance nature” such as a relay, coil or motor, the VDD pin must be
connected to an external power source, in order for the flywheel
diode to form a current-release closed loop, protecting the power
MOSFET from high reverse voltage generated by the inductance
load when the output is switched. The DO output status is saved in
the USB microcontroller and can be read back if necessary. The
USB-7230 also features programmable power-up output status,allowing output in a known state when powered on. When the
module is powered off (ejected from the USB port), all digital output reverts to OFF.
34Operations
USB-7230/7250
VDD
DO_n
Controller
(n=0~15)
PHOTO COUPLER
5V
IGND
DOn
IGND
LOAD
Figure 3-11: USB-7230 Isolated Output
3.6Relay Output (USB-7250 only)
USB-7250 provides Form C and Form A relays, with channels 0 to
3 Form C, and 4 to 7 form A, as shown.
5~35V
Figure 3-12: Form C Relay
Figure 3-13: Form A Relay
Form C relays have NC (Normal Close), NO (Normal Open), and
COM (Common) contacts. The COM terminal, located in the center,must contact either the NO pole or NC pole. When the control
bit is high (1), contact is made between the COM terminal and NO
pole, and if low (0), between the COM terminal and NC pole. Form
Operations 35
A relays have only NO (Normal Open) and COM (Common) contacts. When the control bit is high (1), the COM terminal znd NO
pole contact. If the control bit is low (0), no contact takes place.
Current relay output status can be read back by software, and during normal power up, reset, and power down (ejection from USB
port), the relay is low status. In addition, USB-7250 also features
programmable power-up output status, providing output state
when powered up.
36Operations
USB-7230/7250
Important Safety Instructions
For user safety, please read and follow all instructions,
WARNINGS, CAUTIONS, and NOTES marked in this manual
and on the associated equipment before handling/operating the
equipment.
X Read these safety instructions carefully.
X Keep this user’s manual for future reference.
X Read the specifications section of this manual for detailed
information on the operating environment of this equipment.
X When installing/mounting or uninstalling/removing
equipment:
Z Turn off power and unplug any power cords/cables.
X To avoid electrical shock and/or damage to equipment:
Z Keep equipment away from water or liquid sources;
Z Keep equipment away from high heat or high humidity;
Z Keep equipment properly ventilated (do not block or
cover ventilation openings);
Z Make sure to use recommended voltage and power
source settings;
Z Always install and operate equipment near an easily
accessible electrical socket-outlet;
Z Secure the power cord (do not place any object on/over
the power cord);
Z Only install/attach and operate equipment on stable
surfaces and/or recommended mountings; and,
Z If the equipment will not be used for long periods of time,
turn off and unplug the equipment from its power source.
Important Safety Instructions 37
X Never attempt to fix the equipment. Equipment should only
be serviced by qualified personnel.
A Lithium-type battery may be provided for uninterrupted, backup
or emergency power.
Risk of explosion if battery is replaced with an incorrect type;
please dispose of used batteries appropriately.
X Equipment must be serviced by authorized technicians
when:
Z The power cord or plug is damaged;
Z Liquid has penetrated the equipment;
Z It has been exposed to high humidity/moisture;
Z It is not functioning or does not function according to the
user’s manual;
Z It has been dropped and/or damaged; and/or,
Z It has an obvious sign of breakage.
38Important Safety Instructions
USB-7230/7250
Getting Service
Contact us should you require any service or assistance.
ADLINK Technology, Inc.
Address: 9F, No.166 Jian Yi Road, Zhonghe District
New Taipei City 235, Taiwan