CN115334173A - MODBUS and CC-Link protocol conversion device and method - Google Patents

MODBUS and CC-Link protocol conversion device and method Download PDF

Info

Publication number
CN115334173A
CN115334173A CN202210985590.2A CN202210985590A CN115334173A CN 115334173 A CN115334173 A CN 115334173A CN 202210985590 A CN202210985590 A CN 202210985590A CN 115334173 A CN115334173 A CN 115334173A
Authority
CN
China
Prior art keywords
protocol
bus
link
modbus
module
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.)
Granted
Application number
CN202210985590.2A
Other languages
Chinese (zh)
Other versions
CN115334173B (en
Inventor
刘锋
高忠林
倪文秀
郭悦
翟宝亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin 707 Hi Tech Co Ltd
Original Assignee
Tianjin 707 Hi Tech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjin 707 Hi Tech Co Ltd filed Critical Tianjin 707 Hi Tech Co Ltd
Priority to CN202210985590.2A priority Critical patent/CN115334173B/en
Publication of CN115334173A publication Critical patent/CN115334173A/en
Application granted granted Critical
Publication of CN115334173B publication Critical patent/CN115334173B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40228Modbus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)
  • Bus Control (AREA)

Abstract

The invention relates to an MODBUS and CC-Link protocol conversion device and a method, which realize the mutual conversion of MODBUS and CC-Link bus protocols by constructing a protocol conversion device in the topological structures of an MODBUS bus network and a CC-Link bus network, and by a bus controller, a protocol receiving module, a protocol sending module, a protocol processing module, an address conversion module, an error processing module and a bus configuration module in the protocol conversion device, the conversion time is short and the determinacy is realized. The protocol processing module adopts parallel processing bus data, so that two bus protocols can perform independent read-write operation in parallel, and the data read-write conflict is avoided through the data distributor, thereby achieving high-speed data read-write.

Description

