Industrial robot EtherCAT multi-slave-station dynamic configuration method

By scanning devices in the industrial robot system and generating mapping object tables and address tables, the dynamic configuration of the EtherCAT bus is realized, which solves the tedious and error-prone problems of traditional configuration methods, improves the automation and flexibility of the system, and improves R&D and deployment. efficiency.

CN118535210APending Publication Date: 2024-08-23PANDA ELECTRONICS +1
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410592871.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

In industrial robot systems, the traditional method of configuring the EtherCAT bus requires manual writing of xml configuration files, which results in the need to rewrite the configuration files when devices are added or removed or the connection sequence changes. The operation is cumbersome and error-prone, making it difficult to achieve automated configuration.

Method used

By scanning system devices, generating device description files, and constructing mapping object tables and address tables based on slave station parameter information, dynamic configuration of the EtherCAT bus is achieved, avoiding manual configuration, and the system automatically adapts to device changes.

Benefits of technology

It improves the efficiency of R&D and deployment, reduces manual configuration errors, enables the system to automatically configure after the addition or removal of devices or changes in the connection sequence, and improves system flexibility and development speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535210A
    Figure CN118535210A
Patent Text Reader

Abstract

The invention discloses an industrial robot EtherCAT multi-slave-station dynamic configuration method, which comprises the following steps: firstly, scanning bus equipment, obtaining the number, type and parameter information of slave stations, and automatically generating a configuration file of slave station equipment and a slave station equipment description file; after a master control program of the industrial robot is started, a configuration file and an equipment description file are read, PDO index addresses, addresses and parameter attributes are dynamically configured, and mapping object tables of all slave station equipment on the EtherCAT bus are correspondingly generated. And bus initialization is completed by using the mapping object table. And establishing an address table of each data entry. And later read-write quick query is facilitated. After the industrial robot is started, the industrial robot is dynamically and automatically configured according to the connection condition of the bus equipment, the situation that the number, attributes and the like of the slave stations need to be manually configured in the early stage is avoided, the industrial robot can be normally started and used without manual adjustment after equipment of the system is increased or decreased, the flexibility of the system is improved, and the development and application speed is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of robots, and in particular relates to a method for dynamically configuring EtherCAT multiple slave stations of an industrial robot. Background Art

[0002] In the field of industrial robots, drivers with EtherCAT thread bus communication interfaces are widely used. At the same time, many external IO devices, couplers, and measuring devices can be connected to the industrial robot system through the EtherCAT bus. To connect to different types of EtherCAT slaves, it is necessary to correctly configure the bus according to the specific connection method to ensure the normal operation of the EtherCAT bus and each device. The traditional method is to write the relevant xml configuration file in advance according to the number and type of slaves, and load the file to configure the bus at startup. If the bus adds or subtracts devices or the position changes, the xml configuration file must be rewritten, which is cumbersome. Summary of the invention

[0003] Purpose of the invention: The purpose of the present invention is to provide a method for dynamically configuring multiple EtherCAT slaves of industrial robots, thereby avoiding manual configuration and allowing the system to automatically and dynamically configure, thereby improving R&D and deployment efficiency.

[0004] Technical solution: A method for dynamically configuring multiple EtherCAT slaves of an industrial robot according to the present invention comprises the following steps:

[0005] Step 1: Start the industrial robot system, scan the bus devices, obtain the number and type of slave stations, write them into the configuration file, and store all slave station parameter information in the device description file;

[0006] Step 2: Start the main control program of the industrial robot system, perform dynamic bus configuration, read the device description file, and generate a mapping object table for all slave devices on the EtherCAT bus;

[0007] Step 3: Based on the mapping object table in step 2, generate an address table of each data entry of all slave devices on the EtherCAT bus. The industrial robot controller uses the offset address of the address table to read and write data to complete data interaction with the EtherCAT bus.

[0008] Furthermore, in step 1, the parameter information of all slave stations includes the index address of receiving RPDO and sending TPDO, the address of the object mapped by receiving RPDO and sending TPDO, the index address and data length of the mapped object.

[0009] Furthermore, step 2 is specifically as follows: perform bus dynamic configuration, the bus dynamic configuration function reads the configuration file and the device description file, and generates a mapping object table for all slave devices on the EtherCAT bus according to the index address of the received RPDO and the sent TPDO, the address of the object mapped by the received RPDO and the sent TPDO, the index address of the mapped object, and the data length. The mapping object table contains the data that needs to be read, written and updated in each communication cycle; and the mapping object table is used to complete the initialization of the EtherCAT bus.

