CN201259629Y - Configurable I/O module for multiple bus interface - Google Patents

Configurable I/O module for multiple bus interface Download PDF

Info

Publication number
CN201259629Y
CN201259629Y CNU2007201988771U CN200720198877U CN201259629Y CN 201259629 Y CN201259629 Y CN 201259629Y CN U2007201988771 U CNU2007201988771 U CN U2007201988771U CN 200720198877 U CN200720198877 U CN 200720198877U CN 201259629 Y CN201259629 Y CN 201259629Y
Authority
CN
China
Prior art keywords
module
input
cpld
output
configurable
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
CNU2007201988771U
Other languages
Chinese (zh)
Inventor
应成
奚培锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Electrical Apparatus Research Institute Group Co Ltd
Original Assignee
Shanghai Electrical Apparatus Research Institute Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Electrical Apparatus Research Institute Group Co Ltd filed Critical Shanghai Electrical Apparatus Research Institute Group Co Ltd
Priority to CNU2007201988771U priority Critical patent/CN201259629Y/en
Application granted granted Critical
Publication of CN201259629Y publication Critical patent/CN201259629Y/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model relates to a configurable I/O module for various bus interfaces and comprises a communication controller, an internal bus I2C, an input and output module, a power supply, a master chip, an opto-coupling isolator and an indicator light; the controller is communicated with each module through the internal bus I2C and automatically scans the connected input and output module to determine the length of IO messages and the configuration files; the communication controller and the internal bus are connected with several IO modules to exchange data; when the connected input and output module changes or fails, the input and output module can automatically make detection, report error and stop working; the internal bus provides a 5V power supply for the IO modules; CPLD serves as a master chip and sends the inputted data to the communication controller or obtains the data to be outputted from the communication controller; the CPLD obtains the input data from an input port or outputs the data through an output port; the opto-coupling isolator is arranged between the CPLD and the input and output ports to protect a digital module and the internal bus; and the indicator light displays the current state of the input and output ports.

Description

