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[ADI16-4(FIT)GY] …1...
All relevant issues have been considered in the preparation of this document. Should you notice an omission or any questionable item in this document, please feel free to notify CONTEC CO., LTD. Regardless of the foregoing statement, CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product.
Table of Contents Check Your package ........................... i Copyright ............................ii Trademarks ............................ii Table of Contents ..........................iii BEFORE USING THE PRODUCT About the Module ..........................1 Features ............................1 Functions and control method by controller connected .............. 2 Customer Support ..........................
Page 5
USING THE I/O ADDRESS MAP Starting I/O Address ......................... 15 List of I/O Address Maps ......................... 16 Specifications Common to F&eIT Products ..................18 Product Information ........................18 Calibration Data Setting Procedure ....................20 FIFO Function Overview ........................23 Overview of the Sampling Function ....................25 List of Commands ..........................
1. Before Using the Product 1. Before Using the Product This chapter provides information you should know before using the product. About the Module Congratulations on your recent purchase of an Isolated Analog Input Module. The ADI16-4(FIT)GY can be connected to the F&eIT series of controller modules (such as the CPU-CAxx(FIT)GY and CPU-SBxx(FIT)GY) to construct a system.
1. Before Using the Product Functions and control method by controller connected The ADI16-4(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-MMF(FIT)GY The functions and control of the ADI16-4(FIT)GY vary with the controller to which the ADI16-4(FIT)GYis connected.
Page 8
1. Before Using the Product Control method by controller connected Control using the I/O address map ο Control using the memory address map ο FIT Protocol ο Control via the Windows driver * API-SBP(W32) ο API-USBP(WDM) Control over the web ο...
No driver software is provided with this module. Please download the latest drivers from the CONTEC web site. Documents including important notes on the use of the module are also posted on the web site. Please visit the CONTEC web site before using the module.
1. Before Using the Product Safety Precautions Understand the following definitions and precautions to use the product safely. Safety Information This document provides safety information using the following symbols to prevent accidents resulting in injury or death and the destruction of equipment and resources. Understand the meanings of these labels to operate the equipment safely.
CAUTION 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.
Page 12
1. Before Using the Product Regarding “CE EMC Directive Notice”. Please connect the Interface Connector with a shielded cable to meet the mentioned standard above. 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.
1. Before Using the Product Environment Use this product in the following environment. If used in an unauthorized environment, the module may overheat, malfunction, or cause a failure. Operating temperature 0 to 50°C Humidity 10% to 90%RH (No condensation) Corrosive gases None Floating dust particles Not to be excessive...
2. 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. Device ID Range Setting Switches Interface Connector Figure 2.1. Names of module components 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.
2. Module Nomenclature and Settings Range Setting Switches Set the voltage input or current input range setting depending on the measurement target. The input range is common to all channels; it cannot be set for each of them and must not be set to an invalid range.
3. 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. To wire each terminal, strip the wire about 9 to 10 mm from the end and insert it into the opening. After inserting the wire, tighten the screw to fasten it.
3. Connecting to an External Device Analog Signal Connection Differential input connection examples This section gives examples of connecting analog input signals from an external device to the Module using a flat cable and a shielded cable. The following example uses a flat cable to connect the Module to an external device. Connect the [+] and [-] analog input channels of the Module to the output and ground of the signal source, respectively.
3. Connecting to an External Device The analog signal input to the [+] and [-] inputs must not exceed the maximum input voltage with reference to the analog ground of the module. Exceeding the input voltage can damage the module. Converted data is undefined when either of the [+] and [-] input terminals is left unconnected.
Page 19
3. Connecting to an External Device Converted data is undefined when either of the [+] and [-] input terminals is left unconnected. Connect both of the [+] and [-] input terminals of the channel not connected to the signal source to the analog ground.
4. 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 ADI16-4(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 ADI16-4(FIT)GY.
4. Using the I/O Address Map List of I/O Address Maps Input Port Starting address Input Products Category Revision Data Revision Revision Revision Revision (00h) Data 3 Data 2 Data 1 Data 0 Products ID Number ID Data7 ID Data6 ID Data5 ID Data4 ID Data3...
Page 22
4. Using the I/O Address Map Output Port Starting address Output (00h) (01h) Interrupt Status IRQ9 IRQ7 IRQ5 Enable (02h) Data Data Data (03h) (11h) Channel Data Channel Channel (12h) Data Data (13h) (15h) Status Reset 0 Sampling Sampling (16h) Clock Error Clock Input Status Reset 1...
Figure 4.3. Product information Revision Data [D3 to D0]: This is product update information, subject to change without notice, that is managed by CONTEC. Product Category [D7 to D4]: This is a module function classification code. For the ADI16-4(FIT)GY, the code is "2h".
Page 24
4. Using the I/O Address Map Interrupt Status This is a port on which the interrupt status generated 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.
4. Using the I/O Address Map Calibration Data Calibration Data Setting Procedure Setting Before starting sampling, write calibration data factory-set in the Module to EEPROM Data Setting a digital potentiometer. The flowchart to the right shows the steps to write factory-set data to the Calibration Data digital potentiometer.
Page 26
4. Using the I/O Address Map Setting calibration data Starting address Output Command (18h) Output Setting Data 0 Gain/ (1Ch) Offset Potentionmeter Data Calibration Calibration Calibration Calibration Calibration Calibration Calibration Calibration (1Dh) Data7 Data6 Data5 Data4 Data3 Data2 Data1 Data0 Figure 4.8.
Page 27
4. Using the I/O Address Map EEPROM Busy Flag [D2]: The status is set upon input/output of data to/from EEPROM. The status is reset upon completion of the read/write. *Each status is also cleared to 0 by the following condition - Initialization command output Given below are samples for setting calibration data.
4. Using the I/O Address Map FIFO Function Overview The ADI16-4(FIT)GY has FIFO memory for 64 data items, capable of temporarily storing converted data. Check the following default settings for FIFO memory before use. Analog input status Starting address Input Analog Input Status 1 FIFO Calibration...
Page 29
4. Using the I/O Address Map Number of data items stored in FIFO memory You can check the number of data items remaining in FIFO memory. Starting address Output Command (18h) Output FIFO Flag Number of Number of Number of Number of Number of Number of...
4. Using the I/O Address Map Overview of the Sampling Function Output the sampling start command to convert analog input data to 16-bit digital data in the 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 31
4. Using the I/O Address Map Initialization This step initializes the analog input function. This command clears all settings and status, and returns the module to the "initialized state", which is the same as when the power is turned on and the RESET button is pressed. During the initialization, the control port assumes the following state: Starting address...
Page 32
4. 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 address Output Command (18h) Output FIFO Flag Channel Sampling Sampling (1Ch)
Page 33
4. Using the I/O Address Map Setting the FIFO flag The following example sets the FIFO memory flag status when FIFO memory stores 32 words of data. For details, see the “FIFO Function Overview” section. outp( ADR+24, 0x7 ); outp( ADR+28, 32 ); Input range-setting The input range refers to the voltage range in which analog signals are input.
Page 34
4. Using the I/O Address Map The relationship between a clock cycle and setting data can be expressed as follows: Sampling clock Clock data where the sampling clock is specified in units of nsec. Sampling clock values must satisfy the following expression: Sampling clock ≥...
Page 35
4. 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 36
4. Using the I/O Address Map Table 4.5. Example of conversion data for a ±10V range 16-bit conversion data Input voltage (±10V range) Offset binary +9.9997V FFFFh 0.00030V 8001h 0.00000V 8000h -0.00030V 7FFFh -10.00000V 0000h The control port by which conversion data is input assumes the following state: Starting address Input...
Page 37
4. 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 address Input Analog Input Status 0 Sampling Sampling Data Over Data Read (16h) Clock Error Clock Input Error Enable...
Page 38
4. 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 39
4. Using the I/O Address Map Interrupt Function This option allows you to use the hardware interrupt function. For interrupt levels, a level that is set by the Module will be used. When using the interrupt function, you can pre-select one of the following status conditions as an interrupt source (multiple settings allowed): Table 4.6.
Page 40
4. 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 address Output Command (18h) Interrupt Mask0 Setting Sampling Data Over...
4. Using the I/O Address Map List of Commands Following is a list of ADI16-4(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...
4. Using the I/O Address Map Examples Software Mode Flowchart Start Initialization command Setting sampling conditions Setting Initialization the FIFO flag Setting an input range Calibration data setting Starting command Reading data ? Input data A/D comversion Final channel ? Number of setting data ? Completion Figure 4.26.
Page 43
4. Using the I/O Address Map Sample program /*=========================================================================== Sample program 1 DEVICE ID: Mode: Software Mode, Multi-Channel Channel: 0 to 3ch Range: -10 to 10V Internal Clock: Interrupt: =========================================================================== #include <stdio.h> #include <conio.h> /* ----- Constant ---------------------------------------------------------- #define 0x0800 /* I/O address */ /* ----- Prototype --------------------------------------------------------- void...
Page 44
4. Using the I/O Address Map printf("\n"); /* ---------------------------------------------------------- End of file --- ADI16-4(FIT)GY...
4. Using the I/O Address Map Clock Mode (No Interrupts) Flowchart Start Initialization command Setting sampling conditions Setting the FIFO flag Initialization Setting an input range Calibration data setting Clock data setting Channel setting Starting timer Loading data ? Input data Final channel ? A/D comversion Status reset...
Page 46
4. Using the I/O Address Map Sample program /*=========================================================================== Sample program 2 DEVICE ID: Mode: Clock Mode, Multi-Channel Channel: 0 to 3ch 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 47
4. Using the I/O Address Map outp( ADR+0x1f, 0x00 ); outp( ADR+0x12, 0x03 ); /* Channel data */ outp( ADR+0x18, 0x05 ); /* Conversion Start & Timer Start for(i = 0; i <NUM; i++) { do { sts = (unsigned char)inp( ADR+0x16 ); } while( !( sts &...
4. Using the I/O Address Map Clock Mode (with Interrupts) Flowchart Interrupt Start Initialization Loading data ? Changing of interrupt vector Input data Setting interrupt level Final channel ? Channel setting Starting timer Status reset Clock error ? Data display Counting the Completion Completion of interrupt ?
Page 49
4. 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...
5. Using the Memory Address Map 5. Using the Memory Address Map When connected to a CPU-CAxx(FIT)GY, the ADI16-4(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.
5. 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 54
5. Using the Memory Address Map Module-specific information Module type (category) The ADI16-4(FIT)GY belongs to the analog module (02h) category. Module type (serial number) The ADI16-4(FIT)GY is an analog module with a serial number 2 (02h). Supported functions The ADI16-4(FIT) supports the basic input function (01h). The basic input data takes analog input values.
Page 55
5. 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.
5. 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 57
5. 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.
5. 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 59
5. Using the Memory Address Map Table 5.7. Analog input range: an example of a conversion in the -10V to +10V range Input voltage (V) Analog input value (h) +9.9997V FFFFh 0.00030V 8001h 0.00000V 8000h -0.00030V 7FFFh -10.00000V 0000h CAUTION Analog input values contain data that is valid during the operation of the module.
5. Using the Memory Address Map Examples Flowchart Following is an example in which the ADI16-4(FIT)GY is installed at Device ID :0: Start Open proc essing Opened successfully? Determine category by reading address:301000h. Analog module type? For analog-type module, category is "02h". Set analog input range.
Page 61
5. Using the Memory Address Map Sample program /*========================================================================= F&eIT I/F Sample Program DEVICE ID: Channel: 0 to 3ch 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 62
5. Using the Memory Address Map WORD wStatus; BYTE byCategory; BYTE byRange; BYTE byModuleStart; BYTE byData[0x80]; BYTE byChCount; BYTE byErrorStatus; /* Open dwIpAddress = FIT_IpChenge((BYTE *)FIT_SAMPLE_IP_ADDRESS); hHandle = FIT_Open((BYTE *)&dwIpAddress, FIT_SAMPLE_PORT, NULL); if (hHandle == 0) { printf("Error! FIT_Open = %04X(H)\n", hHandle); return 1;...
Page 63
5. Using the Memory Address Map /* Read 'Error Status' */ dwVaBase = FIT_IO + FIT_IO_DEVICE_INFOR; wStatus = FIT_Read(hHandle, dwVaBase + dwVaOffset + FIT_ERROR_STATUS, 1, &byErrorStatus); if (wStatus != 0) { printf("Error! FIT_Read = %04X(H)\n", wStatus); if (byErrorStatus != 0x00) { printf("Error! Error Status = %02X(H)\n", byErrorStatus);...
6. System Reference Specifications Table 6.1. Specifications Specifications Item Voltage input Current input Analog input section Bus-isolated voltage input Bus-isolated current input Input format Bipolar ±10V 0 to 20mA Input range Maximum input ratings ±20V 30mA 1MΩ(Min.) 250Ω(Typ.) Input impedance Differential input, 4 channels Input channel 16-bit...
Page 66
6. System Reference Table 6.2. Installation Environment Requirements Parameter Requirement description Operating temperature 0 to 50°C Storage temperature -10 to 60°C Humidity 10% to 90%RH (No condensation) Floating dust particles Not to be excessive Corrosive gases None ADI16-4(FIT)GY...
Page 69
August 2018 Edition 3-9-31, Himesato, Nishiyodogawa-ku, Osaka 555-0025, Japan https://www.contec.com/ No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO., LTD. [08312018] [11202003] Management No. A-40-656 [08312018_rev6] Parts No.
Need help?
Do you have a question about the F&eIT Series and is the answer not in the manual?
Questions and answers