CN206323394U - Intelligent bus switching controller - Google Patents
Intelligent bus switching controller Download PDFInfo
- Publication number
- CN206323394U CN206323394U CN201621484788.9U CN201621484788U CN206323394U CN 206323394 U CN206323394 U CN 206323394U CN 201621484788 U CN201621484788 U CN 201621484788U CN 206323394 U CN206323394 U CN 206323394U
- Authority
- CN
- China
- Prior art keywords
- bus
- data
- control unit
- serial communication
- communication
- 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.)
- Active
Links
Landscapes
- Control By Computers (AREA)
- Small-Scale Networks (AREA)
Abstract
本实用新型公开了一种智能总线转换控制器,包括转换控制器壳体、设于转换控制器壳体中的微控制单元和电源单元,以及与微控制单元信号连接的第一串行通信接口和第二串行通信接口;微控制单元用于接收总线通讯卡的数据,并将总线通讯卡传递的数据与存储的数据进行比较,判断总线通讯卡的总线类型,并调用对应的通讯协议转换程序,将总线通讯卡传递的数据转换为执行器可识别的数据;微控制单元用于接收所述执行器的数据,根据判断得出的总线通讯卡的总线类型,调用对应的通讯协议转换程序,将执行器传递的数据转换为总线通讯卡可识别的数据。其减少执行机构主控CPU的负荷及内存,同时实现各种现场总线的无缝转换或兼容。
The utility model discloses an intelligent bus conversion controller, which comprises a conversion controller housing, a micro control unit and a power supply unit arranged in the conversion controller housing, and a first serial communication interface connected with the micro control unit signal And the second serial communication interface; the micro control unit is used to receive the data of the bus communication card, compare the data transmitted by the bus communication card with the stored data, judge the bus type of the bus communication card, and call the corresponding communication protocol conversion The program converts the data transmitted by the bus communication card into data recognizable by the actuator; the micro-control unit is used to receive the data of the actuator, and calls the corresponding communication protocol conversion program according to the bus type of the bus communication card judged , to convert the data transmitted by the actuator into data recognizable by the bus communication card. It reduces the load and memory of the main control CPU of the actuator, and at the same time realizes the seamless conversion or compatibility of various field buses.
Description
技术领域technical field
本实用新型涉及总线通讯技术领域,特别涉及一种实现总线通讯卡与执行器的控制器数据交互的智能总线转换控制器。The utility model relates to the technical field of bus communication, in particular to an intelligent bus conversion controller for realizing data interaction between a bus communication card and a controller of an actuator.
背景技术Background technique
目前市场上智能执行机构控制方式有以下两种方式:At present, there are two ways of intelligent actuator control in the market:
第一种是采用传统控制方式,传统控制方式有开关信号及4-20mA模拟信号控制。常用的现场总线控制方式有PROFIBUS、FF、MODBUS、HART等。The first is to adopt the traditional control method, which has switch signal and 4-20mA analog signal control. Commonly used field bus control methods are PROFIBUS, FF, MODBUS, HART and so on.
第二种是采用现场总线控制方式。带现场总线的智能执行机构具有双向通信、参数在线标定、故障自诊断等多种控制技术要求的功能。同时需要使用的辅助设备少,无需任何隔离、转换和DI、DO、AI、AO等输入输出模块,同时减少大量信号电缆、电缆配件及相应的安装和检修工作。电动执行机构的智能化和现场总线化成为该领域技术的必然发展趋势,总线型智能电动执行机构带来了广阔的发展前景。The second is the use of fieldbus control. The intelligent actuator with field bus has functions required by various control technologies such as two-way communication, parameter online calibration, and fault self-diagnosis. At the same time, less auxiliary equipment needs to be used, no isolation, conversion and input and output modules such as DI, DO, AI, AO, etc., and a large number of signal cables, cable accessories and corresponding installation and maintenance work are reduced. The intelligence and fieldbus of electric actuators have become the inevitable development trend of technology in this field, and the bus-type intelligent electric actuators have brought broad development prospects.
然而每种现场总线与执行机构的通讯方式均为采用通讯卡与执行机构的控制器直接连接以进行数据交互,这样的电路结构造成了每种现场总线的智能执行机构都需要特别设计,以配置特定的硬件及软件,导致带现场总线的执行机构只能局限某个特定型号的产品,不但开发周期长,并且采用这种方式增加执行机构主控制器的工作负担和内存要求,同时增加了客户在总线产品选型及现场普通产品升级时造成了局限性与复杂性。当现场客户需要对普通智能执行器进行总线升级时,需要对硬件重新配置安装,增加操作环节及操作成本。有时候甚至需要更换整个执行机构,造成施工困难,改造周期长,改造成本增加。显然现有的智能执行机构具有一定的局限性,不能完全满足客户的需要及适应市场的需求。However, the communication mode between each fieldbus and the actuator is to use the communication card to directly connect with the controller of the actuator for data interaction. Such a circuit structure requires a special design for each fieldbus intelligent actuator to configure Due to the specific hardware and software, the actuator with fieldbus can only be limited to a certain type of product, which not only has a long development cycle, but also increases the workload and memory requirements of the main controller of the actuator in this way, and increases the customer’s Limitation and complexity are caused in the selection of bus products and the upgrade of common products on site. When on-site customers need to upgrade the bus of ordinary intelligent actuators, they need to reconfigure and install the hardware, which increases the operating links and operating costs. Sometimes it is even necessary to replace the entire actuator, resulting in difficult construction, long renovation period, and increased renovation costs. Obviously, the existing intelligent actuators have certain limitations, and cannot fully meet the needs of customers and adapt to the needs of the market.
发明内容Contents of the invention
本实用新型的目的是针对现有技术存在的不足,提供一种智能总线转换控制器,其减少执行机构主控CPU的负荷及内存,提高产品性能,增加产品的多样性及适应性,同时实现各种现场总线的无缝转换或兼容,减少辅助设备及简化升级改造时的操作过程,减少人工及设计成本。The purpose of this utility model is to provide an intelligent bus conversion controller for the deficiencies in the prior art, which reduces the load and memory of the main control CPU of the actuator, improves product performance, increases product diversity and adaptability, and simultaneously realizes The seamless conversion or compatibility of various field buses reduces auxiliary equipment and simplifies the operation process during upgrading and transformation, and reduces labor and design costs.
本实用新型的目的是采用下述方案实现的:一种智能总线转换控制器,包括转换控制器壳体、设于转换控制器壳体中的微控制单元和电源单元,以及与微控制单元信号连接的第一串行通信接口和第二串行通信接口;所述电源单元用于为整个转换控制器供电;所述第一串行通信接口用于实现多种总线通讯卡与微控制单元之间的数据交互;所述第二串行通信接口用于实现微控制单元与执行器的控制器之间的数据交互;所述微控制单元用于接收与第一串行通信接口连接的总线通讯卡的数据,并将与第一串行通信接口连接的总线通讯卡传递的数据的数据帧结构与存储的各种类型的现场总线数据的数据帧结构进行比较,判断与第一串行通信接口连接的总线通讯卡的总线类型,并调用对应的通讯协议转换程序,将与第一串行通信接口连接的总线通讯卡传递的数据进行分类整理,并转换为与第二串行通信接口连接的执行器可识别的数据后输出给该执行器;所述微控制单元用于接收所述执行器的数据,根据判断得出的与第一串行通信接口连接的总线通讯卡的总线类型,调用对应的通讯协议转换程序,将所述执行器传递的数据进行分类整理,并转换为与第一串行通信接口连接的总线通讯卡可识别的数据后发送给该总线通讯卡。The purpose of this utility model is achieved by adopting the following scheme: an intelligent bus conversion controller, including a conversion controller housing, a micro-control unit and a power supply unit located in the conversion controller housing, and a signal connection with the micro-control unit The first serial communication interface and the second serial communication interface connected; the power supply unit is used to supply power for the entire conversion controller; the first serial communication interface is used to realize the communication between various bus communication cards and the micro control unit The data interaction between; the second serial communication interface is used to realize the data interaction between the micro control unit and the controller of the actuator; the micro control unit is used to receive the bus communication connected with the first serial communication interface Card data, and compare the data frame structure of the data transmitted by the bus communication card connected to the first serial communication interface with the data frame structure of various types of field bus data stored, and judge whether it is compatible with the first serial communication interface The bus type of the connected bus communication card, and call the corresponding communication protocol conversion program to classify and organize the data transmitted by the bus communication card connected to the first serial communication interface, and convert it into the data transmitted by the bus communication card connected to the second serial communication interface. The executor can output the identifiable data to the executor; the micro-control unit is used to receive the data of the executor, and call The corresponding communication protocol conversion program classifies and organizes the data transmitted by the actuator, converts the data into data recognizable by the bus communication card connected to the first serial communication interface, and sends it to the bus communication card.
本实用新型的转换控制器选用具有串行通信接口电路的MCU进行数据收发及数据转换,其与各个通讯卡接口可以设计为统一接口,以实现各种通讯卡的兼容。只需在MCU内配置不同的通讯协议转换程序,来对PROFIBUS总线通讯卡或FF总线通讯卡或MODBUS总线通讯卡或HART总线通讯卡的数据进行处理和转换,就能实现不同现场总线与执行控制机构的通讯功能。The conversion controller of the utility model selects an MCU with a serial communication interface circuit for data transmission and reception and data conversion, and its interface with each communication card can be designed as a unified interface to realize the compatibility of various communication cards. It only needs to configure different communication protocol conversion programs in the MCU to process and convert the data of PROFIBUS bus communication card or FF bus communication card or MODBUS bus communication card or HART bus communication card to realize different fieldbus and execution control Organizational communication functions.
对于如PROFIBUS总线或FF总线或MODBUS总线或HART总线等具有标准协议的现场总线而言,本实用新型通过转换控制器能够对来自各种通讯卡解析的数据进行识别并对数据进行分类整理,以在各种具有标准通信协议通信卡与执行机构控制器进行数据交互,并最终实现在这些现场总线与执行机构控制器进行数据交互。但是对于没有标准通信协议的现场总线而言,本实用新型的处理方式是,增加一个逻辑检测电路,该逻辑检测电路与微控制单元连接,该逻辑检测电路用于为强制执行非标准通讯协议的转换提供判断依据。For field buses with standard protocols such as PROFIBUS bus or FF bus or MODBUS bus or HART bus, the utility model can identify and classify the data analyzed from various communication cards through the conversion controller, so as to Data interaction between various communication cards with standard communication protocols and actuator controllers, and finally realize data interaction between these field buses and actuator controllers. But for the field bus without standard communication protocol, the processing method of the present invention is to add a logic detection circuit, which is connected with the micro control unit, and the logic detection circuit is used for enforcing non-standard communication protocol Transformation provides a basis for judgment.
所述逻辑检测电路用于检测人工干预信号,并将检测到的人工干预信号传递给微控制单元,所述微控制单元用于接收逻辑检测电路传递的人工干预信号,且判断人工干预信号有效时,强制执行预先设定的某种通讯协议转换程序,不再判断与第一串行通信接口连接的总线通讯卡的总线类型,从而完成这些没有标准协议的现场总线与执行机构控制器进行数据交互。人工干预信号可以是硬接跳线信号,也可以是开关信号(如按钮开关信号)或者指令信号等等。因为人工干预的方式很多,所以只要是能够触发微控制单元强制执行预先设定的某种通讯协议转换程序的方式都是本实用新型所要保护的方案。The logic detection circuit is used to detect the manual intervention signal, and transmit the detected manual intervention signal to the micro control unit, and the micro control unit is used to receive the manual intervention signal transmitted by the logic detection circuit, and judge that the manual intervention signal is valid , enforce a pre-set communication protocol conversion program, and no longer judge the bus type of the bus communication card connected to the first serial communication interface, so as to complete the data interaction between these field buses without standard protocols and the actuator controller . The manual intervention signal can be a hard-connected jumper signal, or a switch signal (such as a button switch signal) or a command signal, etc. Because there are many ways of manual intervention, as long as it can trigger the micro-control unit to forcibly execute a certain communication protocol conversion program set in advance, it is the solution to be protected by the utility model.
所述微控制单元与第一串行通信接口之间设有电平转换电路,所述电平转换电路用于转换符合转换器微控制单元以及通讯卡要求的电平信号。即电平转换电路将第一串行通信接口接收的电平信号转换为符合微控制单元要求的电平信号后传递给微控制单元,以及将微控制单元输出的电平信号转换为符合通讯卡要求的电平信号后经过第一串行通信接口传递给通讯卡。A level conversion circuit is provided between the micro control unit and the first serial communication interface, and the level conversion circuit is used to convert level signals meeting the requirements of the converter micro control unit and the communication card. That is, the level conversion circuit converts the level signal received by the first serial communication interface into a level signal that meets the requirements of the micro control unit and then transmits it to the micro control unit, and converts the level signal output by the micro control unit into a level signal that meets the requirements of the communication card. The required level signal is then transmitted to the communication card through the first serial communication interface.
所述微控制单元与第一串行通信接口之间设有光耦隔离电路,通讯信号通过光耦进行隔离,以提高抗干扰性能,保护微控制单元电路。An optocoupler isolation circuit is provided between the micro control unit and the first serial communication interface, and the communication signal is isolated by the optocoupler to improve the anti-interference performance and protect the micro control unit circuit.
所述微控制单元中存储有对应于各种通讯协议的字节表、各种通讯协议的通讯帧结构以及各种总线类型对应的通讯协议转换程序。当然,本实用新型也可以先不在微控制单元内设置各种通讯协议的字节表、各种通讯协议的通讯帧结构以及各种总线类型对应的通讯协议转换程序,而是根据要连接的通讯卡的类型在微控制单元内定制对应的通讯协议转换程序进行通讯协议转换。The micro-control unit stores byte tables corresponding to various communication protocols, communication frame structures of various communication protocols, and communication protocol conversion programs corresponding to various bus types. Of course, the utility model can also not set byte lists of various communication protocols, communication frame structures of various communication protocols, and communication protocol conversion programs corresponding to various bus types in the micro-control unit, but according to the communication protocol to be connected According to the type of the card, a corresponding communication protocol conversion program is customized in the micro control unit to perform communication protocol conversion.
所述第二串行通信接口为与执行器匹配的串行通信接口,执行器为智能执行机构或智能仪表。The second serial communication interface is a serial communication interface matched with the actuator, and the actuator is an intelligent actuator or an intelligent instrument.
第一串行通信接口为一个与多种类型的总线通讯卡都能匹配的串行通信接口,如该第一串行通信接口可设计为与各种市场通用的总线通讯卡(如PROFIBUS总线通讯卡、FF总线通讯卡、MODBUS总线通讯卡、HART总线通讯卡等)都匹配的接口,该接口可以是UART、SPI、I2C等串行接口。当然我们也可以将每种总线通讯卡的接口设计为兼容统一。The first serial communication interface is a serial communication interface that can be matched with various types of bus communication cards, such as the first serial communication interface can be designed as a bus communication card (such as PROFIBUS bus communication) Card, FF bus communication card, MODBUS bus communication card, HART bus communication card, etc.) all match the interface, the interface can be UART, SPI, I2C and other serial interfaces. Of course, we can also design the interface of each bus communication card to be compatible and unified.
智能总线转换控制器设有备用的冗余接口。The intelligent bus conversion controller has a redundant redundant interface.
用于实现总线通讯卡与微控制单元之间数据交互的第一串行通信接口设置多个,一个第一串行通信接口匹配一种类型的总线通讯卡,多个第一串行通信接口分别匹配相同类型或者多种类型的总线通讯卡即本实用新型可以并列多种类型的第一串行通信接口。There are multiple first serial communication interfaces for realizing data interaction between the bus communication card and the micro control unit, one first serial communication interface matches one type of bus communication card, and the plurality of first serial communication interfaces are respectively Match the same type or multiple types of bus communication cards, that is, the utility model can parallel multiple types of first serial communication interfaces.
所述微控制单元内设有存储模块、数据发送接收模块、比较判断模块以及通讯协议转换模块,所述存储模块用于存储各种类型现场总线数据以及各种总线类型对应的通讯协议转换程序;所述数据发送接收模块用于接收、发送数据,所述比较判断模块,用于将数据发送接收模块接收的数据与存储模块中的数据进行比较,得出所需要进行通讯的现场总线类型;所述通讯协议转换模块,根据比较判断模块得出的现场总线类型,调用适用于所述现场总线类型的通讯协议转换程序对数据进行分类整理,并转换为执行控制器或者总线通讯卡可识别的数据格式输出,所述微控制单元内还设有硬件判断模块,所述硬件判断模块用于监测人工干预信号,判断人工干预信号有效时,强制执行预先设定的现场总线类型来进行通讯协议转换,而不必再通过比较判断模块来判断现场总线类型。The micro-control unit is provided with a storage module, a data sending and receiving module, a comparison and judgment module, and a communication protocol conversion module, and the storage module is used to store various types of field bus data and communication protocol conversion programs corresponding to various bus types; The data sending and receiving module is used to receive and send data, and the comparison and judgment module is used to compare the data received by the data sending and receiving module with the data in the storage module to obtain the required field bus type for communication; The communication protocol conversion module calls the communication protocol conversion program suitable for the field bus type according to the field bus type obtained by the comparison and judgment module to classify and organize the data, and converts it into a data format recognizable by the executive controller or the bus communication card Output, the micro-control unit is also provided with a hardware judgment module, the hardware judgment module is used to monitor the manual intervention signal, and when the manual intervention signal is judged to be valid, the pre-set field bus type is enforced to convert the communication protocol, and It is no longer necessary to judge the field bus type by comparing and judging modules.
本实用新型具有的优点是:由于本实用新型的智能总线转换控制器包括转换控制器壳体、设于转换控制器壳体中的微控制单元和电源单元,以及与微控制单元信号连接的第一串行通信接口和第二串行通信接口。本实用新型的智能总线转换控制器与执行器是分开的,本实用新型的智能总线转换控制器的第一串行通信接口可以与各种总线通讯卡连接,通过对本实用新型的总线转换控制器配置不同的协议转换程序或各种通讯协议转换程序及各种总线通讯卡就能实现各种现场总线的无缝转换或兼容,可以将执行机构控制器与多种现场总线进行通讯,提高技术能力及执行器产品的多样性,不再将执行器局限在某个特定型号的产品,本实用新型使得执行器彻底改变了这种局限性,满足客户不同时期的需求。The utility model has the advantages that: because the intelligent bus conversion controller of the present invention includes a conversion controller housing, a micro-control unit and a power supply unit arranged in the conversion controller housing, and a first signal connection with the micro-control unit A serial communication interface and a second serial communication interface. The intelligent bus switching controller of the utility model is separated from the actuator, and the first serial communication interface of the intelligent bus switching controller of the utility model can be connected with various bus communication cards, through the bus switching controller of the utility model Different protocol conversion programs or various communication protocol conversion programs and various bus communication cards can be configured to realize seamless conversion or compatibility of various field buses, and the actuator controller can communicate with various field buses to improve technical capabilities. And the diversity of actuator products, the actuator is no longer limited to a certain type of product, the utility model makes the actuator completely change this limitation, and meets the needs of customers in different periods.
所述微控制单元内还设有硬件判断模块,所述硬件判断模块用于监测人工干预信号,判断人工干预信号有效时,强制执行预先设定的现场总线类型来进行通讯协议转换,而不必再通过比较判断模块来判断现场总线类型。这样的目的是预先进行人工干预强制选择总线转换类型,减少软件工作步骤,提高转换速度,并增加了通讯卡选择的多样性。The micro control unit is also provided with a hardware judging module, the hardware judging module is used to monitor the manual intervention signal, when judging that the manual intervention signal is valid, the pre-set field bus type is enforced to convert the communication protocol without further The field bus type is judged by comparing and judging modules. The purpose of this is to carry out manual intervention in advance to force the selection of the bus conversion type, reduce software work steps, improve conversion speed, and increase the diversity of communication card selection.
在总线通讯卡与执行机构控制器之间加入本实用新型的智能总线转换控制器以进行中间层数据转换,在性能上可以减少执行机构控制器的任务及内存空间的要求,提高控制精度和响应速度。在开发成本及经济效益上可以降低对执行机构控制器(MCU)的串行通信接口电路的要求,执行机构控制器不需要配置多个串口来实现多总线以及冗余要求,无需更换执行机构控制器,对其重新设计;只需增加本实用新型的总线转换控制器就能实现相应的现场总线控制功能,减少了设计开发周期,节约设计成本,快速响应市场,产生经济效益。同时还可以对转换控制器的其他串行通信接口进行通道扩展,实现通信冗余技术,即使某个通道发生故障时,执行机构仍能正常运行,提高通信网络的安全性。The intelligent bus conversion controller of the present invention is added between the bus communication card and the controller of the actuator to convert data in the middle layer, which can reduce the tasks of the controller of the actuator and the requirements for memory space in terms of performance, and improve the control accuracy and response. speed. In terms of development cost and economic benefits, the requirements for the serial communication interface circuit of the actuator controller (MCU) can be reduced. The actuator controller does not need to configure multiple serial ports to achieve multi-bus and redundancy requirements, and there is no need to replace the actuator control The device can be redesigned; the corresponding field bus control function can be realized only by adding the bus conversion controller of the utility model, which reduces the design and development cycle, saves design costs, responds quickly to the market, and generates economic benefits. At the same time, it can also expand the channels of other serial communication interfaces of the conversion controller to realize communication redundancy technology. Even if a channel fails, the actuator can still operate normally, improving the security of the communication network.
附图说明Description of drawings
图1为本实用新型的智能总线转换控制器的硬件原理框图;Fig. 1 is the hardware functional block diagram of intelligent bus conversion controller of the present utility model;
图2为本实用新型的智能总线转换控制器的流程框图。Fig. 2 is a block flow diagram of the intelligent bus conversion controller of the present invention.
具体实施方式detailed description
参见图1和图2,一种智能总线转换控制器,包括转换控制器壳体、设于转换控制器壳体中的微控制单元和电源单元,以及与微控制单元信号连接的第一串行通信接口和第二串行通信接口;所述电源单元用于为整个转换控制器供电;所述微控制单元中存储有对应于各种通讯协议的字节表、各种通讯协议的通讯帧结构以及各种总线类型对应的通讯协议转换程序。所述第一串行通信接口用于实现多种总线通讯卡与微控制单元之间的数据交互;所述第二串行通信接口用于实现微控制单元与执行器的控制器之间的数据交互;所述微控制单元用于接收与第一串行通信接口连接的总线通讯卡的数据,并将与第一串行通信接口连接的总线通讯卡传递的数据与存储的各种类型的现场总线数据进行比较,判断与第一串行通信接口连接的总线通讯卡的总线类型,并调用对应的通讯协议转换程序,将与第一串行通信接口连接的总线通讯卡传递的数据进行分类整理,并转换为与第二串行通信接口连接的执行器可识别的数据后输出给该执行器;所述微控制单元用于接收所述执行器的数据,根据判断得出的与第一串行通信接口连接的总线通讯卡的总线类型,调用对应的通讯协议转换程序,将所述执行器传递的数据进行分类整理,并转换为与第一串行通信接口连接的总线通讯卡可识别的数据后发送给该总线通讯卡。所述第二串行通信接口为与执行器匹配的串行通信接口,执行器为智能执行机构或智能仪表。Referring to Fig. 1 and Fig. 2, an intelligent bus conversion controller includes a conversion controller housing, a micro-control unit and a power supply unit arranged in the conversion controller housing, and a first serial bus connected to the micro-control unit A communication interface and a second serial communication interface; the power supply unit is used to supply power to the entire conversion controller; byte tables corresponding to various communication protocols and communication frame structures of various communication protocols are stored in the micro control unit And the communication protocol conversion program corresponding to various bus types. The first serial communication interface is used to realize the data interaction between various bus communication cards and the micro-control unit; the second serial communication interface is used to realize the data exchange between the micro-control unit and the controller of the actuator Interaction; the micro control unit is used to receive the data of the bus communication card connected with the first serial communication interface, and combine the data transmitted by the bus communication card connected with the first serial communication interface with various types of on-site stored Comparing the bus data, judging the bus type of the bus communication card connected to the first serial communication interface, and calling the corresponding communication protocol conversion program, sorting out the data transmitted by the bus communication card connected to the first serial communication interface , and convert it into data recognizable by the actuator connected to the second serial communication interface, and then output it to the actuator; The bus type of the bus communication card connected to the serial communication interface, call the corresponding communication protocol conversion program, classify and organize the data transmitted by the actuator, and convert it into a bus communication card connected to the first serial communication interface. The data is then sent to the bus communication card. The second serial communication interface is a serial communication interface matched with the actuator, and the actuator is an intelligent actuator or an intelligent instrument.
所述微控制单元与第一串行通信接口之间设有电平转换电路,所述电平转换电路用于将接收的电平信号转换为符合要求电压伏值的电平信号输出。即电平转换电路将第一串行通信接口接收的电平信号转换为符合微控制单元要求的电平信号后传递给微控制单元,以及将微控制单元输出的电平信号转换为符合通讯卡要求的电平信号后传递给第一串行通信接口。所述微控制单元与第一串行通信接口之间设有隔离电路。A level conversion circuit is provided between the micro control unit and the first serial communication interface, and the level conversion circuit is used to convert the received level signal into a level signal that meets the required voltage value for output. That is, the level conversion circuit converts the level signal received by the first serial communication interface into a level signal that meets the requirements of the micro control unit and then transmits it to the micro control unit, and converts the level signal output by the micro control unit into a level signal that meets the requirements of the communication card. The required level signal is then transmitted to the first serial communication interface. An isolation circuit is provided between the micro control unit and the first serial communication interface.
第一串行通信接口为一个与多种类型的总线通讯卡都能匹配的串行通信接口,如该第一串行通信接口可设计为与各种市场通用的总线通讯卡(如PROFIBUS总线通讯卡、FF总线通讯卡、MODBUS总线通讯卡、HART总线通讯卡等)都匹配的接口,该接口可以是UART、SPI、I2C等串行接口。当然我们也可以将每种总线通讯卡的接口设计为兼容统一。智能总线转换控制器设有备用的冗余接口。本实施例总线转换控制器的控制芯片选用具有多个异步串行通信接口(UART)的MCU进行数据接发,多个异步串行通信接口是指设有备用的冗余接口,备用的冗余接口可设置一个或一个以上。本实施例的采用具有3个串行通信接口的MCU进行数据收发及数据转换,其中两个串行通信接口用于实现多种总线通讯卡与微控制单元之间的数据交互,这两个串行通信接口1、2之间一个为备用的冗余接口。与各个通讯卡接口设计为统一接口,以实现各种通讯卡的兼容。另外一个串行通信接口3用于实现微控制单元与执行器的控制器之间的数据交互。The first serial communication interface is a serial communication interface that can be matched with various types of bus communication cards, such as the first serial communication interface can be designed as a bus communication card (such as PROFIBUS bus communication) Card, FF bus communication card, MODBUS bus communication card, HART bus communication card, etc.) all match the interface, the interface can be UART, SPI, I2C and other serial interfaces. Of course, we can also design the interface of each bus communication card to be compatible and unified. The intelligent bus conversion controller has a redundant redundant interface. The control chip of the bus conversion controller of this embodiment selects the MCU with a plurality of asynchronous serial communication interfaces (UART) for data transmission and reception. One or more interfaces can be set. In this embodiment, the MCU with three serial communication interfaces is used for data transmission and reception and data conversion, and two serial communication interfaces are used to realize data interaction between various bus communication cards and micro control units. One of the communication interfaces 1 and 2 is a backup redundant interface. The interface with each communication card is designed as a unified interface to realize the compatibility of various communication cards. Another serial communication interface 3 is used to realize data interaction between the micro control unit and the controller of the actuator.
当然,本实用新型用于实现总线通讯卡与微控制单元之间数据交互的第一串行通信接口还可以设置多个,一个第一串行通信接口匹配一种类型的总线通讯卡,多个第一串行通信接口分别匹配相同类型或者多种类型的总线通讯卡。Certainly, the first serial communication interface that this utility model is used to realize the data interaction between the bus communication card and the micro control unit can also set multiple, one first serial communication interface matches a type of bus communication card, multiple The first serial communication interfaces match the same type or multiple types of bus communication cards respectively.
当本智能总线转换控制器的第一串行通信接口连接PROFIBUS总线通讯卡时,所述微控制单元接收PROFIBUS总线通讯卡的数据,并将PROFIBUS总线通讯卡传递的数据与存储的各种类型的现场总线数据进行比较,判断得出PROFIBUS总线通讯卡的总线类型或所需要进行通讯的现场总线类型为PROFIBUS总线,并调用适用于PROFIBUS总线的通讯协议转换程序,将PROFIBUS总线通讯卡传递的数据进行分类整理,并转换为与第二串行通信接口连接的执行器可识别的数据后输出给该执行器;所述微控制单元接收所述执行器的数据,调用适用于PROFIBUS总线的通讯协议转换程序,将所述执行器传递的数据进行分类整理,并转换为PROFIBUS总线通讯卡可识别的数据后发送给该PROFIBUS总线通讯卡。When the first serial communication interface of the intelligent bus conversion controller is connected to the PROFIBUS bus communication card, the micro-control unit receives the data of the PROFIBUS bus communication card, and combines the data transmitted by the PROFIBUS bus communication card with the stored various types of Comparing the field bus data, it is judged that the bus type of the PROFIBUS bus communication card or the field bus type required for communication is PROFIBUS bus, and the communication protocol conversion program suitable for PROFIBUS bus is called to convert the data transmitted by the PROFIBUS bus communication card Sorting and sorting, and converting it into data recognizable by the actuator connected to the second serial communication interface, and then outputting it to the actuator; the micro-control unit receives the data of the actuator, and calls the communication protocol conversion applicable to the PROFIBUS bus The program classifies and organizes the data transmitted by the actuator, and converts the data into data recognizable by the PROFIBUS communication card and sends it to the PROFIBUS communication card.
当本智能总线转换控制器的第一串行通信接口连接FF总线通讯卡时,所述微控制单元接收FF总线通讯卡的数据,并将FF总线通讯卡传递的数据与存储的各种类型的现场总线数据进行比较,判断得出FF总线通讯卡的总线类型或所需要进行通讯的现场总线类型为FF总线,并调用适用于FF总线的通讯协议转换程序,将FF总线通讯卡传递的数据进行分类整理,并转换为与第二串行通信接口连接的执行器可识别的数据后输出给该执行器;所述微控制单元接收所述执行器的数据,调用适用于FF总线的通讯协议转换程序,将所述执行器传递的数据进行分类整理,并转换为FF总线通讯卡可识别的数据后发送给该FF总线通讯卡。When the first serial communication interface of the intelligent bus conversion controller is connected to the FF bus communication card, the micro-control unit receives the data of the FF bus communication card, and combines the data transmitted by the FF bus communication card with the stored various types of Comparing the field bus data, it is judged that the bus type of the FF bus communication card or the field bus type required for communication is the FF bus, and the communication protocol conversion program suitable for the FF bus is called to convert the data transmitted by the FF bus communication card Sorting and sorting, and converting it into data recognizable by the actuator connected to the second serial communication interface, and then outputting it to the actuator; the micro-control unit receives the data of the actuator, and calls the communication protocol conversion applicable to the FF bus The program classifies and organizes the data transmitted by the actuator, converts them into data recognizable by the FF bus communication card, and sends them to the FF bus communication card.
当本智能总线转换控制器的第一串行通信接口连接MODBUS总线通讯卡时,所述微控制单元接收MODBUS总线通讯卡的数据,并将MODBUS总线通讯卡传递的数据与存储的各种类型的现场总线数据进行比较,判断得出MODBUS总线通讯卡的总线类型或所需要进行通讯的现场总线类型为MODBUS总线,并调用适用于MODBUS总线的通讯协议转换程序,将MODBUS总线通讯卡传递的数据进行分类整理,并转换为与第二串行通信接口连接的执行器可识别的数据后输出给该执行器;所述微控制单元接收所述执行器的数据,调用适用于MODBUS总线的通讯协议转换程序,将所述执行器传递的数据进行分类整理,并转换为MODBUS总线通讯卡可识别的数据后发送给该MODBUS总线通讯卡。When the first serial communication interface of the intelligent bus conversion controller is connected to the MODBUS bus communication card, the micro-control unit receives the data of the MODBUS bus communication card, and combines the data transmitted by the MODBUS bus communication card with the stored various types of Comparing the field bus data, it is judged that the bus type of the MODBUS bus communication card or the field bus type required for communication is the MODBUS bus, and the communication protocol conversion program suitable for the MODBUS bus is called to convert the data transmitted by the MODBUS bus communication card Sorting and sorting, and converting it into data recognizable by the actuator connected to the second serial communication interface, and then outputting it to the actuator; the micro-control unit receives the data of the actuator, and calls the communication protocol conversion applicable to the MODBUS bus The program classifies and arranges the data transmitted by the actuator, converts the data into data recognizable by the MODBUS communication card, and sends it to the MODBUS communication card.
当本智能总线转换控制器的第一串行通信接口连接HART总线通讯卡时,所述微控制单元接收HART总线通讯卡的数据,并将HART总线通讯卡传递的数据与存储的各种类型的现场总线数据进行比较,判断得出HART总线通讯卡的总线类型或所需要进行通讯的现场总线类型为HART总线,并调用适用于HART总线的通讯协议转换程序,将HART总线通讯卡传递的数据进行分类整理,并转换为与第二串行通信接口连接的执行器可识别的数据后输出给该执行器;所述微控制单元接收所述执行器的数据,调用适用于HART总线的通讯协议转换程序,将所述执行器传递的数据进行分类整理,并转换为HART总线通讯卡可识别的数据后发送给该HART总线通讯卡。When the first serial communication interface of the intelligent bus conversion controller is connected to the HART bus communication card, the micro-control unit receives the data of the HART bus communication card, and combines the data transmitted by the HART bus communication card with the stored various types of Comparing the field bus data, it is judged that the bus type of the HART bus communication card or the field bus type required for communication is the HART bus, and the communication protocol conversion program suitable for the HART bus is called to convert the data transmitted by the HART bus communication card Sorting and sorting, and converting it into data recognizable by the actuator connected to the second serial communication interface, and then outputting it to the actuator; the micro-control unit receives the data of the actuator, and calls the communication protocol conversion applicable to the HART bus The program classifies and organizes the data transmitted by the actuator, and converts the data into data recognizable by the HART bus communication card and sends it to the HART bus communication card.
本实用新型的转换控制器选用具有串行通信接口电路的MCU进行数据收发及数据转换,其与各个通讯卡接口可以设计为统一接口,以实现各种通讯卡的兼容。只需在MCU内配置不同的通讯协议转换程序,来对PROFIBUS总线通讯卡或FF总线通讯卡或MODBUS总线通讯卡或HART总线通讯卡等总线通讯卡传递的数据进行处理和转换,就能实现不同现场总线与执行控制机构的通讯功能。The conversion controller of the utility model selects an MCU with a serial communication interface circuit for data transmission and reception and data conversion, and its interface with each communication card can be designed as a unified interface to realize the compatibility of various communication cards. Only need to configure different communication protocol conversion programs in the MCU to process and convert the data transmitted by bus communication cards such as PROFIBUS bus communication card or FF bus communication card or MODBUS bus communication card or HART bus communication card, so as to realize different The communication function between the field bus and the executive control mechanism.
对于如PROFIBUS总线或FF总线或MODBUS总线或HART总线等具有标准协议的现场总线而言,本实用新型通过转换控制器能够对来自各种通讯卡解析的数据进行识别并对数据进行分类整理,以在各种具有标准通信协议通信卡与执行机构控制器进行数据交互,并最终实现在这些现场总线与执行机构控制器进行数据交互。但是对于没有标准通信协议的现场总线而言,本实用新型的处理方式是,增加一个逻辑检测电路,该逻辑检测电路与微控制单元连接,该逻辑检测电路用于为强制执行非标准通讯协议的转换提供判断依据。For field buses with standard protocols such as PROFIBUS bus or FF bus or MODBUS bus or HART bus, the utility model can identify and classify the data analyzed from various communication cards through the conversion controller, so as to Data interaction between various communication cards with standard communication protocols and actuator controllers, and finally realize data interaction between these field buses and actuator controllers. But for the field bus without standard communication protocol, the processing method of the present invention is to add a logic detection circuit, which is connected with the micro control unit, and the logic detection circuit is used for enforcing non-standard communication protocol Transformation provides a basis for judgment.
所述逻辑检测电路用于检测人工干预信号,并将检测到的人工干预信号传递给微控制单元,所述微控制单元用于接收逻辑检测电路传递的人工干预信号,且判断人工干预信号有效时,强制执行预先设定的某种通讯协议转换程序,不再判断与第一串行通信接口连接的总线通讯卡的总线类型,从而完成这些没有标准协议的现场总线与执行机构控制器进行数据交互。The logic detection circuit is used to detect the manual intervention signal, and transmit the detected manual intervention signal to the micro control unit, and the micro control unit is used to receive the manual intervention signal transmitted by the logic detection circuit, and judge that the manual intervention signal is valid , forcibly execute a preset communication protocol conversion program, and no longer judge the bus type of the bus communication card connected to the first serial communication interface, so as to complete the data interaction between these field buses without standard protocols and the actuator controller .
所述微控制单元内设有存储模块、数据发送接收模块、比较判断模块以及通讯协议转换模块,所述存储模块用于存储各种类型现场总线数据以及各种总线类型对应的通讯协议转换程序;所述数据发送接收模块用于接收、发送数据,所述比较判断模块,用于将数据发送接收模块接收的数据与存储模块中的数据进行比较,得出所需要进行通讯的现场总线类型;所述通讯协议转换模块,根据比较判断模块得出的现场总线类型,调用适用于所述现场总线类型的通讯协议转换程序对数据进行分类整理,并转换为执行控制器或者总线通讯卡可识别的数据格式输出。所述微控制单元内还设有硬件判断模块,所述硬件判断模块用于监测人工干预信号,判断人工干预信号有效时,强制执行预先设定的现场总线类型来进行通讯协议转换,而不必再通过比较判断模块来判断现场总线类型。The micro-control unit is provided with a storage module, a data sending and receiving module, a comparison and judgment module, and a communication protocol conversion module, and the storage module is used to store various types of field bus data and communication protocol conversion programs corresponding to various bus types; The data sending and receiving module is used to receive and send data, and the comparison and judgment module is used to compare the data received by the data sending and receiving module with the data in the storage module to obtain the required field bus type for communication; The communication protocol conversion module calls the communication protocol conversion program suitable for the field bus type according to the field bus type obtained by the comparison and judgment module to classify and organize the data, and converts it into a data format recognizable by the executive controller or the bus communication card output. The micro control unit is also provided with a hardware judging module, the hardware judging module is used to monitor the manual intervention signal, when judging that the manual intervention signal is valid, the pre-set field bus type is enforced to convert the communication protocol without further The field bus type is judged by comparing and judging modules.
本实用新型对总线转换控制器配置多种协议转换程序,通过第一串行通信接口接收来自PROFIBUS总线通讯卡或FF总线通讯卡或MODBUS总线通讯卡或HART通讯卡等通讯卡的信息并进行转换,并通过第二串行通信接口发送至执行机构主控MCU,参与执行机构的控制。同时总线转换控制器通过第二串行通信接口接收执行机构的设备数据,然后进行数据转换,通过第一串行通信接口把转换后的数据发送至相应的总线通讯卡,从而实现与PROFIBUS总线或FF总线或MODBUS总线或HART总线等总线的通信功能。The utility model configures a variety of protocol conversion programs for the bus conversion controller, and receives and converts information from communication cards such as PROFIBUS bus communication card, FF bus communication card, MODBUS bus communication card or HART communication card through the first serial communication interface. , and send it to the main control MCU of the actuator through the second serial communication interface, and participate in the control of the actuator. At the same time, the bus conversion controller receives the equipment data of the actuator through the second serial communication interface, then performs data conversion, and sends the converted data to the corresponding bus communication card through the first serial communication interface, so as to realize the connection with the PROFIBUS bus or Communication function of buses such as FF bus or MODBUS bus or HART bus.
以上所述仅为本实用新型的优选实施例,并不用于限制本实用新型,显然,本领域的技术人员可以对本实用新型进行各种改动和变型而不脱离本实用新型的精神和范围。这样,倘若本实用新型的这些修改和变型属于本实用新型权利要求及其等同技术的范围之内,则本实用新型也意图包含这些改动和变型在内。The above descriptions are only preferred embodiments of the utility model, and are not intended to limit the utility model. Obviously, those skilled in the art can make various changes and modifications to the utility model without departing from the spirit and scope of the utility model. In this way, if these modifications and variations of the utility model fall within the scope of the claims of the utility model and equivalent technologies thereof, the utility model is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201621484788.9U CN206323394U (en) | 2016-12-31 | 2016-12-31 | Intelligent bus switching controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201621484788.9U CN206323394U (en) | 2016-12-31 | 2016-12-31 | Intelligent bus switching controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN206323394U true CN206323394U (en) | 2017-07-11 |
Family
ID=59260905
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201621484788.9U Active CN206323394U (en) | 2016-12-31 | 2016-12-31 | Intelligent bus switching controller |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN206323394U (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108052094A (en) * | 2017-12-20 | 2018-05-18 | 深圳市英威腾电气股份有限公司 | A kind of extension card identification method, device and frequency converter |
-
2016
- 2016-12-31 CN CN201621484788.9U patent/CN206323394U/en active Active
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108052094A (en) * | 2017-12-20 | 2018-05-18 | 深圳市英威腾电气股份有限公司 | A kind of extension card identification method, device and frequency converter |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106603363A (en) | Intelligent bus switching controller | |
| CN207352398U (en) | General digital input/output multiplexing circuit and input/output control device | |
| US20070288204A1 (en) | Device for remote diagnostics of a field device | |
| US10430359B2 (en) | Use of an IO link for linking field devices | |
| CN1985220A (en) | Interface module for remoting and protocol conversion | |
| US9372480B2 (en) | Method for configuring a communication interface module in a control or automation system | |
| CN109981010A (en) | A kind of motor driven systems and method | |
| CN100386754C (en) | Device and method for operating USB interface device | |
| CN111213099B (en) | Motion control card, motion control system, robot system and numerical control machine tool | |
| CN108459982A (en) | The switching method of communication equipment and USB and serial ports | |
| US20160210253A1 (en) | Serial bus system with switching modules | |
| CN106533874A (en) | Permanent magnet synchronous motor (PMSM) data communication system and method based on Modbus RTU protocol | |
| CN101609315A (en) | Data Acquisition System of Fire Monitoring Device | |
| CN102445981B (en) | Data transmission system and data transmission method | |
| CN206323394U (en) | Intelligent bus switching controller | |
| CN101770239A (en) | Intelligent electric actuating mechanism based on Profibus DP superfluous communication technology | |
| CN102904788A (en) | Fieldbus adapter and method for using fieldbus adapter | |
| CN113348649B (en) | Method for actuating an execution unit and a correspondingly arranged system | |
| CN116074397B (en) | Data sharing system | |
| CN104699066A (en) | Electronic control module | |
| US20060190094A1 (en) | Coupling device for three bus systems | |
| CN111049460A (en) | Three-redundancy double-drive motor control platform and control method | |
| CN201965464U (en) | Numerical control machine control panel and control system thereof | |
| CN116346523A (en) | Multi-slave station communication protocol method | |
| CN204406140U (en) | A kind of bus type programable controller system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| GR01 | Patent grant | ||
| GR01 | Patent grant |