CN112929356A - Method and system for converting cclink protocol into modbus protocol - Google Patents

Method and system for converting cclink protocol into modbus protocol Download PDF

Info

Publication number
CN112929356A
CN112929356A CN202110135796.1A CN202110135796A CN112929356A CN 112929356 A CN112929356 A CN 112929356A CN 202110135796 A CN202110135796 A CN 202110135796A CN 112929356 A CN112929356 A CN 112929356A
Authority
CN
China
Prior art keywords
modbus
data
cclink
protocol
interface
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.)
Pending
Application number
CN202110135796.1A
Other languages
Chinese (zh)
Inventor
余飞
张腾
裴庆夏
周志扬
陈楠
管宏伟
钱文昊
杨青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Yihengda Intelligent Systems Co ltd
Original Assignee
Nanjing Yihengda Intelligent Systems 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 Nanjing Yihengda Intelligent Systems Co ltd filed Critical Nanjing Yihengda Intelligent Systems Co ltd
Priority to CN202110135796.1A priority Critical patent/CN112929356A/en
Publication of CN112929356A publication Critical patent/CN112929356A/en
Pending legal-status Critical Current

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
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a method and a system for converting a cclink protocol into a modbus protocol, which comprise the following steps: the cclink interface transmits the received data to the processor through the isolation circuit; the processor analyzes the received data; and the processor transmits the analyzed data to the modbus interface. The invention realizes seamless data transmission from the CCLINK station to the modbus master station io, and has higher connection transmission speed; and the previous plc conversion is not needed any more, so that the conversion cost is reduced. The processor adopts an R-IN32M3-E chip, has the processing capacity of 210DMIPS when running at high speed of 400MHz, and simultaneously supports floating point arithmetic capability and enhanced DSP processing instructions.

Description

Method and system for converting cclink protocol into modbus protocol
Technical Field
The invention relates to the technical field of communication protocols, in particular to a method and a system for converting a cclink protocol into a modbus protocol.
Background
With the development of modern measurement and control technology and information management, the welding equipment makes progress towards simplification of human-computer interaction, intellectualization of process control and informatization of quality management. In recent years, intelligent automatic welding control systems have been increasingly researched. With the development, the emergence and development of digital welders is a necessity of technical development. The development and development of the digital welding control system become a new development stage of the human manufacturing industry.
The digital welding control system contains more functions and tends to be complicated, and a single CPU has difficulty in realizing multiple functions. Due to the diversification of production robots and welder manufacturers, protocols used between the robots and welding equipment are diversified, and a single protocol is difficult to adapt to the market.
Disclosure of Invention
The embodiment of the invention provides a method and a system for converting a cclink protocol into a modbus protocol, which are used for solving the problems in the background technology.
The embodiment of the invention provides a method for converting a cclink protocol into a modbus protocol, which comprises the following steps:
the cclink interface transmits the received data to the processor through the isolation circuit;
the processor analyzes the received data;
and the processor transmits the analyzed data to the modbus interface.
Further, the method for converting the cclink protocol into the modbus protocol provided by the embodiment of the present invention further includes: the self-checking of the processor after being electrified specifically comprises the following steps:
initializing a system;
setting a baud rate;
setting a station number;
hardware connection cclink main station
Judging a refst interrupt signal bit;
and if the signal bit is refst interrupt signal bit 1, reading the data, and if the signal bit is 0, continuing to connect the cclink master station.
Further, the processor is self-checked after being powered on, and the method further comprises the following steps:
and processing according to a function corresponding to the zone bit alarm through zone bit alarm prompt, and initializing again if an error occurs.
Further, the method for converting the cclink protocol into the modbus protocol provided by the embodiment of the present invention further includes: and the processor performs io configuration and is used for mapping the corresponding relation between the io data received by the CCLINK interface and the io data sent by the modbus interface.
Further, the method for converting the cclink protocol into the modbus protocol provided by the embodiment of the present invention further includes: the processor sets the response time to the CCLINK master.
6. The method for converting the cclink protocol to the modbus protocol of claim 1, wherein the processor transmitting the parsed data to the modbus interface comprises:
the processor carries out initialization setting on the modbus interface;
the analyzed data are transmitted to a modbus master station interface for polling a slave station;
and when the slave station is polled, judging whether data are to be sent or not, if so, sending the data to the modbus slave station interface, otherwise, judging whether valid forwarding data are received or not, if so, storing the data, and otherwise, carrying out next polling.
7. The method of converting the cclink protocol to the modbus protocol of claim 1, wherein the isolation circuit comprises: the transient diode branch circuit comprises an inductance branch circuit, a transient diode branch circuit and a capacitance branch circuit which are connected in parallel;
the inductance branch adopts an ACT 45B-510 inductance; the transient diode branch is formed by connecting two groups of diodes in series, and each group of diodes is formed by connecting two UP2105L diodes in reverse series; the capacitor branch is formed by connecting two capacitors of 22pf in series.
7. The method for converting the cclink protocol to the modbus protocol as claimed in any one of claims 1 to 6, wherein the processor employs an R-INM32-E chip.
The system for converting a cclink protocol into a modbus protocol provided by the embodiment of the invention comprises: the device comprises a cclink interface, an isolation circuit, a processor and a modbus interface which are connected in sequence;
wherein the processor is configured to, in response to the instruction,
the device comprises a data processing module, a data transmission module and a data transmission module, wherein the data processing module is used for analyzing data received from a cclink interface and transmitting the analyzed data to a modbus interface; carrying out io configuration for mapping the corresponding relation between the io data received by the CCLINK interface and the io data sent by the modbus interface; the response time is set to the CCLINK master.
Further, the processor is also used for
Initializing and setting a modbus interface;
the analyzed data are transmitted to a modbus master station interface for polling a slave station;
and when the slave station is polled, judging whether data are to be sent or not, if so, sending the data to the modbus slave station interface, otherwise, judging whether valid forwarding data are received or not, if so, storing the data, and otherwise, carrying out next polling.
Further, the system for converting a cclink protocol into a modbus protocol provided in the embodiment of the present invention further includes: the power supply chip is used for supplying power to the cclink interface, the isolation circuit, the processor and the modbus interface;
the power supply chip adopts a power supply tps54331 chip.
Compared with the prior art, the embodiment of the invention provides a method for converting a cclink protocol into a modbus protocol, which has the following beneficial effects:
according to the invention, the CCLINK interface is adopted to transmit the received data to the processor chip through the isolation circuit, and the data is transmitted to the modbus interface after being analyzed by the processor chip, so that seamless transmission of data from the CCLINK station to the modbus master station io is realized, and the connection transmission speed is higher; and the previous plc conversion is not needed any more, so that the conversion cost is reduced. The processor adopts an R-IN32M3-E chip, has the processing capacity of 210DMIPS when running at high speed of 400MHz, and simultaneously supports floating point arithmetic capability and enhanced DSP processing instructions.
Drawings
Fig. 1 is a flowchart of a method for converting a cclink protocol into a modbus protocol according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a self-test after a processor is powered on according to an embodiment of the present invention;
FIG. 3 is a flow chart of a processor transferring data to a modbus interface according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an isolation circuit according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 to 3, an embodiment of the present invention provides a method for converting a cclink protocol into a modbus protocol, that is, a method for converting a protocol between a robot and a welding device, where the method includes: the CCINK interface is adopted to transmit the received data to the processor chip through the isolating circuit, the data are analyzed by the processor chip, initialization setting is carried out on the modbus interface, and then the data are transmitted to the modbus interface to carry out polling on the slave station; and when polling is performed, judging whether data are to be sent or not, if so, sending the data to the modbus slave station interface, otherwise, judging whether valid forwarding data are received or not, if so, storing the data, and otherwise, performing next polling.
After the processor of this embodiment is powered on, a self-check operation is performed, including:
(1) initializing a system;
(2) setting a baud rate;
(3) setting a station number;
(4) hardware connection cclink main station
(5) Judging a refst interrupt signal bit;
(6) if the bit is 1, reading data, and if the bit is 0, continuing to connect the cclink master station;
in this embodiment, the error processing operation is performed by the flag bit alarm prompt according to the flag bit alarm and the corresponding function, and if an error occurs, the step (1) is returned to perform initialization again.
In order to implement intelligent connection, perform state management, prevent data errors during connection, and automatically recover connection, this embodiment performs io configuration on a processor, and is configured to map a correspondence between io data received by the CCLINK interface and io data sent by the modbus interface. The data mainly refers to hexadecimal data, and the robot reads the data and then judges the state according to the data to work.
The protocol conversion module for implementing the protocol conversion method in this embodiment includes a devicenet interface, an isolation circuit, a processor chip, and a modbus interface, which are connected in sequence. The module also includes a power chip for powering the devicenet interface, the isolation circuit, the processor chip, and the modbus interface. The specific chip types are as follows:
the processor chip comprises an R-IN32M3-E chip;
the CAN bus conversion chip comprises an SN65HVD230 chip;
the isolation circuit comprises an ADM2483 chip;
the power tps54331 chip;
the processor sets response time for the CCLINK master station, response speed of 10ms is achieved, and time for protocol conversion is shortened.
The schematic diagram of the isolation circuit is shown in fig. 4, and includes an inductance branch, a transient diode branch and a capacitance branch which are connected in parallel; the inductance branch comprises an ACT 45B-510 inductor; the transient diode branch is formed by connecting two groups of diodes in series, and each group of diodes is formed by connecting two UP2105L diodes in reverse series; the capacitor branch is formed by connecting two capacitors of 22pf in series.
Although the embodiments of the present invention have been disclosed in the foregoing for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the invention as disclosed in the accompanying drawings.

Claims (10)

1. A method for converting a cclink protocol into a modbus protocol is characterized by comprising the following steps:
the cclink interface transmits the received data to the processor through the isolation circuit;
the processor analyzes the received data;
and the processor transmits the analyzed data to the modbus interface.
2. The method for converting the cclink protocol to the modbus protocol of claim 1, further comprising: the self-checking of the processor after being electrified specifically comprises the following steps:
initializing a system;
setting a baud rate;
setting a station number;
hardware connection cclink main station
Judging a refst interrupt signal bit;
and if the signal bit is refst interrupt signal bit 1, reading the data, and if the signal bit is 0, continuing to connect the cclink master station.
3. The method for converting the cclink protocol to the modbus protocol of claim 2, wherein the processor self-tests after power-on, further comprising:
and processing according to a function corresponding to the zone bit alarm through zone bit alarm prompt, and initializing again if an error occurs.
4. The method for converting the cclink protocol to the modbus protocol of claim 1, further comprising: and the processor performs io configuration and is used for mapping the corresponding relation between the io data received by the CCLINK interface and the io data sent by the modbus interface.
5. The method for converting the cclink protocol to the modbus protocol of claim 1, wherein the processor transmitting the parsed data to the modbus interface comprises:
the processor carries out initialization setting on the modbus interface;
the analyzed data are transmitted to a modbus master station interface for polling a slave station;
and when the slave station is polled, judging whether data are to be sent or not, if so, sending the data to the modbus slave station interface, otherwise, judging whether valid forwarding data are received or not, if so, storing the data, and otherwise, carrying out next polling.
6. The method of converting the cclink protocol to the modbus protocol of claim 1, wherein the isolation circuit comprises: the transient diode branch circuit comprises an inductance branch circuit, a transient diode branch circuit and a capacitance branch circuit which are connected in parallel;
the inductance branch adopts an ACT 45B-510 inductance; the transient diode branch is formed by connecting two groups of diodes in series, and each group of diodes is formed by connecting two UP2105L diodes in reverse series; the capacitor branch is formed by connecting two capacitors of 22pf in series.
7. The method for converting the cclink protocol to the modbus protocol as claimed in any one of claims 1 to 6, wherein the processor employs an R-INM32-E chip.
8. A system for converting a cclink protocol into a modbus protocol is characterized by comprising: the device comprises a cclink interface, an isolation circuit, a processor and a modbus interface which are connected in sequence;
wherein the processor is configured to, in response to the instruction,
the device comprises a data processing module, a data transmission module and a data transmission module, wherein the data processing module is used for analyzing data received from a cclink interface and transmitting the analyzed data to a modbus interface; and carrying out io configuration for mapping the corresponding relation between the io data received by the CCLINK interface and the io data sent by the modbus interface.
9. The system for converting the cclink protocol to the modbus protocol of claim 8, wherein the processor is further configured to
Initializing and setting a modbus interface;
the analyzed data are transmitted to a modbus master station interface for polling a slave station;
and when the slave station is polled, judging whether data are to be sent or not, if so, sending the data to the modbus slave station interface, otherwise, judging whether valid forwarding data are received or not, if so, storing the data, and otherwise, carrying out next polling.
10. The system for converting the cclink protocol to the modbus protocol of claim 8, further comprising: the power supply chip is used for supplying power to the cclink interface, the isolation circuit, the processor and the modbus interface;
the power supply chip adopts a power supply tps54331 chip.
CN202110135796.1A 2021-02-01 2021-02-01 Method and system for converting cclink protocol into modbus protocol Pending CN112929356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110135796.1A CN112929356A (en) 2021-02-01 2021-02-01 Method and system for converting cclink protocol into modbus protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110135796.1A CN112929356A (en) 2021-02-01 2021-02-01 Method and system for converting cclink protocol into modbus protocol

Publications (1)

Publication Number Publication Date
CN112929356A true CN112929356A (en) 2021-06-08

Family

ID=76169192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110135796.1A Pending CN112929356A (en) 2021-02-01 2021-02-01 Method and system for converting cclink protocol into modbus protocol

Country Status (1)

Country Link
CN (1) CN112929356A (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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208314542U (en) * 2018-05-17 2019-01-01 天津七所高科技有限公司 A kind of system of the welding controller adaptation CC-Link bus based on Modbus
CN109725575A (en) * 2018-12-27 2019-05-07 南京熊猫电子股份有限公司 The application system of compatible adaptive various field industrial bus communication
CN110809003A (en) * 2019-11-13 2020-02-18 哈工大机器人湖州国际创新研究院 Method for protocol conversion between robot and welding equipment and protocol conversion module
CN110809002A (en) * 2019-11-13 2020-02-18 哈工大机器人湖州国际创新研究院 Method for protocol conversion between robot and welding equipment and protocol conversion module
US20200412669A1 (en) * 2017-08-18 2020-12-31 Missing Link Electronics, Inc. Real-time multi-protocol heterogeneous packet-based transport

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200412669A1 (en) * 2017-08-18 2020-12-31 Missing Link Electronics, Inc. Real-time multi-protocol heterogeneous packet-based transport
CN208314542U (en) * 2018-05-17 2019-01-01 天津七所高科技有限公司 A kind of system of the welding controller adaptation CC-Link bus based on Modbus
CN109725575A (en) * 2018-12-27 2019-05-07 南京熊猫电子股份有限公司 The application system of compatible adaptive various field industrial bus communication
CN110809003A (en) * 2019-11-13 2020-02-18 哈工大机器人湖州国际创新研究院 Method for protocol conversion between robot and welding equipment and protocol conversion module
CN110809002A (en) * 2019-11-13 2020-02-18 哈工大机器人湖州国际创新研究院 Method for protocol conversion between robot and welding equipment and protocol conversion module

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

Similar Documents

Publication Publication Date Title
CN110809003A (en) Method for protocol conversion between robot and welding equipment and protocol conversion module
CN110809002A (en) Method for protocol conversion between robot and welding equipment and protocol conversion module
CN110247936B (en) Communication protocol conversion card and communication protocol conversion system
CN213934874U (en) RS485 serial bus communication equipment based on monitoring technology
CN111885008A (en) Protocol conversion module between robot and welding equipment and conversion method thereof
CN105446837A (en) Method, device and system for detecting whether IIC (inter-integrated circuit) interface device is connected
CN107168045B (en) Communication redundancy control system based on EtherCAT
CN112929356A (en) Method and system for converting cclink protocol into modbus protocol
CN105243039A (en) Serial port communication system and method
CN100479295C (en) Synchronized switching controller and its control for parallel uninterrupted power supply
CN105354157A (en) Method, device and system for configuring IIC (Inter-Integrated Circuit) device
CN212183548U (en) IEC61850 protocol and Modbus protocol keysets
CN212034137U (en) PROFIBUS-DP and CC-Link protocol converter
CN214042097U (en) PLC serial port communication extension module capable of customizing protocol
CN213780956U (en) Dual-channel redundant communication module of Modbus
CN111988113B (en) EtherCAT protocol and ASI protocol communication system and method
CN204155117U (en) A kind of big-power transducer control system
CN202093347U (en) Interface module for EtherCAT bus numerical control system
CN110687854B (en) PA bus controller and PA bus control system
CN210666762U (en) Universal board card
CN210380893U (en) Topology board card and topology system
CN114488871A (en) Control method, frequency converter and computer readable storage medium
CN112148321B (en) Anti-interference upgrading system and method for automobile intelligent electronic equipment microcontroller
CN203883862U (en) PROFIBUS communication module for connecting frequency converter with host computer
CN209765328U (en) industrial-grade remote IO module based on EtherCAT

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210608