The configurable I of multiple bus interface/O module
Affiliated field
The present invention relates to a kind of configurable I/O module, relate in particular to configurable I/O module, belong to the field bus communication technical field with multiple bus interface.
Background technology
Along with constantly advancing of modernization industry, people have higher requirement to the control of production run.The main flow direction intelligent, networked, microminiaturized, that the contemporary automated control technology of decentralized representative develops, and field bus technique impels automated system to comply with the advanced technology of this demand for development just.
Fieldbus I/O module is the critical piece of distributed system, various field devices that module is used for connecting industrial control system are as the switching value of field devices such as sensor, button, pilot lamp, valve, transmitter and input, the output signal of analog quantity, and signal is sent to controller by internal bus.The I/O module is the essential product that industrial automation is used, and has been widely used in industry-by-industries such as iron and steel, oil, chemical industry, electric power, building materials, machine-building, automobile, light textile, communications and transportation, environmental protection and entertainment.
At present, the I/O module of this technical field mostly is the I/O module of point of fixity number configuration greatly, each I/O module all disposes the communication adapter of a band bus interface, because the cost of communication adapter part is higher relatively, and the input and output point of each I/O module is few, makes this distributed controlling cost be difficult to descend.
The most single-chip microcomputers that adopt of present digital module CPU, speed is slower, makes that the scan period of this IO system is longer.
Therefore, be necessary the I/O module is improved.
Summary of the invention
The object of the present invention is to provide a kind of configurable I/O module with multiple bus interface, this I/O module can realize various functions according to particular demands with different types of I/O module combinations.
For achieving the above object, technical scheme of the present invention is: in configurable I/O, a communication controler passes through internal bus I2C and following each module communication, the quantity and the classification of the input/output module that autoscan connects, and definite IO message length and configuration file.Communication controler can be known and connected several IO modules on the internal bus altogether, is respectively what module, and with each IO module swap data.When the input/output module that connects change or fault after, can detect automatically, report an error and quit work.Adopt the CPLD chip to replace the master chip of traditional single-chip microcomputer as digital quantity IO, the I/O mouth of CPLD is used more flexible, and can reduce resolution element and wiring quantity on the pcb board.
Internal bus provides 5V power supply for the IO module simultaneously.CPLD is as the main control chip of digital module, the data of giving communication controler by the I2C bus with the data of input on the one hand or obtaining from communication controler exporting; On the other hand, CPLD is from input port acquisition input data or from the delivery outlet output data.There is light-coupled isolation to protect digital module and internal bus between CPLD and the input/output port.Pilot lamp shows the current state of input/output port.
Digital module is divided into 16 digital quantity inputs (following abbreviation 16I), 16 transistor outputs (following abbreviation 16O), 8 inputs of digital quantity, 8 outputs (following abbreviation 8I8O), 8 point relaies output (following abbreviation 8OR) these four modules.
Beneficial effect of the present invention: compare with present I/O module,
Below in conjunction with drawings and Examples to the technical scheme of the present invention detailed description of making comparisons.
Description of drawings
Fig. 1 is the configurable I/O modular structure figure of multiple bus interface of the present invention;
Fig. 2 is the power unit circuit diagram of the configurable I/O module of multiple bus interface of the present invention;
Fig. 3 is the CPLD chip importation circuit diagram of the configurable I/O module of multiple bus interface of the present invention;
Fig. 4 is the importation circuit diagram of the configurable I/O module of multiple bus interface of the present invention;
Fig. 5 is the transistor output circuit diagram of the configurable I/O module of multiple bus interface of the present invention;
Fig. 6 is the relay output circuit diagram of the configurable I/O module of multiple bus interface of the present invention;
Embodiment
With reference to Fig. 1, this is the configurable I/O modular structure figure of multiple bus interface of the present invention.
As shown in the figure, in configurable I/O, comprise communication controler (1), internal bus I2C (2), input/output module (3), power supply (4), main control chip (5), light-coupled isolation (6), pilot lamp (7);
A communication controler (1) passes through internal bus I2C (2) and following each module communication, the quantity and the classification of the input/output module (3) that autoscan connects, and definite IO message length and configuration file.Communication controler can be known and connected several IO modules on the internal bus altogether, is respectively what module, and with each IO module swap data.When the input/output module that connects change or fault after, can detect automatically, report an error and quit work.
Internal bus provides 5V power supply (4) for the IO module simultaneously.CPLD is as the main control chip (5) of digital module, the data of giving communication controler by the I2C bus with the data of input on the one hand or obtaining from communication controler exporting; On the other hand, CPLD is from input port acquisition input data or from the delivery outlet output data.There is light-coupled isolation (6) to protect digital module and internal bus between CPLD and the input/output port.Pilot lamp shows the current state of (7) input/output port.
Digital module is divided into 16 digital quantity inputs (following abbreviation 16I), 16 transistor outputs (following abbreviation 16O), 8 inputs of digital quantity, 8 outputs (following abbreviation 8I8O), 8 point relaies output (following abbreviation 8OR) these four modules.
With reference to Fig. 2, this is the power unit circuit diagram of the configurable I/O module of multiple bus interface of the present invention.
As shown in the figure, power unit mainly is to use three-terminal voltage-stabilizing chip U5 that the 5V that master controller provided is become 3.3V to be used for chip power supply.Two electric capacity of C9 and EC1 are used for energy storage and do
With reference to Fig. 3, this is the CPLD chip importation circuit diagram of the configurable I/O module of multiple bus interface of the present invention.
As shown in the figure, adopting the CPLD chip to replace the master chip of traditional single-chip microcomputer as digital quantity IO, is the design's important innovations point and inventive point.The I/O mouth of CPLD is used more flexible, and can reduce resolution element and wiring quantity on the pcb board.The confidentiality that CPLD is outstanding has well been protected a part of Key Circuit in the system.The importation circuit diagram.
With reference to Fig. 4, this is the importation circuit diagram of the configurable I/O module of multiple bus interface of the present invention.
As shown in the figure, the 24V of importation is provided by power module.Outside input voltage sends input signal to main chip CPLD through light-coupled isolation then through two electric resistance partial pressures, shunting.
With reference to Fig. 5, this is the transistor output circuit diagram of the configurable I/O module of multiple bus interface of the present invention.
As shown in the figure, the output signal of CPLD through light-coupled isolation, behind transistor increase driving power, but is delivered to the scene actuating equipment with signal.
With reference to Fig. 6, this is the relay output circuit diagram of the configurable I/O module of multiple bus interface of the present invention.
As shown in the figure, the output signal of CPLD through light-coupled isolation, behind transistor increase driving power, increases drive current but drive a relay, but signal is delivered to the scene actuating equipment.
About CPLD software, the present invention writes CPLD, and the Hardware Description Language VHDL of employing is confirmed as the standard hardware descriptive language by IEEE and U.S. Department of Defense, is mainly used in structure, behavior, function and the interface of describing digital display circuit.Except containing many statements with hardware characteristics, the linguistic form of VHDL and to describe style be that ten minutes is similar to general computer advanced language with sentence structure.Compare with other hardware description language, VHDL has stronger behavior description ability, and portable strong at different programmable logic device (PLD), thereby has determined him to become the hardware description language of system design field the best.
As follows with its effect of CPLD:
1, realizes the I2C bus interface with CPLD
CPLD hardware simulation I2C can expand the I/O mouth of main frame from machine controller, and can carry out a series of logical operation to I/O mouth line in CPLD inside.
The present invention is made up of multiple processes:
1) initial, stop signal is judged.According to the I2C bus protocols, monitor two I2C bus SCL, SDA, judge bus communication start signal and the stop signal sent by main frame, control whole communication process;
2) 8Bits shift register.Frame data add that by 8 bit data 1 response bits forms in the I2C bus communication, so adopt 8 shift register to receive the data of each frame of storage here.After receiving start signal, shift register is started working.Full 8 data with whole byte of meter are given I2C read-write state machine and are handled, and empty shift register.When receiving stop signal, shift register quits work;
3) counter.After receiving start signal, counter begins the counting to SCL, meets the stop signal counter O reset;
4) I2C bus read-write state machine.By counter controls, according to the I2C bus protocols, receive data and processing, send response bits and send data, finish the agreement of total system I2C communication;
5) IO mouth input, output.Being controlled by I2C read-write state machine, read in data and output data from the outside, is the interface of I2C from machine controller and outside, and it is convenient, flexible to revise, and speed is fast.Can be directly as importing, export or be with a plurality of equipment and main-machine communication.
2, the realization of configurable functionality
Configurable I/O is than point of fixity IO, and maximum characteristics are its dirigibilities.Communication controler is by inner I2C bus and following each module communication, the quantity and the classification of the input/output module that autoscan connects, and definite IO message length and configuration file, and with each IO module swap data.When the input/output module that connects change or fault after, can detect automatically, report an error and quit work.Internal communication protocol using is mainly finished in I2C read-write state machine, and the main communication process of configurable I/O comprises following process:
1) automatic reception communication controler addresses distributed.Each module powers on, communication controler and do not know below connect several digital modules.Digital module adopts the mode of cascade, and communication controler sends broadcasting command, and first digital quantity IO replys, communication controler give fixed address of first IO module assignment (before the next power down effectively, if power down, deallocation).After first digital quantity is assigned to the address, enables next digital module by the cascade enable line, and no longer receive broadcasting command.Communication controler sends broadcasting for the second time and distributes the address, and second digital quantity replied.By that analogy, up to distributing last piece, communication controler is noted total total what modules.So far, each beneath digital module has had an address, self address of using as this (outage before).
2) upload state byte and give communication controler.This process understands that in order to make communication controler each beneath digital quantity is respectively what module (digital quantity in the native system has four kinds of 16I, 16O, 8I8O, 8OR).Communication controler sends previous process addresses distributed successively, reads the state byte of following each IO, and each IO tells that communication controler is the module of what type.So far, communication controler has been known total several IO modules this time, is respectively what module, and with this information notification host computer.
3) read and write data.This procedures system enters the state of commencement of commercial operation, and communication controler carries out data write with each IO module of poll.The digital quantity input/output module receives and sends data, but and drive scene actuating equipment action.
3, the interference protection measure in the industrial environment
In order to guarantee the reliability of system, utilize the 21M oscillator of chip internal to take some interference protection measures.As the slave of I2C communication, scl line only is input.In SCL input rear end, add a d type flip flop, trigger pulse produces (as Fig. 4) by inner crystal oscillator.Be set to rising edge and trigger, make output Q=D, like this with respect at each rising edge of 21M crystal oscillator signal being sampled, the burr that produces between per two rising edges is just by filtering.Sda line is a bidirectional interface, and the processing of importation is the same with SCL.Owing to after the SDA signal process CPLD internal hardware circuit, also can produce burr, bus be caused interference, so before output, also will come filtering (as Fig. 4) through a d type flip flop.SCL, SDA signal are through after such processing, and the major part that can stop in the industrial environment is disturbed.

