Digital i/o board with opto-isolation for pci (9 pages)
Summary of Contents for Contec F&eIT series
Page 1
F&eIT Series Isolated Analog Input Module ADI12-8(FIT)GY User’s Manual CONTEC CO.,LTD.
Page 2
Check Your Package Thank you for purchasing the CONTEC product. The product consists of the items listed below. Check, with the following list, that your package is complete. If you discover damaged or missing items, contact your retailer. Product Configuration List - Module …1...
No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. CONTEC CO., LTD. makes no commitment to update or keep current the information contained in this document.
Table of Contents Check Your Package ............i Copyright ................ii Trademarks ............... ii Table of Contents .............iii 1. Introduction ..............1 Features ................ 1 Functions and control method by controller connected ............. 2 Limited One-Year Warranty ........4 How to Obtain Service ..........4 Liability.................
Page 5
4. Using the I/O Address Map..........13 Starting I/O Address ............13 List of I/O Address Maps..........14 Specifications Common to F&eIT Products ....16 Product Information........... 16 Overview of the Sampling Function......19 List of Commands............30 Examples ................ 31 Software Mode............
Introduction 1. Introduction Congratulations on your recent purchase of an Insulator Digital Input Module. By converting external analog voltage signals into digital data, the ADI12-8(FIT)GY can process them inside the F&eIT series controller module < CPU-CAxx(FIT)GYGY, CPU-SBxx(FIT)GY etc >. The insulation between external signals and the Controller Module permits the use of the Controller Module without compromising the communications features of the latter.
Introduction Functions and control method by controller connected The ADI12-8(FIT)GY can be connected to a variety of controllers. Micro Controller Unit CPU-SBxx(FIT)GY I/O Controller Module CPU-CAxx(FIT)GY Monitoring & Control Server Unit SVR-MMF2(FIT) Monitoring & Control Server Unit SVR-MMF(FIT)GY Isolated Analog Input Module for USB ADI12-8(USB)GY I/O Controller Module with USB CPU-CA10(USB)GY...
Page 8
Introduction Control method by controller connected ο Control using the I/O address map ο Control using the memory address map ο FIT Protocol ο API-CAP(W32) Control via the Windows driver * ο API-SBP(W32) ο ο API-USBP(WDM) ο ο Control over the web * The API-SBP(W32) is included in the development kit DTK-SBxx(FIT)GY;...
Introduction Limited One-Year Warranty CONTEC products are warranted by CONTEC CO., LTD. to be free from defects in material and workmanship for up to one year from the date of purchase by the original purchaser. Repair will be free of charge only when this product is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office, from which it was purchased.
Handling Precautions Take the following precautions when handling this module. -Do not modify the module. CONTEC will bear no responsibility for any problems, etc., resulting from modifying this module. - Do not use or store the equipment in a hot or cold place, or in a place that is subject to severe temperature changes.
Introduction FCC PART 15Class A Notice NOTE This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in commercial environment.
Module Nomenclature and Settings 2. Module Nomenclature and Settings Nomenclature of Module Components Figure 2.1. shows the names of module components. In the figure, the indicated switch settings represent factory settings. LED Indicator STATUS Device ID Device Interface connector ADI12-8 Figure 2.1.
Module Nomenclature and Settings Setting a Device ID The controller module distinguishes and keeps track of the modules that are connected to it by assigning device IDs to them. Each module, therefore, should be assigned a unique ID. A Device ID can be assigned in a 0 - 7 range, so that a maximum of eight modules can be distinguished.
Connecting to an External Device 3. Connecting to an External Device Interface Connector How to Connect an Interface Connector When connecting the Module to an external device, you can use the supplied connector plug. When wiring the Module, strip off approximately 7 - 8 mm of the covering for the cable, and insert the bare wire by pressing the orange button on the connector plug.
Connecting to an External Device Signal Layout on the Interface Connector The Module can be connected to an external device using a 12-pin (1 group) connector that is provided on the Module face. CH0 [+] Analog Input 0ch [+] CH0 [-] Analog Input 0ch [-] Analog Ground CH1 [+]...
Connecting to an External Device Example of connecting a current input To measure a current using the ADI12-8(FIT)GY, you need to convert the current into a voltage using a resistor. By connecting a 250Ω resistor between the [+] and [-] inputs, the ADI12-8(FIT)GY can measure currents from a 0 - 20mA current output device in a voltage input range from 0 to 5 V.
Page 17
Connecting to an External Device ADI12-8(FIT)GY...
Using the I/O Address Map 4. Using the I/O Address Map Starting I/O Address When connected to a CPU-SBxx(FIT)GY, the ADI12-8(FIT)GY can directly receive I/O commands from the controller module. Depending on how the Device ID is set, the I/O addresses indicated below will be used exclusively by the ADI12-8(FIT)GY. Because the address bus on which the I/O address space is specified is not fully decoded in continued 16 bits, four starting I/O addresses exist in each Device ID.
Using the I/O Address Map List of I/O Address Maps Input Port Starting I/O address input Product Category Revision Data Revision Revision Revision Revision (00h) Data3 Data2 Data1 Data0 Product ID Number (01h) Interrupt Status (02h) Enable Status IRQ9 IRQ7 IRQ5 (03h) (Not available)
Page 20
Using the I/O Address Map Output Port Starting I/O address output (00h) (Not allowed) (01h) Interrupt Data IRQ9 IRQ7 IRQ5 Enable (02h) Data Data Data (00h) (Not allowed) (11h) Channel Data Channel Channel Channel (12h) Data2 Data1 Data0 (13h) (Not allowed) (15h) Status Reset Data Read...
Product information - Revision Data [D3 - D0]: This is product update information, subject to change without notice, that is managed by CONTEC. - Product Category [D7 - D4]: This is a module function classification code. For the ADI12-8(FIT)GY, the code is "2h".
Page 22
Using the I/O Address Map Interrupt Status This is a common port on which the interrupt status requested by the Module can be verified. Although in this example values are assigned centered on the status concerning interrupt levels, information on interrupt sources varies from module to module.
Page 23
Using the I/O Address Map Setting an Interrupt Level Starting I/O address output Interrupt Data IRQ9 IRQ7 IRQ5 (02h) Enable Data Data Data Figure 4.5. Setting an interrupt level - Enable [D7]: This bit enables an interrupt source. - IRQ* [D2 - D0]: The interrupt level used by the module is set in these bits.
Using the I/O Address Map Overview of the Sampling Function When a start-sampling command is issued, analog input signals are converted into 12-bit digital data at a maximum rate of 10μsec/ch + 20μsec under pre-set sampling conditions. Two sampling modes are supported: - Software mode: Stores data from a channel specified by a data-fetch command into an internal read buffer.
Page 25
Using the I/O Address Map The sampling operation can be checked by monitoring the Start status. Initialize An interrupt can also be generated as the status changes. Set sampling Figure 4.7. illustrates the analog input procedure. conditions The initialization must be performed prior to any sampling. Set input range In the next step, sampling conditions (operating mode, input Start sampling...
Page 26
Using the I/O Address Map Setting sampling conditions This step sets sampling conditions. In terms of procedures, a sampling condition setup command is issued, and then settings data is output. Starting I/O address output Command (18h) output Sampling Setting (1Ch) Channel Sampling Sampling...
Page 27
Using the I/O Address Map Input range-setting The input range refers to the voltage range in which analog signals are input. All channels are set on a common basis, and the input data is converted into digital signals with a 12-bit resolution. The input range-setting control port assumes the following state: Starting I/O address...
Page 28
Using the I/O Address Map Setting an Internal Sampling Clock When either the "clock mode" or the "internal sampling clock" is selected as a sampling condition, this option allows you to set a sampling cycle (clock data). In the initial state, the clock data is undefined.
Page 29
Using the I/O Address Map Starting a sampling process If the sampling mode is the single-channel mode, specify the channel through which data is to be converted. In the case of the multi-channel mode, specify the upper limit (1 or greater) on the channels through which data is to be converted.
Page 30
Using the I/O Address Map Input of conversion data Conversion data should be input only after a verification is made that conversion data is stored in a register. Start Conversion data cannot be input from a register during a conversion operation. Analog input status The figure on the right shows procedures by which conversion data is input.
Page 31
Using the I/O Address Map The control port by which conversion data is input assumes the following state: Starting I/O address input Interrupt Status Sampling Sampling Data Over Data Read (16h) Clock Error Clock Input Write Error Enable input Analog Input Data (Lower) (10h) Conversion Conversion...
Page 32
Using the I/O Address Map Details on the Analog Input Status The analog input status shows the status of an A/D conversion operation. Starting I/O address input Analog Input Status Sampling Sampling Data Over Data Read (16h) Clock Error Clock Input Write Error Enable Figure 4.15.
Page 33
Using the I/O Address Map - Sampling Clock Error Status (SCE) [D5]: This status is set to [1] when a sampling clock in entered during a sampling operation in the clock mode. The status is cleared when it is reset, and any sampling clocks that are entered during the sampling operation will be ignored.
Page 34
Using the I/O Address Map Setting an Interrupt Source This option allows you to specify an interrupt signal generation source. The control port that sets an interrupt source assumes the following state: Starting I/O address output Command (18h) output Interrupt Source (1Ch) Sampling Sampling...
Using the I/O Address Map List of Commands Following is a list of ADI12-8(FIT)GY commands that are issued to "Output port +24": Table 4.7. List of commands Function Data length Initialization 0-bit Interrupt source mask 8-bit Sampling settings 8-bit Input range 8-bit Internal sampling clock 32-bit...
Using the I/O Address Map Examples Software Mode Flowchart Start Initialization command Initialization Set sampling conditions Set input range Start command Read data? A/D conversion Input data Final channel? Number of set data points? Figure 4.19. Software mode ADI12-8(FIT)GY...
Page 37
Using the I/O Address Map Sample program /*======================================================= Sample program 1 DEVICE ID: Mode: Software Mode, Multi-Channel Channel: 0 to 7ch Range: -10 to 10V Internal Clock: Interrupt: ========================================================*/ #include <stdio.h> #include <conio.h> /* ----- Constant ------------------------------------- */ #define 0x0800 /* I/O address */ /* ----- Prototype ------------------------------------ */ void...
Using the I/O Address Map Clock Mode (No Interrupts) Flowchart Start Initialization command Set sampling conditions Initialization Set input range Set clock data Set channel Start timer Read data? Input data Final channel? A/D conversion Reset status Clock error? Number of set data points? Stop timer Figure 4.20.
Page 39
Using the I/O Address Map Sample program /*======================================================= Sample program 2 DEVICE ID: Mode: Clock Mode, Multi-Channel Channel: 0 to 7ch Range: -10 to 10V Internal Clock: 250msec (250ns x 1,000,000) Interrupt: ====================================================== */ #include <stdio.h> #include <conio.h> /* ----- Constant ------------------------------------- */ #define 0x0800 /* I/O address */...
Page 40
Using the I/O Address Map outp( ADR+0x16, sts & 0x10 ); /* Status reset */ if( sts & 0x20 ) { i = NUM; printf("\nClock Error\n"); } else printf("\n"); outp( ADR+0x18, 0x06 ); /* Timer Stop */ /* -------------------------------------- End of file --- */ ADI12-8(FIT)GY...
Using the I/O Address Map Clock Mode (with Interrupts) Flowchart Interrupt processing Start Initialize Read data? Change interrupt vectors Input data Set interrupt level Final channel? Set channel Start timer Reset status Clock error? Show data Count number of Interrupt termination Interrupt ended? interrupts processing...
Page 42
Using the I/O Address Map /*======================================================= Sample program 3 DEVICE ID: Mode: Clock Mode, Multi-Channel Channel: 0 to 3ch Range: -10 to 10V Internal Clock: 1sec (250ns x 4,000,000) Interrupt: IRQ5 10 times ======================================================== #include <stdio.h> #include <conio.h> #include <dos.h> /* ----- Constant ------------------------------------- */ #define 0x0800...
Using the Memory Address Map 5. Using the Memory Address Map When connected to a CPU-CAxx(FIT)GY, the ADI12-8(FIT)GY can be accessed by a host computer through a network. In addition, the Module can be allocated to the memory controlled by the Controller Module according to a given Device ID. Applications running on the host computer control the I/O modules by reading/writing the memory that is controlled by the Controller Module.
Using the Memory Address Map Module Settings Area A module settings area, which is a 128-byte (80h) area beginning with address 301000h and corresponding to a given Device ID, is where the settings for the given device are written. The starting address can be determined according to the following expression: Starting address = 301000h + 80h x (Device ID) Table 5.1.
Page 48
Using the Memory Address Map Module-specific information - Module type (category) The ADI12-8(FIT)GY belongs to the analog module (02h) category. - Module type (serial No.) The ADI12-8(FIT)GY is an analog module with a serial No. 0 (00h). - Supported functions The ADI12-8(FIT)GY supports the basic input function (01h).
Page 49
Using the Memory Address Map Items Common to Modules - Module startup register Setting the module startup option (01h) causes the device module to be started. Setting the module startup option when the module is being started causes the module to be restarted. 00h: No operation 01h: Module startup - Error status...
Using the Memory Address Map Module Information Area The module information area is a 128-byte (80h) area beginning with address 300000h and corresponding to a given Device ID. The starting address can be determined according to the following expression: Starting address = 300000h + 80h x (Device ID) Table 5.3.
Page 51
Using the Memory Address Map When the module is started, the contents of the module setting area are stored in the module information area, with the exception of the [Module Startup Register] and the [Error Status]. - Module startup register This register holds the module operating status.
Using the Memory Address Map Basic Input Data Area The basic input data area, which is a 128-byte (80h) area beginning with address 304000h, corresponds to a given Device ID. The starting address can be determined according to the following expression: Starting address = 304000h + 80h x (Device ID) Table 5.4.
Page 53
Using the Memory Address Map Table 5.6. Conversion coefficients Analog input value Offset Span -10V - +10V -5V - +5V 0V - +10V 0V - +5V Table 5.7. Analog input range: an example of a conversion in the -10V - +10V range Input voltage (V) Analog input value (h)
Using the Memory Address Map Examples Flowchart Following is an example in which the ADI12-8(FIT)GY is installed at Device ID :0: Start Open processing Opened successfully? Determine category by reading address:301000h. Analog module type? For analog-type module, category is "02h". Set analog input range.
Page 55
Using the Memory Address Map Sample program /*======================================================= F&eIT I/F Sample Program DEVICE ID: Channel: 0 to 7ch Range: -10 to 10V ====================================================== */ #include <windows.h> #include <stdio.h> #include <stdlib.h> #include <conio.h> #include "Fit.h" /* Address(common) */ #define FIT_IO (0x00300000) #define FIT_IO_DEVICE_INFOR (0x0000) #define FIT_IO_DEVICE_CONFIG...
Page 56
Using the Memory Address Map /* Sample */ #define FIT_SAMPLE_IP_ADDRESS "192.168.132.211" #define FIT_SAMPLE_PORT (0x5007) #define FIT_SAMPLE_DEVICE_ID int main(void) DWORD dwIpAddress; DWORD dwVaBase; DWORD dwVaOffset; WORD hHandle; WORD wStatus; BYTE byCategory; BYTE byRange; BYTE byModuleStart; BYTE byData[0x80]; BYTE byChCount; BYTE byErrorStatus; /* Open */ dwIpAddress = FIT_IpChenge((BYTE *)FIT_SAMPLE_IP_ADDRESS);...
System Reference Specifications Table 6.1. Specifications Item Specifications Analog input section Input format Bus-isolated voltage input Input range Bipolar ±10V, ±5V Unipolar 0 - 10V, 0 - 5V Maximum input voltage ±20V Input impedance 1M Ω (Min.) Input channel Differential input, 8 channels Resolution 12-bit Non-linear error *1...
Page 60
System Reference Table 6.2. Installation Environment Requirements Parameter Requirement description 0 - 50 ° C Operating temperature Storage temperature -10 - 60 ° C Humidity 10 - 90% RH (No condensation) Floating dust particles Not to be excessive Corrosive gases None Line-Noise Line-noise...
System Reference External Dimensions (1.2) (1.2) STATUS Device ADI12- 25.2 64.7 [mm] Figure 6.2. External dimensions ADI12-8(FIT)GY...
Page 62
3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan Japanese http://www.contec.co.jp/ English http://www.contec.com/ Chinese http://www.contec.com.cn/ No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [09102012] [08062001] Management No. A-40-606 [09102012_rev9] Parts No. LZU3844...
Need help?
Do you have a question about the F&eIT series and is the answer not in the manual?
Questions and answers