Home

User Manual - EAGLE Technology

image

Contents

1. Query Codes vae APIMAJOR 1 Query EDRE API major version number APIMINOR 2 Query EDRE minor version number APIBUILD 3 Query EDRE build version number APIOS 4 Query API OS type APINUMDEV 5 Query number of devices installed BRDTYPE 10 Query a board s type BRDREV 11 Query a board s revision BRDYEAR 12 Query a board s manufactured year BRDMONTH 13 Query a board s manufactured month BRDDAY 14 Query a board s manufactured day BRDSERIALNO 15 Query a board s serial number DRVMAJOR 20 Query driver s major version number DVRMINOR 21 Query driver s minor version number DRVBUILD 22 Query driver s build version number FRMMAJOR 23 Query the firmware major version number FRMMINOR 24 Query the firmware minor version number FRMBUILD 25 Query the firmware build version number ADNUMCHAN 100 Query number of ADC channels DANUMCHAN 200 Query number of DAC channels DIONUMPORT 400 Query number of digital I O ports NETSETIPADDRESS 604 Set board s IP Address NETSETMASK 605 Set board s Mask Address NETSETGATEWAY 606 Set board s Gateway NETGETIPADDRESS 608 Get board s IP Address NETGETMASK 609 Get board s Mask Address NETGETGATEWAY 610 Get board s Gateway NETGETMACCOMPANYID 613 Get board s company MAC ID NETGETMACEXTENSIONID 614 Get board s extension MAC ID SRLGETBAUD 700 Query the device Baud Rate SRLSETBAUD 701 Set the dev
2. REN 16 GE EE NR 16 Load Default IP Sens NES 16 Hardware Reset aasan 17 AED 17 Fir water 17 au eeu id ma as ama uu 17 the Bates 17 Driver NS AIMONS Ce ss ns cue d S SS de s 17 O E PEE DEVE 20 AT SPENN Se 2 Digital Input Output Characteristics 2 Analog Input Output Characteristics uit itd 3 Serial Interface a ner Ghee 3 FAN EG TE ACS a 3 Power Requirements Ga as us Susa ada DES UIT auti pd ole e ota Lfd 3 Environmental PHYSICAL i sda waa gly wi Ia Rte qe 3 IPS alas 3 Data Storage P 3 MODBUS Codes and Address Registers a 4 Funeton Codes S a aus ea 4 KARET 4 KA IS ss Ee 4 Write Multiple a 6 Ox04 Read Reserve LESS SNK a 7 0x10 Write Multiple
3. RE EI DR ae E OUS a a a E Rr ie pu e 8 0x03 Read Holding Registers Query function uses sere stas ves 9 05 01 B TETEA ACOR nae dic ns SO t ci E tp Cd tuu eq ipta A SSS 10 0x0B Get Communication Event Count Serial Line Only 11 General Descriptor e D 12 Protocol Description aa nD aun ann en Sade sedan eid 12 Data EMC OI 5 soto Dune ent it Star Rates MN 12 C Troubleshooting amp Mamtenance s eoo do beoe Da aue RER ee 13 Troubles s ou s tum ne M sa o I3 Device Unavailable om Serial Connection aea sas 13 Maintenance M 13 Calibration s s unu TE nee 13 De Ordering Information 14 vi Table of Figures FIGURE 2 1 FIGURE 2 2 FIGURE 2 3 FIGURE 2 4 FIGURE 2 5 FIGURE 5 1 FIGURE 5 2 FIGURE 5 3 FIGURE 5 4 FIGURE 5 5 FIGURE 5 6 FIGURE B 1 vii FOUND NEW HARDWARE WIZARD U u uu uuu u u u 4 INSTALL FROM A LIST OR SPECIFIC LOCATION u u u u u 4 BROWSE DIREGTORY U II a Faaa en suai eee Cama 5 FINISH ic u N Ru ee PE 5 USB USART PORT NUMBER IN DEVICE MANAGQER
4. 2 4 2 1 101111 U uu uuu uuu uuu u Eagle Technology Data Acquisition www eagledag com 1 Introduction General Description The MIO 8288 is much more than just a Data Logger It is the next generation in data acquisition hardware The MIO 8288 comes standard with a selection of four different interface ports These can be used to control the units 8 analog input channels 2 analog output channels 8 optically isolated digital inputs and 8 electro mechanical relay outputs All IO s are fitted with removable screw terminals blocks for easy and fast installation The MIO 8288 provides the user with the option of setting the analog input from 10 Volt input range to 4 20mAmp input range with the flick of a switch No external components or accessories needed The MIO 8288 uses an SD Card for data storage providing it with stand alone data logging capability Data logger setup is easily done in a web browser The data is then logged on the SD Card in CSV comma separated value format that can be easily loaded into any spreadsheet No driver or any software installation necessary The key to the MIO 8288 concept is that it is easy to use flexible and cost effective You do not need engineering experience in complicated data acquisition hardware Anyone familiar with a personal computer and some programming skills can construct a data acquisition system The devices can be interface
5. Analog Input Analog Output PinNumber Signal Pin Number Signal 1 Al1 1 AO1 2 2 2 AGND 3 AGND 3 AO2 Table 4 5 Analog Output 5 Al4 6 15 7 16 8 AGND 9 10 18 Table 4 4 Analog Input Normal dotmOrdering Information 13 Eagle Technology Data Acquisition www eagledag com Digital Input Digital Output iS 1 DIA 1 NO1 2 DI1B 2 COMI 3 DI2A 3 NC1 4 DI2B 4 NO2 5 DI3A 5 COM2 6 DISB 6 NC2 7 7 8 DI4B 8 COM3 9 DISA 9 NC3 10 DISB 10 4 11 DI6A 11 COM4 12 DI6B 12 NC4 13 13 5 14 DI7B 14 5 15 15 NC5 16 DI8B 16 NO6 Table 4 6 Optically Isolated Inputs 17 COME 18 NC6 19 NO7 20 COM7 21 NC7 22 NO8 23 COM8 24 NC8 Table 4 7 Electro Mechanical Relay Power Connection Types 8 40 VDC 3 Way Screw Terminal Power Connection Pin Assignments 8 40 VDC 1 Power Supply 2 Power Supply 3 EARTH Table 4 8 Power Supply Contact Normal dotmOrdering Information 14 Eagle Technology Data Acquisition www eagledag com Pin Descriptions 8 Analog Input channels 1 to 8 AO1 2 Analog Output channels 1 and 2 Optically Isolated Input channels input pin This is the Positive input terminal for the optically isolated input cha
6. 12 Ethernet CRIAS Jri earna aaa ma e S k B S Dae ee E i e e YE ala vade 13 Data Onnecu OnLy Pes Tr 13 Data Connection Pin Assignments oreet ren SA CIE ENSE ea Se YA evo Po ane 13 Anal g rere 15 Analoge ups 13 Pans u a ne 14 Digital OBI us eee eee E 14 Power Connection Types ap E in a Ua Le IN qasqa 14 Power Connection Pin Assignments ducatis TR es 14 B AO WV DG ioni Eas 14 Pin LIES CEM VIS o a mu APT o c E EOE 15 yA ELE hac 15 AO SEE 15 t UTD aet dst Epi 15 DIB SB nU Het UM asas 15 M 15 qua E 15 COME OS cats stay Sep tetti isis e sopra aM NU M Mi ati 15 gs 15 GND or DGND 4 d uar peak veda arien E ie 15 Hardware Introduction cse oet eme ih ett 16 aasa 16 NTIOSS285 Sn 16 com
7. NA z rouen DATA ACQUISITION MADE SIMPLER Ten NESE FELAYSTATUS Datar meuts TATUS 9 ANALOG OPS SPDTRELAY OPS Figure 5 1 8288 Panel View Dimensions WxDxH 163 x 108 x 60 mm With Feet 6 42 x 4 25 x 2 36 in With Feet 163 x 108 x 70 mm DIN Rail 6 42 x 4 25 x 2 75 in DIN Rail Operation Load Default IP Settings DEFAULT Button Press the DEFAULT button continuously for 10 seconds to load the factory default IP settings Use a pointed object such as a straightened paper clip or toothpick to press the DEFAULT button This will cause the RUN LED to stop blinking The Normal dotmOrdering Information 16 Eagle Technology Data Acquisition www eagledag com LED will change state after 10 seconds and the default IP settings will be loaded At this state you should release the DEFAULT button To finish loading the default settings a Hardware Reset should be done IP Address 192 168 0 2 GATEWAY 192 168 0 1 NET MASK 255 255 255 0 Table 5 1 Default IP Settings Hardware Reset To do a hardware reset the power must be disconnected for 5 Seconds and then be reconnected The device will now reboot and reload all settings This might take a couple of seconds RUN LED The RUN LED will indicate when the device is used as a Data Logger and busy logging data to the SD MMC storage devic
8. u u u 6 8288 PANEL VIEW 19 FOUND NEW HARDWARE WIZARD U U u u u uuu u 21 INSTALL FROM A LIST OR SPECIFIC LOCATION eene 21 BROWSE DIRECTORY u DEL 22 FINISH ae 22 TYPICAL BATCHISP COMMAND LINE nnnnnnnvennvennnvnnnvrnnnvnnnvnnnvnnnvnnnvennvnnnvnnnvennvennnennnennnennnnvnnner 23 GENERAL MODBUS FRAVME U U U uu uu uuu uu uuu u 34 Table of Tables TABLE 3 1 DAC SOFTWARE CHANNEL TO HARDWARE CONNECTIONS 8 TABLE 3 2 EDRE DAWRITE FUNCTION mrunnnnnnvnnnvnnnvnnnvennvnnnvnnnvnnnvennnennnennnennnennnnnnnnennnennnnennvnnnvnnnvnnnvenneennnvener 8 TABLE 3 3 EDRE ADCREAD 9 TABLE 3 4 SINGLE ENDED ASSIGNED SOFTWARE CHANNEL TO HARDWARE CONNECTIONS 10 TABLE 3 5 DIFFERENTIAL ENDED ASSIGNED SOFTWARE CHANNEL TO HARDWARE CONNECTIONS eee 10 TABLE 3 6 SINGLE ENDED GAIN SETTINGS srrnnnnnnvnnnvnnnvennvennnennnennnnnnnnennnennnnnnnvnnnvnnnvnnnvennvennnennnenunennnnnnnner 10 TABLE 3 7 DIFFERENTIAL ENDED GAIN SETTINGS necesse uuu uuu 11 TABLE 3 8 RANGE SETTINGS 2 1 aa uq Gk tere prosit das su acre sa gu coed ask aqa cantines ide Da RO De Men Ne Dan URS 11 TABLE 3 9 QUERY CODES u rene nr rte are ena era nr messe net
9. Isolated Voltage Input Current Max forward current LED Normal dotmOrdering Information 6 Amp 28 VDC 336W 110VDC 5 Amp 250 VAC 1250VA 380VAC lt 100mQ 10mS lt 5mS 10 55Hz double amplitude 1 5mm 100m s 11mS 5N Single Pole Double Throw SPDT 55 85 C 93 40 Up to 10 kHz High 3V min 24V max Low 0 0V min 1 2V max 2500V 30mA Continuous Peak 100us Pulse 50mA Eagle Technology Data Acquisition www eagledag com Analog Input Output Characteristics Analog Input Characteristics Number of Channels Input Coupling Maximum Working Voltage Resolution Relative Accuracy Input range single ended Input range differential ended Input impedance Analog Output Characteristics Number of Channels Maximum Output Minimum Output Output Current Resolution Zero offset error Full scale error 8 single ended 4 differential ended DC 20V relative to module ground 14 Bit 2 LSB 10V 20 10 5 4 2 5 2 1 25 1 V 2 10V 10V 5mA 12 Bits 5mV 30mV Serial Interface Connection Type Communication Protocol USB USB as USART RS 232 RS 485 RS 422 MODBUS RTU Remote Terminal Unit protocol EDRE Baud Rate 1200 230400 Baud Word length 8 Parity NONE Stop Bits 1 LAN Interface Connection Type RJ 45 Communication Protocol Port Power Requirements Power Environmental Physical Relative Humidity Operating Temp
10. 9 IEEE 1394 Bus host controllers 25 Imaging devices xv Jungo 2 Keyboards 9 87 Memory technology driver n Mice and other pointing devices Modems 4 Monitors H Lu Network adapters PCMCIA adapters 31 4 Personal identification devices 2 7 Ports COM amp LPT 1 Communications Port COMI i 27 MIO Logger USB to UART COM4 2 Printer Port LPT1 Processors H E SD host adapters 9 Security Devices m 12502 Figure 2 5 USB Usart Port Number in Device Manager Normal dotmOrdering Information 5 Eagle Technology Data Acquisition www eagledag com 3 Programing Guide Even tho the MIO 8288 can be controlled and configured without installing any drivers or using any custom software the EDRE is still provided The EDRE comes with drivers and a common application program interface API The API also serves as a hardware abstraction layer HAL between the control application and the hardware The EDRE API makes it possible to write an application that can be used on all hardware with common sub systems EDR Enhanced API The EDR Enhanced SDK comes with both ActiveX controls and a Windows DLL API Examples are provided in many different languages and serves as tutorials EDRE is also supplied with a software manual and user s guide The EDRE API hides the compl
11. A typical BatchISP command line programming an application will look like this batchisp device at32uc3a0512 hardware usb operation erase f memory flash blankcheck loadbuffer MIO 8288 e1f program verify start reset 0 A Hardware Reset must now be done C WINDOWS System32 cmd exe nl x Program Files Atmel Flip 3 4 2 bin gt batchisp device at32uc3a 512 hardware us b operation erase memory flash blankcheck loadbuffer MI0 8288 elf program ver ify start reset Running batchisp 1 2 4 on Wed Apr G6 11 49 21 2611 T32UC300512 USB USB DFU VARNING The user program and the bootloader overlap Programming memory 6x8 erifying memory tarting Application Summary Total 11 Passed 11 Failed NProgram Files tmelXFlip 3 4 2 bin gt Figure 5 6 Typical BatchISP Command Line Normal dotmOrdering Information 20 Eagle Technology Data Acquisition www eagledag com A Specifications Digital Input Output Characteristics Elector Mechanical Relay Characteristics DC Rating Rated Current Voltage DC Max Switching Power Max Switching Voltage AC Rating Rated Current Voltage AC Max Switching Power Max Switching Voltage Contact Resistance Operate Time Release Time Vibration resistance Shock resistance Terminals Strength Contact Configuration Ambient temperature range Relative Humidity Optically Isolated Characteristics Frequency Response Logic Levels
12. MIO 8288 MIO 8288 User Manual amp Reference Guide Eagle Technology Cape Town South Africa Copyright 2010 www eagledag com DAQ Remote Devices Data Acquisition and Process Control Eagle Technology 24 Street Cape Town South Africa Phone 27 21 423 4943 Fax 27 21 424 4637 Email eagle eagle co za 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 April 2011 Revision 1 0 Information furnished in this manual is believed to be accurate and reliable however no responsibility is assumed for its use or any infringements of patents or other rights of third parties which may result from its use Trademarks and Logos in this manual are the property of their respective owners Product Warranty Eagle Technology South Africa warrants its products from defect in material and workmanship from confirmed date of purchase for a period of one year if the conditions listed below are met The product warranty will call the Eagle Technology Data Acquisition Device short as ETDAQD e The warranty does not apply to an ETDAQD that has been previously repaired altered extended by any other company or individual outside the premises of Eagle Technology e That a qualif
13. Event Count 2 Bytes 0x0000 to OxFFFF Error Function Code 1 Byte 0x8B Exception Code 1 Bytes 01 or 02 or 03 or 04 Normal dotmOrdering Information 11 Eagle Technology Data Acquisition www eagledag com General Description Protocol Description The MODBUS protocol defines a simple protocol data unit PDU independent of the underlying communication layers The mapping of MODBUS protocol on specific buses or network can introduce some additional fields on the application data unit ADU ADU aq a 9 PDU Figure 1 General MODBUS frame The MODBUS application data unit is built by the client that initiates MODBUS transaction The function indicates to the server what kind of action to perform The MODBUS application protocol establishes the format of a request initiated by a client The size of the MODBUS PDU is limited by the size constraint inherited from the first MODBUS implementation on Serial Line network max RS485 ADU 256 bytes Therefore MODBUS PDU serial line communication 256 Server address 1 byte CRC 2 bytes 253 bytes Consequently RS232 RS485 ADU 253 bytes Server address 1 byte CRC 2 bytes 256 bytes TCP MODBUS ADU 253 bytes MBAP 7 bytes 260 bytes Data Encoding MODBUS uses big Endian representation for addresses and data items This means that when a numerical quantity larger than a single byte is transmitted the most signif
14. Qul oad elidel eas 6 Digital ESE 6 Reading thei nn ON AG 6 PC Ula 6 NINE 6 Disita OUIDUES a6 cai nie nn orca eee 6 Writing the digital Outputs 6 APIC AI 7 ADEST 7 Analog Output sje ee tocca ls ee ee ae daa ne lote ue 7 Write the Analog Outputs C cool ie medo re aceon add 7 API Callar s u A Re NN tu PAS du MM o eat cd J ACTIVEX Cale as aae aion tada e arae nette ons 7 Analog Input E a 8 Reading the Analog Inputs ioco toties rart 8 8 ACTIVEX CNT 8 nes net dia at Ete 8 Differential Ende ed M 9 Gan SOUS du seat aeons AR e au beide late e renis 9 Rs SR vs ek D RIDE 9 Query Functio a sas NE ESR 10 PIC 10 Quer EE ET E nt 10 Fror Codes M ME EE 11 Interconneciotns ia oie re Menit nadie 12 Communication Connection Types haie e eot es than hernie 12 Communication Connection Pin Assignments a 12 E5332 CDBO Male s oA de ns a oq Ms 12 RS 422 485 2 Way Screw Terminal
15. 25 Hardware error occurred EDRE HW BUSY 26 Hardware busy EDRE BAD BUFFER 27 Buffer invalid EDRE REG ERROR 28 Registry error occurred EDRE OUT RES 29 Out of resources EDRE IO PENDING 30 Waiting on completion Table 3 10 Error Codes Normal dotmOrdering Information 11 Eagle Technology Data Acquisition www eagledag com 4 Interconnections Communication Connection Types RS 232 DB9 Male RS 422 485 5 Way Screw Terminal USB as Usart Type B Ethernet RJ 45 Communication Connection Pin Assignments RS 232 DB9 Male 2 RXD 1 5 00000 5 GND 6 9 DB9 MALE FRONT 7 RTS 8 CTS Table 4 1 RS 232 RS 422 485 5 Way Screw Terminal TX TX RX RX GND 1 TXD 2 TXD 3 RXD 4 RXD 5 GND Table 4 2 RS 422 485 Normal dotmOrdering Information 12 Eagle Technology Data Acquisition www eagledag com Ethernet RJ 45 TD RD TDCT RDCT RD 8 GND Table 4 3 Ethernet 87654321 12345678 12345678 RJ 45 Female OI N Data Connection Types Analog Input 2x 5 Way Screw Terminal Analog Output 3 Way Screw Terminal Digital Input 2x 8 Way Screw Terminal Digital Output 2x 12 Way Screw Terminal Data Connection Pin Assignments
16. Error Function Code 1 Byte Ox8F Exception Code 1 Bytes 01 or 02 or 03 or 04 Table B 2 Coil Address Register for Relays Normal dotmOrdering Information 6 Eagle Technology Data Acquisition www eagledag com 0x04 Read Input Registers This function code is used to read from 1 to approx 125 contiguous input registers remote device The Request PDU specifies the starting register address and the number of registers In the PDU Registers are addressed starting at zero Therefore input registers numbered 1 16 are addressed as 0 15 The register data in the response message are packed as two bytes per register with the binary contents right justified within each byte For each register the first byte contains the high order bits and the second contains the lower order bits Request Function Code 1 Byte 0x04 Starting Address 2 Bytes 0x0000 to 0x000F Quantity of Input 2 Bytes 0x0001 to 0x0010 Registers Response Function Code 1 Byte 0x04 Byte Count 1 Bytes 2xN Input Registers N x 2 Bytes N Quantity of Input Registers Error Function Code 1 Byte 0x84 Exception Code 1 Bytes 01 or 02 or 03 or 04 0x00 ADC 1 MSB 0x01 ADC 1 LSB 0x02 ADC 2 MSB 0x03 ADC 2 LSB 0x04 ADC 3 MSB 0x05 ADC 3 LSB 0x06 ADC 4 MSB 0x07 ADC 4 LSB 0x08 ADC 5 MSB 0x09 ADC 5 LSB 0x0A ADC 6 MSB 0x0B ADC 6 LSB 0x0C ADC 7 MSB 0x0D ADC 7 LSB 0x0E ADC 8 MSB 0x0F ADC 8 LSB Table B 3
17. DC channel A return code will indicate if any errors occurred Single Ended 0 AGND AGND 2 AGND Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com 3 x AGND 4 n AGND 5 AGND 6 AGND 7 AGND Table 3 4 Single Ended Assigned Software Channel to Hardware Connections Differential Ended OI GO NN N Table 3 5 Differential Ended Assigned Software Channel to Hardware Connections Gain Settings 10 Table 3 6 Single Ended Gain Settings 0 20 1 1 10 2 2 5 4 3 4 5 4 2 5 8 5 2 10 6 1 25 16 7 1 20 Table 3 7 Differential Ended Settings Range Settings 0 Single Ended Differential Ended Table 3 8 Range Settings Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com Query Function The Query function can be used to get or set more information about the MIO 8288 device API Call long EDRE_Query unsigned long SerialNumber unsigned long QueryCode unsigned long Param serial number query code and parameter must be specified when doing a query A return value will indicate the result The return code will be negative if an error occurred
18. Input Register Map Normal dotmOrdering Information 7 Eagle Technology Data Acquisition www eagledag com 0x10 Write Multiple Registers This function is used to write a block of contiguous registers from 1 to approx 120 registers in a remote device The requested written values are specified in request data field Data is packed as two bytes per register The normal response returns the function code starting address and quantity of registers written Request Function Code 1 Byte 0x10 Starting Address 2 Bytes 0x0000 to 0x005F Quantity of 2 Bytes 0x0001 to 0x0008 Registers Byte Count 1 Byte 2xN Registers Value N x 2 Bytes Value N Quantity of Registers Response Function Code 1 Byte 0x10 Starting Address 2 Bytes 0x0000 to 0x005F Quantity of 2 Bytes 0x0001 to 0x0008 Registers Error Function Code 1 Byte 0x90 Exception Code 1 Bytes 01 or 02 or 03 or 04 0x0000 DAC 1 MSB 0x0001 DAC 1 LSB 0x0002 DAC 2 MSB 0x0003 DAC 2 LSB 0x0050 ADC Gain 1 0x0051 ADC Gain 2 0x0052 ADC Gain 3 0 0053 ADC Gain 4 0x0054 ADC Gain 5 0x0055 ADC Gain 6 0x0056 ADC Gain 7 0 0057 ADC Gain 8 0x0058 ADC Range 1 0x0059 ADC Range 2 0x005A ADC Range 3 0x005B ADC Range 4 0x005C ADC Range 5 0x005D ADC Range 6 0x005E ADC Range 7 0x005F ADC Range 8 Table B 4 Output Register Map Normal dotmOrdering Information 8 Eagle Technology Data Acquisition www eagledag c
19. d to any personal computer with a USB or serial port or to a PLC In the Box MIO 8288 package will contain the following MIO 8288 Multi 1 DAQ unit Documentation and Software CD Rail Mounting Kit Quick Start Guide Device features Connection Types Serial RS 232 Serial RS 422 RS 485 Ethernet 10 100Mbps USB Protocol Types e EDRE e MODBUS RTU Remote Terminal unit Power Supply e 8 40 VDC 4 2W Normal dotmOrdering Information 1 Eagle Technology Data Acquisition www eagledag com Data Inputs Output Types 8 Analog Inputs e 2Analog Outputs e 8 Optically Isolated Inputs e 8 Electro Mechanical Relay Outputs Applications The MIO 8288 can be used in many different applications e Automation test equipment Plant Factory process control Controlling and monitoring of equipment Mobile computing Laboratory applications Interface with PLC Remote Data Logging Applications Software Support The MIO 8288 have support for different communication protocols The most well known is MODBUS The MIO 8288 supports the industry standard MODBUS RTU Remote Terminal Unit protocol Because the device supports a standard protocol NO driver and NO software installation is needed The MIO 8288 also supports the EDRE software protocol This makes the interface faster and easier Each device comes with example code The example software will help you to get your hardware going very quick
20. e Firmware Upgrade Firmware is the software the runs on a micro controller It is like the O S and application program all in one running on you PC When the firmware on the device needs to be upgrade two components are needed The program that is used to load the firmware and the new firmware BatchlSP The application that is used to load the firmware is called BatchlSP BatchlSP is a command line tool that allows to program parts containing an embedded Atmel ISP It comes with FLIP To install BatchISP first install FLIP using its installer You find the application on the CD Flip Installer 3 4 2 exe Activating the ISP To load new firmware the ISP must be activated e This is done by disconnecting the power to the MIO 8288 device e Connect the MIO 8288 device to the PC via a USB cable e Push and hold the DEFAULT button while the MIO 8288 device is power up e This will activate the SPI Driver Installation Activating the ISP for the first time will open a new hardware installation window Choose not to connect to Windows Update for this installation and click Next Normal dotmOrdering Information 17 Eagle Technology Data Acquisition www eagledag com Found New Har dware Wizard Welcome to the Found New Hardware Wizard Windows vill search current and updated sofware by looking an your computer on the hardware metalation CD or on the Windows Update Web site wih your permi
21. e choose your search and installation options Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed C Search removable media floppy CD ROM Include this location in the search C EagleCD Drivers USB Usa v Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware Figure 2 3 Browse Directory Windows will then process the installation of the driver Once completed click Finish Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for 7 MIO Logger USB to UART Click Finish to close the wizard Figure 2 4 Finish Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com The USB Usart should now be listed as MIO Logger USB to UART under Ports COM amp LPT in the Device Manager It will also indicate the assigned COM number for the port ger Jac um Ue urieisAclongsMiewssHelp cx i Batteries gd Computer Hy Disk drives Mi Display adapters DVD CD ROM drives Og Human Interface Devices e IDE ATA ATAPI controllers
22. e installation window Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com Choose not to connect to Windows Update for this installation and click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard Windows will search for current and updated software by looking on your computer on the hardware installation CD or on the Windows Update Web site with pour permission Read our privacy policy Can Windows connect to Windows Update to search for software O Yes this time only O Yes now and every time connect device not this time Click Next to continue Figure 2 1 Found New Hardware Wizard the next screen select Install from list or specific location Advanced and click Next Found New Hardware Wizard This wizard helps you install software for MIO Logger USB to U amp RT If your hardware came with an installation CD IS or floppy disk insert it now What do you want the wizard to do O Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue Figure 2 2 Install from a list or specific location Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com Then request to search in the Drivers USB UsartV on the CD that was include and click Next Found New Hardware Wizard Pleas
23. end of the byte The Byte Count field specifies the quantity of complete bytes of data Request Function Code 1 Byte 0x01 Starting Address 2 Bytes 0x0000 to 0x0007 Quantity of Coils 2 Bytes 0x0001 to 0x0008 Response Function Code 1 Byte 0x01 Byte Count 1 Bytes N Coil Status n Bytes n N or N 1 N Quantity of Outputs 8 if the remainder is different of N N 1 Error Function Code 1 Byte 0x81 Exception Code 1 Bytes 01 or 02 or 03 or 04 Table B 1 Coil Address Register for Digital Inputs 0x05 Write Single Coil This function code is used to write a single output to either ON or OFF in a remote device The requested ON OFF state is specified by a constant in the request data field A value of FF Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com 00 hex requests the output to be ON A value of 00 00 requests it to be OFF All other values are illegal and will not affect the output The Request PDU specifies the address of the coil to be forced Coils are addressed starting at zero Therefore coil numbered 1 is addressed as 0 The requested ON OFF state is specified by a constant in the Coil Value field A value of OXFFOO requests the coil to be ON A value of 0X0000 requests the coil to be off All other values are illegal and will not affect the coil The normal response is an echo of the request returned after the coil state has bee
24. erature Housing Dimension WxDxH Isolation Magnetic Isolation Optically Isolation MODBUS RTU Remote Terminal Unit protocol EDRE 7070 8 to 40 VDC 4 2W Max 5 to 90 non condensing 0 C to 55 32 to 131 F Powder coated Aluminium 163 x 108 x 60 mm With Feet 6 42 x 4 25 x 2 36 in With Feet 163 x 108 x 70 mm DIN Rail 6 42 x 4 25 x 2 75 in DIN Rail 1 5 KV for Ethernet 2 5 KV for Digital Input Data Storage SD Card or MMC Normal dotmOrdering Information 2 Giga Byte Eagle Technology Data Acquisition www eagledag com B MODBUS Codes and Address Registers Function Codes 0x01 Read Coils This function code is used to read from 1 to 8 contiguous status of coils in a remote device The Request PDU specifies the starting address i e the address of the first coil specified and the number of coils In the PDU Coils are addressed starting at zero Therefore coils numbered 1 8 are addressed as 0 7 The coils in the response message are packed as one coil per bit of the data field Status is indicated as 1 ON and 0 OFF The LSB of the first data byte contains the output addressed in the query The other coils follow toward the high order end of this byte and from low order to high order in subsequent bytes If the returned output quantity is not a multiple of eight the remaining bits in the final data byte will be padded with zeros toward the high order
25. exity of the hardware and makes it really easy to program the MIO 8288 device It has got functions for each basic sub system and is real easy to learn Digital Inputs The MIO 8288 have 8 optically isolated input channels The 8 inputs are situated on a 8 bit port Reading the digital inputs A single call is necessary to read a digital Input The Port parameter will always be equal to 0 because there is only one digital input port API Call long EDRE_DioRead unsigned long SerialNumber unsigned long Port unsigned long Value The serial number port and pointer to variable that return the result must be passed by the calling function A return code will indicate if any error occurred ACTIVEX Call long EDREDioX Read long Port Only the port number needs to be passed and the returned value will either hold an error or the value read If the value is negative an error occurred Digital Outputs The MIO 8288 have 8 electro mechanical relays The 8 outputs are situated on a 8 bit port Writing the digital outputs A single call is necessary to write a digital output The Port parameter will always be equal to 0 because there is only one digital output port Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com API Call long EDRE_DioWrite unsigned long SerialNumber unsigned long Port unsigned long Value The serial number port and a value must be passed by the calling function A re
26. icant byte is sent first Normal dotmOrdering Information 12 Eagle Technology Data Acquisition www eagledag com C Troubleshooting amp Maintenance Troubleshooting Device Unavailable on Serial Connection Make sure that the Slave address is correct as selected Check that correct serial port number is correct and correctly configured Check that your Baud Rate is correct as selected Reset device after any changes was made to the device configuration settings Reset device by disconnecting the power Maintenance Calibration The device should be returned every two years for recalibration A service fee will be charged for all work done as well as for any parts that needs replacement Courier and or delivery cost will also be for the clients cost Normal dotmOrdering Information 13 Eagle Technology Data Acquisition www eagledag com D Ordering Information For ordering information please contact Eagle Technology directly or visit our website Telephone 27 021 423 4943 Fax 27 021 424 4637 E Mail eagle eagle co za Website http www eagledag com Normal dotmOrdering Information
27. ice Baud Rate RTCSETTIME 800 Set device time RTCGETTIME 801 Get device time Table 3 9 Query Codes Normal dotmOrdering Information 10 Eagle Technology Data Acquisition www eagledag com Error Codes EDRE_OK 0 Function successful EDRE_FAIL 1 Function call failed EDRE BAD 2 Invalid function call EDRE BAD SN 3 Invalid serial number EDRE BAD DEVICE 4 Invalid device 05 5 Function not supported by operating system EDRE EVENT FAILED 6 Wait on event failed EDRE EVENT TIMEOUT 7 Event timed out EDRE INT SET 8 Interrupt in use EDRE DA BAD RANGE 9 DAC value out of range EDRE AD BAD CHANLIST 10 Channel list size out of range EDRE BAD FREQUENCY 11 Frequency out of range EDRE BAD BUFFER SIZE 12 Data passed by buffer incorrectly sized EDRE BAD PORT 13 Port value out of range EDRE BAD PARAMETER 14 Invalid parameter value specified EDRE BUSY 15 System busy EDRE 10 FAIL 16 IO call failed EDRE BAD ADGAIN 7 ADC gain out of range EDRE BAD QUERY 18 Query value not supported EDRE BAD CHAN 19 Channel number out of range EDRE BAD VALUE 20 Configuration value specified out of range EDRE BAD CT 21 Counter timer channel out of range EDRE BAD CHANLIST 22 Channel list invalid EDRE BAD CONFIG 23 Configuration invalid EDRE BAD MODE 24 Mode not valid EDRE HW ERROR
28. ied person configure and install the ETDAQD and damages caused to a device during installation shall make the warranty void and null e The warranty will not apply to conditions where the ETDAQD has been operated in a manner exceeding its specifications Eagle Technology South Africa does not take responsibility or liability of consequential damages project delays damaging of equipment or capital loss as a result of its products Eagle Technology South Africa holds the option and final decision to repair or replace any ETDAQD Proof of purchase must be supplied when requesting a repair TABLE OF CONTENTS JTntr duction tutaqa Omm 1 General DESCEIDBOH S QS S S s SS u u a 1 AS M M E M RECEPIT sua ee 1 Device CARTES sc ed nn de se p 1 Connection P 1 Protocol PY DOSS aya aa tn ne a Sean ele gan aies 1 Power Supply sienne ati ladite 1 Data Inputs OUtput Types hr e e a maa ducts ume dente idet T 2 AppHheati nS g H 2 JESS 2 Contact pec 2 EM 2 Operating System SUPPON ARR dic ende E Cu trs ne dus 2 stallati oi ip due cn RE gs apa astan 2 EDRE APL SST 2 VE Ths 2 3 Bropramme Guide en Re nn EA en oes A le de cn 6 EDR Enhanced asas
29. ly It also makes it easy to develop complicated control applications All operating system are supported as no drivers are needed For further support information see the Contact Details section Contact Details Eagle Technology PO Box 4376 Cape Town 8000 South Africa Eagle Technology 24 Burg Street Cape Town 8001 Telephone 27 021 423 4943 Fax 27 021 424 4637 E Mail eagle eagle co za Website http www eagledag com Normal dotmOrdering Information 2 Eagle Technology Data Acquisition www eagledag com 2 Installation Because this Data Logger is configured via an Internet Browser and DAQ control can be done using the MODBUS protocol no drivers are necessary and no software needs to be installed If you however want to use the EDRE protocol you need to install the EDRE API Operating System Support Windows 2000 Windows 32 bit Windows Vista 32 bit Windows Vista 64 bit Windows 7 32 bit Windows 7 64 bit Installation There are two parts to the installation Installing the EDRE API and installing the USB Usart driver EDRE API Run the file EDREAPI exe on the CD that was supplied Follow the installation instructions to complete the installation USB Usart Ensure that the USB port is configured as a Usart Connect the MIO 8288 device to the PC s USB port Ensure that the MIO 8288 unit is power up Doing this for the first time will open a new hardwar
30. n a server The function uses two byte sub function code field in the query to define the type of test to be performed The server echoes both the function code and sub function code in a normal response Some of the diagnostics cause data to be returned from the remote device in the data field of a normal response In general issuing a diagnostic function to a remote device does not affect the running of the user program in the remote device User logic like discrete and registers is not accessed by the diagnostics Certain functions can optionally reset error counters in the remote device A server device can however be forced into Listen Only Mode in which it will monitor the messages on the communications system but not respond to them This can affect the outcome of your application program if it depends upon any further exchange of data with the remote device Generally the mode is forced to remove a malfunctioning remote device from the communications system The following diagnostic functions are dedicated to serial line devices Request Function Code 1 Byte 0x08 Sub function 2 Bytes Data N X 2 Bytes Response Function Code 1 Byte 0x08 Sub function 2 Bytes Data N x 2 Bytes Error Function Code 1 Byte 0x88 Exception Code 1 Bytes 01 or 02 or 03 or 04 Here the list of sub function codes supported by the serial line devices 0x0000 Echo Query Data 0x0001 Reset Communications Op
31. n written Request Function Code 1 Byte 0x05 Output Address 2 Bytes 0x0000 to 0x0007 Output Value 2 Bytes 0x0000 OxFFOO Response Function Code 1 Byte 0x05 Byte Count 2 Bytes 0x0000 to 0x0007 Coil Status 2 Bytes 0x0000 or OxFFOO Error Function Code 1 Byte 0x85 Exception Code 1 Bytes 01 or 02 or 03 or 04 Normal dotmOrdering Information 5 Eagle Technology Data Acquisition www eagledag com 0x0F Write Multiple Coils This function code is used to force each coil in a sequence of coils to either ON or OFF ina remote device The Request PDU specifies the coil references to be forced Coils are addressed starting at zero Therefore coil numbered 1 is addressed as 0 The requested ON OFF states are specified by contents of the request data field A logical 1 in a bit position of the field requests the corresponding output to be ON A logical 0 requests it to be OFF The normal response returns the function code starting address and quantity of coils forced Request Function Code 1 Byte OxOF Starting Address 2 Bytes 0x0000 to 0x0007 Quantity of Outputs 2 Bytes 0x0001 to 0x0008 Byte Count 1 Byte N Outputs Value N x 1 Byte N Quantity of Outputs 8 if the remainder is different of O N 1 Response Function Code 1 Byte OxOF Starting Address 2 Bytes 0x0000 to 0x0007 Quantity of Outputs 2 Bytes 0x0001 or 0x0008
32. nnel DI1B 8B Optically Isolated Input channels input pin B This is the Negative or reference input terminal for the optically isolated input channel NO1 8 Electro Mechanical Relay Normally Open Contact Pin When the relay is in the ON position this pin is connected to its relevant COM pair and not connected or open when the relay is in the OFF position NC1 8 Electro Mechanical Relay Normally Close Contact Pin When the relay is in the OFF position this pin is connected to its relevant COM pair and not connected when the relay is in the ON position COM1 8 Electro Mechanical Relay Common Contact Pin This Pin is either connected to its relevant NO or NC contact pin depending on the state of the relay AGND Analog Ground used in conjunction with analog inputs and analog outputs GND or DGND Digital Ground This is the same as the or Negative input on the Power Supply 8 40VDC connector Normal dotmOrdering Information 15 Eagle Technology Data Acquisition www eagledag com 5 Hardware Introduction Physical MIO 8288 Panel View WHIA axuv 08 01 T Lr 3 r Lr 17 u 1r Lr pRB 2292952222 p Sp p B pp AEE PEERS SERERE SF aava as 3 3 vent LT 3B 4 sn dd Be eRe MENT ETTE DEFAULT RUN sass ETHERNET MIO 8288
33. om Analog Input The MIO 8288 have 8 analog input channels The inputs can be used as 8 single ended inputs 4 differential ended inputs or combination of the two Reading the Analog Inputs Asingle call is necessary to configure a analog input channel and at the same time read the voltage level on the analog input API Call long EDRE_ADCSingle unsigned long SerialNumber unsigned long Channel unsigned long Gain unsigned long Range long uVoltage The serial number ADC channel gain range and a pointer to the uVoltage variable must be passed A return code will indicate if an error occurred Serial Number unsigned long Device Serial Number Channel unsigned long The channel to sample Gain unsigned long Gain contains the gain setting of the channel that is being sampled Value Single Ended Ditferential Ended_ 0 10V 20V 1 10V 2 5V 3 4V 4 2 5V 5 2V 6 1 25V 7 1V Range unsigned long Range contains the range setting of the channel that is being sampled 0 Single Ended 1 Differential Ended uVoltage Pointer to a long A pointer to the uVoltage variable that must return the result of the channel being sampled in micro Voltage Table 3 3 EDRE ADCRead function ACTIVEX Call long EDREADX SingleRead long Channel Make sure to set the gain and Range properties of the ActiveX control This will in turn set range and gain when reading the A
34. om 0x03 Read Holding Registers Query function This function is used to query specific holding registers The register data in the response message are packed as four bytes per register with the binary contents right justified within each byte For each register the first byte contains the high order bits and the fourth contains the low order bits Request Function Code 1 Byte 0x03 Starting Address 2 Bytes 0x0000 to OxFFFF Quantity of Input 2 Bytes 0x0001 to 0x000f Registers Response Function Code 1 Byte 0x03 Byte Count 1 Bytes 4xN Input Registers N x 4 Bytes N Quantity of Input Registers Error Function Code 1 Byte 0x83 Exception Code 1 Bytes 01 or 02 or 03 or 04 0x000A Device Type 0x000B Device Revision 0x000C Manufactured Year 0x000D Manufactured Month 0x000E Manufactured Day 0x000F Serial Number 0x0017 Firmware Major Revision 0x0018 Firmware Minor Revision 0x0019 Firmware Build Revision 0x0260 Get Network IP Address 0x0261 Get Network Mask 0x0262 Get Network Gate Way 0x0265 Company 10 0 0266 MAC Extension ID Table B 5 Holding Register Map Normal dotmOrdering Information Eagle Technology Data Acquisition www eagledag com 0x08 Diagnostics MODBUS function code 08 provides a series of tests for checking the communication system between a client Master device and a server Slave or for checking various internal error conditions withi
35. s option to select the devise diver a list Windows does not guarantee Ihal the driver you choose will be the best match for your hardware lt Back Next gt Cancel Figure 5 4 Browse Directory Windows will then process the installation of the driver corresponding to the ISP of the connected part Once completed click Finish Found Hew Hardware Wizard Completing the Found Now Hardware Wizard The wizard has frished nstaling the soflwere for AT 32UC 3A gt Click Fish to close the wizard Figure 5 5 Finish Normal dotmOrdering Information 19 Eagle Technology Data Acquisition www eagledag com Loading Firmware First see Activating the ISP To launch BatchISP open a command prompt Windows or Cygwin command prompt can be used provided that the bin folder of the FLIP installation directory is in the Windows or Cygwin s environment variable When running BatchISP AT32UC3A051 2 the target part has to be specified with device at32uc3a0512 and the communication port with hardware usb Commands can then be placed after operation These commands are executed in order BatchISP options can be placed in a text file invoked using cmafile rather than on the command line BatchISP works with an internal ISP buffer per target memory These ISP buffers can be filled from several sources All target operations program verify read are performed using these buffers
36. ssion Can Windows cornect to Windows Update to search For software O Yes the tine O Yes now and every connect a device Click Next to continue Back Next gt Cancel Figure 5 2 Found New Hardware Wizard On the next screen select Install from a list or specific location Advanced and click Next Found New Hardware Wizard This wizard helps you install soltware for ATSAIC3A If your hardware came with an installation CD ag or floppy disk insert it now What do you want the to do Instal the sofivere automaticaly Recommended Click Next to continue lt Back Next gt Cancel Figure 5 3 Install from a list or specific location Normal dotmOrdering Information 18 Eagle Technology Data Acquisition www eagledag com Then request to search in the USB folder of the FLIP installation directory as shown below and click Next Found New Hardware Wizard Please choose your search and installation options ot Seach for the bes driver in these locations Use the check boses below to fmit or expend the default ssarch which includes local palhs and 1emovable media The best driver Found will be installed C Seach removable media floppy CD ROM v Include this location in the search C Program Fles atnenFio 32 09 1 Browse C Dent search will choose the driver to install Choose thi
37. te nca assqa Sa 13 TABLE 3 10 ERROR CODES u rc DL 14 TABLE 4 1 RS 232 u usu 15 TABLE 4 2 422 485 un 15 TABLE 4 3 ETHERNET a ua ususqa ua u Qusa u au asas 16 TABLE 4 4 ANALOQGIINPUT UI 16 TABLE 4 5 ANALOG OUTPUT ecce citri r erecti ee iacet sc a sock uo Caen teens amba ramus erra eiae d nueintes 16 TABLE 4 6 OPTICALLY ISOLATED 2 24 4 1 17 TABLE 4 7 ELECTRO MECHANICAL RELAY U u uu uu uuu uuu u 17 TABLE 4 8 POWER SUPPLY CONTACT snnnnnvnnnvnnnvnnnvnnnvnnnvennvennnennnennnennnnennnennnnennnennvnnnvnnnvnnnvennnennnennnenunnennner 18 TABLE 5 1 DEFAULT IP SETTINGS accurrit cr recor rd awa ses sasa unn sawa cei ipm pice d gu saus 20 TABLE B 1 COIL ADDRESS REGISTER FOR DIGITAL INPUTS Ju u u 27 TABLE 2 COIL ADDRESS REGISTER FOR RELAYS 1 uu uuu 28 TABLE B 3 INPUT REGISTER MAP U u u uu u uuu uuu 29 TABLE B 4 OUTPUT REGISTER 1 1 u u uu uu uuu uuu u 30 viii TABLE B 5 HOLDING REGISTER TABLE B 6 DIAGNOSTIC SUB FUNCTIONS
38. tion 0x0004 Force Listen Only Mode 0x000A Clear Counters and Diagnostic Register 0x000C Return Bus Communication Error Count 0x000D Return Bus Exception Count 0x000E Return Slave Message Count Table B 6 Diagnostic Sub functions Normal dotmOrdering Information 10 Eagle Technology Data Acquisition www eagledag com 0x0B Get Communication Event Count Serial Line Only This function code is used to get a status word and an event count from the remote device s communication event counter By fetching the current count before and after a series of messages a client can determine whether the messages were handled normally by the remote device The device s event counter is incremented once for each successful message completion It is not incremented for exception responses poll commands or fetch event counter commands The event counter can be reset by means of the Diagnostics function code 08 with a sub function of Restart Communications Option code 00 01 or Clear Counters and Diagnostic Register code 00 The normal response contains two byte status word and a two byte event count The status word will be all ones FF FF hex if a previously issued program command is still being processed by the remote device a busy condition exists Otherwise the status word will be all zeros Request Function Code 1 Byte 0x0B Response Function Code 1 Byte 0x0B Status 2 Bytes 0x0000 to OxFFFF
39. turn code will indicate if any error occurred ACTIVX Call long EDREDioX Write long Port long Value The port number and value to be written needs to be passed and the return value will indicate if an error occurred Analog Output The MIO 8288 has 2 12 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 the Analog Outputs A single call is necessary to write voltage levels to a analog output channel The table below shows the relation between the software channel and the channel on the connector 0 AO1 AO2 Table 3 1 DAC Software Channel to Hardware Connections API Call long EDRE DAWrite unsigned long SerialNumber unsigned long Channel long uVoltage The serial number DAC channel and micro voltage level is needed to set the DAC output A return code will indicate if any error occurred Serial Number unsigned long Device Serial Number Channel unsigned long The analog channel to write uVoltage long The voltage to write to the analog output channel in micro volts Table 3 2 EDRE DAWrite function ACTIVEX Call long EDREDAX Write unsigned long Channel long uVoltage The DAC channel and micro voltage is needed to set a DAC channel s voltage A return code will indicate if any errors occurred Normal dotmOrdering Information 7 Eagle Technology Data Acquisition www eagledag c

Download Pdf Manuals

image

Related Search

Related Contents

Manuale di istruzioni testo 890  SuperLift Contractor (PN 33547)  SATURN |SATURN F |VENUS |VENUS F |  Gobo Shot 50W IRC User Manual Rev. 4  User Manual IDK-1121WR-30FHA1E  アッパーローター BUR08  Flavor Select 30 (FS30) Ice Beverage Dispenser  

Copyright © All rights reserved.
Failed to retrieve file