Claims (7)

1. the configurable I of one kind of multiple bus interface/O module, be used for different types of I/O module combinations, realize various functions, it is characterized in that: comprise communication controler (1), internal bus I2C (2), input/output module (3), power supply (4), main control chip (5), light-coupled isolation (6), pilot lamp (7);
Communication controler (1) is by internal bus I2C (2) and following each module communication, the input/output module (3) that autoscan connects is also determined IO message length and configuration file, several IO modules have been connected on communication controler and the internal bus altogether, and with each IO module swap data, when the input/output module that connects change or fault after, can detect automatically, report an error and quit work; Internal bus provides 5V power supply (4) for the IO module; CPLD is as main control chip (5); the data that the data of input are given communication controler or obtained from communication controler exporting; CPLD is from input port acquisition input data or from the delivery outlet output data; have light-coupled isolation (6) to protect digital module and internal bus between CPLD and the input/output port, pilot lamp (7) shows the current state of input/output port.
2, the configurable I of multiple bus interface as claimed in claim 1/O module, it is characterized in that: described each module, be digital module, be divided into the input of 16 digital quantities, transistor output, 8 inputs of digital quantities output, 8 point relaies are exported this four modules at 16 at 8.
3, the configurable I of multiple bus interface as claimed in claim 1/O module is characterized in that: described power supply (4), adopt three-terminal voltage-stabilizing chip U5, and the 5V that master controller provided is become 3.3V be used for chip power supply.
4, the configurable I of multiple bus interface as claimed in claim 1/O module, it is characterized in that: described CPLD chip input circuit (5), for the I/O mouth that makes CPLD is used more flexible, reduce resolution element and wiring quantity on the pcb board, adopt the CPLD chip to replace the master chip of single-chip microcomputer as digital quantity IO.
5, the configurable I of multiple bus interface as claimed in claim 1/O module, it is characterized in that: described importation circuit, 24V is provided by power module, and outside input voltage sends input signal to main chip CPLD through light-coupled isolation then through two electric resistance partial pressures, shunting.
6, the configurable I of multiple bus interface as claimed in claim 1/O module, it is characterized in that: described transistor output circuit, the output signal of CPLD, through light-coupled isolation, behind transistor increase driving power, but drive a relay drive current is increased, but signal is delivered to the scene actuating equipment.
7, the configurable I of multiple bus interface as claimed in claim 1/O module, it is characterized in that: described relay output circuit, the output signal of CPLD, through light-coupled isolation, behind transistor increase driving power, but drive a relay drive current is increased, but signal is delivered to the scene actuating equipment.
CNU2007201988771U 2007-12-05 2007-12-05 Configurable I/O module for multiple bus interface Expired - Lifetime CN201259629Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2007201988771U CN201259629Y (en) 2007-12-05 2007-12-05 Configurable I/O module for multiple bus interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2007201988771U CN201259629Y (en) 2007-12-05 2007-12-05 Configurable I/O module for multiple bus interface

