Contec DIO-8D(FIT)GY User Manual

Bi-directional digital input/output module

Advertisement

Quick Links

F&eIT Series
Bi-Directional Digital Input/Output Module
DIO-8D(FIT)GY
User's Manual
CONTEC CO.,LTD.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIO-8D(FIT)GY and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Contec DIO-8D(FIT)GY

  • Page 1 F&eIT Series Bi-Directional Digital Input/Output Module DIO-8D(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 [DIO-8D(FIT)GY] ...1...
  • Page 3: Copyright

    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. The information in this document is subject to change without notice.
  • Page 4: Table Of Contents

    Setup Method ..........................9 LED Indicator ........................... 10 CONNECTING TO AN EXTERNAL DEVICE Interface Connector .......................... 11 How to Connect an Interface Connector ................... 11 Signal Layout on the Interface Connector................. 12 External I/O Circuits......................... 13 Surge Voltage Countermeasures ...................... 14 DIO-8D(FIT)GY...
  • Page 5 Examples............................26 Software Mode........................... 26 USING THE MEMORY ADDRESS MAP Module Information Area ......................30 Module Information Area ......................34 Basic I/O Data Area ........................37 Examples............................38 SYSTEM REFERENCE Circuit Block Diagram........................43 Specifications............................ 44 Physical Dimensions......................... 45 DIO-8D(FIT)GY...
  • Page 6: Before Using The Product

    The product is used in combination with the I/O controller module <CPU-CAxx(FIT)GY> or microcontroller unit <CPU-SBxx(FIT)GY> in the F&eIT Series. A single DIO-8D(FIT)GY module provides up to eight TTL-level I/O channels. (TTL 5-V type) By reading this manual carefully, please build a system by creating applications programs, setting the switches, and connecting the module to external devices.
  • Page 7: Functions

    [High(5V): 0, Low(0V): 1]. Output The Module writes a maximum of 8 points (<DIO-8D(FIT)GY>) of digital signals in groups of 8 points to an external device. Access to the Module from a controller module is performed through the output port that is specified by means of a Device ID. When data is written to the output port by the execution of an output command, the data is held on the latch circuit that is associated with the output port.
  • Page 8: Functions And Control Method By Controller Connected

    1. Before Using the Product Functions and control method by controller connected There DIO-8D(FIT)GY can be connected to a variety of controllers. Supported controllers Microcontroller Unit : CPU-SBxx(FIT)GY I/O Controller Module : CPU-CAxx(FIT)GY Monitoring & Control Server Unit : SVR-MMF2(FIT) Monitoring &...
  • Page 9 Control over the web You can monitor collected data and manage the log over the web. You can use your familiar browser to easily make various settings. For details, refer to the reference manual for the SVR-MMF2(FIT), SVR-MMF(FIT)GY. DIO-8D(FIT)GY...
  • Page 10: Customer Support

    You can download updated driver software and differential files as well as sample programs available in several languages. Note! For product information Contact your retailer if you have any technical question about a CONTEC product or need its price, delivery time, or estimate information. Limited One-Year Warranty CONTEC F&eIT products are warranted by CONTEC CO., LTD.
  • Page 11: Safety Precautions

    Handling Precautions CAUTION 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 Operation of this equipment in a residential area is likely to cause harmful interference at his own expense. WARNING TO USER Change or modifications not expressly approved the manufacturer can void the user's authority to operate this equipment. DIO-8D(FIT)GY...
  • Page 13: Environment

    (3) Store the package at room temperature at a place free from direct sunlight, moisture, shock, vibration, magnetism, and static electricity. Disposal When disposing of the product, follow the disposal procedures stipulated under the relevant laws and municipal ordinances. DIO-8D(FIT)GY...
  • Page 14: Module Nomenclature And Settings

    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. DIO-8D(FIT)GY indicator 0 1 2 3 4 5 6 7 Device ID...
  • Page 15: Led Indicator

    2. Module Nomenclature and Settings LED Indicator Table 2.1. LED Indicator Name Function indicator Output indicator (XY0 - XY7): GREEN ON: Low Status LED OFF: High DIO-8D(FIT)GY...
  • Page 16: Connecting To An External Device

    Front screw type with connector stopper flange FRONT-MC1,5/12-STF-3,81 [made by Phoenix Contact Corp.] Applicable wire: AWG28-16 DIO-8D Figure 3.1. Connecting an Interface Connector and Connectors That Can Be Used CAUTION Removing the connector plug by grasping the cable can break the wire. DIO-8D(FIT)GY...
  • Page 17: Signal Layout On The Interface Connector

    XY 2 --- IN/OUT 2 XY 3 --- IN/OUT 3 N.C. XY 4 --- IN/OUT 4 XY 5 --- IN/OUT 5 Digital I/O: 4points XY 6 --- IN/OUT 6 XY 7 --- IN/OUT 7 Figure 3.2. Signal Layout on the Interface Connector DIO-8D(FIT)GY...
  • Page 18: External I/O Circuits

    Figure 3.3 shows the I/O circuit for the interface section of module. Signals are TTL-level, active low signals. Each signal is pulled up internally. Board External circuit PolySwitch +5V output 74LS245 10kΩ 22Ω Input/Output Figure 3.3. Data I/O Signal Circuit DIO-8D(FIT)GY...
  • Page 19: Surge Voltage Countermeasures

    Output pin Surge current Registor prevention registor Signal common Signal common Figure 3.4. Surge Voltage Countermeasure CAUTION In order for a protection circuit to operate effectively, it must be connected within 50cm of a load and a contact point. DIO-8D(FIT)GY...
  • Page 20: Using The I/O Address Map

    6840h - 685Fh 6880h - 689Fh 68C0h - 68DFh 7800h - 781Fh(recommended) 7840h - 785Fh 7880h - 789Fh 78C0h - 78DFh For detailed specifications on the I/O space that is managed by the controller module, see the controller module manual. DIO-8D(FIT)GY...
  • Page 21: List Of I/O Address Maps

    Edge Edge Edge Edge Edge Edge Edge Edge (1Dh) Reserved (1Fh) INxx is an input signal in input mode (IOSet = 1). OUTxx serves for monitoring output data (readback) in output mode (IOSet = 0). Figure 4.1. Input Port DIO-8D(FIT)GY...
  • Page 22 Mask Mask (19h) (1Bh) Interrupt Edge Setting 0 IN 07 IN 06 IN 05 IN 04 IN 03 IN 02 IN 01 IN 00 (1Ch) Edge Edge Edge Edge Edge Edge Edge Edge (1Dh) (1Fh) Figure 4.2. Output Port DIO-8D(FIT)GY...
  • Page 23: Specifications Common To F&Eit Products

    Figure 4.3. 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 DIO-8D(FIT)GY, the code is "1h".
  • Page 24 This bit enables an interrupt source. Setting the bit to “1” enables hardware interrupts to the controller module. IRQ* [D2 - D0]: The interrupt level used by the module is set in these bits. Setting any of the IRQs to “1” makes the signal on that IRQ active upon reception of an interrupt request. DIO-8D(FIT)GY...
  • Page 25: Interrupt Control Function

    When the interrupt function is used, therefore, the interrupt signal must be cleared within the interrupt handling program. Reading the interrupt status port clears the interrupt signal and the status in the port read at the same time. DIO-8D(FIT)GY...
  • Page 26 High to Low (upon “0” to “1” transition). If you set an interrupt edge select bit to “1”, an interrupt occurs when the input signal of the corresponding bit rises from Low to High (upon “1” to “0” transition). DIO-8D(FIT)GY...
  • Page 27: Digital Filter (Hardware)

    Bounce time m < Filter Setting Time a Input Signal Valid Filter Output Signal Dilay time 2a (Max.) Figure 4.8. Digital Filter Operation Principle Set Digital Filter Time Input Port Digital Filter Data (03h) Output Port Digital Filter Data (03h) Figure 4.9. Set Digital Filter Time DIO-8D(FIT)GY...
  • Page 28 The digital filter applies to all input channels; it cannot apply to specific input pins only. - Do not set the setting data to any value other than the above. Doing so may result in a malfunction. DIO-8D(FIT)GY...
  • Page 29: Data I/O Operations That Directly Access An I/O Port

    (10h) Figure 4.10. Input Port [Starting I/O Address +10h] Data can be input by using the input port [starting I/O address + 10h]. The DIO-8D(FIT)GY requires that [D0] (IOSet0) at “the starting I/O address + 15h” be “1”. When input is [Low], the corresponding bit for the input data will be [1]. Conversely, when input is [High], the corresponding bit for the input data will be [0].
  • Page 30: I/O Switching

    When powered on, the Module is in the input state. Monitoring the Output Data The state of the DIO-8D(FIT)GY can be read without affecting output data. Starting address output...
  • Page 31: Examples

    4. Using the I/O Address Map Examples Software Mode Flowchart Following is a description of an example where the DIO-8D(FIT)GY is installed at device ID: 0. Start <I/O Setting Input Mode?> I/O Setting Address: Reading address 15h tells the current I/O setting.
  • Page 32 4. Using the I/O Address Map DIO-8D(FIT)GY...
  • Page 33 4. Using the I/O Address Map DIO-8D(FIT)GY...
  • Page 34: Using The Memory Address Map

    5. Using the Memory Address Map 5. Using the Memory Address Map When connected to a CPU-CAxx(FIT)GY, DIO-8D(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.
  • Page 35: Module Information Area

    Table 5.1. Module Information Area (When the port I/O setting is “input”) Access Initial Initial Address(h) Area Item Size type value(h) settings Starting address+00 Module type (category) DIO-8D(FIT)GY Starting address+01 Module type (serial No.) Starting address+02 System-reserved None (revision No.) Starting address+03 Supported functions Basic input Starting address+04 Number of...
  • Page 36 Table 5.2. Module Settings Area (When the port I/O setting is “output”) Access Initial Initial Address(h) Area Item Size type value(h) settings Starting address+00 Module type (category) DIO-8D(FIT)GY Starting address+01 Module type (serial No.) Starting address+02 System-reserved None (revision No.) Starting address+03 Supported functions Basic output Starting address+04 Number of...
  • Page 37 Module type (category) The DIO-8D(FIT)GY belongs to the digital module (01h) category. Module type (serial No.) The DIO-8D(FIT)GY is a digital module with a serial No. 8 (08h). Supported functions The DIO-8D(FIT)GY supports the basic input function (03h). Basic input data takes digital values.
  • Page 38 5. Using the Memory Address Map Items common to modules Module startup register The DIO-8D(FIT)GY does not contain a module shutdown function. 01h : Module startup Error status The error status bits, which are not reflected in the module information area, always remain [00h].
  • Page 39: Module Information Area

    Module startup register Starting address+11 Error status Common to Starting address+12 Hardware Digital filter setting modules Starting address+13 Port I/O setting Starting address +14 Reserved None - Starting address+1F Starting address +20 Channel Reserved None - Starting address+7F settings DIO-8D(FIT)GY...
  • Page 40 Module startup register Starting address+11 Error status Common to Starting address+12 Hardware Digital filter setting modules Starting address+13 Port I/O setting Starting address +14 Reserved None - Starting address+1F Starting address +20 Channel Reserved None - Starting address+7F settings DIO-8D(FIT)GY...
  • Page 41 When the module is started, the contents of the module information area are stored in the module information area, with the exception of the [Module Startup Register] and the [Error Status]. Module startup register The DIO-8D(FIT)GY does not contain a module shutdown function. 01h : Module operating Error status This register stores the error status of the module.
  • Page 42: Basic I/O Data Area

    Starting address+01 Reserved - Starting address+7F Digital output values Output values OUT00 to OUT07 are stored as follows: Table 5.8. Digital Output Values OUT 07 OUT 06 OUT 05 OUT 04 OUT 03 OUT 02 OUT 01 OUT 00 OUT0 DIO-8D(FIT)GY...
  • Page 43: Examples

    5. Using the Memory Address Map Examples Flowchart The following flowchart illustrates an example where the DIO-8D(FIT)GY is installed at device ID: 0. Start <Digital I/O module type?> Address: Reading the address 301000h identifies the module type (category). If the module is a digital I/O module, the module type (category) will be [01h].
  • Page 44 (0x00) #define FIT_IO_SETTING_WRITE (0x01) /* Sample */ #define FIT_SAMPLE_IP_ADDRESS "192.168.1.1" #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 byIOSetting; BYTE byInputChannels; BYTE byOutputChannels; BYTE byData[0x80]; BYTE byChCount; DIO-8D(FIT)GY...
  • Page 45 (byCategory != FIT_PRODUCT_DIGITAL) { printf("Error! Category = %02X(H)\n", byCategory); FIT_Close(hHandle); return 1; /* Read 'IO Setting' wStatus = FIT_Read(hHandle, dwVaBase + dwVaOffset + FIT_IO_SETTING, 1, &byIOSetting); if (wStatus != 0) { printf("Error! FIT_Read = %04X(H)\n", wStatus); FIT_Close(hHandle); return 1; DIO-8D(FIT)GY...
  • Page 46 = FIT_Read(hHandle, dwVaBase + dwVaOffset + FIT_OUTPUT_CHANNELS, 1, &byOutputChannels); if (wStatus != 0) { printf("Error! FIT_Read = %04X(H)\n", wStatus); FIT_Close(hHandle); return 1; /* Write 'Output Data' */ for (byChCount = 0; byChCount < byOutputChannels; byChCount++) { byData[byChCount] = 0x55; printf("Output CH%d Data:%02X(H)\n", byChCount, byData[byChCount]); DIO-8D(FIT)GY...
  • Page 47 5. Using the Memory Address Map dwVaBase = FIT_IO + FIT_IO_OUTPUT; wStatus = FIT_Write(hHandle, dwVaBase + dwVaOffset, byOutputChannels, &byData[0]); if (wStatus != 0) { printf("Error! FIT_Write = %04X(H)\n", wStatus); FIT_Close(hHandle); return 1; /* Close */ FIT_Close(hHandle); return 0; DIO-8D(FIT)GY...
  • Page 48: System Reference

    6. System Reference 6. System Reference Circuit Block Diagram Interface Connector IN/OUT00 - OUT07 Output Data Latch Device ID Control Circuit Stack Connector Figure 6.1. Circuit Block Diagram <DIO-8D(FIT)GY> DIO-8D(FIT)GY...
  • Page 49: Specifications

    6. System Reference Specifications Table 6.1. Specifications Specifications Item DIO-8D(FIT)GY I/O section I/O format Unisolated TTL-Level I/O (Negative logic) Number of I/O signal points 8 points (8 points/common) Input pull-up resistor 100k Ω (1 common) Response time Within 200nsec Input rating Input voltage -0.5V - +5.5VDC...
  • Page 50: Physical Dimensions

    6. System Reference Physical Dimensions (1.2) (1.2) 0 1 2 3 4 5 6 7 Device DIO-8D 25.2 64.7 [mm] Figure 6.2. Physical Dimensions DIO-8D(FIT)GY...
  • Page 51 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. [09132012] [04192004] Management No. A-46-752 [09132012_rev5] Parts No. LYCQ034...

Table of Contents