MODBUS and CC-Link protocol conversion device and method
Technical Field
The invention belongs to the technical field of industrial production, and particularly relates to an MODBUS and CC-Link protocol conversion device and method.
Background
Most of the existing field bus protocol conversion devices only repackage protocol data, put the protocol data into a target protocol frame for forwarding, partially compile a uniform address, and define a uniform message format. However, most of the error handling and error responding mechanisms of the protocols are not converted, and the error handling and error responding mechanisms of the protocols are a vital part in protocol composition, so that the normal operation of a bus network and the correct and timely processing of bus emergencies can be ensured, and the stability of the network can be greatly ensured. Most of the research works adopt an embedded processing mode, namely the embedded processing mode is composed of a bus control module and a general processor, protocol conversion is carried out by adopting embedded software or a software platform based on a Linux operating system, and the embedded software or the software platform is limited by mechanisms such as a general architecture and interrupt processing of the general processor and a scheduling mechanism of the operating system, the bus protocol frame receiving and converting time is long and uncertain, the protocol conversion real-time performance is poor, and the requirements of the industry 4.0 on the communication real-time performance and the communication certainty cannot be met.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, provides an MODBUS and CC-Link protocol conversion device and method, can support two network topology structures of an MODBUS bus network and a CC-Link bus network, can realize the mutual conversion of MODBUS and CC-Link protocols, and has short conversion time and determinacy.
The technical problem to be solved by the invention is realized by adopting the following technical scheme:
an MODBUS and CC-Link protocol conversion device acts between an MODBUS bus network and a CC-Link bus network and comprises a bus controller, a protocol receiving module, a protocol sending module, a protocol processing module, an address conversion module, an error processing module and a bus configuration module; the output end of the bus controller is connected with the input end of the protocol receiving module, the output end of the protocol receiving module is respectively connected with the input ends of the protocol processing module, the address conversion module and the error processing module, the protocol processing module comprises a data distributor, and the data distributor confirms the conversion circuit module according to the selection signal to perform corresponding protocol conversion; the output ends of the protocol processing module, the address conversion module and the error processing module are respectively connected with the bus configuration module and the protocol sending module, the output end of the protocol sending module is connected with the input end of the bus controller, and the bus configuration module is used for carrying out MODBUS bus network and CC-Link bus parameter configuration.
The MODBUS bus network comprises 1 MODBUS master device, 1 MODBUS slave device and 1 CC-Link slave station, wherein the protocol conversion device and the MODBUS slave devices are accessed to the MODBUS bus network through an MODBUS controller and a physical layer circuit; the CC-Link bus network comprises 1 CC-Link master station, CC-Link slave stations and MODBUS slave equipment, and the protocol conversion device is connected with the CC-Link bus network through a controller and a transceiver of the CC-Link bus.
The bus controller comprises a MODBUS bus protocol controller and a CC-Link 2 bus protocol controller, and is used for receiving protocol serial data from a bus physical layer, converting the serial data of the physical layer into byte data when the bus controller receives the data on the bus physical layer, and storing the byte data into a protocol receiving module;
the protocol receiving module and the protocol sending module both adopt asynchronous FIFO and are used for caching bus protocol frames, wherein the protocol receiving module caches received original protocol frame data of an upstream bus controller, and the protocol sending module caches protocol frame data after protocol conversion;
the protocol address conversion module comprises an address mapping table, wherein the address mapping table comprises the mapping relation between the original protocol network address and the target protocol network address and is used for protocol address conversion in protocol conversion;
the protocol processing module comprises a data distributor, an MODBUS-to-CC-Link conversion circuit module and a CC-Link-to-MODBUS conversion circuit module, and judges whether an original protocol frame enters the MODBUS-to-CC-Link conversion circuit module or the CC-Link-to-MODBUS conversion circuit module according to a selection signal of the data distributor;
the error processing module is used for conversion work when the protocol frame replied by the target protocol equipment has an error after the original protocol frame is forwarded to the target protocol equipment without error.
And the first half of each item in the mapping table is the address of the original protocol frame, the second half is the target protocol address, and the mapping table is maintained through an external bus.
A conversion method of an MODBUS and CC-Link protocol conversion device comprises a conversion method from an MODBUS bus protocol to a CC-Link bus protocol, a conversion method from the CC-Link bus protocol to the MODBUS bus protocol and a Link layer error correction method.
Moreover, the method for converting the MODBUS bus protocol into the CC-Link bus protocol comprises the following steps:
step 1.1, MODBUS master equipment sends a protocol frame to an MODBUS bus network to address a CC-Link slave station, and a protocol conversion device receives an MODBUS bus protocol frame through an MODBUS physical layer interface;
step 1.2, the MODBUS controller in the bus controller converts the received serial data into byte data and stores the byte data into a protocol receiving module;
step 1.3, the address conversion module identifies the data address conversion search in the protocol receiving module according to the address comparison table;
step 1.4, the data distributor identifies the type of a source data bus and the type of a target bus, and converts a command field and a data field in an MODBUS bus protocol frame into a data field of a CC-Link bus protocol frame;
step 1.5, the protocol processing module stores the converted data into a protocol sending module, and a CC-Link bus controller in a bus controller converts byte data into a corresponding data format;
step 1.6, the converted protocol frame is sent to a CC-Link bus network through a CC-Link transceiver according to the station number address and the baud rate of a CC-Link slave station set by a bus configuration module and is replied to a MODBUS controller in a bus controller;
and step 1.7, the CC-Link slave station receives the converted protocol frame in the corresponding bus network to complete the conversion from the MODBUS protocol to the CC-Link bus protocol.
Moreover, the method for converting the CC-Link bus protocol into the MODBUS bus protocol comprises the following steps:
step 2.1, the CC-Link master station sends a protocol frame to the CC-Link bus network to address the MODBUS slave equipment, and the protocol conversion device receives the CC-Link bus protocol frame through the CC-Link physical layer interface;
2.2, the CC-Link controller in the bus controller converts the received serial data into byte data and stores the byte data into the protocol receiving module;
2.3, the address conversion module identifies the data address conversion search in the protocol receiving module according to the address comparison table;
step 2.4, the data distributor identifies the type of a source data bus and the type of a target bus, and converts a command field and a data field in a CC-Link bus protocol frame into a data field of an MODBUS bus protocol frame;
step 2.5, the protocol processing module stores the converted data into the protocol sending module, and an MODBUS bus controller in the bus controller converts the byte data into a corresponding data format;
step 2.6, the converted protocol frame is sent to the MODBUS bus network through the MODBUS transceiver according to the address of the MODBUS slave device set by the bus configuration module and is replied to the CC-Link controller in the bus controller;
and 2.7, the MODBUS slave device receives the converted protocol frame in the corresponding bus network to complete the conversion from the CC-Link protocol to the MODBUS bus protocol.
Moreover, the MODBUS bus network link layer error correction method comprises the following steps:
3.1, when an application layer error is generated in the process that the CC-Link slave station sends the response frame to the protocol conversion device, an error processing module converts an error code defined by the CC-Link bus protocol into an abnormal response code specified by the MODBUS bus protocol;
and 3.2, the error processing module sends the error frame to the MODBUS controller in the bus controller, and the error frame is sent to the MODBUS controller in the bus controller 1.
Moreover, the CC-Link bus network Link layer error correction method comprises the following steps:
step 4.1, when an application layer error is generated in the process that the MODBUS slave device sends the response frame to the conversion module, the error processing module needs to convert a field of response code defined by the MODBUS bus protocol into an error code specified by the CC-Link bus protocol;
and 4.2, the error processing module sends the error code to a CC-Link bus controller in the bus controller to finish the error correction method of the CC-Link bus network Link layer.
The invention has the advantages and positive effects that:
1. the invention realizes the mutual conversion of the MODBUS and CC-Link bus protocols by constructing the protocol conversion device in the topological structures of the MODBUS bus network and the CC-Link bus network, and by the bus controller, the protocol receiving module, the protocol sending module, the protocol processing module, the address conversion module, the error processing module and the bus configuration module in the protocol conversion device, the conversion time is short and the determinacy is realized. The protocol processing module adopts parallel processing bus data, so that two bus protocols can perform independent read-write operation in parallel, and data read-write conflict is avoided through the data distributor, thereby achieving high-speed data read-write.
2. The error processing module is additionally arranged in the constructed protocol conversion device, and meanwhile, the link layer error correction method is constructed, and the error processing module feeds back abnormal responses such as data errors and overtime packet loss which possibly occur in the data transmission process in time, so that the data loss can be found in time, and the data transmission efficiency is ensured.
Drawings
FIG. 1 is a MODBUS bus network topology of the present invention;
FIG. 2 is a CC-Link bus network topology of the present invention;
FIG. 3 is a bus protocol conversion architecture diagram of the present invention;
FIG. 4 is a protocol processing module schematic of the present invention;
FIG. 5 is a schematic diagram of the FPGA prototype validation of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
A MODBUS and CC-Link protocol conversion device, as shown in figure 3, acts between MODBUS bus network and CC-Link bus network, and comprises a bus controller, a protocol receiving module, a protocol sending module, a protocol processing module, an address conversion module, an error processing module and a bus configuration module; the output end of the bus controller is connected with the input end of the protocol receiving module, the output end of the protocol receiving module is respectively connected with the input ends of the protocol processing module, the address conversion module and the error processing module, the protocol processing module comprises a data distributor, and the data distributor confirms the conversion circuit module according to the selection signal to perform corresponding protocol conversion; the output ends of the protocol processing module, the address conversion module and the error processing module are respectively connected with the bus configuration module and the protocol sending module, the output end of the protocol sending module is connected with the input end of the bus controller, and the bus configuration module is used for carrying out MODBUS bus network or CC-Link bus network parameter configuration.
As shown in fig. 1, the MODBUS network includes 1 MODBUS master device, MODBUS slave device and CC-Link slave device, where the MODBUS slave device and CC-Link slave device are all slave devices of the MODBUS network, the protocol converter and the MODBUS slave device are connected to the MODBUS network through the MODBUS controller and the physical layer circuit, and the protocol converter is connected to the CC-Link network through the controller and the transceiver of the CC-Link bus. As shown in FIG. 2, the CC-Link bus network comprises 1 CC-Link master station, CC-Link slave stations and MODBUS slave devices, and the protocol conversion device is connected with the CC-Link bus network through a controller and a transceiver of the CC-Link bus.
MODBUS slave devices and CC-Link slave devices in the MODBUS master device addressable network. When the CC-Link slave station equipment in the network is switched to the MODBUS bus network, the CC-Link slave station equipment is only used as the slave station of the MODBUS master equipment, and data requested by the MODBUS master station can be transmitted to the MODBUS bus network through the converter. When the CC-Link slave station equipment is switched to the MODBUS bus network, the command frame request data cannot be sent to other CC-Link slave stations and MODBUS slave equipment.
The protocol converter in the CC-Link network is the same as other CC-Link slave stations, and is accessed into the CC-Link bus network through the CC-Link transceiver circuit. The protocol converter is connected with the MODBUS bus network through the MODBUS controller and the physical layer circuit.
The CC-Link master station can address the CC-Link slave stations and the MODBUS slave devices in the network. When the MODBUS slave device in the network is switched to the CC-Link bus network, the MODBUS slave device is only used as a slave station of the CC-Link network, and data requested by the CC-Link master station can be transmitted to the CC-Link bus network through the converter. When the MODBUS slave device is switched to the CC-Link bus network, the command frame request data cannot be sent to other CC-Link slave stations and MODBUS slave devices.
The bus controller comprises a MODBUS and CC-Link 2 bus protocol controller and is used for receiving protocol serial data from a bus physical layer, converting the serial data of the physical layer into byte data when the bus controller receives the data on the bus physical layer, and storing the byte data into the protocol receiving module.
The protocol receiving module and the protocol sending module both adopt asynchronous FIFO and are used for caching bus protocol frames, wherein the protocol receiving module caches received original protocol frame data of an upstream bus controller, and the protocol sending module caches protocol frame data after protocol conversion.
The protocol address conversion module comprises an address mapping table, wherein the address mapping table comprises the mapping relation between an original protocol network address and a target protocol network address and is used for protocol address conversion in protocol conversion; the first half of each item in the mapping table is the address of the original protocol frame, the second half is the target protocol address, and the mapping table is maintained through an external bus.
As shown in fig. 4, the protocol processing module includes a data distributor, an MODBUS-to-CC-Link conversion circuit module, and a CC-Link-to-MODBUS conversion circuit module, and determines that the original protocol frame will enter the MODBUS-to-CC-Link conversion circuit module or the CC-Link-to-MODBUS conversion circuit module according to a selection signal of the data distributor.
The error processing module is used for converting when the protocol frame replied by the target protocol equipment has an error after the original protocol frame is forwarded to the target protocol equipment without error.
A conversion method of an MODBUS and CC-Link protocol conversion device comprises a conversion method from an MODBUS bus protocol to a CC-Link bus protocol, a conversion method from the CC-Link bus protocol to the MODBUS bus protocol and a Link layer error correction method.
As shown in fig. 5, the protocol conversion device is connected to the MODBUS bus network, the physical layer of the MODBUS adopts an RS232 chip, the protocol conversion device 13 is connected to the MODBUS bus network through an RS232 interface 11, and the protocol conversion device is connected to the ARM CPU to form an FPGA.
The method for converting the MODBUS bus protocol into the CC-Link bus protocol comprises the following steps:
step 1.1, MODBUS master equipment sends a protocol frame to an MODBUS bus network to address a CC-Link slave station, and a protocol conversion device receives the MODBUS bus protocol frame through an MODBUS physical layer interface;
step 1.2, the MODBUS controller in the bus controller converts the received serial data into byte data and stores the byte data into a protocol receiving module;
step 1.3, the address conversion module identifies the data address conversion search in the protocol receiving module according to the address comparison table;
step 1.4, the data distributor identifies the type of a source data bus and the type of a target bus, and converts a command field and a data field in a MODBUS bus protocol frame into a data field of a CC-Link bus protocol frame;
step 1.5, the protocol processing module stores the converted data into a protocol sending module, and a CC-Link bus controller in a bus controller converts byte data into a corresponding data format;
step 1.6, the converted protocol frame is sent to a CC-Link bus network through a CC-Link transceiver according to the station number address and the baud rate of a CC-Link slave station set by a bus configuration module and is replied to a MODBUS controller in a bus controller;
and step 1.7, the CC-Link slave station receives the converted protocol frame in the corresponding bus network to complete the conversion from the MODBUS protocol to the CC-Link bus protocol.
Moreover, the method for converting the CC-Link bus protocol into the MODBUS bus protocol comprises the following steps:
step 2.1, the CC-Link master station sends a protocol frame to the CC-Link bus network to address the MODBUS slave equipment, and the protocol conversion device receives the CC-Link bus protocol frame through the CC-Link physical layer interface;
2.2, the CC-Link controller in the bus controller converts the received serial data into byte data and stores the byte data into a protocol receiving module;
2.3, the address conversion module identifies the data address conversion search in the protocol receiving module according to the address comparison table;
2.4, identifying the type of a source data bus and the type of a target bus by the data distributor, and converting a command field and a data field in the CC-Link bus protocol frame into a data field of an MODBUS bus protocol frame;
step 2.5, the protocol processing module stores the converted data into the protocol sending module, and an MODBUS bus controller in the bus controller converts the byte data into a corresponding data format;
step 2.6, the converted protocol frame is sent to the MODBUS bus network through the MODBUS transceiver according to the address of the MODBUS slave device set by the bus configuration module and is replied to the CC-Link controller in the bus controller;
and 2.7, the MODBUS slave device receives the converted protocol frame in the corresponding bus network to complete the conversion from the CC-Link protocol to the MODBUS bus protocol.
An MODBUS bus network link layer error correction method comprises the following steps:
3.1, when an application layer error is generated in the process that the CC-Link slave station sends the response frame to the protocol conversion device, converting an error code defined by the CC-Link bus protocol into an abnormal response code specified by the MODBUS bus protocol by an error processing module;
and 3.2, the error processing module sends the error frame to the MODBUS controller in the bus controller, and the error frame is sent to the MODBUS controller in the bus controller 1.
The CC-Link bus network Link layer error correction method comprises the following steps:
step 4.1, when an application layer error is generated in the process that the MODBUS slave equipment sends the response frame to the conversion module, the error processing module needs to convert an abnormal response code defined by the MODBUS bus protocol into an error code specified by the CC-Link bus protocol;
and 4.2, the error processing module sends the error code to a CC-Link bus controller in the bus controller to finish the error correction method of the CC-Link bus network Link layer.
It should be emphasized that the embodiments described herein are illustrative and not restrictive, and thus the present invention includes, but is not limited to, the embodiments described in the detailed description, as well as other embodiments that can be derived by one skilled in the art from the teachings herein.