[0010] Furthermore, the mapping object table is constructed according to the number, type and slave parameters of the slave stations in the configuration file, including a mapping object table for receiving RPDO and a mapping object table for sending TPDO of all slave stations; the mapping object table is divided into a three-level structure, namely, slave station device, mapping area, and mapping object, and the relationship between the three is that a mapping object table contains one or more slave station devices, each device contains one or more mapping areas, and each mapping area contains one or more mapping objects.

[0011] Furthermore, in step 3, the address table includes a slave station number, a plurality of input data offset addresses within the station, and a plurality of output data offset addresses within the station.

[0012] Beneficial effects: Compared with the prior art, the present invention has the following significant advantages:

[0013] (1) Since there are generally many EtherCAT slave devices connected to industrial robots, including multiple servo drives and multiple EtherCAT digital or analog IO interfaces, manual configuration is cumbersome and prone to errors. This method is used to avoid errors that may occur in manual configuration and improve R&D and deployment efficiency.

[0014] (2) After adding or reducing slave devices on the EtherCAT bus, there is no need for manual configuration, the system automatically and dynamically configures.

[0015] (3) After the connection order of EtherCAT bus devices changes, there is no need for manual configuration, and the system automatically and dynamically configures it.

[0016] (4) The present invention can realize automatic configuration according to the connection status of the bus device after the industrial robot is started, avoiding the need to manually configure the number and properties of the slave stations in the early stage. After adding or removing devices from the system, it can be started and used normally without manual adjustment, thereby improving the flexibility of the system and accelerating the speed of development and application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Flowchart of the dynamic configuration method for EtherCAT multiple slaves.

[0018] Figure 2 Use the command to get the slave list for the IGH open source EtherCAT master.

[0019] Figure 3 A diagram of the device description information for a particular drive.

[0020] Figure 4 This is a diagram of the mapping object table structure.

[0021] Figure 5 A diagram specifically illustrates the structure of the mapping object table.

[0022] Figure 6 This is the data entry address table of TPDO of two slave devices. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0024] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.

[0025] Figure 1 This is a flowchart of the dynamic configuration method of EtherCAT multiple slaves. After the system is started, the bus is scanned to obtain the number and type of slaves. In this example, the IGH open source EtherCAT master is used, which provides a command line tool "bin / ethercatslaves" to scan the bus and obtain a list of bus slaves. Figure 2 In the configuration file, there are 9 slave devices on the EtherCAT bus, the first 6 are drivers, and the last 3 are input and output IO modules. The information is written into the configuration file. The PDO information of each slave in C language format can be obtained through the command line tool "bin / ethercat cstruct". In the scanning stage, the index address of the receiving RPDO and the sending TPDO, the address of the object mapped by the receiving RPDO and the sending TPDO, the index address of the mapped object, the data length and other information need to be extracted from the PDO information, and written into the device description file. Figure 3It is the device description information of a certain driver. 0x1600 in slave_0_pdos is the index address of the RPDO mapping area, and 0x1a00 in slave_0_pdos is the index address of the TPDO mapping area. In slave_0_pdo_entries, 0x6040 to 0x60b8 are the address indexes of the objects mapped by TPDO, and 0x6041 to 0x603f are the address indexes of the objects mapped by RPDO. The second column in slave_0_pdo_entries indicates the secondary index of each address, which is 0x00 in this example. The third column indicates the data length of each index object in bits. For example, the primary index 0x6040 and the secondary index 0x00 correspond to the address object of ControlWord, which has a length of 16 bits.

[0026] The dynamic configuration function is in the main program of the industrial robot controller. When the main control program starts, it will first read the configuration file and device description file generated in the bus scanning phase. According to the information in the file, it starts to build the mapping object table.

[0027] The mapping object table is constructed based on the number, type and parameters of slaves in the configuration file. It contains the mapping object table for receiving RPDO and the mapping object table for sending TPDO of all slaves. The mapping object table has a three-level structure, namely slave device, mapping area and mapping object. The relationship between them is that the mapping object table contains one or more slave devices, each slave device contains one or more mapping areas, and each mapping area contains one or more mapping objects.

[0028] The mapping area type of each slave device is divided into RPDO mapping area and TPDO mapping area. Commonly used RPDO mapping areas are 0x1600, 0x1601, 0x1602, 0x1603, etc., and commonly used TPDO mapping areas are 0x1A00, 0x1A01, 0x1A02, 0x1A03, etc. Among them, each mapping area has 10 groups of indexes, which can correspond to up to 10 mapping objects. Figure 5 A schematic diagram of a mapping object table is given in FIG. 1 , which includes N slave devices. Each slave device includes a TPDO mapping area and an RPDO mapping area. Each mapping area includes multiple mapping objects.

