SERIAL µDAQ Digital I/O Series Serial Devices User’s Manual for SRL 24A/C SRL 48A/C SRL 72A/C SRL 96A/C SRL 120A SRL 30/26 SRL 73 Eagle Technology – Cape Town, South Africa Copyright © 2003 www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition µDAQ Remote Devices Data Acquisition and Process Control © Eagle Technology 31-35 Hout Street • Cape Town • South Africa Phone +27 21 423 4943 • Fax +27 21 424 4637 Email eagle@eagle.co.za Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Copyright All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or any means, electronic, mechanical, by photographing, recording, or otherwise without prior written permission. Copyright © Eagle Technology, South Africa August 2003 Revision 1.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition TABLE OF CONTENTS 1. INTRODUCTION 1 Features 1 µDAQ Versions Digital I/O Series Analog Input Series 2 2 2 Applications 1 Key Specifications 1 Software Support 1 Contact Details 1 2. 2 INSTALLATION Package 2 Operating System Support 2 Installation Driver Installation Device Setup Baud Rate Setup Host Setup Post Setup 3 3 3 6 7 8 3.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition External Trigger (EXT_TRIG) 10 Volt Reference Calibration 10V_REFCAL) 13 13 Application Modules & Accessories 13 Wiring Diagram RS-232 Cable Diagram 14 14 4.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Counter-Timer Characteristics 32 Analog Output Characteristics (SRL 30) 33 Analog Input Characteristics (SRL 26/30) Input Characteristics Conversion Characteristics External Clock – EXT_CLK pin External Gate – EXT_GATE pin 34 34 34 35 35 Thermo Couple Input Characteristics 36 Interface 37 Power Requirements 37 Environmental / Physical 37 Connectors 37 B.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Table of Figures Figure 3-1 9-Pin to 9-Pin Cable Diagram ............................................................................................ 14 Figure 4-1 EDR Enhanced Design .................................................................................................... 15 Figure 4-2 Counter-Timer Architecture...............................................................................................
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Table of Tables Table 1-1 SERIAL µDAQ DIO Versions ............................................................................................... 2 Table 1-2 SERIAL µDAQ Analog Input Versions.................................................................................... 2 Table 2-1 Operating System Support...................................................................................................
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition 1 1. Introduction The SERIAL µDAQ Digital I/O and analog series are Serial architecture digital input/output, counter-timer and analog I/O data acquisition devices. They are part of the µDAQ series, more specifically digital I/O and analog I/O for serial bus. The SERIAL µDAQ DIO series has support for 24 to 120 digital input/output lines and 6 counters. They come in 5 basic models, SRL 24, SRL 48, SRL 72, SRL 96 and SRL 120.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition µDAQ Versions The tables below list the various version that is available.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Applications The SERIAL µDAQ series can be used in the following applications: • Automation test equipment. • TTL compatible status monitoring. • Plant/Factory process control. • Pulse counting. • Frequency measurement. • Frequency generation. • Controlling and monitoring of any TTL compatible equipment. • Mobile computing. • Laboratory applications Key Specifications • • • • • • • • 3,6,9,12 or 15 x 8-bit ports.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition 2 2. Installation This chapter describes how to install and configure the SERIAL µDAQ device for the first time. Minimal configuration is necessary; almost all settings are done through software. The operating system will take care of all resource assignments. Package SERIAL µDAQ package will contain the following: • SERIAL µDAQ device. • SERIAL cable. • 9V Power Supply • Eagle Technology Software CD-Rom.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Installation This section will describe how to connect your serial device to your computer. Select any unused serial port and plug-in the one end of the serial cable. Plug the other end of the serial cable into your serial device. Driver Installation Installing the Windows 98/2000 device driver is a very straightforward task. • Run edreapi.exe found on the Eagle CD-Rom (eaglecd\edre\api\edreapi.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Select “Add” • Enter the device Serial Number, select the Comm Port and select the Baud Rate. Select “OK” Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Select “OK” Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Baud Rate Setup The default baud rate of the unit is 9600 baud. The device can be set to run at deferent baud rates. • Open the “EDR Enhanced Setup” folder. • Select the Serial Page. Select “Baud Rate” Select New Baud Rate Select “OK” • The new baud rate will take effect as soon as you exit the EDR Enhanced Setup. Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Host Setup When more then one host computer is going to be used it is very important to set the Host ID. • Open the “EDR Enhanced Setup” folder. • Select the Serial Page. Select “Host Setup” • Enter the Host ID Select “OK” Close EDR Enhanced Setup. Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Post Setup When done with the driver setup the “EDR Enhanced Setup” folder can be opened to check if the device setup was done successfully and if the device is available. • First open the “EDR Enhanced Setup” folder. • Select the Devices Page. • Check under the Serial list if your board is listed and available. See picture below. • If “SRL Device Unavailable” see Appendix C for troubleshooting.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition 3 3. Interconnections The SERIAL µDAQ series has connectors for digital I/O, counter-timers and analog I/O. The SERIAL µDAQ make use of only one adapter type; a DB25 male. To inter-connect there are some adapters available. A cable can be used to connect to a remote adapter or make use of a direct plug-in adapter. External Connector and Accessories The SERIAL µDAQ DIO is fitted with various connectors.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Pin Assignments SERIAL µDAQ RS232 – DB9 (M) The table below shows the RS232 pin assignments for the DB9(M) connector. Pin 1 2 3 4 5 Name NC RXD TXD NC DGND Pin 6 7 8 9 10 Name NC NC NC NC DGND (shell) Table 3-2 SERIAL µDAQ RS232 Connector – DB9 (M) SERIAL µDAQ RS485 – DB9 (M) The table below shows the RS485 pin assignments for the DB9(M) connector.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition SERIAL µDAQ CT – DB25 (M) The table below shows the pin assignments for the DB25(M) counter timer connector found on the SERIAL µDAQ CT.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Signal Definitions This sections deal with all the signals abbreviations. Signal PA0-7 PB0-7 PC0-7 GATE_EXT0-5 CLK_EXT0-5 OUT0-5 DGND AGND ACH0-15 TCH (0-)-(7-) TCH (0+)-(7+) DAC0-3 EXT_CLK EXT_TRIG 10V_REFCAL RXD TXD RXA RXB TXA TXB DGND NC Description 8255 PPI Port A 8255 PPI Port B 8255 PPI Port C Counter External Gate Counter External Clock Counter Output Digital ground.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Analog Outputs (DAC0-3) The analog output channels are used to output analog voltages. They are referenced to analog ground (AGND). External Clock (EXT_CLK) This pin is the external clock input. It is used to control the convert timing of the analog to digital converter. This signal is synchronized with a master clock of 20MHz. The signal must be referenced to digital ground (DGND), which is the connecter shell.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Wiring Diagram RS-232 Cable Diagram The figure below shows the RS232 cable connections for the DB9(M) connector. Figure 3-1 9-Pin to 9-Pin Cable Diagram Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition 4 4. Programming Guide The SERIAL µDAQ series is supplied with a complete software development kit. EDR Enhanced (EDRE SDK) comes with drivers for many operating systems and a common application program interface (API). The API also serves as a hardware abstraction layer (HAL) between the control application and the hardware.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Digital Inputs/Outputs Depending on the version that you have the SERIAL µDAQ DIO device can have up to 120 digital lines. Please refer to your particular version for specific details. Reading the Digital Inputs A single call is necessary to read a digital I/O port.
SERIAL Digital I/O Series User Manual B C SRL 120A A B C A B C A B C A B C A B C SRL 26/30 A B C SRL 73R/T A B C Eagle Technology - Data Acquisition 3 3 10 11 8-bits 8-bits Port B Port C 0 0 0 1 1 1 2 2 2 3 3 3 4 4 4 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits 8-bits Port A Port B Port C Port A Port B Port C Port A Port B Port C Port A Port B Port C Port A Port B Port C 0 0 0 0 1 2 8-bits 8-bits 8-bits Por
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Counters The counter sub-system is supported by functions to Write, Read, Configure and controlling the gate. There are 6 counters. Counter-timers are only supported by the SRL24C, SRL 48C, SRL 72C and SRL 96C. The table below shows the relation of the counters and their software assigned numbers.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition ACTIVEX CALL Long EDRECTX.Read(long Port) The counter number must be passed by the calling function. If the return code is negative it means an error occurred, otherwise it will be the value read from the counter.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Long EDRECTX.SoftGate(ulng Ct, ulng Gate) The counter-number and mode is needed to control a counter’s gate. A return code will indicate if any errors occurred. These values are acceptable as a gate source. Value 0 1 Description Gate disabled Gate enabled Table 4-5 Gate Configuration Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Programming Interrupts The interrupt sub-system is totally programmable and includes functions to configure, enable and disable interrupts. Configuring the Interrupt sub-system A single call is necessary to configure the interrupt sub-system. API-CALL Long EDREIntX.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Analog Output – SRL 30 The SRL 30 has 4 x 14-bit analog output channels with a range of ±10 volt. These channels are very easy to program. A single command is used to write to them. Writing to a DAC channel A single call is necessary to set a voltage on a DAC channel. The table below shows the relation between the software channel and the channel on the connector.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Analog Input – SRL 26, SRL 30 The SRL 26/30 has a very flexible analog input sub-system. Configuration includes dynamic range, gain, reference and differential or single ended inputs. Each of these settings can be applied to an individual channel while scanning. The analog inputs can operate in two modes, single read or scanning. Only one mode can be used at a single moment.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Configuring the ADC subsystem for scanning This is the most complicated part of configuring the SRL 26/30 for auto scanning. Make sure that you use the correct format when applying the channel list configuration. There are many loopholes and care should be taken when implementing code to configure the SRL 26/30.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition EDREADX.Frequency This is the sampling frequency of the ADC process. This parameter must be set before calling the Configure method. After calling the Configure method the Frequency property will be set to the actual sampling frequency. WARNING!! On the SRL 26/30 the frequency is the update rate of the A/D converter.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition queried with number of samples available and other status issues as well. There are two functions available to copy data, one for copying voltages, another to copy the raw data. The raw data is significantly faster as for the data does not have to be converted to voltages before copying it to the user buffer. The raw data also occupies less space than the micro voltage buffer.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Temperature Input The SRL 73T-8/16/32 has a basic 8 differential channel configuration (See table 3-7), accessible via a DB25M connector. The channels on one of these DB25M connectors will be referred to as a channels set. Each SRL 73 is supplied with a set of µDAQ TEMP T/C ADAPTERS. Temperature measurements can be done with as little as four lines of code. Reading CJC Channel Each channels set has a CJC channel.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Read Thermo Couple Channel Reading the thermocouple channel is the same as reading the CJC channels. The thermo couple channels for the SRL 73 will always start at channel 0. For a device with both normal ADC channels and Temperature channels the channels value assigned to the temperature channels will start after the normal ADC channels.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Calibration - SRL 26/30 If the SERIAL device needs to be calibrated, the software can be found on the EDR Enhanced SDK CD-Rom. This application provides step-by-step information of how to calibrate your device. Make sure that you have a high precision multimeter and calibration voltage source. This will help to configure your device more accurately. Calibration Procedure – SRL 26/30 1. 2. 3. 4.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Calibration - SRL 73 If the SERIAL device needs to be calibrated, the software can be found on the EDR Enhanced SDK CD-Rom. This application provides step-by-step information of how to calibrate your device. Make sure that you have a high precision calibration voltage source. This will help to configure your device more accurately. Calibration Procedure – SRL 73 1. 2. 3. 4.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition A A.Specifications Digital Input/Output Characteristics Number of Digital Channels: Device SRL 24A SRL 24C SRL 48A SRL 48C SRL 72A SRL 72C SRL 96A SRL 96C SRL 120A SRL 26 SRL 30 SRL 73 Channels 24 24 48 48 72 72 96 96 120 24 24 24 Number of Grouped Channels: Device PPI Channels 3 3 6 6 9 9 12 12 15 3 3 3 SRL 24A SRL 24C SRL 48A SRL 48C SRL 72A SRL 72C SRL 96A SRL 96C SRL 120A SRL 26 SRL 30 SRL 73 Compatibility: D.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Counter-Timer Characteristics Number of Counter-Timer Channels: Device SRL 24A SRL 24C SRL 48A SRL 48C SRL 72A SRL 72C SRL 96A SRL 96C SRL 120A SRL 26 SRL 30 SRL 73 Channels 0 6 0 6 0 6 0 6 0 0 0 0 Resolution: 16-bits Compatibility 82C54 / TTL Clock Source Software Selectable 1. Internal 10 MHz 2. External Gate Source Software Selectable 1. Software Controlled 2. External Interrupt Source 6 x Terminal Count (TC).
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Analog Output Characteristics (SRL 30) Number of Channels: 4 Resolution: 14-bits Maximum Update Rate 2 milliseconds Data Transfer Programmed I/O Full Scale Error ±1 LSB (1.220 millivolts) Zero Offset Error ±1/4 LSB (0.306 millivolts) Output Drive ±5 milliamp Load Characteristics 2KΩ || 10 nF Power On State 0 Volt Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Analog Input Characteristics (SRL 26/30) Input Characteristics Number of Channels 16 Single Ended 8 Differential Resolution 14-bits Maximum Update Rate 3 KS/s Maximum Baud Rate SRL full speed isochroous transfers @ 115200 Baud Minimum Streaming Baud Rate 9600 Baud Maximum Update @ different baud rates Baud Rate 9600 19200 28800 38400 57600 115200 Input Programmable Ranges Input Coupling Maximum Working Voltage Over volt
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition External Clock – EXT_CLK pin Maximum Rate 3 000 Hz Synchronization Internal 20 MHz clock Conversion Falling Edge External Gate – EXT_GATE pin Enable Process High Input (>2.4V DC) Disabled Process Low Input (<1.2V DC) Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Thermo Couple Input Characteristics Number of Channels Device SRL-73T-8 SRL 73T-16 SRL 73T-32 Resolution 14-bits Maximum Update Rate 2 milliseconds Data Transfer Programmed I/O Input Programmable Ranges Channel Gain 30 Input Coupling DC Relative Accuracy ±1 LSB Gain x 30 Offset Error ±0.011 millivolts Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Interface Communication Type UART Compatible.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition B B.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Error Codes Name EDRE_OK EDRE_FAIL EDRE_BAD_FN EDRE_BAD_SN EDRE_BAD_DEVICE EDRE_BAD_OS EDRE_EVENT_FAILED EDRE_EVENT_TIMEOUT EDRE_INT_SET EDRE_DA_BAD_RANGE EDRE_AD_BAD_CHANLIST EDRE_BAD_FREQUECY EDRE_BAD_BUFFER_SIZE EDRE_BAD_PORT EDRE_BAD_PARAMETER EDRE_BUSY EDRE_IO_FAIL EDRE_BAD_ADGAIN EDRE_BAD_QUERY EDRE_BAD_CHAN EDRE_BAD_VALUE EDRE_BAD_CT EDRE_BAD_CHANLIST EDRE_BAD_CONFIG EDRE_BAD_MODE EDRE_HW_ERROR EDRE_HW_BUSY EDRE_BAD_BUFFER ED
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition C C.Troubleshooting SRL Device Unavailable • • • • • • • Make sure that the Serial Number is corresponding with the Serial Number on the device. Check that cable is in the correct serial port. Check that your Baud Rate is setup correct, default baud rate is 9600 baud. If the baud rate have been changed, the new baud rate can be checked by using HyperTerminal. Disconnect the power to the device.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition Eagle Technology © Copyright 2003 – www.eagledaq.
SERIAL Digital I/O Series User Manual Eagle Technology - Data Acquisition D D.Ordering Information For ordering information please contact Eagle Technology directly or visit our website www.eagledaq.com. They can also be emailed at eagle@eagle.co.za. Currently only the following version are available.