Claims (9)

1. A MODBUS and CC-Link protocol conversion device is characterized in that: the device acts between an MODBUS bus network and a CC-Link bus network and comprises a bus controller, a protocol receiving module, a protocol sending module, a protocol processing module, an address conversion module, an error processing module and a bus configuration module; the output end of the bus controller is connected with the input end of the protocol receiving module, the output end of the protocol receiving module is respectively connected with the input ends of the protocol processing module, the address conversion module and the error processing module, the protocol processing module comprises a data distributor, and the data distributor confirms the conversion circuit module according to the selection signal to perform corresponding protocol conversion; the output ends of the protocol processing module, the address conversion module and the error processing module are respectively connected with the bus configuration module and the protocol sending module, the output end of the protocol sending module is connected with the input end of the bus controller, and the bus configuration module is used for carrying out MODBUS bus network and CC-Link bus network parameter configuration.
2. The MODBUS and CC-Link protocol conversion device of claim 1, wherein: the MODBUS bus network comprises 1 MODBUS master device, 1 MODBUS slave device and 1 CC-Link slave station, wherein the protocol conversion device and the MODBUS slave device are accessed to the MODBUS bus network through an MODBUS controller and a physical layer circuit; the CC-Link bus network comprises 1 CC-Link master station, CC-Link slave stations and MODBUS slave equipment, and the protocol conversion device is connected with the CC-Link bus network through a controller and a transceiver of the CC-Link bus.
3. The MODBUS and CC-Link protocol conversion device of claim 1, wherein: the bus controller comprises MODBUS and CC-Link 2 bus protocol controllers and is used for receiving protocol serial data from a bus physical layer, converting the serial data of the physical layer into byte data when the bus controller receives the data on the bus physical layer, and storing the byte data into a protocol receiving module;
the protocol receiving module and the protocol sending module both adopt asynchronous FIFO and are used for caching bus protocol frames, wherein the protocol receiving module caches received original protocol frame data of an upstream bus controller, and the protocol sending module caches protocol frame data after protocol conversion;
the protocol address conversion module comprises an address mapping table, wherein the address mapping table comprises the mapping relation between an original protocol network address and a target protocol network address and is used for protocol address conversion in protocol conversion;
the protocol processing module comprises a data distributor, an MODBUS-to-CC-Link conversion circuit module and a CC-Link-to-MODBUS conversion circuit module, and judges whether an original protocol frame enters the MODBUS-to-CC-Link conversion circuit module or the CC-Link-to-MODBUS conversion circuit module according to a selection signal of the data distributor;
the error processing module is used for converting when the protocol frame replied by the target protocol equipment has an error after the original protocol frame is forwarded to the target protocol equipment without error.
4. The MODBUS and CC-Link protocol conversion device of claim 3, wherein: the first half of each item in the mapping table is the address of the original protocol frame, the second half is the target protocol address, and the mapping table is maintained through an external bus.
5. A method for converting MODBUS and CC-Link protocol conversion means according to any of claims 1 to 4, wherein: the method comprises a method for converting an MODBUS bus protocol into a CC-Link bus protocol, a method for converting the CC-Link bus protocol into the MODBUS bus protocol, a method for correcting the Link layer errors of the MODBUS bus network and a method for correcting the Link layer errors of the CC-Link bus network.
6. The method of claim 5 for converting MODBUS and CC-Link protocol conversion devices, wherein: the method for converting the MODBUS bus protocol into the CC-Link bus protocol comprises the following steps:
step 1.1, MODBUS master equipment sends a protocol frame to an MODBUS bus network to address a CC-Link slave station, and a protocol conversion device receives an MODBUS bus protocol frame through an MODBUS physical layer interface;
step 1.2, the MODBUS controller in the bus controller converts the received serial data into byte data and stores the byte data into a protocol receiving module;
step 1.3, the address conversion module identifies the data address conversion search in the protocol receiving module according to the address comparison table;
step 1.4, the data distributor identifies the type of a source data bus and the type of a target bus, and converts a command field and a data field in a MODBUS bus protocol frame into a data field of a CC-Link bus protocol frame;
step 1.5, the protocol processing module stores the converted data into a protocol sending module, and a CC-Link bus controller in a bus controller converts byte data into a corresponding data format;
step 1.6, the converted protocol frame is sent to a CC-Link bus network through a CC-Link transceiver according to the station number address and the baud rate of a CC-Link slave station set by a bus configuration module and is replied to a MODBUS controller in a bus controller;
and step 1.7, the CC-Link slave station receives the converted protocol frame in the corresponding bus network to complete the conversion from the MODBUS protocol to the CC-Link bus protocol.
7. The method of claim 5 for converting MODBUS and CC-Link protocol conversion devices, wherein: the method for converting the CC-Link bus protocol into the MODBUS bus protocol comprises the following steps:
step 2.1, the CC-Link master station sends a protocol frame to the CC-Link bus network to address the MODBUS slave equipment, and the protocol conversion device receives the CC-Link bus protocol frame through the CC-Link physical layer interface;
2.2, the CC-Link controller in the bus controller converts the received serial data into byte data and stores the byte data into a protocol receiving module;
2.3, the address conversion module identifies the data address conversion search in the protocol receiving module according to the address comparison table;
step 2.4, the data distributor identifies the type of a source data bus and the type of a target bus, and converts a command field and a data field in a CC-Link bus protocol frame into a data field of an MODBUS bus protocol frame;
step 2.5, the protocol processing module stores the converted data into the protocol sending module, and an MODBUS bus controller in the bus controller converts the byte data into a corresponding data format;
step 2.6, the converted protocol frame is sent to the MODBUS bus network through the MODBUS transceiver according to the address of the MODBUS slave device set by the bus configuration module and is replied to the CC-Link controller in the bus controller;
and 2.7, the MODBUS slave device receives the converted protocol frame in the corresponding bus network to complete the conversion from the CC-Link protocol to the MODBUS bus protocol.
8. The method for converting MODBUS and CC-Link protocol conversion device according to claim 5, wherein: the MODBUS bus network link layer error correction method comprises the following steps:
3.1, when an application layer error is generated in the process that the CC-Link slave station sends the response frame to the protocol conversion device, an error processing module converts an error code defined by the CC-Link bus protocol into an abnormal response code specified by the MODBUS bus protocol;
and 3.2, the error processing module sends the error frame to the MODBUS bus controller in the bus controller, and the error frame is sent to the MODBUS bus controller in the bus controller 1.
9. The method of claim 5 for converting MODBUS and CC-Link protocol conversion devices, wherein: the CC-Link bus network Link layer error correction method comprises the following steps:
step 4.1, when an application layer error is generated in the process that the MODBUS slave device sends the response frame to the conversion module, the error processing module needs to convert an abnormal response code defined by the MODBUS bus protocol into an error code specified by the CC-Link bus protocol;
and 4.2, the error processing module sends the error code to a CC-Link bus controller in the bus controller to finish the error correction method of the CC-Link bus network Link layer.
CN202210985590.2A 2022-08-17 2022-08-17 MODBUS and CC-Link protocol conversion device and method Active CN115334173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210985590.2A CN115334173B (en) 2022-08-17 2022-08-17 MODBUS and CC-Link protocol conversion device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210985590.2A CN115334173B (en) 2022-08-17 2022-08-17 MODBUS and CC-Link protocol conversion device and method