[0029] During the EtherCAT communication process, each cycle will interact with all slaves to read and write, and the read and written data will be uniformly placed in a memory area. In order to facilitate the industrial robot master program to quickly find the specific data of a station, it is necessary to generate an address table of each data entry of all slave devices on the EtherCAT bus. The address table contains the slave number, multiple input data offset addresses in the station, and multiple output data offset addresses in the station. The industrial robot controller can use these offset addresses to read and write EtherCAT communication data to complete data interaction with the EtherCAT bus. Specifically, an address index table can be established for different mapping objects. For example, for the target position (TargetPosition) value of each axis driver of the robot, an address index table is established, with the slave number as the main index and the offset address of the target position data of this station in the data memory area as the index value. Using the slave number as the index, the memory address can be quickly obtained, and the target position value of the axis can be conveniently set by writing to the memory address.

[0030] Figure 6 The data entry address table of TPDO containing 2 slave devices is given. The address table in the example is from 0 to 30. When you need to access specific data, you can use the slave number and the data offset to find the address of the corresponding data from the address table, and use the address to read or set the data value from the memory. For example, when you need to write the target position (TargetPosition) of slave device 2, use the device 2 where the target position (TargetPosition) is located and the data offset 2, find address 18 and you can access it. Of course, there is also an RPDO data entry address table, which is similar to the TPDO address table and will not be repeated here.

[0031] Although the above description includes many specific steps and parameters, it should be noted that these specific arrangements and parameters are only used to illustrate an embodiment of the present application. This should not be used as a limitation to the scope of the present application. Those skilled in the art will appreciate that various modifications, additions and replacements may be made thereto without departing from the scope and spirit of the present application. Therefore, the scope of the present application should be interpreted based on the claims.

Claims

1. A method for dynamic configuration of multiple EtherCAT slave stations of an industrial robot, characterized in that: The steps include: Step 1: Start the industrial robot system, scan the bus devices, obtain the number and type of slave stations, write them into the configuration file, and store all slave station parameter information in the device description file; Step 2: Start the main control program of the industrial robot system, perform dynamic bus configuration, read the device description file, and generate a mapping object table for all slave devices on the EtherCAT bus; Step 3: Based on the mapping object table in step 2, generate an address table of each data entry of all slave devices on the EtherCAT bus. The industrial robot controller uses the offset address of the address table to read and write data to complete data interaction with the EtherCAT bus.

2. The method for dynamic configuration of multiple EtherCAT slave stations of an industrial robot according to claim 1, characterized in that: In step 1, the parameter information of all slave stations includes the index address of receiving RPDO and sending TPDO, the address of the object mapped by receiving RPDO and sending TPDO, the index address and data length of the mapped object.

3. The method for dynamic configuration of multiple EtherCAT slave stations of an industrial robot according to claim 1, characterized in that: Step 2 is specifically as follows: perform bus dynamic configuration. The bus dynamic configuration function reads the configuration file and the device description file, and generates a mapping object table for all slave devices on the EtherCAT bus according to the index address of the receiving RPDO and sending TPDO, the address of the object mapped by the receiving RPDO and sending TPDO, the index address of the mapped object, and the data length. The mapping object table contains the data that needs to be read, written, and updated in each communication cycle; the mapping object table is used to complete the initialization of the EtherCAT bus.

4. The method for dynamic configuration of multiple EtherCAT slave stations of an industrial robot according to claim 3, characterized in that: The mapping object table is constructed according to the number, type and slave parameters of the slave stations in the configuration file, and includes a mapping object table for receiving RPDO and a mapping object table for sending TPDO of all slave stations; the mapping object table is divided into a three-level structure, namely slave station device, mapping area, and mapping object. The relationship between the three is that a mapping object table contains one or more slave station devices, each device contains one or more mapping areas, and each mapping area contains one or more mapping objects.

5. The method for dynamic configuration of multiple EtherCAT slave stations of an industrial robot according to claim 1, characterized in that: In step 3, the address table includes a slave station number, a plurality of input data offset addresses within the station, and a plurality of output data offset addresses within the station.

Citation Information

Cited By

  • Method and system for adjusting driving parameters of EtherCAT bus

    CN119226214A

  • EtherCAT bus equipment communication configuration method and system

    CN119324845A

  • EtherNet / IP modular information identification method and equipment

    CN120263660A

  • Construction method and device of self-adaptive axis control system and electronic equipment

    CN120949554A

  • A method and device for constructing an adaptive axle control system, and electronic equipment

    CN120949554B