CN1220360C - Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus - Google Patents
Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus Download PDFInfo
- Publication number
- CN1220360C CN1220360C CN 03129417 CN03129417A CN1220360C CN 1220360 C CN1220360 C CN 1220360C CN 03129417 CN03129417 CN 03129417 CN 03129417 A CN03129417 A CN 03129417A CN 1220360 C CN1220360 C CN 1220360C
- Authority
- CN
- China
- Prior art keywords
- industrial ethernet
- node
- message
- facility network
- microprocessor
- 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 - Fee Related
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Communication Control (AREA)
- Small-Scale Networks (AREA)
Abstract
The present invention relates to a method and an apparatus for protocol switch between the MODBUS/TCP industrial Ethernet and an apparatus network field bus. The method for protocol switch comprises: an interface module of the industrial Ethernet is used for realizing a protocol of the MODBUS/TCP industrial Ethernet; a communication adapter module of a main node of an apparatus network is used for realizing a protocol of an apparatus network field bus; software in a microprocessor is used for establishing a uniform message model for realizing the protocol switch of application layers between the MODBUS/TCP industrial Ethernet and the apparatus network field bus. The apparatus for protocol switch is characterized in that the microprocessor is connected with the interface module of the industrial Ethernet, the communication adapter module of a main node of an apparatus network, and a static memory by an inner bus; the microprocessor is connected with an electric erasable memory by a serial peripheral interface. The present invention solves the switch between the industrial Ethernet and a network of the field bus on the basis of different protocol standards, satisfies the requirements of the real-time performance of a bottom apparatus network, etc., and also satisfies the needs of high speed and large capacity of an information network.
Description
Technical field
The present invention relates to two kinds of conversions between the industrial communication network agreement, method for converting protocol and device between particularly a kind of MODBUS/TCP Industrial Ethernet and facility network fieldbus.
Background technology
Fieldbus is the system that is applied in the production scene, realizes the digital communication of bidirectional linked list multinode between the computerized measurement control appliance, is also referred to as the bottom control network of open, digitlization, multi-point.The field bus protocol standard is varied, and International Electrotechnical Commission (IEC) announced in 2000 and passed through the IEC61158 standard for Fieldbus, held 8 kinds of incompatible key-course agreements and three kinds of device level standard for Fieldbus.Fieldbus has good, the stable advantages of higher of real-time, but general traffic rate is lower, can only reach 500Kbps as the highest communication speed of facility network fieldbus.This can also satisfy the needs of application in common Industry Control occasion, but wants further to improve the performance of control system, during as multi-medium datas such as transmission of video, audio frequency, just becomes the bottleneck of development.And, also exist compatible problem between the various various criterion fieldbus.For this reason, people consider to adopt a kind of unified standard to solve these problems.
Ethernet is the LAN that generally adopts in the commercial field, has constituted the basis of internet in conjunction with ICP/IP protocol, becomes de facto standards in the network application.Its traffic rate is minimum also can to reach 10Mbps, and has application foundation widely.Therefore, the application in control in real time becomes the research focus for the moment at Ethernet, and a lot of major companies and scientific research institution all express great interest to it, have released industrial ethernet protocol separately one after another.Industrial Ethernet has the advantage of himself, also exists but be used in the underlying device such as problems such as real-time, intrinsic safeties, thus mainly still be applied in the enterprise information management layer at present, and still adopt fieldbus networks at bottom.This just exists the connection problem of mechanical floor and Information Level.Each major company seizes the market share in order to safeguard number one, has all released the network architecture with self protocol-compliant.Released the three-layer architecture of facility network, Controlnet, Ethernet/IP based on control and information protocol (CIP) as U.S. Rockwell company, France Schneider company releases the notion of " transparent factory ", adopt fieldbus networks such as MODBUS RTU, MODBUS PLUS at bottom, adopt the MODBUS/TCP Industrial Ethernet at Information Level, connect based on the identical functions sign indicating number between level.Though these architectures have realized the interconnection between Industrial Ethernet and fieldbus, communication network at all levels all is based on identical consensus standard.The situation of this sealing has been brought very big inconvenience to the user, is very restricted when the system design and the system reform.Especially the domestic user often blindness is very big when selecting Industry Control series products and constructing system for use, in the face of different protocol standards at a loss as to what to do.If can realize the Industrial Ethernet of different protocol standards and the conversion between the fieldbus networks, can satisfy requirements such as underlying device network real-time, can satisfy Information Level network high-speed rate, jumbo needs again, can also solve the compatibility issue of the communication network of different protocol standards, be useful, a feasible scheme.For this reason, selected facility network fieldbus representative in the mechanical floor network for use and the MODBUS/TCP Industrial Ethernet of being used widely is carried out protocol conversion.
The patent of invention that the sharp light of soil bridge was submitted on March 5th, 1998 " method of field apparatus and field bus system and control field apparatus " (application number: provided a kind of equipment that analog signalling is transformed into field bus system 98107141).Patent of invention " method for converting protocol between fieldbus and serial interface devices and the device " (application number: provided a kind of method for converting protocol and implement device of realizing between serial interface devices and fieldbus 02138703) that people such as Zhou Zude submitted on June 21st, 2002.But the content that method for converting protocol and device between the Industrial Ethernet of the different protocol standards of relating to and fieldbus are not arranged in the patent documentation of having announced as yet.
Summary of the invention
The object of the present invention is to provide method for converting protocol and device between a kind of MODBUS/TCP Industrial Ethernet and facility network fieldbus.
The facility network fieldbus that the present invention relates to be 1994 by the exploitation of the Allen-Bradly company of the U.S., its physical layer and data link layer be based on the CAN bus specification, in application layer with the object model description node.The MODBUS/TCP industrial ethernet protocol is that French Schneider company released in 1998.This agreement is a kind of application layer protocol, and its physical layer and data link layer are based on Ethernet, and other agreement of the definition of application layer and MODBUS agreement family is general.The facility network field bus protocol adopts different standards with the MODBUS/TCP industrial ethernet protocol in physical layer, adopts different medium access modes in data link layer.On application layer, the facility network agreement adopts the description based on object model, and the MODBUS/TCP industrial ethernet protocol is realized order based on function code.In order to realize the conversion of two kinds of agreements, method for converting protocol and device should satisfy the requirement of two kinds of agreement physical layers and data link layer, can make explanations respectively to application layer definition separately again, and this also is the technical problem underlying that invention will solve.
To achieve these goals, the present invention adopts following technical proposals:
Method for converting protocol between a kind of MODBUS/TCP Industrial Ethernet and facility network fieldbus, realize the MODBUS/TCP industrial ethernet protocol by the Industrial Ethernet interface module, realize the facility network field bus protocol by facility network host node communications adapter module, it is characterized in that setting up unified message model, realize the application layer protocol conversion between MODBUS/TCP Industrial Ethernet and facility network fieldbus by the software in the microprocessor;
The step of above-mentioned protocol conversion is:
(1) microprocessor reads operational factor in the electricity erasable memorizer, to the protocol conversion apparatus initialization;
(2) wait for that the Industrial Ethernet module produces interruption, microprocessor obtains facility network network organizing information, to the facility network network organizing;
(3) in the microprocessor fetch equipment net network each from the node operating state.
(4) wait for interruption, microprocessor judges is interrupted classification, and handles respectively:
(a) if the Industrial Ethernet interface module produces interrupts, judge type of message, handle respectively according to message identifier;
(b) if facility network host node communications adapter module produces interrupts, read from the node process data and also these data are write the Industrial Ethernet interface module.
(c), read respectively from the node operating state and upgrade node operating state tag slot the electricity erasable memorizer if regularly interrupt.
(5) repeating step (3) and (4), circular flow;
Above-mentioned microprocessor processes Industrial Ethernet interface module produces the step of interrupting: microprocessor is read the output area of Industrial Ethernet interface module dual-ported memory, judges message identification, does following processing:
(1) if facility network network configuration message, then by to facility network network configuration networking step process;
(2) if upgrade protocol conversion apparatus operational factor message, then at first upgrade electricity erasable memorizer, the warm reset protocol conversion apparatus is read new operational factor from electricity erasable memorizer then, and device is carried out initialization, returns after the end;
(3), when the node state position is identical with the corresponding position in the message, carry out the ON/OFF action if node ON/OFF message is then at first read electricity erasable memorizer; When node state position and the corresponding position in the message are inequality, do not carry out the ON/OFF action;
(4) if read the node state message, then microprocessor is read electricity erasable memorizer, takes out each Status Flag, writes the input area of the dual-ported memory of Industrial Ethernet interface module then, returns after the end;
(5) if read, then at first from static memory, read the process data of this node, will write the input area of dual-ported memory the Industrial Ethernet interface module from node process data upload message then, return after the end from the node process data message;
(6) if to write the process data message from node, then according to the node address number definite map section of this node in host node communications adapter module input area, then to these map section ablation process data.
Above-mentioned unified message model is: microprocessor is divided into six kinds from the message that the Industrial Ethernet module receives, with different message identifier signs: 1. facility network network configuration message: comprise message identification, node address, trading company of factory, product type, product code, communication modes, the map section in facility network host node communications adapter module dual-ported memory input area, map section, the end identifier in facility network host node communications adapter module dual-ported memory output area; 2. install the operational factor message: comprise message identification, the space of Industrial Ethernet interface module dual-ported memory input area, the space of Industrial Ethernet interface module dual-ported memory output area, Industrial Ethernet interface module initiation parameter, space, facility network host node communications adapter module dual-ported memory input area, space, facility network host node communications adapter module dual-ported memory output area, facility network host node communications adapter module initialization parameter, timing cycle; 3. node ON/OFF message: comprise message identification, node address logo area; 4. read the node state message: comprise message identification, node address logo area; 5. read procedure data message: comprise message identification, node address logo area; 6. write the process data message: comprise message identification, node address, data content, end identifier.Microprocessor writes two class messages to the Industrial Ethernet interface module: 1. upload message from node state: comprise message identification, node state logo area; 2. from node process data upload message: comprise message identification, node address, data content, end identifier.
Above-mentioned protocol conversion apparatus initialization step is: microprocessor takes out the conversion equipment operational factor that presets from electricity erasable memorizer, comprise the dual-ported memory input area between the Industrial Ethernet interface module and the size of output area, the initiation parameter of Industrial Ethernet interface module, the size of input area and output area in the dual-ported memory of microprocessor and facility network host node communications adapter intermodule, facility network host node communications adapter module initialization parameter, the timing cycle that timer interrupts.Microprocessor carries out the parameter setting respectively according to the operational factor that obtains then.
Above-mentionedly to facility network network organizing step be: microprocessor obtains the facility network network configuration information from the Industrial Ethernet interface module, judges whether that whole frames all finish, if do not finish, present frame is temporarily stored in the static memory; If all frame end upgrades electricity erasable memorizer, the communications adapter module is set works in idle condition, the mailbox district in this module dual-ported memory writes configuration data then; After configuration finished, recovering the communications adapter module was running status, interrupted then returning.
Above-mentioned microprocessor processes facility network host node communications adapter module produces the step of interrupting: microprocessor is read the mailbox district in the facility network host node communications adapter module dual-ported memory, which is has obtained renewal from the process data of node in judgement, read the map section corresponding in the output area in the facility network host node communications adapter module dual-ported memory then with this node, the data of reading are temporarily stored into the corresponding region of static memory, and, return after the end the input area that writes Industrial Ethernet interface module dual-ported memory from node process data upload message.
Protocol conversion apparatus between a kind of MODBUS/TCP Industrial Ethernet and facility network fieldbus, it is characterized in that microprocessor is connected with static memory with Industrial Ethernet interface module, facility network host node communications adapter module by internal bus, microprocessor connects electricity erasable memorizer by serial peripheral interface.Wherein microprocessor (7) is used to realize the protocol conversion message model, and the operation of protocol conversion apparatus is coordinated, controlled.Industrial Ethernet interface module (20) is used to realize the MODBUS/TCP industrial ethernet protocol, and the interface with Industrial Ethernet is provided.Facility network host node communications adapter module (12) is used to realize the facility network master function, the operation of each slave node in the facility network is monitored, is managed, and interface with facility network is provided.Static memory (6) is used for operating process variable of storage protocol conversion equipment and parameter.Serial peripheral interface (8) is the passage that transfer of data is provided between microprocessor (7) and the electricity erasable memorizer (9) as a kind of interface standard.Electricity erasable memorizer (9) is used for storing the every configuration parameters that needs power-down protection.
Above-mentioned Industrial Ethernet interface module connects Ethernet by Ethernet interface, and dual-ported memory is divided into three parts-input area, output area and mailbox district in this module, connects internal bus through dual-ported memory; Facility network host node communications adapter module is by field-bus interface connection device net fieldbus, and this module dual-ported memory is divided into three parts-input area, output area and mailbox district, connects internal bus through dual-ported memory.
Above-mentioned microprocessor adopts digital signal processor.
The present invention has following conspicuous outstanding feature and obvious improvement compared with prior art:
(1) adopts the Industrial Ethernet interface module, realized the MODBUS/TCP industrial ethernet protocol.
(2) adopt facility network host node communications adapter module to realize the facility network field bus protocol.
(3) under the support of above two kinds of modules, realized the conversion between the physical layer and data link layer between MODBUS/TCP Industrial Ethernet and the facility network fieldbus.
(4) set up unified message model, realized conversion based on application layer protocol between the MODBUS/TCP Industrial Ethernet of different protocol standards and facility network fieldbus.
The present invention has realized both having satisfied the requirement of mechanical floor based on the Industrial Ethernet of different protocol standards and the protocol conversion between the fieldbus, has realized the combination of Information Level and mechanical floor again, has improved the flexibility and the compatibility of control system.
Description of drawings
Fig. 1 is the protocol conversion apparatus structural representation of the embodiment of the invention.
Fig. 2 is the message model of the embodiment of the invention.
Fig. 3 is the main program flow chart of the embodiment of the invention.
Fig. 4 is the device operational factor initialization subroutine of the embodiment of the invention.
Fig. 5 is the facility network network configuration subprogram of the embodiment of the invention.
Fig. 6 is that the external interrupt 1 of the embodiment of the invention is handled subprogram.
Fig. 7 is that the external interrupt 2 of the embodiment of the invention is handled subprogram.
Embodiment
Below in conjunction with accompanying drawing a preferred embodiment of the present invention is described:
Referring to Fig. 1, the MODBUS/TCP Industrial Ethernet of present embodiment and the method for converting protocol between the facility network fieldbus are: adopt Industrial Ethernet interface module 20 to realize the MODBUS/TCP industrial ethernet protocol, adopt facility network host node communications adapter module 12 to realize the facility network field bus protocol, set up unified message model by the software in the microprocessor 7, realize the application layer protocol conversion between MODBUS/TCP Industrial Ethernet and facility network fieldbus.
Referring to Fig. 2, above-mentioned unified message model is: microprocessor 7 (CPU) is divided into six kinds from the message that Industrial Ethernet interface module 20 receives, and discerns type of message with different message identification (message ID):
1. comprised in the facility network network configuration message at each configuration information from node.Comprise node address (MAC ID) from node, trading company of factory (vendor), product type (product type), product code (product code), communication modes, the parameters such as size of input area 16 and output area 14, opening up map section with host node.In the end the end of a frame message adds the ENMES identifier to each frame message from node configuration information at one, so that the CPU judgment processing.
2. install the parameter of needs when having comprised the device initialization in the operational factor message.The size that comprises input area 19 and output area 2 in the dual-ported memory 5 between CPU and Industrial Ethernet interface module is to the initiation parameter of Industrial Ethernet interface module; The size of input area 16 and output area 14 in the dual-ported memory 17 that CPU and facility network communications adapter module are 12 is to facility network communications adapter module initialization parameter; The parameters such as timing cycle that timer interrupts.
3. node ON/OFF message is used for notifying CPU to close some node or restarts some node, and 8 bytes are arranged in the node address logo area, totally 64, represents to close this corresponding node when a certain position is 1.When being 0, a certain position represents to restart this corresponding node.
4. read the node state message be used for notifying CPU upload certain or some from the running status of node.8 bytes are arranged in the node address logo area, totally 64, when a certain position is 1, represent to read the node state of this correspondence.
5. the read procedure data message be used for notifying CPU upload certain or some from the process data of node.8 bytes are arranged in the node address logo area, totally 64, when a certain position is 1, represent to read the process data of this corresponding node.
6. write the process data message be used for notifying CPU to certain from node ablation process data.Node address sign to write from the address of node, be the data that will write then, be the identifier of expression ED at last.
CPU can write two class messages to the Industrial Ethernet interface module:
1. upload message from node state and be used for uploading each operating state from node, 8 bytes are arranged in the node state logo area, totally 64, when being 0, a certain position represents that the node state of this correspondence is normal, when being 1, a certain position represents that the node state of this correspondence is unusual.
2. be used for uploading certain process data from node from node process data upload message, node address identifies from the address of node, is the data that will upload then, is the identifier of expression ED at last.
Referring to Fig. 3 and Fig. 1, above-mentioned protocol conversion steps is: 1. microprocessor 7 (CPU) is at first read the operational factor of protocol conversion apparatus from electricity erasable memorizer 9, carries out initialization to installing 21.2. wait for the interruption that causes by Industrial Ethernet interface module 20 then, to obtain networking information to the facility network network, according to the information that obtains to the facility network network organizing.3. after network configuration finished, CPU read respectively from the operating state of node and deposits electricity erasable memorizer 9 in, enters normal operating condition then.4. wait for and interrupt producing, the external interrupt that is caused by Industrial Ethernet interface module 20 is called external interrupt 1 and is handled subprogram and handle, the external interrupt that is caused by facility network communications adapter module 12 is called external interrupt 2 and is handled subprograms and handle, and the interrupt call that is caused by timer regularly Interrupt Process subprogram is handled.5. processing is returned the periodic duty state after finishing.
Referring to Fig. 4 and Fig. 1, above-mentioned device 21 initialization steps are: CPU at first takes out the device operational factor that presets from electricity erasable memorizer 9, the size that comprises input area 19 and output area 2 in the dual-ported memory 5 of 20 of CPU and Industrial Ethernet interface modules is to the initiation parameter of Industrial Ethernet interface module 20; The size of input area 16 and output area 14 in the dual-ported memory 17 that CPU and facility network communications adapter module are 12 is to facility network communications adapter module 12 initiation parameters; The parameters such as timing cycle that timer interrupts, CPU carries out the parameter setting respectively according to the operational factor that obtains then.
Referring to Fig. 5 and Fig. 1, above-mentioned to facility network network organizing step is: CPU obtains the facility network network configuration information from Industrial Ethernet interface module 20, judges whether that whole frames all finish.If do not finish, present frame be temporarily stored in the static memory 6.If all frame end upgrades electricity erasable memorizer 9, communications adapter module 12 is set works in the free time (idle) state, the mailbox district 10 in dual-ported memory 17 writes configuration data then.Configuration finishes back recovery communications adapter module 12 and is operation (run) state, interrupts then returning.
Referring to Fig. 6 and Fig. 1, the step that above-mentioned CPU handles the 20 generation interruptions of Industrial Ethernet interface module is: CPU reads the output area 2 of dual-ported memory 5, judges message identification.
1. if facility network network configuration message, according to flow processing shown in Figure 5.
2. if updating device operational factor message at first upgrades electricity erasable memorizer 9, the warm reset protocol conversion apparatus 21 then, read new operational factor from electricity erasable memorizer 9, carry out initialization again to installing 21, return after the end.
3. if node ON/OFF message is at first read electricity erasable memorizer 9, when the node state position is identical with the corresponding position in the message, carry out the ON/OFF action; When node state position and the corresponding position in the message are inequality, do not carry out the ON/OFF action.
4. if read the node state message, CPU reads electricity erasable memorizer 9 and takes out each Status Flag, writes the input area 19 of dual-ported memory 5 then, returns after the end.
5. if read, at first from static memory 6, read the process data of this node, will write the input area 19 of dual-ported memory 5 from node process data upload message then, return after the end from the node process data message.
6. if to write the process data message from node, according to the node address number definite map section of this node in input area 16, then to these map section ablation process data.
Referring to Fig. 7 and Fig. 1, above-mentioned CPU treatment facility host node communications adapter module 12 produces the step of interrupting: the mailbox district 10 that CPU reads dual-ported memory 17 is judged, and which is has obtained renewal from the process data of node, read the output area 14 interior map sections corresponding of dual-ported memory 17 then with this node, the data of reading are temporarily stored into the corresponding region of static memory 6, and, return after the end the input area 19 that writes dual-ported memory 5 from node process data upload message.
Referring to Fig. 1, the MODBUS/TCP Industrial Ethernet of present embodiment with protocol conversion apparatus 21 between the facility network fieldbus is: microprocessor 7 is connected with static memory 6 with Industrial Ethernet interface module 20, facility network host node communications adapter module 12 by internal bus 18, and microprocessor 7 connects an electricity erasable memorizer 9 by serial peripheral interface 8.
Above-mentioned Industrial Ethernet interface module 20 connects Ethernet 22 by Ethernet interface 1, and dual-ported memory 5 is divided into three parts-input area 19, output area 2 and mailbox district 4, connects internal bus 18 through dual-ported memory 5; Facility network host node communications adapter module 12 is by field-bus interface 13 connection device net fieldbus 11, and dual-ported memory 17 is divided into three parts-input area 16, output area 14 and mailbox district 10, connects internal bus 18 through dual-ported memory 17.
Referring to Fig. 1, the device of respectively forming to protocol conversion apparatus 21 is introduced below:
(1) the TMS320F206 digital signal processor that adopts the production of TI company is as microprocessor 7, and inside has program storage area and data storage area.
(2) the Anybus-s Ethernet Industrial Ethernet interface module 20 that adopts Sweden HMS company to produce realizes the MODBUS/TCP protocol function.This module provides standard ethernet interface 1, and protocol conversion apparatus can be connected with Ethernet 22 by this interface.The industrial ethernet protocol processing unit 3 of inside modules can be realized the MODBUS/TCP industrial ethernet protocol.Module provides dual-ported memory 5 and cpu i/f, dual-ported memory is divided into input area 19, output area 2 and mailbox district 4, CPU can write each running status and process data from node to interface module by input area 19, can obtain all types of messages that the Ethernet Information Level sends by output area 2, can the interface module operational factor be set by mailbox district 4, read its running status.
(3) adopt the Anybus-m facility network Master/scanner communications adapter module 12 of Sweden HMS company production as the facility network host node.This module provides standard device net field-bus interface 13, and protocol conversion apparatus can be connected with facility network fieldbus 11 by this interface.The facility network protocol processing unit 15 of inside modules can realize the facility network agreement.Module provides dual-ported memory 17 and cpu i/f, dual-ported memory 17 is divided into input area 16, output area 14 and mailbox district 10, in input area 16 and output area 14, can set up with each from the corresponding map section of node, CPU can by input area 16 to each from node ablation process dateout, can obtain respectively to import data by output area 14 from the process of node, the operational factor of communications adapter module can be set by mailbox district 10, the facility network network is carried out the networking configuration, read each running status from node.
(4) adopt electricity erasable memorizer 9 (EEPROM) the storage power down protection data have watchdog function, be connected by serial peripheral interface 8 between CPU and the electricity erasable memorizer.
(5) adopt static memory 6 (RAM) as the process data of data storage storage from node.Internal bus 17 by protocol conversion apparatus between CPU, Industrial Ethernet interface module, facility network communications adapter module, the static memory connects, and internal bus is made of data, address, control line.
Claims (8)
1. the method for converting protocol between MODBUS/TCP Industrial Ethernet and facility network fieldbus, realize the MODBUS/TCP industrial ethernet protocol by the Industrial Ethernet interface module, realize the facility network field bus protocol by facility network host node communications adapter module, it is characterized in that setting up unified message model, realize the application layer protocol conversion between MODBUS/TCP Industrial Ethernet and facility network fieldbus by the software in the microprocessor;
The step of protocol conversion is:
(1) microprocessor reads operational factor in the electricity erasable memorizer, to the protocol conversion apparatus initialization;
(2) wait for that the Industrial Ethernet module produces interruption, microprocessor obtains facility network network organizing information, to the facility network network organizing;
(3) in the microprocessor fetch equipment net network each from the node operating state;
(4) wait for interruption, microprocessor judges is interrupted classification, and handles respectively:
(a) if the Industrial Ethernet interface module produces interrupts, judge type of message, handle respectively according to message identifier;
(b) if facility network host node communications adapter module produces interrupts, read from the node process data and also these data are write the Industrial Ethernet interface module;
(c), read respectively from the node operating state and upgrade node operating state tag slot the electricity erasable memorizer if regularly interrupt;
(5) repeating step (3) and (4), circular flow;
Microprocessor processes Industrial Ethernet interface module produces the step of interrupting: microprocessor is read the output area of Industrial Ethernet interface module dual-ported memory, judges message identification, does following processing:
(1) if facility network network configuration message, then by to facility network network configuration networking step process;
(2) if upgrade protocol conversion apparatus operational factor message, then at first upgrade electricity erasable memorizer, the warm reset protocol conversion apparatus is read new operational factor from electricity erasable memorizer then, and device is carried out initialization, returns after the end;
(3), when the node state position is identical with the corresponding position in the message, carry out the ON/OFF action if node ON/OFF message is then at first read electricity erasable memorizer; When node state position and the corresponding position in the message are inequality, do not carry out the ON/OFF action;
(4) if read the node state message, then microprocessor is read electricity erasable memorizer, takes out each Status Flag, writes the input area of the dual-ported memory of Industrial Ethernet interface module then, returns after the end;
(5) if read, then at first from static memory, read the process data of this node, will write the input area of dual-ported memory the Industrial Ethernet interface module from node process data upload message then, return after the end from the node process data message;
(6) if to write the process data message from node, then according to the node address number definite map section of this node in host node communications adapter module input area, then to these map section ablation process data.
2. the method for converting protocol between MODBUS/TCP Industrial Ethernet according to claim 1 and facility network fieldbus, it is characterized in that unified message model is: microprocessor is divided into six kinds from the message that the Industrial Ethernet module receives, with different message identifier signs: 1. facility network network configuration message: comprise message identification, node address, trading company of factory, product type, product code, communication modes, map section in facility network host node communications adapter module dual-ported memory input area, map section in facility network host node communications adapter module dual-ported memory output area, end identifier; 2. install the operational factor message: comprise message identification, the space of Industrial Ethernet interface module dual-ported memory input area, the space of Industrial Ethernet interface module dual-ported memory output area, Industrial Ethernet interface module initiation parameter, space, facility network host node communications adapter module dual-ported memory input area, space, facility network host node communications adapter module dual-ported memory output area, facility network host node communications adapter module initialization parameter, timing cycle; 3. node ON/OFF message: comprise message identification, node address logo area; 4. read the node state message: comprise message identification, node address logo area; 5. read procedure data message: comprise message identification, node address logo area; 6. write the process data message: comprise message identification, node address, data content, end identifier.Microprocessor writes two class messages to the Industrial Ethernet interface module; 1. upload message from node state: comprise message identification, node state logo area; 2. from node process data upload message: comprise message identification, node address, data content, end identifier.
3. the method for converting protocol between MODBUS/TCP Industrial Ethernet according to claim 1 and facility network fieldbus, the switch process that it is characterized in that protocol conversion apparatus is: microprocessor takes out the conversion equipment operational factor that presets from electricity erasable memorizer, comprise the dual-ported memory input area between the Industrial Ethernet interface module and the size of output area, the initiation parameter of Industrial Ethernet interface module, the size of input area and output area in the dual-ported memory of facility network host node communications adapter module, facility network host node communications adapter module initialization parameter, the timing cycle that timer interrupts, microprocessor carries out the parameter setting respectively according to the operational factor that obtains then.
4. the method for converting protocol between MODBUS/TCP Industrial Ethernet according to claim 1 and facility network fieldbus, it is characterized in that to facility network network organizing step being: microprocessor obtains the facility network network configuration information from the Industrial Ethernet interface module, judge whether that whole frames all finish, if do not finish, present frame be temporarily stored in the static memory; If all frame end upgrades electricity erasable memorizer, the communications adapter module is set works in idle condition, the mailbox district in this module dual-ported memory writes configuration data then; After configuration finished, recovering the communications adapter module was running status, interrupted then returning.
5. the method for converting protocol between MODBUS/TCP Industrial Ethernet according to claim 1 and facility network fieldbus, it is characterized in that microprocessor processes facility network host node communications adapter module produces the step of interrupting and is: microprocessor is read the mailbox district in the facility network host node communications adapter module dual-ported memory, which is has obtained renewal from the process data of node in judgement, read the map section corresponding in the output area in the facility network host node communications adapter module dual-ported memory then with this node, the data of reading are temporarily stored into the corresponding region of static memory, and, return after the end the input area that writes Industrial Ethernet interface module dual-ported memory from node process data upload message.
6. the method for converting protocol protocol conversion apparatus between MODBUS/TCP Industrial Ethernet according to claim 1 and facility network fieldbus, it is characterized in that microprocessor (7) is connected with Industrial Ethernet interface module (20), facility network host node communications adapter module (12) and static memory (6) by internal bus, microprocessor (7) connects electricity erasable memorizer (9) by serial peripheral interface (8); Microprocessor wherein
(7) be used to realize the protocol conversion message model, and the operation of protocol conversion apparatus is coordinated, controlled; Industrial Ethernet interface module (20) is used to realize the MODBUS/TCP industrial ethernet protocol, and the interface with Industrial Ethernet is provided; Facility network host node communications adapter module (12) is used to realize the facility network master function, the operation of each slave node in the facility network is monitored, is managed, and interface with facility network is provided; Static memory (6) is used for operating process variable of storage protocol conversion equipment and parameter; Serial peripheral interface (8) is the passage that transfer of data is provided between microprocessor (7) and the electricity erasable memorizer (9) as a kind of interface standard; Electricity erasable memorizer (9) is used for storing the every configuration parameters that needs power-down protection.
7. the method for converting protocol protocol conversion apparatus between MODBUS/TCP Industrial Ethernet according to claim 6 and facility network fieldbus, it is characterized in that Industrial Ethernet interface module (20) connects Ethernet (22) by Ethernet interface (1), dual-ported memory (5) is divided into three parts, one input areas (19), output area (2) and mailbox district (4), connects internal bus (18) through dual-ported memory (5); Facility network host node communications adapter module (12) is by field-bus interface (13) connection device net fieldbus (11), dual-ported memory (17) is divided into three parts, one input areas (16), output area (14) and mailbox district (10), connects internal bus (18) through dual-ported memory (17).
8. the method for converting protocol protocol conversion apparatus between MODBUS/TCP Industrial Ethernet according to claim 6 and facility network fieldbus is characterized in that microprocessor (7) adopts digital signal processor (DSP).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03129417 CN1220360C (en) | 2003-06-20 | 2003-06-20 | Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 03129417 CN1220360C (en) | 2003-06-20 | 2003-06-20 | Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1482782A CN1482782A (en) | 2004-03-17 |
CN1220360C true CN1220360C (en) | 2005-09-21 |
Family
ID=34153525
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 03129417 Expired - Fee Related CN1220360C (en) | 2003-06-20 | 2003-06-20 | Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1220360C (en) |
Families Citing this family (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241636B (en) * | 2008-01-14 | 2010-06-16 | 威胜集团有限公司 | Communication protocols converter for electrical energy metering, charging and meter reading system |
CN101277299B (en) * | 2008-05-13 | 2011-12-21 | 珠海中慧微电子有限公司 | Protocol conversion system and protocol conversion process |
CN101557325B (en) * | 2009-05-20 | 2011-04-27 | 大连理工大学 | EPA real-time aggregative indicator testing method |
CN101895462B (en) * | 2010-01-28 | 2012-12-19 | 袁亚军 | Serial communication gateway |
CN102291292B (en) * | 2010-06-18 | 2014-08-13 | 中国科学院沈阳自动化研究所 | Method for EPA to FFH1 protocol conversion and scheduling |
US8582581B2 (en) * | 2010-09-28 | 2013-11-12 | Cooper Technologies Company | Dual-port ethernet traffic management for protocol conversion |
AT512077B1 (en) * | 2011-10-27 | 2014-01-15 | Bernecker & Rainer Ind Elektronik Gmbh | METHOD AND A BUS DEVICE FOR TRANSFERRING SAFETY-RELATED DATA |
CN102710001A (en) * | 2012-06-20 | 2012-10-03 | 三一集团有限公司 | Charging device |
CN103546467B (en) * | 2013-10-23 | 2016-08-17 | 上海爱控自动化设备有限公司 | The method applying Modbus rtu protocol on TCP/IP network |
CN104796415B (en) * | 2015-04-07 | 2018-10-23 | 上海大学 | A kind of conversion method between multi-protocols and TCP procotols in RS485 buses |
CN105897936B (en) * | 2016-06-23 | 2019-04-26 | 北京东土科技股份有限公司 | The processing method of control configuration information based on industry internet, apparatus and system |
CN108076026B (en) * | 2016-11-15 | 2020-04-07 | 中国科学院沈阳自动化研究所 | Industrial wireless network service adaptation method based on OPC-UA service platform |
CN107819782A (en) * | 2017-11-24 | 2018-03-20 | 重庆科凯前卫风电设备有限责任公司 | A kind of wind-driven generator group communication system and communication means |
CN107995081A (en) * | 2017-12-29 | 2018-05-04 | 徐州中矿大传动与自动化有限公司 | The system and method for a variety of communication bus conversions is supported at the same time |
CN108763127B (en) * | 2018-06-05 | 2021-06-04 | 南京邮电大学 | Method for realizing Modbus adapter capable of realizing interconversion of source data and target data |
CN114979294A (en) * | 2022-05-19 | 2022-08-30 | 国网江苏省电力有限公司电力科学研究院 | Multi-mode communication and protocol conversion device and method |
-
2003
- 2003-06-20 CN CN 03129417 patent/CN1220360C/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN1482782A (en) | 2004-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1220360C (en) | Method and apparatus for protocol switch between MODBUS/TCP industrial Ethernet and device network field bus | |
CN1697448A (en) | Multi protocol conversion method and device between MODBUS/TCP industry Ethernet and field bus device network as well as field bus of PRofibus DP | |
CN201323598Y (en) | Protocol converter for MODBUS/TCP and DeviceNet | |
CN100345427C (en) | Home network system and method for operating the same | |
CN1300912C (en) | System for monitoring and controlling a set of household appliances | |
CN1798141A (en) | Remote Configuration Monitoring System Conforming to OPC Standard | |
CN1151449C (en) | System and method allowing server remote access to assets information in computer system | |
CN1721226A (en) | Purely electrical automobile host controller based on CAN bus and control method therefor | |
CN101035099A (en) | General gateway design method for realizing the IEC61850 standard | |
CN101075945A (en) | Real-time Ethernet deterministic communication method | |
WO2022141727A1 (en) | Resource deployment system and method based on cloud cost | |
CN1825823A (en) | Service framework for home network | |
CN1508689A (en) | System and method for long-distace obtaining informtion of monitroed computer | |
CN201508490U (en) | Networking monitoring device of production line | |
CN1303546C (en) | Bus service interface | |
CN1901453A (en) | Embedded far remote central maintenance device and method | |
CN1274112C (en) | Centralized gateway warning box and warning treatment method | |
CN1645852A (en) | Agreement converting method and device between MODBUS/TCP industrial Ethernet and PROFIBUS-DP bus on-the-spot | |
CN101047592A (en) | Built-in internetwork access device of Europe installation bus system | |
CN113489802B (en) | Internet of things collection equipment | |
CN1262941C (en) | Construction and operating environment of network filter driver | |
CN1268069C (en) | Method and system of controlling network communication of automation based on blue-tooth technique | |
CN1787446A (en) | Electronic conference system and method for multi main machine coordination working | |
CN1556609A (en) | Mobile robot network control platform device | |
CN1198188C (en) | DC motor servo driving system based on network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20050921 Termination date: 20130620 |