Publications (2)

Publication Number Publication Date
CN115334173A true CN115334173A (en) 2022-11-11
CN115334173B CN115334173B (en) 2024-04-26

Family

ID=83924046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210985590.2A Active CN115334173B (en) 2022-08-17 2022-08-17 MODBUS and CC-Link protocol conversion device and method

Country Status (1)

Country Link
CN (1) CN115334173B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714237A (en) * 2024-02-05 2024-03-15 中国电子信息产业集团有限公司第六研究所 Gateway communication board and data transmission method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734980A (en) * 2015-04-10 2015-06-24 常州多维信息科技有限公司 Industrial field bus multi-protocol router and multi-protocol conversion method
CN108848133A (en) * 2018-05-28 2018-11-20 北京航空航天大学 A kind of Hub controller design method of Facing to Manufacturing Internet of Things
CN208314542U (en) * 2018-05-17 2019-01-01 天津七所高科技有限公司 A kind of system of the welding controller adaptation CC-Link bus based on Modbus
CN111510363A (en) * 2020-05-23 2020-08-07 东莞市艾莫迅自动化科技有限公司 Slave station conversion device based on MODBUS protocol and control method thereof
US20210157758A1 (en) * 2019-11-27 2021-05-27 Analog Devices, Inc. Unified network interface for industrial networks
CN114222009A (en) * 2021-12-15 2022-03-22 北京工业大学 Industrial communication multi-protocol conversion system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734980A (en) * 2015-04-10 2015-06-24 常州多维信息科技有限公司 Industrial field bus multi-protocol router and multi-protocol conversion method
CN208314542U (en) * 2018-05-17 2019-01-01 天津七所高科技有限公司 A kind of system of the welding controller adaptation CC-Link bus based on Modbus
CN108848133A (en) * 2018-05-28 2018-11-20 北京航空航天大学 A kind of Hub controller design method of Facing to Manufacturing Internet of Things
US20210157758A1 (en) * 2019-11-27 2021-05-27 Analog Devices, Inc. Unified network interface for industrial networks
CN111510363A (en) * 2020-05-23 2020-08-07 东莞市艾莫迅自动化科技有限公司 Slave station conversion device based on MODBUS protocol and control method thereof
CN114222009A (en) * 2021-12-15 2022-03-22 北京工业大学 Industrial communication multi-protocol conversion system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714237A (en) * 2024-02-05 2024-03-15 中国电子信息产业集团有限公司第六研究所 Gateway communication board and data transmission method
CN117714237B (en) * 2024-02-05 2024-05-03 中国电子信息产业集团有限公司第六研究所 Gateway communication board and data transmission method