Publications (1)

Publication Number Publication Date
CN201259629Y true CN201259629Y (en) 2009-06-17

Family

ID=40773867

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2007201988771U Expired - Lifetime CN201259629Y (en) 2007-12-05 2007-12-05 Configurable I/O module for multiple bus interface

Country Status (1)

Country Link
CN (1) CN201259629Y (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231616A (en) * 2010-01-29 2011-11-02 中山大洋电机制造有限公司 Motor controller of electronic drive motor and control method thereof
CN102591263A (en) * 2011-01-11 2012-07-18 浙江正泰中自控制工程有限公司 I/O (Input/Output) intelligent unit applied to DCS ( Data Communication System) system
WO2013143130A1 (en) * 2012-03-30 2013-10-03 中山大洋电机股份有限公司 Interface signal conversion sub-circuit board for dc brushless motor
CN104575397A (en) * 2015-02-09 2015-04-29 东华大学 Dynamic LED (Light Emitting Diode) display circuit capable of reducing occupation of I/O (input/output) port of microprocessor
CN105607589A (en) * 2014-11-13 2016-05-25 横河电机株式会社 Input-output apparatus
CN106292436A (en) * 2012-09-18 2017-01-04 中国铁道科学研究院机车车辆研究所 A kind of input/output module of rail traffic vehicles network system
CN109446145A (en) * 2018-10-30 2019-03-08 郑州云海信息技术有限公司 A kind of channel server master board I2C extended chip, circuit and control method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231616A (en) * 2010-01-29 2011-11-02 中山大洋电机制造有限公司 Motor controller of electronic drive motor and control method thereof
CN102591263A (en) * 2011-01-11 2012-07-18 浙江正泰中自控制工程有限公司 I/O (Input/Output) intelligent unit applied to DCS ( Data Communication System) system
CN102591263B (en) * 2011-01-11 2013-12-04 浙江正泰中自控制工程有限公司 I/O (Input/Output) intelligent unit applied to DCS ( Data Communication System) system
WO2013143130A1 (en) * 2012-03-30 2013-10-03 中山大洋电机股份有限公司 Interface signal conversion sub-circuit board for dc brushless motor
CN106292436A (en) * 2012-09-18 2017-01-04 中国铁道科学研究院机车车辆研究所 A kind of input/output module of rail traffic vehicles network system
CN105607589A (en) * 2014-11-13 2016-05-25 横河电机株式会社 Input-output apparatus
CN104575397A (en) * 2015-02-09 2015-04-29 东华大学 Dynamic LED (Light Emitting Diode) display circuit capable of reducing occupation of I/O (input/output) port of microprocessor
CN109446145A (en) * 2018-10-30 2019-03-08 郑州云海信息技术有限公司 A kind of channel server master board I2C extended chip, circuit and control method
CN109446145B (en) * 2018-10-30 2021-10-29 郑州云海信息技术有限公司 Server mainboard I2C channel expansion chip, circuit and control method

Similar Documents

Publication Publication Date Title
CN201259629Y (en) Configurable I/O module for multiple bus interface
CN104865457A (en) Universal detection board card
CN103823776A (en) Unibus in communication with master equipment and slave equipment and communication method
CN110245101B (en) Multi-communication interface data exchange board card and implementation system thereof
CN104156333A (en) FPGA-based UART multi-interface extension system and method
CN1964363A (en) Configurable I/O module with multiple bus interface
CN105279130A (en) Method for operating multiple I2C devices with same address
CN201716587U (en) Multi-channel current analog quantity conversion/distribution module
CN101854258B (en) Implementation method and device for eliminating communication chip failures
CN201335959Y (en) Multi-channel digital switch signal controller
CN103941625A (en) Can bus data transmission monitoring system
CN203720837U (en) Unibus for master-slave device communication
CN201489794U (en) LCM testing device
CN111026620B (en) Processing-based data visualization Processing system and method
CN203025276U (en) Tester of capacitive touch screen module
CN202659181U (en) Multifunctional well-washing monitoring control device
CN103019994B (en) Variable Baud rate serial communication interface circuit based on FPGA (field programmable gate array)
CN202886924U (en) Miniature PLC controller
CN112714105A (en) Embedded OPC UA protocol conversion system
CN205827188U (en) Interactive communication system based on auspicious sa MCU
CN200976600Y (en) Configurable I/O module having plurality of bus interface
CN201955776U (en) Novel I/O (input/output) bus
CN210294844U (en) Multi-communication control system based on STM32 controller
CN204965140U (en) Simple and easy controller that can be used to digit control machine tool human -computer interaction
CN202404580U (en) GPIO (general purpose input/output) control system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20090617

CX01 Expiry of patent term