IO module control system and communication method

By using the IO module master station to connect to the IO module slave station with the EtherCAT communication of the robot controller and the CAN communication of the DeviceNet protocol in the industrial robot system, the high cost of remote I/O module system and insecure data transmission in the existing technology is solved. The problem is to achieve efficient and reliable data transmission and processing.

CN118945003APending Publication Date: 2024-11-12ZHEJIANG QIANJIANG ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411151743.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing industrial robot remote I/O module system is costly and data transmission is unsafe, EtherCAT expansion costs are high, and 485 bus expansion has the risk of data loss.

Method used

The IO module master station is connected to the robot controller through EtherCAT communication, and the CAN communication of the DeviceNet protocol is used to connect multiple IO module slave stations to achieve the security and reliability of data transmission, and reduce the data link layer through the CRC checksum-completed data link layer. Risk of data loss.

Benefits of technology

It significantly reduces system costs, improves the reliability and security of data transmission, enhances the flexibility and adaptability of the system, and improves the overall efficiency and response speed of industrial automation systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945003A_ABST
    Figure CN118945003A_ABST
Patent Text Reader

Abstract

The invention provides an IO module control system and a communication method, and relates to the technical field of industrial robots, the IO module control system comprises an IO module master station, N IO module slave stations and a robot controller, the IO module master station and the robot controller are in communication connection through EtherCAT, and the IO module master station and the N IO module slave stations are in communication connection through CAN based on a DeviceNet protocol; the IO module master station is used for receiving a first data packet sent by the robot controller and sending a control instruction to the target IO module slave station based on the first data packet so as to instruct the first external equipment to execute a corresponding operation; the IO module master station is further used for receiving a second data packet sent by the target IO module slave station and sending the second data packet to the robot controller, and the second data packet comprises data collected by the first external device. By implementing the technical scheme provided by the invention, the effects of reducing the cost and improving the reliability and safety of data transmission are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial robots, and in particular to an IO module control system and a communication method. Background Art

[0002] In industrial robot applications, remote expansion I / O modules play a key role, responsible for signal acquisition, output, data processing and transmission, so as to realize real-time monitoring and data transmission of industrial robots to external devices. At present, the industry mainly uses EtherCAT expansion or 485 bus expansion as a solution for remote I / O modules. However, EtherCAT expansion is costly because it requires a dedicated slave chip; and 485 bus expansion has the risk of data loss during data transmission because it lacks an effective CRC check and data link layer. Therefore, it is an urgent need for the industry to develop a remote I / O module system that is both economical and efficient and can ensure data security. Summary of the invention

[0003] The purpose of the present application is to overcome the above-mentioned technical problems. The present application provides an IO module control system and a communication method.

[0004] In the first aspect, the present application provides an IO module control system, including: an IO module master station, N IO module slave stations, and a robot controller, wherein the IO module master station and the robot controller are connected via EtherCAT communication, and the IO module master station and the N IO module slave stations are connected via CAN communication based on the DeviceNet protocol; the IO module master station is used to receive a first data packet sent by the robot controller, and send a control instruction to the target IO module slave station based on the first data packet to instruct the first external device to perform a corresponding operation, wherein the target IO module slave station is one or more IO module slave stations among the N IO module slave stations, the first external device is a device connected to the target IO module slave station, and N is a positive integer greater than or equal to 1; the IO module master station is also used to receive a second data packet sent by the target IO module slave station, and send the second data packet to the robot controller, the second data packet includes data sent by each IO module slave station in the target IO module slave station, and the second data packet includes data collected by the first external device.

[0005] By adopting the above technical solution, the IO module master station communicates with the robot controller via EtherCAT, and the IO module master station communicates with each of the N IO module slave stations via CAN, that is, a remote IO module control system using CAN expansion; by using CAN communication based on the DeviceNet protocol to connect the IO module master station and the slave station, the system avoids the expensive cost required for EtherCAT expansion, thereby significantly reducing the system cost, and also avoids the risk of data loss caused by the remote IO module system using the 485 bus expansion. The built-in CRC checksum and perfect data link layer of the DeviceNet protocol ensure the security and reliability of the data transmission process, effectively reducing the risk of data loss. The IO module control system allows multiple IO module slave stations to be flexibly connected through CAN communication, so that the system can be flexibly expanded according to actual needs, meet the application requirements in different industrial scenarios, and improve the flexibility and adaptability of the system; the IO module master station can receive the instructions of the robot controller and quickly forward them to the target IO module slave station, while collecting the data returned by the slave station and transmitting it back to the robot controller, realizing efficient data transmission and processing, improving the overall efficiency and response speed of the industrial automation system; and also achieving the effect of improving the reliability and security of data transmission.

[0006] Optionally, the IO module master station includes: a first main control chip, an Ethernet chip, a first CAN transceiver module, a first group of terminal blocks, a first network interface, and an isolation transformer, wherein the first network interface is electrically connected to the Ethernet chip through an isolation transformer, and the Ethernet chip is electrically connected to the first main control chip, wherein the IO module master station performs EtherCAT communication with the robot controller through the first network interface; the first main control chip is electrically connected to the first CAN transceiver module, and the first CAN transceiver module is electrically connected to N IO module slave stations through the first terminal block, wherein the first group of terminal blocks includes the first terminal block, and the IO module master station performs CAN communication with the N IO module slave stations through the first CAN transceiver module.

[0007] By adopting the above technical solution, by using components such as the first main control chip, the Ethernet chip and the first CAN transceiver module, efficient integration of EtherCAT and CAN communication interfaces is achieved, so that the IO module master station can simultaneously communicate efficiently and stably with the robot controller and multiple IO module slaves; the first network interface is electrically connected to the Ethernet chip through an isolation transformer. This design effectively isolates electromagnetic interference from external electrical equipment and ensures the stability and reliability of the EtherCAT communication signal.

[0008] Optionally, the IO module master station also includes: a first power supply module, the first power supply module includes a first power supply circuit and a second power supply circuit, wherein the first power supply circuit includes a DC-DC conversion circuit and an LDO step-down circuit, wherein the DC-DC conversion circuit is used to convert the original DC voltage into a first DC voltage, and the LDO step-down circuit is used to reduce the first DC voltage to a first preset DC voltage, and the first preset DC voltage is used to power the first master control chip; the second power supply circuit includes an isolated power supply chip and a voltage reference chip, wherein the second power supply circuit is used to convert the original DC voltage into a second preset DC voltage.

[0009] By adopting the above technical solution, the first power supply module provides different voltage outputs (a first preset DC voltage and a second preset DC voltage), which meets the diverse voltage requirements of different components inside the IO module master station, improves the flexibility and compatibility of the system, and enables the system to adapt to more types of IO modules and external devices.

[0010] Optionally, the first group of wiring sockets also includes a second wiring socket, a third wiring socket and a fourth wiring socket, wherein the first main control chip is electrically connected to the first group of wiring terminals in the second wiring socket through the first operational amplifier circuit, the first main control chip is also electrically connected to the second group of wiring terminals in the second wiring socket through the second operational amplifier circuit, the first main control chip is also electrically connected to the third group of wiring terminals in the second wiring socket through the first optical coupler, the first main control chip is also electrically connected to the fourth group of wiring terminals in the second wiring socket through the second optical coupler, the first group of wiring terminals includes 2 wiring terminals, the first group of wiring terminals is used to output 2 analog quantities, the second group of wiring terminals includes 2 wiring terminals, the second group of wiring terminals is used to input 2 analog quantities, and the third group of wiring terminals includes 6 wiring terminals. The first master control chip is also electrically connected to the input end of the third optocoupler, and the output end of the third optocoupler is electrically connected to the fifth group of terminals in the third wiring seat through the first relay, wherein the fifth group of terminals is used to output 24 signals; the first master control chip is also electrically connected to the output end of the fourth optocoupler, and the input end of the fourth optocoupler is electrically connected to the sixth group of terminals in the fourth wiring seat, wherein the sixth group of terminals is used to input 24 signals, and the IO module master station also includes a first operational amplifier circuit, a second operational amplifier circuit, a first optocoupler, a second optocoupler, a third optocoupler, a fourth optocoupler and a first relay.

[0011] By adopting the above technical solutions, by introducing a variety of circuit components (such as operational amplifier circuits, optocouplers, relays, etc.) to realize analog and digital input and output functions, and by designing a structure including multiple wiring blocks and wiring terminals, the system can support a large number of analog and digital input and output channels, which is crucial for industrial automation systems that need to process complex signals and control multiple external devices; by using isolation components such as optocouplers and relays, the electrical isolation between the input and output signals and the main control chip is realized, which effectively prevents the propagation of signal interference and electrical faults, and improves the stability and safety of the system; the analog input and output signals are conditioned and amplified by operational amplifier circuits to ensure the accuracy and reliability of the signals. This is particularly important for application scenarios that require high-precision signal processing; the system can process analog and digital signals at the same time, and each signal type has independent input and output channels, which provides users with great flexibility and convenience, allowing the system to adapt to more types of external devices and application scenarios.

[0012] Optionally, the first wiring socket is a DB9 female socket, the second wiring socket is a 20p female socket, the third wiring socket includes a 48p terminal, and the fourth wiring socket includes a 48p terminal.

[0013] By adopting the above technical solution, the first terminal block can use a DB9 female socket, the second terminal block can use a 20p female socket, the third terminal block includes a 48p terminal, and the fourth terminal block includes a 48p terminal. By selecting the appropriate terminal block type, the diverse needs of the IO module control system in signal transmission can be met. Standardized terminal block types and specifications help speed up system integration and reduce the error rate and debugging difficulty during the integration process.

[0014] Optionally, the second terminal block, the third terminal block and the fourth terminal block are used to connect a second external device, and the IO module master station also controls the second external device to perform corresponding operations based on the first data packet, and the IO module master station is also used to receive a third data packet and send the third data packet to the robot controller, wherein the third data packet includes data collected by the second external device.

[0015] By adopting the above technical solution, the second terminal block, the third terminal block and the fourth terminal block are used to connect the second external device, that is, the IO module master station can not only communicate with N IO module slave stations to perform signal acquisition and data transmission, but the IO module master station itself can also connect to external devices to directly perform signal acquisition and data transmission. The IO module master station can not only control the second external device to perform corresponding operations, but also receive data from these devices (encapsulated in the third data packet) and send these data to the robot controller or other processing units. This efficient transmission and processing mechanism of data streams ensures that the system can obtain and process the status information or collected data of external devices in real time and accurately; by directly controlling external devices and receiving their data, the IO module master station can reduce the intermediate links and delays in data transmission, thereby improving the overall performance and response speed of the system. This is crucial for industrial automation scenarios that require fast response and precise control.

[0016] Optionally, the i-th IO module slave station is any IO module slave station among the N IO module slave stations, and the i-th IO module slave station includes: a second master control chip, a second CAN transceiver module, a second group of wiring sockets, and a second power supply module, wherein the second master control chip is electrically connected to the second CAN transceiver module, and the second CAN transceiver module is electrically connected to the first wiring socket through a fifth wiring socket, wherein the second group of wiring sockets includes a fifth wiring socket, and the i-th IO module slave station performs CAN communication with the IO module master station through the second CAN transceiver module; the second power supply module is used to provide a third preset DC voltage and a fourth preset DC voltage; the second group of wiring sockets also includes a sixth wiring socket, a seventh wiring socket and an eighth wiring socket, wherein the second master control chip is electrically connected to the seventh group of wiring terminals in the sixth wiring socket through a third operational amplifier circuit, the second master control chip is also electrically connected to the eighth group of wiring terminals in the sixth wiring socket through a fourth operational amplifier circuit, the second master control chip is also electrically connected to the ninth group of wiring terminals in the sixth wiring socket through a fifth optical coupler, and the second master control chip is also electrically connected to the tenth group of wiring terminals in the sixth wiring socket through a sixth optical coupler. The wiring terminals are electrically connected, the seventh group of wiring terminals includes 2 wiring terminals, and the seventh group of wiring terminals is used to output 2 analog quantities, the eighth group of wiring terminals includes 2 wiring terminals, and the eighth group of wiring terminals is used to input 2 analog quantities, the ninth group of wiring terminals includes 6 wiring terminals, and the ninth group of wiring terminals is used to output 6 digital quantities, and the tenth group of wiring terminals includes 6 wiring terminals, and the tenth group of wiring terminals is used to input 6 digital quantities; the second master control chip is also electrically connected to the input end of the seventh optocoupler, and the output end of the seventh optocoupler is electrically connected to the eleventh group of wiring terminals in the seventh wiring seat through the second relay, wherein the eleventh group of wiring terminals is used to output 24 signals; the second master control chip is also electrically connected to the output end of the eighth optocoupler, and the input end of the eighth optocoupler is electrically connected to the twelfth group of wiring terminals in the eighth wiring seat, wherein the twelfth group of wiring terminals is used to input 24 signals; wherein, the i-th IO module slave station also includes a third op amp circuit, a fourth op amp circuit, a fifth optocoupler, a sixth optocoupler, a seventh optocoupler, an eighth optocoupler and a second relay, and i is a positive integer greater than or equal to 1 and less than or equal to N.

[0017] By adopting the above technical solution, any IO module slave station among the N IO module slave stations, for example, the i-th IO module slave station, includes a second main control chip, a second CAN transceiver module, a second group of wiring sockets and a second power supply module, wherein the second CAN transceiver module is electrically connected to the first wiring socket through the fifth wiring socket, thereby realizing CAN communication between the i-th IO module slave station and the IO module master station; similar to the aforementioned first power supply module, the second power supply module can also provide a variety of different DC voltages; in addition, different external devices can be connected through the sixth wiring socket, the seventh wiring socket and the eighth wiring socket in the second group of wiring sockets. The IO module slave station uses a multi-channel design to enable the system to be easily expanded to support more input and output requirements without large-scale changes to the hardware structure. Through signal conditioning and amplification, and the use of isolation elements, the system can process input and output signals more accurately, reducing the risk of signal distortion and noise interference; the combination of electrical isolation and signal processing effectively prevents the influence of external electrical faults on the main control chip and other parts of the system, and improves the overall safety and stability of the system.

[0018] Optionally, the first CAN transceiver module includes: a first CAN transceiver, a common mode inductor, an anti-static diode, a first resistor, a second resistor, a first capacitor, and a second capacitor, wherein a data input pin of the first CAN transceiver is electrically connected to a data sending pin of the first main control chip through the first resistor, a data output pin of the first CAN transceiver is electrically connected to a data receiving pin of the first main control chip through the second resistor, a data input pin of the first CAN transceiver is also electrically connected to a ground terminal through the first capacitor, and a data output pin of the first CAN transceiver is also electrically connected to a ground terminal through the second capacitor. The ground terminal is electrically connected; the CAN high level line pin of the first CAN transceiver is electrically connected to the first pin of the common mode inductor, the CAN low level line pin of the first CAN transceiver is electrically connected to the second pin of the common mode inductor, the third pin of the common mode inductor and the fourth pin of the common mode inductor are electrically connected to the first terminal block; the third pin of the common mode inductor and the fourth pin of the common mode inductor are also electrically connected to the first data line protection pin of the anti-static diode and the second data line protection pin of the anti-static diode, respectively, wherein the anti-static diode is used to protect the CAN high level line and the CAN low level line.

[0019] By adopting the above technical solution, the conversion between the logic level and the differential level is realized through the first CAN transceiver. For example, the logic level of the first main control chip is converted into the CAN high level and CAN low level of CAN communication. By setting the common mode inductor and anti-static diode, it can be ensured that the data can communicate normally in harsh environments. Components such as common mode inductors and anti-static diodes are introduced to protect the CAN high level line and the CAN low level line. The common mode inductor can suppress common mode noise, and the anti-static diode can provide a fast discharge channel when the signal line is subjected to static electricity shock, protecting the subsequent circuit from damage. The addition of components such as common mode inductors and filter capacitors effectively suppresses the impact of external noise and interference on CAN communication signals. This helps to improve the anti-interference ability of the entire IO module control system, enabling it to operate stably in complex industrial environments.

[0020] Optionally, the first CAN transceiver module also includes: a third resistor, a third capacitor, a fourth capacitor, and a fifth capacitor, wherein the third resistor and the third capacitor are connected in parallel between the CAN high level line pin and the CAN low level line pin, the fourth capacitor is connected between the CAN high level line pin and the ground terminal, and the fifth capacitor is connected between the CAN low level line pin and the ground terminal.

[0021] By adopting the above technical solution, the third resistor and the third capacitor are connected in parallel between the CAN high-level line pin and the CAN low-level line pin to form a low-pass filter. This filter can further suppress the common-mode noise that may exist on the CAN bus and reduce the interference of noise on signal transmission; the fourth capacitor and the fifth capacitor are respectively connected between the CAN high-level line pin and the CAN low-level line pin and the ground terminal. As decoupling capacitors, they can stabilize the power supply and reduce the impact of power supply noise on the signal; at the same time, they also help to filter out high-frequency noise on the signal line and improve signal quality. By further suppressing common-mode noise and improving signal quality, the reliability of CAN communication has been significantly improved, the signal is more stable and accurate during transmission, and the risk of bit error rate and communication failure is reduced; this circuit design enhances the resistance of the IO module control system to external noise and interference.

[0022] In the second aspect, the present application also provides an IO module communication method, which is applied to any of the aforementioned IO module control systems, including: the IO module master station receives a first data packet sent by the robot controller; the IO module master station sends a control instruction to the target IO module slave station based on the first data packet to instruct the first external device to perform a corresponding operation, wherein the target IO module slave station is one or more IO module slave stations among N IO module slave stations, the first external device is a device connected to the target IO module slave station, and N is a positive integer greater than or equal to 1; the IO module master station receives a second data packet sent by the target IO module slave station; the IO module master station sends the second data packet to the robot controller, wherein the second data packet includes data sent by each IO module slave station in the target IO module slave station, and the second data packet includes data collected by the first external device.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages: 1. By using CAN communication based on the DeviceNet protocol to connect the IO module master and slave, the system avoids the expensive cost of EtherCAT expansion, thereby significantly reducing the system cost and the risk of data loss caused by the remote IO module system using the 485 bus expansion. The built-in CRC checksum and perfect data link layer of the DeviceNet protocol ensure the security and reliability of the data transmission process, effectively reducing the risk of data loss; 2. The IO module control system allows multiple IO module slaves to be flexibly connected through CAN communication, so that the system can be flexibly expanded according to actual needs, meeting the application requirements in different industrial scenarios, and improving the flexibility and adaptability of the system; 3. The system can support a large number of analog and digital input and output channels, providing users with great flexibility and convenience, enabling the system to adapt to more types of external devices and application scenarios. It uses isolation components such as optocouplers and relays to achieve electrical isolation between input and output signals and the main control chip, effectively preventing the spread of signal interference and electrical faults, and improving the stability and safety of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is an architecture diagram of an IO module control system provided in an embodiment of the present application; Figure 2 It is a principle block diagram of an IO module master station provided in an embodiment of the present application; Figure 3 This is a principle block diagram of an IO module slave provided in an embodiment of the present application; Figure 4This is a schematic diagram of a CAN transceiver circuit provided in an embodiment of the present application.

[0025] Description of reference numerals: First CAN transceiver-U1, common mode inductor-T1, anti-static diode-U2, DB9 female socket-J1, first resistor-R1, second resistor-R2, third resistor-R3, first capacitor-C1, second capacitor-C2, third capacitor-C3, fourth capacitor-C4, fifth capacitor-C5. DETAILED DESCRIPTION

[0026] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0027] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0028] In the description of the embodiments of the present application, the term "plurality" means two or more. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0029] This application provides an IO module control system, referring to Figure 1 , Figure 1This is an architecture diagram of an IO module control system provided in an embodiment of the present application, the system comprising: an IO module master station, N IO module slave stations, and a robot controller, wherein the IO module master station and the robot controller are connected via EtherCAT communication, and the IO module master station and the N IO module slave stations are connected via CAN communication based on the DeviceNet protocol; the IO module master station is used to receive a first data packet sent by the robot controller, and based on the first data packet, send a control instruction to the target IO module slave station to instruct the first external device to perform a corresponding operation, wherein the target IO module slave station is one or more IO module slave stations among the N IO module slave stations, the first external device is a device connected to the target IO module slave station, and N is a positive integer greater than or equal to 1; the IO module master station is also used to receive a second data packet sent by the target IO module slave station, and send the second data packet to the robot controller, the second data packet includes data sent by each IO module slave station in the target IO module slave station, and the second data packet includes data collected by the first external device.

[0030] In the above embodiment, the IO module master station communicates with the robot controller via EtherCAT, and the IO module master station communicates with each of the N IO module slave stations via CAN, that is, a remote IO module control system expanded by CAN is used; by adopting CAN communication based on the DeviceNet protocol to connect the IO module master station and the slave station, the system avoids the expensive cost required for EtherCAT expansion, thereby significantly reducing the system cost, and also avoids the risk of data loss caused by the remote IO module system expanded by the 485 bus. The built-in CRC check and complete data link layer of the DeviceNet protocol ensure the security and reliability of the data transmission process, effectively reducing the risk of data loss. The IO module master station can be used to receive the first data packet sent by the robot controller, and send a control instruction to the target IO module slave station based on the first data packet, so as to control the first external device to perform the corresponding operation, that is, the robot controller controls the first external device to perform the corresponding operation through the IO module master station and the target IO module slave station, and the IO module master station can also receive the second data packet sent by the target IO module slave station, and send the second data packet to the robot controller, so that the robot controller can also obtain the data collected by the first external device; avoid the problem of high overall cost caused by the remote IO module system extended by EtherCAT in the related technology, or the risk of data loss caused by the remote IO module system extended by 485 bus; in the application field of industrial robots, it is usually necessary to collect and transmit multiple signals of external devices, such as position sensors, temperature sensors, humidity sensors, etc., which also need Signal output is performed, such as outputting simulated welding machine signals to the welding machine, so as to realize real-time monitoring and data transmission of the industrial robot to the external equipment; the above-mentioned first external device may include one or more devices, for example, various sensors, or solenoid valves, or motors, or welding machines and other equipment, and each IO module slave station can also be connected to one or more devices respectively; the IO module control system allows flexible connection of multiple IO module slave stations through CAN communication, so that the system can be flexibly expanded according to actual needs, meet the application needs in different industrial scenarios, and improve the flexibility and adaptability of the system; the IO module master station can receive the instructions of the robot controller and quickly forward them to the target IO module slave station, and at the same time collect the data returned by the slave station and transmit it back to the robot controller, realizing efficient data transmission and processing, and improving the overall efficiency and response speed of the industrial automation system; it also achieves the effect of improving the reliability and security of data transmission.

[0031] In an optional embodiment, the IO module master station includes: a first main control chip, an Ethernet chip, a first CAN transceiver module, a first group of terminal blocks, a first network interface, and an isolation transformer, wherein the first network interface is electrically connected to the Ethernet chip through an isolation transformer, and the Ethernet chip is electrically connected to the first main control chip, wherein the IO module master station performs EtherCAT communication with the robot controller through the first network interface; the first main control chip is electrically connected to the first CAN transceiver module, and the first CAN transceiver module is electrically connected to N IO module slave stations through the first terminal block, wherein the first group of terminal blocks includes the first terminal block, and the IO module master station performs CAN communication with the N IO module slave stations through the first CAN transceiver module.

[0032] In the above embodiment, the IO module master station performs EtherCAT communication with the robot controller through the first network interface. Specifically, the first network interface is electrically connected to the Ethernet chip through an isolation transformer, and the Ethernet chip is electrically connected to the first main control chip, so that the first main control chip can receive the first data packet sent by the robot controller, and the first main control chip processes the first data packet to obtain a control instruction for controlling the target IO module slave station. The first main control chip is electrically connected to the first CAN transceiver module, and the first CAN transceiver module is electrically connected to N IO module slave stations through the first wiring socket, that is, the IO module master station performs CAN communication with the N IO module slave stations through the first CAN transceiver module, and then instructs the first external device to perform the corresponding operation. By adopting components such as the first main control chip, the Ethernet chip and the first CAN transceiver module, the efficient integration of EtherCAT and CAN communication interfaces is achieved, so that the IO module master station can simultaneously communicate efficiently and stably with the robot controller and multiple IO module slave stations; the first network interface is electrically connected to the Ethernet chip through an isolation transformer. This design effectively isolates electromagnetic interference from external electrical equipment and ensures the stability and reliability of the EtherCAT communication signal. The IO module master station in the embodiment of the present application adopts a modular design, which is convenient for combination and expansion according to actual needs. It also makes it easier to troubleshoot and replace the system when it fails or needs to be upgraded, thereby reducing maintenance costs and improving maintenance efficiency.

[0033] In an optional embodiment, the IO module master station also includes: a first power supply module, the first power supply module includes a first power supply circuit and a second power supply circuit, wherein the first power supply circuit includes a DC-DC conversion circuit and an LDO step-down circuit, wherein the DC-DC conversion circuit is used to convert the original DC voltage into a first DC voltage, and the LDO step-down circuit is used to reduce the first DC voltage to a first preset DC voltage, and the first preset DC voltage is used to power the first master control chip; the second power supply circuit includes an isolated power supply chip and a voltage reference chip, wherein the second power supply circuit is used to convert the original DC voltage into a second preset DC voltage.

[0034] In the above embodiment, the IO module master station includes a first power supply module, which can provide a DC power supply of a first preset DC voltage and a DC power supply of a second preset DC voltage, thereby providing the required working voltage for different chips or modules. The first power supply module provides different voltage outputs (the first preset DC voltage and the second preset DC voltage), which meets the diverse voltage requirements of different components inside the IO module master station, improves the flexibility and compatibility of the system, and enables the system to adapt to more types of IO modules and external devices; the efficient conversion of the DC-DC conversion circuit and the low power consumption characteristics of the LDO buck circuit jointly optimize the energy utilization efficiency of the system and reduce unnecessary energy waste; for example, the original DC voltage is 24V (or other voltage), which is converted into 5V through the DC-DC conversion circuit, and then converted into 5V through the LDO buck circuit. After adjustment, the DO step-down circuit obtains a 3.3V DC voltage (corresponding to the above-mentioned first preset DC voltage), which can provide working voltage for the first main control chip, the first CAN transceiver module and the Ethernet chip; for example, the original DC voltage is obtained by passing through the isolated power supply chip in the second power supply circuit to obtain 12V, and then passes through the voltage reference chip circuit to obtain a 10V DC voltage (corresponding to the above-mentioned second preset DC voltage). For some operational amplifier circuits that need to scale analog quantities, a 10V DC voltage can be used; the design of multiple voltage outputs enables the system to easily connect to more types of IO modules and external devices, enhances the scalability and adaptability of the system, and facilitates subsequent functional upgrades and expansions; the application of electrical isolation effectively isolates potential dangerous voltage sources, protects the safety of personnel and equipment, and reduces the risk of accidents caused by electrical failures.

[0035] In an optional embodiment, the first group of wiring sockets also includes a second wiring socket, a third wiring socket and a fourth wiring socket, wherein the first main control chip is electrically connected to the first group of wiring terminals in the second wiring socket through the first operational amplifier circuit, the first main control chip is also electrically connected to the second group of wiring terminals in the second wiring socket through the second operational amplifier circuit, the first main control chip is also electrically connected to the third group of wiring terminals in the second wiring socket through the first optical coupler, the first main control chip is also electrically connected to the fourth group of wiring terminals in the second wiring socket through the second optical coupler, the first group of wiring terminals includes 2 wiring terminals, the first group of wiring terminals is used to output 2 analog quantities, the second group of wiring terminals includes 2 wiring terminals, the second group of wiring terminals is used to input 2 analog quantities, and the third group of wiring terminals includes 6 wiring terminals, the third group of wiring terminals is used to output 6 digital quantities, the fourth group of wiring terminals includes 6 wiring terminals, and the fourth group of wiring terminals is used to input 6 digital quantities; the first main control chip is also electrically connected to the input end of the third optocoupler, and the output end of the third optocoupler is electrically connected to the fifth group of wiring terminals in the third wiring seat through the first relay, wherein the fifth group of wiring terminals is used to output 24 signals; the first main control chip is also electrically connected to the output end of the fourth optocoupler, and the input end of the fourth optocoupler is electrically connected to the sixth group of wiring terminals in the fourth wiring seat, wherein the sixth group of wiring terminals is used to input 24 signals, and the IO module master station also includes a first operational amplifier circuit, a second operational amplifier circuit, a first optocoupler, a second optocoupler, a third optocoupler, a fourth optocoupler and a first relay.

[0036] In the above embodiments, the input and output functions of analog and digital quantities are realized by introducing a variety of circuit components (such as operational amplifier circuits, optocouplers, relays, etc.). By designing a structure including multiple wiring sockets and wiring terminals, the system can support a large number of analog and digital input and output channels, which is crucial for industrial automation systems that need to process complex signals and control multiple external devices; isolation components such as optocouplers and relays are used to achieve electrical isolation between input and output signals and the main control chip, effectively preventing the propagation of signal interference and electrical faults, and improving the stability and safety of the system; analog input and output signals are conditioned and amplified by operational amplifier circuits to ensure the accuracy and reliability of the signal. This is particularly important for application scenarios that require high-precision signal processing; the system can process analog and digital signals at the same time, and each signal type has independent input and output channels, which provides users with great flexibility and convenience, allowing the system to adapt to more types of external devices and application scenarios. The first group of terminals in the second terminal block is used to output 2 analog quantities, the second group of terminals in the second terminal block is used to input 2 analog quantities, the third group of terminals in the second terminal block is used to output 6 digital quantities, and the fourth group of terminals in the second terminal block is used to input 6 digital quantities; the IO module master station can also output 24 signals through the fifth group of terminals in the third terminal block, the third optical coupler is a 24-way optical coupler, and can output 24 signals, the first relay includes 24 parallel relays, for example, respectively control different sensors or solenoid valves, and the external device can be connected to the first through the sixth group of terminals in the fourth terminal block and through the 24-way optical coupler The main control chip inputs 24 signals, and the fourth optocoupler is a 24-channel optocoupler; in actual applications, the IO module master station needs to collect a lot of signals and transmit a lot of data, and there are also many sensors or devices involved, which may be dozens or hundreds. The aforementioned first external device may include multiple devices, such as a variety of sensors. Some sensors collect and transmit digital quantities, and some sensors collect and transmit analog quantities. Data needs to be transmitted through a terminal block. Different external devices can be connected through different terminal blocks, which is also convenient for expanding external devices. The wiring terminals in some terminal blocks can also be used as spares for subsequent expansion of external devices. The embodiment of the present application uses a multi-channel design to enable the system to be easily expanded to support more input and output requirements without large-scale changes to the hardware structure. Through signal conditioning and amplification, as well as the use of isolation elements, the system can process input and output signals more accurately, reducing the risk of signal distortion and noise interference; the combination of electrical isolation and signal processing effectively prevents the influence of external electrical faults on the main control chip and other parts of the system, and improves the overall safety and stability of the system.

[0037] In an optional embodiment, the first wiring socket is a DB9 female socket, the second wiring socket is a 20p female socket, the third wiring socket includes a 48p terminal, and the fourth wiring socket includes a 48p terminal.

[0038] In the above embodiment, the first terminal block can be a DB9 female socket, such as Figure 4 In J1, the second terminal block can use a 20p female terminal, the third terminal block includes a 48p terminal, and the fourth terminal block includes a 48p terminal. Different types of terminal blocks usually support different numbers and types of signal transmission channels. For example, the DB9 female terminal is often used for serial communication, while the 20p and 48p female terminals can provide a larger number of pins and support signal transmission for more channels. By selecting the appropriate type of terminal block, the diverse needs of the IO module control system in terms of signal transmission can be met. Standardized terminal block types and specifications help speed up system integration and reduce the error rate and debugging difficulty during the integration process. At the same time, it also helps to achieve rapid replacement and upgrading of system modules, improving the flexibility and scalability of the system; standardized terminal block types and specifications help reduce the types and quantities of spare parts, thereby reducing the maintenance cost of the system. At the same time, since the compatibility issues caused by interface mismatch are reduced, the technical difficulty and labor cost in the maintenance process are also reduced.

[0039] In an optional embodiment, the second terminal socket, the third terminal socket and the fourth terminal socket are used to connect a second external device, the IO module master station also controls the second external device to perform corresponding operations based on the first data packet, and the IO module master station is also used to receive a third data packet and send the third data packet to the robot controller, wherein the third data packet includes data collected by the second external device.

[0040] In the above embodiment, the second terminal block, the third terminal block and the fourth terminal block are used to connect the second external device, that is, the IO module master station can not only communicate with the N IO module slave stations to perform signal acquisition and data transmission, but the IO module master station itself can also connect to the external device to directly perform signal acquisition and data transmission. The second external device can also include one or more devices, for example, various types of sensors, or solenoid valves, or motors, or welding machines and other devices. The IO module master station can not only control the second external device to perform corresponding operations, but also receive data from these devices (encapsulated in the third data packet) and send these data to the robot controller or other processing units. This efficient transmission and processing mechanism of data streams ensures that the system can obtain and process the status information or collected data of external devices in real time and accurately; by directly controlling the external device and receiving its data, the IO module master station can reduce the intermediate links and delays of data transmission, thereby improving the overall performance and response speed of the system. This is crucial for industrial automation scenarios that require fast response and precise control. The IO module master station can connect and control various types of external devices, so that the IO module control system can be applied to more diverse application scenarios and requirements, and improve the flexibility and adaptability of the system.

[0041] In an optional embodiment, the i-th IO module slave station is any IO module slave station among the N IO module slave stations, and the i-th IO module slave station includes: a second master control chip, a second CAN transceiver module, a second group of wiring sockets, and a second power supply module, wherein the second master control chip is electrically connected to the second CAN transceiver module, and the second CAN transceiver module is electrically connected to the first wiring socket through a fifth wiring socket, wherein the second group of wiring sockets includes a fifth wiring socket, and the i-th IO module slave station performs CAN communication with the IO module master station through the second CAN transceiver module; the second power supply module is used to provide a third preset DC voltage and a fourth preset DC voltage; the second group of wiring sockets also includes a sixth wiring socket, a seventh wiring socket and an eighth wiring socket, wherein the second master control chip is electrically connected to the seventh group of wiring terminals in the sixth wiring socket through a third operational amplifier circuit, the second master control chip is also electrically connected to the eighth group of wiring terminals in the sixth wiring socket through a fourth operational amplifier circuit, the second master control chip is also electrically connected to the ninth group of wiring terminals in the sixth wiring socket through a fifth optical coupler, and the second master control chip is also electrically connected to the ninth group of wiring terminals in the sixth wiring socket through a sixth optical coupler. The tenth group of wiring terminals is electrically connected to the seventh group of wiring terminals, the seventh group of wiring terminals includes 2 wiring terminals, the seventh group of wiring terminals is used to output 2 analog quantities, the eighth group of wiring terminals includes 2 wiring terminals, the eighth group of wiring terminals is used to input 2 analog quantities, the ninth group of wiring terminals includes 6 wiring terminals, the ninth group of wiring terminals is used to output 6 digital quantities, the tenth group of wiring terminals includes 6 wiring terminals, the tenth group of wiring terminals is used to input 6 digital quantities; the second main control chip is also electrically connected to the input end of the seventh optical coupler, and the output end of the seventh optical coupler is connected to the seventh coupling through the second relay. The eleventh group of wiring terminals in the wire holder are electrically connected, wherein the eleventh group of wiring terminals are used to output 24 signals; the second master control chip is also electrically connected to the output end of the eighth optocoupler, and the input end of the eighth optocoupler is electrically connected to the twelfth group of wiring terminals in the eighth wiring holder, wherein the twelfth group of wiring terminals are used to input 24 signals; wherein the i-th IO module slave station also includes a third operational amplifier circuit, a fourth operational amplifier circuit, a fifth optocoupler, a sixth optocoupler, a seventh optocoupler, an eighth optocoupler and a second relay, and i is a positive integer greater than or equal to 1 and less than or equal to N.

[0042] In the above embodiment, any one of the N IO module slave stations, for example, the i-th IO module slave station, includes a second master control chip, a second CAN transceiver module, a second group of wiring sockets and a second power supply module, wherein the second CAN transceiver module is electrically connected to the first wiring socket through the fifth wiring socket, thereby realizing CAN communication between the i-th IO module slave station and the IO module master station; similar to the aforementioned first power supply module, the second power supply module can also provide a variety of different DC voltages, such as providing a third preset DC voltage and a fourth preset DC voltage, for example, the third preset DC voltage is a 3.3V DC voltage, which can provide a working voltage for the second master control chip and the second CAN transceiver module, and the fourth preset DC voltage is 1 0V DC voltage, for some op amp circuits that need to scale analog quantities, 10V DC voltage can be used; in addition, different external devices can be connected through the sixth, seventh and eighth terminals in the second group of terminals. The IO module slave station uses a multi-channel design to enable the system to be easily expanded to support more input and output requirements without large-scale changes to the hardware structure. Through signal conditioning and amplification, as well as the use of isolation components, the system can process input and output signals more accurately, reducing the risk of signal distortion and noise interference; the combination of electrical isolation and signal processing effectively prevents the impact of external electrical faults on the main control chip and other parts of the system, and improves the overall safety and stability of the system. Through modular design and efficient data communication mechanism, the overall performance of the entire IO module control system is improved. The system can quickly respond to external signals and accurately process data, improving the efficiency and accuracy of the industrial automation process; modular design makes system maintenance and upgrades simpler and more convenient. When a slave station fails, it can be quickly replaced or repaired without shutting down the entire system for maintenance. This reduces the maintenance cost and downtime of the system and improves the availability of the system.

[0043] In an optional embodiment, if Figure 4As shown, the first CAN transceiver module includes: a first CAN transceiver U1, a common mode inductor T1, an anti-static diode U2, a first resistor R1, a second resistor R2, a first capacitor C1, and a second capacitor C2, wherein the data input pin of the first CAN transceiver U1 is electrically connected to the data sending pin of the first main control chip through the first resistor R1, the data output pin of the first CAN transceiver U1 is electrically connected to the data receiving pin of the first main control chip through the second resistor R2, the data input pin of the first CAN transceiver U1 is also electrically connected to the ground terminal through the first capacitor C1, and the data output pin of the first CAN transceiver U1 is also electrically connected to the ground terminal through the second capacitor C2 is electrically connected to the ground terminal; the CAN high level line pin of the first CAN transceiver U1 is electrically connected to the first pin of the common mode inductor, the CAN low level line pin of the first CAN transceiver U1 is electrically connected to the second pin of the common mode inductor T1, the third pin of the common mode inductor T1 and the fourth pin of the common mode inductor T1 are electrically connected to the first terminal block; the third pin of the common mode inductor T1 and the fourth pin of the common mode inductor T1 are also electrically connected to the first data line protection pin and the second data line protection pin of the anti-static diode U2, respectively, wherein the anti-static diode U2 is used to protect the CAN high level line and the CAN low level line.

[0044] In the above embodiment, the conversion between the logic level and the differential level is realized by the first CAN transceiver U1. For example, the logic level of the first main control chip is converted into the CAN high level and CAN low level of the CAN communication. By setting the common mode inductor T1 and the anti-static diode U2, it can be ensured that the data can communicate normally in a harsh environment. By using resistors for impedance matching and capacitors for filtering, the integrity and stability of the CAN communication signal during the transmission process are ensured. This helps to reduce signal attenuation, reflection and noise interference, and improve the communication quality. The common mode inductor T1 and the anti-static diode U2 and other components are introduced to protect the CAN high level line and the CAN low level line. The common mode inductor T1 can suppress common mode noise, and the anti-static diode U2 can provide a fast discharge channel when the signal line is subjected to static electricity shock, protecting the subsequent circuit from damage. The addition of components such as the common mode inductor T1 and the filter capacitor effectively suppresses the influence of external noise and interference on the CAN communication signal. This helps to improve the anti-interference ability of the entire IO module control system, so that it can operate stably in a complex industrial environment. The protection of the anti-static diode U2 can prevent electrostatic discharge from damaging the signal line and subsequent circuits. This helps to extend the service life of the equipment and reduce the maintenance and replacement costs caused by electrostatic damage. By optimizing the signal transmission path, strengthening the protection of the signal line, and realizing a reliable interface with the main control chip, the reliability, anti-interference ability and service life of the CAN communication in the IO module control system are solved, and the technical effects of improving communication quality, enhancing system stability and simplifying system design are achieved.

[0045] In an optional embodiment, if Figure 4 As shown, the first CAN transceiver module also includes: a third resistor R3, a third capacitor C3, a fourth capacitor C4, and a fifth capacitor C5, wherein the third resistor R3 and the third capacitor C3 are connected in parallel between the CAN high level line pin and the CAN low level line pin, the fourth capacitor C4 is connected between the CAN high level line pin and the ground terminal, and the fifth capacitor C5 is connected between the CAN low level line pin and the ground terminal.

[0046] In the above embodiment, the third resistor R3 and the third capacitor C3 are connected in parallel between the CAN high level line pin and the CAN low level line pin to form a low-pass filter. This filter can further suppress the common mode noise that may exist on the CAN bus and reduce the interference of noise on signal transmission; the fourth capacitor C4 and the fifth capacitor C5 are respectively connected between the CAN high level line pin and the CAN low level line pin and the ground terminal. As decoupling capacitors, they can stabilize the power supply and reduce the impact of power supply noise on the signal; at the same time, they also help to filter out high-frequency noise on the signal line and improve signal quality. By further suppressing common mode noise and improving signal quality, the reliability of CAN communication has been significantly improved, the signal is more stable and accurate during transmission, and the risk of bit error rate and communication failure is reduced; this circuit design enhances the resistance of the IO module control system to external noise and interference. The third resistor R3 can use a 120Ω terminal resistor to improve the anti-interference ability and ensure that the bus quickly enters the recessive state. Even in a complex industrial environment, the system can maintain stable communication performance and ensure accurate data transmission and reception; by adding components such as the third resistor R3, the third capacitor C3, the fourth capacitor C4 and the fifth capacitor C5, the circuit design of the first CAN transceiver module is further refined, and technical problems such as common-mode noise suppression, signal quality improvement and circuit stability enhancement are solved, and the technical effects of improving communication quality, enhancing the system's anti-interference ability and improving system reliability are achieved. It should be noted that the circuit composition of the second CAN transceiver module and the first CAN transceiver module is the same, for example, including the second CAN transceiver and other common-mode inductors, other anti-static diodes and other resistors, capacitors, etc., which will not be repeated here.

[0047] The present application also provides an IO module communication method, which is applied to any of the above IO module control systems, and comprises the following steps: S1, the IO module master station receives the first data packet sent by the robot controller; S2, the IO module master sends a control instruction to the target IO module slave based on the first data packet to instruct the first external device to perform a corresponding operation, wherein the target IO module slave is one or more IO module slaves among N IO module slaves, the first external device is a device connected to the target IO module slave, and N is a positive integer greater than or equal to 1; S3, the IO module master station receives the second data packet sent by the target IO module slave station; S4, the IO module master station sends a second data packet to the robot controller, wherein the second data packet includes data sent by each IO module slave station in the target IO module slave station, and the second data packet includes data collected by the first external device.

[0048] In the above embodiment, the IO module master station can be used to receive the first data packet sent by the robot controller, and send a control instruction to the target IO module slave station based on the first data packet, so as to control the first external device to perform the corresponding operation, that is, the robot controller controls the first external device to perform the corresponding operation through the IO module master station and the target IO module slave station, and the IO module master station can also receive the second data packet sent by the target IO module slave station, and send the second data packet to the robot controller, so that the robot controller can also obtain the data collected by the first external device; the problem of high overall cost caused by the remote IO module system extended by EtherCAT in the related technology is avoided, or the risk of data loss caused by the remote IO module system extended by 485 bus is easy to cause; in the application field of industrial robots, it is usually necessary to collect and transmit multiple signals to external devices, such as position sensors, temperature sensors, humidity sensors, etc., and signal output is also required, such as outputting simulated welding machine signals to welding machines, so as to realize real-time monitoring and data transmission of industrial robots to external devices; the above-mentioned first external device may include one or more devices, for example, various sensors, or solenoid valves, or motors, or welding machines and other devices, and each IO module slave station may also be connected to one or more devices respectively. It should be noted that there is no order for the above steps S1 and S3. For example, steps S3-S4 may be performed first, and then steps S1-S2.

[0049] It should be noted that the above-described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application will be described in detail below in conjunction with specific embodiments.

[0050] The embodiment of the present application provides an expandable remote I / O module and control system based on the DeviceNet protocol for the field of industrial robots, wherein the architecture diagram of the IO module control system is as follows: Figure 1 shown.

[0051] The robot controller and the I / O module master station (corresponding to the aforementioned IO module master station) are connected via EtherCAT communication, the I / O module master station and the I / O module slave station (corresponding to the aforementioned IO module slave station) are connected via CAN communication based on the DeviceNet protocol, and the I / O module and various external devices transmit data through I / O points, analog signals and other interfaces.

[0052] The I / O module master has two functions: ①: Receive the data sent by the robot controller, that is, the object dictionary (corresponding to the first data packet mentioned above), the master station parses these object dictionaries, sends the data to each slave station through the DeviceNet protocol, and allows the external device to perform the corresponding operation; ②: Receive data sent by the slave station through the DeviceNet protocol, parse it, package it into object dictionary data, and transmit it to the robot controller through EtherCAT, thereby telling the robot controller the information of each I / O module.

[0053] The I / O module slave has two functions: ①: Receive data from the I / O module master station through the DeviceNet protocol, parse it, and send it to the external device to let it execute the corresponding command; ②: Receive signals from external devices, parse and package them, and send them to the I / O module master station via the DeviceNet protocol.

[0054] The I / O module master station only has the ECAT slave station circuit in addition to the I / O module slave station (communication with the superior is via EtherCAT communication). The robot controller is equivalent to the ECAT master station, and the communication between the basic board and the expansion board is CAN communication based on the DeviceNet protocol.

[0055] Figure 2 This is a principle block diagram of an IO module master station provided in an embodiment of the present application. The principle of the IO module master station is described as follows: ①. Processing unit: using ARM-M3 core, STM32xxx as the main control chip (corresponding to the first main control chip mentioned above); ②.EtherCAT slave controller: uses TI's LAN9xxx as the ESC chip (corresponding to the aforementioned Ethernet chip) to communicate with the EtherCAT master (i.e. the robot controller); ③. Digital input and output: Optocouplers are used to achieve photoelectric isolation and data transmission; ④. Analog input and output: Use operational amplifier circuit to realize analog quantity scaling; ⑤.CAN communication: Use the dedicated first CAN transceiver to achieve the expansion of IO board; ⑥. Power supply part: The core part is powered by 3.3V through the first-stage DC-DC and the second-stage LDO step-down circuit, and the operational amplifier is powered by the isolated power chip and the voltage reference chip. Figure 2 Medium 10V power supply; Figure 2 The power supply system in corresponds to the aforementioned first power supply module.

[0056] Figure 3 This is a principle block diagram of an IO module slave provided in an embodiment of the present application. The principle of the IO module slave is described as follows: ①. Processing unit: using ARM-M3 core, STM32Fxxx as the main control chip (corresponding to the second main control chip mentioned above); ②. Digital input and output: Optocouplers are used to achieve photoelectric isolation and data transmission; ③. Analog input and output: Use operational amplifier circuit to realize analog quantity scaling; ④.CAN communication: expansion of IO board is realized through the second CAN transceiver; ⑤. Power supply part: The core part is powered by 3.3V through the first-stage DC-DC and the second-stage LDO step-down circuit, and the operational amplifier is powered by the isolated power chip and the voltage reference chip. Figure 3 Medium 10V power supply; Figure 3 The power supply system in corresponds to the aforementioned second power supply module.

[0057] The most critical implementation circuit of the DeviceNet protocol is the CAN transceiver circuit (corresponding to the first CAN transceiver module or the second CAN transceiver module mentioned above). Figure 4 shown.

[0058] For example, a CAN transceiver (corresponding to Figure 4 The first CAN transceiver U1) uses TI's ISO1050. Figure 4 TX and RX correspond to the data sending pin and data receiving pin of the first main control chip respectively, and the logic level of the main control chip STM32 (corresponding to the aforementioned first main control chip) on the I / O module is converted into a differential level, such as Figure 4 The CAN high level line pin CANH and the CAN low level line pin CANL in the circuit are used for data transmission. In order to ensure the stability of signal transmission, a common mode inductor T1 and an ESD protection device (corresponding to Figure 4 The anti-static diode U2 in the circuit ensures that data can communicate normally in harsh environments. At the same time, a 120Ω terminal resistor is added to the circuit to improve the anti-interference ability and ensure that the bus quickly enters the recessive state. Figure 4 Two terminals (or pinholes) in the DB9 female socket J1 in the IO module master are used to connect CAN0_P and CAN0_N. The DB9 female socket J1 in the IO module master and the DB9 female socket J1 in each IO module slave can be connected through a connector. For example, the connector can be a one-to-four connector. Figure 4 The other peripheral circuits of the first CAN transceiver U1 are relatively common and will not be described here.

[0059] Through the embodiment of the present application, an expansion solution based on CAN communication of DeviceNet is adopted, and its solution cost is much lower than the EtherCAT expansion solution, and the solution has high data security. Its CRC check and ACK mechanism can effectively prevent errors in the data transmission process, thereby ensuring the accuracy and integrity of the data, and its delay is much lower than 485, and data transmission can be completed faster.

[0060] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0061] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0062] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0063] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0064] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and practice, those skilled in the art will easily think of other embodiments of the present disclosure.

[0065] This application is intended to cover any modifications, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field not recorded in the present disclosure.

Claims

1. An IO module control system, characterized in that: include: IO module master, N IO module slaves, robot controller, where: The IO module master station is connected to the robot controller via EtherCAT communication, and the IO module master station is connected to the N IO module slave stations via CAN communication based on DeviceNet protocol; The IO module master station is used to receive a first data packet sent by the robot controller, and send a control instruction to a target IO module slave station based on the first data packet to instruct a first external device to perform a corresponding operation, wherein the target IO module slave station is one or more IO module slave stations among the N IO module slave stations, the first external device is a device connected to the target IO module slave station, and N is a positive integer greater than or equal to 1; The IO module master station is also used to receive a second data packet sent by the target IO module slave station and send the second data packet to the robot controller, the second data packet includes data sent by each IO module slave station in the target IO module slave station, and the second data packet includes data collected by the first external device.

2. The IO module control system according to claim 1, characterized in that: The IO module master station includes: a first main control chip, an Ethernet chip, a first CAN transceiver module, a first set of wiring sockets, a first network interface, and an isolation transformer, wherein: The first network interface is electrically connected to the Ethernet chip through the isolation transformer, and the Ethernet chip is electrically connected to the first main control chip, wherein the IO module master station performs EtherCAT communication with the robot controller through the first network interface; The first main control chip is electrically connected to the first CAN transceiver module, and the first CAN transceiver module is electrically connected to the N IO module slave stations through a first terminal block, wherein the first group of terminal blocks includes the first terminal block, and the IO module master station performs CAN communication with the N IO module slave stations through the first CAN transceiver module.

3. The IO module control system according to claim 2, characterized in that: The IO module master station further includes: a first power supply module, the first power supply module includes a first power supply circuit and a second power supply circuit, wherein: The first power supply circuit includes a DC-DC conversion circuit and an LDO step-down circuit, wherein the DC-DC conversion circuit is used to convert an original DC voltage into a first DC voltage, and the LDO step-down circuit is used to reduce the first DC voltage to a first preset DC voltage, and the first preset DC voltage is used to power the first main control chip; The second power supply circuit includes an isolation power chip and a voltage reference chip, wherein the second power supply circuit is used to convert the original DC voltage into a second preset DC voltage.

4. The IO module control system according to claim 2, characterized in that: The first group of wiring sockets also includes a second wiring socket, a third wiring socket and a fourth wiring socket, wherein: The first main control chip is electrically connected to the first group of terminals in the second wiring seat through the first operational amplifier circuit, the first main control chip is also electrically connected to the second group of terminals in the second wiring seat through the second operational amplifier circuit, the first main control chip is also electrically connected to the third group of terminals in the second wiring seat through the first optical coupler, the first main control chip is also electrically connected to the fourth group of terminals in the second wiring seat through the second optical coupler, the first group of terminals includes 2 terminals, the first group of terminals is used to output 2 analog quantities, the second group of terminals includes 2 terminals, the second group of terminals is used to input 2 analog quantities, the third group of terminals includes 6 terminals, the third group of terminals is used to output 6 digital quantities, the fourth group of terminals includes 6 terminals, the fourth group of terminals is used to input 6 digital quantities; The first main control chip is also electrically connected to the input end of the third optical coupler, and the output end of the third optical coupler is electrically connected to the fifth group of wiring terminals in the third wiring seat through the first relay, wherein the fifth group of wiring terminals is used to output 24 signals; The first main control chip is also electrically connected to the output end of the fourth optocoupler, and the input end of the fourth optocoupler is electrically connected to the sixth group of terminals in the fourth wiring seat, wherein the sixth group of terminals is used to input 24 signals, and the IO module master station also includes the first operational amplifier circuit, the second operational amplifier circuit, the first optocoupler, the second optocoupler, the third optocoupler, the fourth optocoupler and the first relay.

5. The IO module control system according to claim 4, characterized in that: The first wiring socket is a DB9 female socket, the second wiring socket is a 20p female socket, the third wiring socket includes a 48p terminal, and the fourth wiring socket includes a 48p terminal.

6. The IO module control system according to claim 4, characterized in that: The second terminal socket, the third terminal socket and the fourth terminal socket are used to connect a second external device, and the IO module master station also controls the second external device to perform corresponding operations based on the first data packet, and the IO module master station is also used to receive a third data packet and send the third data packet to the robot controller, wherein the third data packet includes data collected by the second external device.

7. The IO module control system according to claim 2, characterized in that: The i-th IO module slave station is any one of the N IO module slave stations, and the i-th IO module slave station includes: a second main control chip, a second CAN transceiver module, a second group of wiring sockets, and a second power supply module, wherein: The second main control chip is electrically connected to the second CAN transceiver module, and the second CAN transceiver module is electrically connected to the first wiring socket through a fifth wiring socket, wherein the second group of wiring sockets includes the fifth wiring socket, and the i-th IO module slave station performs CAN communication with the IO module master station through the second CAN transceiver module; The second power supply module is used to provide a third preset DC voltage and a fourth preset DC voltage; The second group of wiring sockets also includes a sixth wiring socket, a seventh wiring socket and an eighth wiring socket, wherein the second main control chip is electrically connected to the seventh group of wiring terminals in the sixth wiring socket through the third operational amplifier circuit, the second main control chip is also electrically connected to the eighth group of wiring terminals in the sixth wiring socket through the fourth operational amplifier circuit, the second main control chip is also electrically connected to the ninth group of wiring terminals in the sixth wiring socket through the fifth optical coupler, the second main control chip is also electrically connected to the tenth group of wiring terminals in the sixth wiring socket through the sixth optical coupler, the seventh group of wiring terminals includes 2 wiring terminals, the seventh group of wiring terminals is used to output 2 analog quantities, the eighth group of wiring terminals includes 2 wiring terminals, the eighth group of wiring terminals is used to input 2 analog quantities, the ninth group of wiring terminals includes 6 wiring terminals, the ninth group of wiring terminals is used to output 6 digital quantities, the tenth group of wiring terminals includes 6 wiring terminals, the tenth group of wiring terminals is used to input 6 digital quantities; The second main control chip is also electrically connected to the input end of the seventh optical coupler, and the output end of the seventh optical coupler is electrically connected to the eleventh group of wiring terminals in the seventh wiring seat through the second relay, wherein the eleventh group of wiring terminals is used to output 24 signals; the second main control chip is also electrically connected to the output end of the eighth optical coupler, and the input end of the eighth optical coupler is electrically connected to the twelfth group of wiring terminals in the eighth wiring seat, wherein the twelfth group of wiring terminals is used to input 24 signals; Among them, the i-th IO module slave station also includes the third operational amplifier circuit, the fourth operational amplifier circuit, the fifth optocoupler, the sixth optocoupler, the seventh optocoupler, the eighth optocoupler and the second relay, and i is a positive integer greater than or equal to 1 and less than or equal to N.

8. The IO module control system according to claim 2, characterized in that: The first CAN transceiver module includes: a first CAN transceiver, a common mode inductor, an anti-static diode, a first resistor, a second resistor, a first capacitor, and a second capacitor, wherein: The data input pin of the first CAN transceiver is electrically connected to the data sending pin of the first main control chip through the first resistor, the data output pin of the first CAN transceiver is electrically connected to the data receiving pin of the first main control chip through the second resistor, the data input pin of the first CAN transceiver is also electrically connected to the ground terminal through the first capacitor, and the data output pin of the first CAN transceiver is also electrically connected to the ground terminal through the second capacitor; The CAN high level line pin of the first CAN transceiver is electrically connected to the first pin of the common mode inductor, the CAN low level line pin of the first CAN transceiver is electrically connected to the second pin of the common mode inductor, and the third pin of the common mode inductor and the fourth pin of the common mode inductor are electrically connected to the first wiring seat; The third pin of the common-mode inductor and the fourth pin of the common-mode inductor are also electrically connected to the first data line protection pin of the anti-static diode and the second data line protection pin of the anti-static diode, respectively, wherein the anti-static diode is used to protect the CAN high level line and the CAN low level line.

9. The IO module control system according to claim 8, characterized in that: The first CAN transceiver module further includes: a third resistor, a third capacitor, a fourth capacitor, and a fifth capacitor, wherein: The third resistor and the third capacitor are connected in parallel between the CAN high level line pin and the CAN low level line pin, the fourth capacitor is connected between the CAN high level line pin and the ground terminal, and the fifth capacitor is connected between the CAN low level line pin and the ground terminal.

10. An IO module communication method, characterized in that: Applicable to an IO module control system according to any one of claims 1 to 9, comprising: The IO module master station receives the first data packet sent by the robot controller; The IO module master sends a control instruction to the target IO module slave based on the first data packet to instruct the first external device to perform a corresponding operation, wherein the target IO module slave is one or more IO module slaves among the N IO module slaves, the first external device is a device connected to the target IO module slave, and N is a positive integer greater than or equal to 1; The IO module master station receives the second data packet sent by the target IO module slave station; The IO module master station sends the second data packet to the robot controller, wherein the second data packet includes data sent by each IO module slave station in the target IO module slave station, and the second data packet includes data collected by the first external device.