Also Published As

Publication number Publication date
CN115334173B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN101572702B (en) Method for scheduling high-speed bus master and slave network communication
US7051143B2 (en) Method, system and program for the transmission of modbus messages between networks
CN114222009B (en) Industrial communication multi-protocol conversion system
CN101719922B (en) Device and method of protocol conversion between PROFIBUS-DP industrial fieldbus and wireless ZIGBEE
CN102332971B (en) Field-bus full duplex reliable communication method for numerical control system
CN212163361U (en) Two main station controller communication systems
CN101729572B (en) Protocol conversion device between MODBUS industrial field bus and wireless ZIGBEE and method thereof
CN115334173B (en) MODBUS and CC-Link protocol conversion device and method
CN113660191A (en) Communication method for bridging MIL-STD-1553 and GJB1188B protocols through FC-AE-1553 protocol
TWI588636B (en) Method for controlling industry equipment, and system for controlling industry equipment
US20050141555A1 (en) Method for generating commands for network controller modules of peripheral devices
JP5308418B2 (en) Programmable logic controller
WO2021027047A1 (en) Heterogeneous link data translation and distribution method, system and device, and storage medium
CN111459517A (en) Master-slave equipment online program upgrading method under optical fiber ring network architecture
KR101071086B1 (en) Integrated Network System For Communication of Robot And Operation Method thereof
CN114697329A (en) HPC cloud computing system based on cloud computing mobile network resource management
CN113612668A (en) Communication method for bridging three protocols
CN112363963A (en) Data transmission method and device based on Powerlink bus
Fang et al. Research and Implementation of Collision Detection Based on Modbus Protocol.
CN115190128B (en) Computing power perception and computing task distribution system based on embedded edge gateway
CN115174370B (en) Distributed mixed data deterministic transmission device and method
CN115834003B (en) Definable Ethernet link layer redundancy method and definable Ethernet link layer redundancy device based on compatible real-time synchronization
CN115766595B (en) PLC internal rapid scanning communication system
CN220210465U (en) Internal communication device and system of multi-motor transmission system
CN111614532B (en) CAN redundant communication system based on DSP

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant