Data management method, programmable logic controller and data management system

By introducing configuration management components and bus protocol management components into the programmable logic controller, and utilizing the data mapping table generated by the host computer to realize industrial bus communication and data interaction with servo axis slaves, the problem of low scalability of protocol data interaction is solved, and flexible data mapping and scalability are realized.

CN121807751APending Publication Date: 2026-04-07SUZHOU GAOCHUANG MOTION CONTROL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

The existing programmable logic controllers (PLCs) have low scalability in the data exchange between industrial bus communication protocol data and servo axis protocol data, resulting in fixed calling relationships that cannot meet users' flexible configuration needs.

Method used

The data mapping table generated by the host computer is obtained by configuring the management component, and data interaction between the management component and the servo axis slave is carried out by using the bus protocol, avoiding the calling of inherent relationships and realizing the scalability of data interaction.

Benefits of technology

It improves the data exchange scalability between protocol data and servo axis protocol data in industrial bus communication, allowing users to customize the mapping relationship according to their needs, thus enhancing the system's flexibility and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121807751A_ABST
    Figure CN121807751A_ABST
Patent Text Reader

Abstract

The invention discloses a data management method, a programmable logic controller and a data management system, relates to the technical field of programmable logic controller management, and discloses a data management method which is applied to the programmable logic controller, and the programmable logic controller comprises a configuration management component and a bus protocol management component. The programmable logic controller is connected with an upper computer and a servo axis slave station and comprises the steps that a data mapping table generated by the upper computer is obtained based on a configuration management assembly, and the data mapping table comprises the mapping relation, defined in the upper computer, between process data in industrial bus communication and servo axis protocol data; and performing data interaction with the servo axis slave station based on the bus protocol management component according to the mapping relation. According to the invention, the expansibility of data interaction between the protocol data and the servo axis protocol data in industrial bus communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of programmable logic controller (PLC) management technology, and more particularly to a data management method, a PLC, and a data management system. Background Technology

[0002] With the development of PLC (Programmable Logic Controller), users have put forward higher requirements for industrial bus communication and servo axis protocol data management in PLC.

[0003] Traditional programmable logic controller (PLC) data management relies on industrial bus communication to directly call servo axis protocol data based on inherent (internally defined) relationships to achieve data interaction between the protocol data in industrial bus communication and the servo axis protocol data. This PLC data management method has significant drawbacks, namely, the fixed calling relationship between the protocol data in industrial bus communication and the servo axis protocol data. In other words, this PLC data management method results in limited scalability of data interaction between the protocol data in industrial bus communication and the servo axis protocol data due to the fixed calling relationship between the two.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main purpose of this application is to provide a data management method, a programmable logic controller, and a data management system, aiming to solve the technical problem of low scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication.

[0006] To achieve the above objectives, this application provides a data management method applied to a programmable logic controller (PLC). The PLC includes a configuration management component and a bus protocol management component. The PLC is connected to a host computer and a servo axis slave station. The data management method includes the following steps:

[0007] The configuration management component obtains the data mapping table generated by the host computer, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer;

[0008] Based on the bus protocol management component, data interaction occurs between the component and the servo axis slave station according to the mapping relationship.

[0009] In one embodiment, the servo axis slave is connected to the bus protocol management component, and the step of interacting with the servo axis slave according to the mapping relationship includes:

[0010] Based on the mapping relationship, the process data in the bus protocol management component is copied to the output memory of the servo axis slave station, and the process data is read as the first read data;

[0011] Based on the mapping relationship, the servo axis protocol data in the servo axis slave station is copied to the input memory of the bus protocol management component, and the servo axis protocol data is read as the second read data.

[0012] In one embodiment, after the step of performing data interaction with the servo axis slave according to the mapping relationship, the method includes:

[0013] Based on the first read data, the corresponding first write data is determined, and in the next task cycle, the first write data is used as the process data in the bus protocol management component.

[0014] Based on the second read data, the corresponding second write data is determined, and in the next task cycle, the second write data is used as the servo axis protocol data in the servo axis slave station.

[0015] In one embodiment, the data mapping table includes a first binding relationship between process data and input / output areas in the industrial bus communication and a second binding relationship between servo axis protocol data and input / output areas. After the step of obtaining the data mapping table generated by the host computer, the following steps are included:

[0016] The first binding relationship is sent as the mapping relationship to the bus protocol management component in the programmable logic controller;

[0017] The second binding relationship is sent as the mapping relationship to the servo axis management component in the programmable logic controller, wherein the servo axis management component is communicatively connected to the servo axis slave.

[0018] In one embodiment, the programmable logic controller includes a memory management component connected to a host computer, and the data management method includes:

[0019] When a read / write request instruction is received that is a bus protocol data read / write instruction, the memory management component is controlled to read and write data of the bus protocol management component in the programmable logic controller based on the read / write request instruction.

[0020] When a read / write request instruction is received that is a servo axis protocol data read / write instruction, the memory management component is controlled to read and write data of the servo axis management component in the programmable logic controller based on the read / write request instruction.

[0021] In one embodiment, the data management method further includes:

[0022] When a read / write request instruction is received as a diagnostic information read instruction, the memory management component is controlled to read the status of the servo axis management component in the programmable logic controller based on the read / write request instruction.

[0023] Furthermore, to achieve the above objectives, this application also provides a programmable logic controller, which includes:

[0024] A configuration management component is used to receive a data mapping table generated by a host computer, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer;

[0025] A bus protocol management component is connected to the configuration management component. The bus protocol management component is used to perform data interaction with the servo axis slave station according to the mapping relationship.

[0026] In one embodiment, the programmable logic controller includes:

[0027] A memory management component is connected to the bus protocol management component and the host computer, and the memory management component is used to interact with the bus protocol management component and the host computer.

[0028] In one embodiment, the programmable logic controller further includes:

[0029] A servo axis management component is connected to the configuration management component and the memory management component. The servo axis management component is used to interact with the host computer based on the memory management component.

[0030] In addition, to achieve the above objectives, this application also provides a data management system, which includes the above-mentioned programmable logic controller, and the programmable logic controller is connected to a host computer and a servo axis slave station;

[0031] The programmable logic controller performs the steps of the data management method described above.

[0032] This application provides a data management method for a programmable logic controller (PLC). The PLC includes a configuration management component and a bus protocol management component. The PLC is connected to a host computer and servo axis slaves. The configuration management component obtains a data mapping table generated by the host computer. This data mapping table includes a mapping relationship between process data and servo axis protocol data in industrial bus communication, defined in the host computer. Based on this mapping relationship, the bus protocol management component interacts with the servo axis slaves. By obtaining the data mapping table from the host computer through the configuration management component, the bus protocol management component can interact with the servo axis slaves based on the mapping relationship, thus avoiding the fixed calling relationship between protocol data and servo axis protocol data in industrial bus communication. This data management method utilizes the editability of the host computer, enabling data interaction between the bus protocol management component and the servo axis slaves based on the data mapping table generated by the host computer, without having to use the inherent relationships defined within the PLC. This improves the scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication. Attached Figure Description

[0033] Figure 1 This is a flowchart illustrating the data management method of this application;

[0034] Figure 2 This is a schematic diagram of the programmable logic controller of this application;

[0035] Figure 3 This is a schematic diagram of the connection of the pulse current sensing unit in the varistor lifetime detection circuit of this application.

[0036] Figure 4 This is a schematic diagram of the programmable logic controller module of this application;

[0037] Figure 5 This is a schematic diagram of the hardware operating environment involved in the device in this application;

[0038] Figure 6 This is a schematic diagram of a one-cycle task refresh process for the data management method of this application;

[0039] Figure 7 This is a schematic diagram of a configuration process for the data management method of this application;

[0040] Figure 8 This is a schematic diagram of the read / write process of the data management method in this application;

[0041] Figure 9 This is a schematic diagram of an interactive process for the data management method of this application.

[0042] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings.

[0043] Explanation of icon numbers:

[0044] 200. Host computer; 100. Programmable logic controller; 300. Servo axis slave; 110. Configuration management component; 120. Bus protocol management component; 130. Memory management component; 140. Servo axis management component. Detailed Implementation

[0045] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0046] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0047] In industrial automation PLC control systems, industrial bus communication technology within PLCs is widely used for high real-time data exchange between motion controller devices (devices carrying industrial bus communication) and physical slave devices (controlled devices). Commonly used industrial real-time buses include the EtherCAT (Ethernet Control Automation Technology) bus protocol and the CANopen (Controller Area Network) bus protocol. However, existing industrial bus communication technologies cannot effectively perform memory-bound mapping for data interaction between motion controller devices and physical slave devices. They are all defined internally by the programmable logic controller (PLC), meaning that PLC data interaction cannot provide users with the freedom to choose and configure applications.

[0048] Therefore, based on the shortcomings of the above-mentioned programmable logic controller (PLC) data management methods, this application proposes a PLC. The main solution of this application's embodiments is: by obtaining a data mapping table generated by the host computer through a configuration management component, the bus protocol management component can interact with the servo axis slave based on the mapping relationship, thereby avoiding the phenomenon of fixed calling relationships between protocol data and servo axis protocol data in industrial bus communication. This data management method utilizes the editability of the host computer, enabling data interaction between the bus protocol management component and the servo axis slave based on the data mapping table generated by the host computer, without having to use the inherent relationships defined internally by the PLC, thus improving the scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication.

[0049] The first embodiment of the data management method of this application is presented, with reference to Figure 1 , Figure 1 This is a flowchart illustrating the data management method of this application. The data management method is applied to a programmable logic controller (PLC). The PLC includes a configuration management component and a bus protocol management component. The PLC is connected to a host computer and servo axis slave stations. The data management method includes the following steps:

[0050] Step S10: Obtain the data mapping table generated by the host computer based on the configuration management component. The data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer.

[0051] In step S20, the bus protocol-based management component interacts with the servo axis slave station according to the mapping relationship.

[0052] In this embodiment, a data mapping table is generated on the host computer and then sent to the programmable logic controller (PLC). This data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication, defined in the host computer. This means the mapping relationship between process data and servo axis protocol data in industrial bus communication is customized in the host computer to improve the scalability of the interaction between these two data sets. The PLC then uses this mapping relationship to perform data interaction with the servo axis slave, as the mapping relationship represents the interaction between process data in the PLC and servo axis protocol data in the servo axis slave.

[0053] In one embodiment, reference is made to Figure 2The PLC IDE imports and parses ESI (EtherCAT Slave Information) files to obtain the variable data of the EtherCAT slave devices. Based on this variable data, it dynamically configures process data and determines the data mapping relationship between the servo UFIDS axis and the bus protocol using custom methods. This mapping relationship enables data interaction within the programmable logic controller (PLC). The PLC IDE can also collect data from the PLC to perform device diagnostics and online variable read / write operations. During data interaction between the PLC and the host computer, communication methods include TCP / IP (Transmission Control Protocol / Internet Protocol), UDP (User Datagram Protocol), or standard serial communication. Communication data can include bus device and axis device configurations (i.e., mapping relationships) and memory interaction data (i.e., data read and written from the PLC).In the programmable logic controller (PLC), the configuration management component 110 is primarily responsible for managing runtime system-related configuration information, including bus protocol configuration, bus protocol data, and memory management interaction information. Even when the PLC IDE is offline, the PLC's internal runtime system can automatically run by loading the configuration. The bus protocol management component is mainly responsible for managing data interaction between bus devices corresponding to the industrial bus protocol, bus protocol and memory management data interaction (interaction with an external host computer via the memory management component), and bus device diagnostics. Bus devices include EtherCAT master devices and CANopen master devices, etc. When configuring the bus protocol management component, it extracts bus protocol-related configurations from the configuration management, mainly including SDO (Service Data Objects). The programmable logic controller (PLC) handles data exchange between the service data object (SDO), PDO configuration, master / slave standard parameter configuration, and information exchanged between the PDO and memory management components. During data exchange, the PDO and PDO exchange data between the bus master and slave in the PLC runtime system. The memory management component in the PLC primarily manages the memory of the IEC (IEC 61131-3 standard PLC program, referred to as IEC in this document) input / output data area and slave device input / output data area. This includes the interaction between process data and servo axis data in the runtime system via the memory management component, and data refresh management between the IEC data area and the slave device data area. The servo axis management component primarily manages the bus motion control axes, encoder axes, high-speed pulse axes, and high-speed counting axes. This includes the logic processing of the Cia402 axis protocol, the interaction between Cia402 axis data and the memory management component, and virtual axis mode and real axis mode. The data read / write process between the servo axes and the memory management component mainly includes the memory read / write process of Cia402 axis data, encoder axis data, and high-speed pulse axis data.

[0054] In one embodiment, a data management method for a programmable logic controller (PLC) is provided. The PLC includes a configuration management component and a bus protocol management component. The PLC is connected to a host computer and servo axis slaves. The method obtains a data mapping table generated by the host computer based on the configuration management component. This data mapping table includes a mapping relationship between process data and servo axis protocol data in industrial bus communication, defined in the host computer. The bus protocol management component interacts with the servo axis slaves based on this mapping relationship. By obtaining the data mapping table from the host computer through the configuration management component, the bus protocol management component can interact with the servo axis slaves based on the mapping relationship, thus avoiding the fixed calling relationship between protocol data and servo axis protocol data in industrial bus communication. This data management method utilizes the editability of the host computer, enabling data interaction between the bus protocol management component and the servo axis slaves based on the data mapping table generated by the host computer, without having to use the inherent relationships defined within the PLC. This improves the scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication.

[0055] Furthermore, based on the first embodiment of the data management method of this application described above, a second embodiment of the data management method of this application is proposed. In this embodiment, reference is made to... Figure 6 , Figure 6 This is a schematic diagram of a one-cycle task refresh process for the data management method of this application. The servo axis slave is connected to the bus protocol management component, and the steps for data interaction between the servo axis slave and the servo axis slave according to the mapping relationship include:

[0056] Step S21: Based on the mapping relationship, copy the process data in the bus protocol management component to the output memory of the servo axis slave station, and read the process data as the first read data;

[0057] Step S22: Based on the mapping relationship, copy the servo axis protocol data in the servo axis slave station to the input memory of the bus protocol management component, and read the servo axis protocol data as the second read data.

[0058] In this embodiment, data interaction with the servo axis slave primarily refers to the periodic interaction between process data in the IEC data area and servo axis protocol data from the servo axis slave. The programmable logic controller (PLC) includes a bus protocol management component connected to the servo axis slave. Based on a mapping relationship, it copies process data from the PLC to the output memory of the servo axis slave and reads the process data as the first read data. Simultaneously, based on the mapping relationship, it copies servo axis protocol data from the servo axis slave to the input memory of the PLC and reads the servo axis protocol data as the second read data. Here, "based on mapping relationship" refers to the correspondence between process data and servo axis protocol data in the mapping relationship; "first read data" refers to the process data read after the initial reading; and "second read data" refers to the servo axis protocol data read after the initial reading. This enables the periodic interaction between servo axis protocol data and process data.

[0059] Furthermore, following the steps of data interaction with the servo axis slave based on the mapping relationship, the process includes:

[0060] Step S23: Determine the corresponding first write data based on the first read data, and use the first write data as process data in the bus protocol management component in the next task cycle;

[0061] Step S24: Determine the corresponding second write data based on the second read data, and use the second write data as the servo axis protocol data in the servo axis slave in the next task cycle.

[0062] In this embodiment, after determining the first read data and the second read data, the data interaction within this task cycle is completed, and preparation processing for the data in the next task cycle is also performed. The first write data is determined based on the first read data, and in the next task cycle, the first write data is used as process data in the bus protocol management component. Simultaneously, the second write data is determined based on the second read data, and in the next task cycle, the second write data is used as servo axis protocol data in the servo axis slave. Then, in the next task cycle, the above steps of data interaction with the servo axis slave based on the mapping relationship are executed. Determining the first write data based on the first read data can be done by directly defining the read data as write data, or by processing it according to a special definition or rule to obtain the write data, thus providing a basis for the interaction data in the next cycle.

[0063] In one embodiment, reference is made to Figure 6 The data interaction area includes data interaction between the IEC input / output area memory area and the (slave) device input / output area memory area, and mainly includes the following execution processes:

[0064] On the one hand, at the start of the Task cycle, the process data in the IEC output memory area is copied to the device output memory area, and the data in the device output memory area is read by EtherCAT TPDO (EtherCAT PDO sends data); at the same time, at the start of the Task cycle, the servo axis protocol data in the device input memory area is copied to the IEC input memory area, and the data in the IEC input memory area is read by Cia402 Axis Data, thus completing the data interaction of this Task cycle;

[0065] On the other hand, during Task execution, the bus master reads the EtherCAT RPDO data from the slave (obtained from the corresponding data via EtherCAT TPDO) and writes the EtherCAT RPDO data (EtherCAT PDO read data) to the device input memory area, which takes effect at the start of the next Task. During Task execution, the axis data processed by the Cia402 axis protocol is written to the IEC output memory area, also taking effect at the start of the next Task. It is worth noting that the duration or delay of copying, reading, and writing can be defined at this point, allowing for adaptive adjustment of the entire Task cycle duration.

[0066] Furthermore, based on the first and / or second embodiments of the data management method of this application described above, a third embodiment of the data management method of this application is proposed. In this embodiment, reference is made to... Figure 7 , Figure 7 This is a schematic diagram of a configuration process for the data management method of this application. The data mapping table includes a first binding relationship between process data and input / output areas in industrial bus communication and a second binding relationship between servo axis protocol data and input / output areas. After obtaining the data mapping table generated by the host computer, the process includes:

[0067] Step S11: Send the first binding relationship as a mapping relationship to the bus protocol management component in the programmable logic controller;

[0068] Step S12: The second binding relationship is sent as a mapping relationship to the servo axis management component in the programmable logic controller, wherein the servo axis management component is communicatively connected to the servo axis slave.

[0069] In this embodiment, after the data mapping table is determined, it is sent to the bus protocol management component and the servo axis management component respectively. The data mapping table includes a first binding relationship between process data and input / output areas in industrial bus communication and a second binding relationship between servo axis protocol data and input / output areas. The first binding relationship is sent as a mapping relationship to the bus protocol management component in the programmable logic controller (PLC), and the second binding relationship is sent as a mapping relationship to the servo axis management component in the PLC. Since the servo axis management component is communicatively connected to the servo axis slave, the bus protocol management component and the servo axis slave can then interact with each other based on the received mapping relationship.

[0070] In one embodiment, the servo axis and the bus protocol PDO are mapped to a mapping table generated by a mapping relationship. The mapping table includes the binding relationship between servo axis data and IEC input / output area memory, and the binding relationship between bus protocol PDO data and IEC input / output area memory, so that the two binding relationships are respectively input to their respective components to facilitate subsequent data interaction.

[0071] Furthermore, based on the first, second, and / or third embodiments of the data management method described above, a fourth embodiment of the data management method of this application is proposed, referring to... Figure 8 , Figure 8 This is a schematic diagram of a read / write process for the data management method of this application. In this embodiment, the programmable logic controller includes a memory management component connected to a host computer. The data management method includes:

[0072] Step a: When a read / write request instruction is received as a bus protocol data read / write instruction, the memory management component is controlled to read and write data of the bus protocol management component in the programmable logic controller based on the read / write request instruction;

[0073] Step b: When a read / write request instruction is received as a servo axis protocol data read / write instruction, the memory management component is controlled to read and write data of the servo axis management component in the programmable logic controller based on the read / write request instruction.

[0074] In this embodiment, the programmable logic controller (PLC) includes a memory management component connected to a host computer. This memory management component enables variable reading and writing between the bus protocol management component and the host computer, and between the servo axis management component and the host computer, as well as device diagnostics, or data interaction between the bus device and the servo axis device and the host computer. When the PLC receives a read / write request instruction that is a bus protocol data read / write instruction (meaning it performs read / write operations on the PLC and the bus protocol data read / write instruction performs read / write operations on the data in the bus protocol management component), the memory management component is controlled to read and write data in the PLC to complete variable reading and writing between the bus protocol management component and the host computer. Similarly, when the PLC receives a read / write request instruction that is a servo axis protocol data read / write instruction (meaning it performs read / write operations on the data in the servo axis management component), the memory management component reads and writes data in the bus protocol management component within the PLC. Because the read / write request instruction at this time is a servo axis protocol data read / write instruction, the memory management component will be controlled to read and write the data of the servo axis management component in the programmable logic controller based on the read / write request instruction, so as to complete the variable read / write between the servo axis management component and the host computer.

[0075] In one embodiment, reference is made to Figure 9 , Figure 9 This diagram illustrates an interactive flow of the data management method presented in this application. In PLC motion controller industry applications, the bus communication protocol data of the programmable logic controller (PLC) cannot adequately provide a user data access interface, preventing users from freely reading and writing bus communication data as needed. Simultaneously, axis management data cannot be adequately provided to users, hindering their ability to extend physical axis protocols as required. Therefore, a data interaction method based on a memory management component is proposed. The memory management unit of the PLC runtime system copies data from the IEC output memory area to the device output area; performs servo axis data read / write operations with the memory management component; performs bus protocol data read / write operations with the memory management component; and refreshes data from the device input area to the IEC input memory area.

[0076] In one embodiment, the data management method further includes:

[0077] Step c: When a read / write request instruction is received as a diagnostic information read instruction, the memory management component is controlled to read the status of the servo axis management component in the programmable logic controller based on the read / write request instruction.

[0078] In this embodiment, the data management method also has a diagnostic function. When a read / write request instruction is received as a diagnostic information reading instruction, the memory management component is controlled to read the status of the servo axis management component in the programmable logic controller based on the read / write request instruction. The diagnostic information reading instruction is an instruction to perform diagnostic operations on the status of the servo axis management component, so that the real-time status of the servo axis management component can be understood in a timely manner. At the same time, the memory management component can also be used to diagnose the bus protocol management component, which is not limited here.

[0079] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the data management method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.

[0080] Based on embodiments of the data management method of this application, this application also provides a programmable logic controller, with reference to... Figure 2 A schematic diagram of the structure of a programmable logic controller (PLC). The PLC 100 includes:

[0081] Configuration management component 110 is used to receive a data mapping table generated by host computer 200, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in host computer 200.

[0082] Bus protocol management component 120 is connected to configuration management component 110. Bus protocol management component 120 is used to perform data interaction with servo axis slave station 300 according to the mapping relationship.

[0083] In this embodiment, to address the problem of limited scalability in data interaction between protocol data and servo axis protocol data in industrial bus communication—specifically, to resolve the phenomenon that industrial bus communication can only call servo axis protocol data based on inherent (internally defined by the programmable logic controller) relationships—the programmable logic controller of this application is proposed. The configuration management component 110 receives a data mapping table generated by the host computer 200. This data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer 200. In other words, the host computer 200 can define the mapping relationship between process data and servo axis protocol data in industrial bus communication and then send this defined mapping relationship to the configuration management component 110 of the programmable logic controller 100. It is worth noting that a component represents a reusable, independent, and well-packaged software unit. These units typically have clearly defined functions and interfaces. Components can be one or more files in a code library, and they can be combined to form larger programs or systems. The component-based development approach aims to improve software maintainability, scalability, and reusability. Configuration management component 110 configures mapping relationships and other component configuration environments, while bus protocol management component 120 carries industrial bus communication. At this point, configuration management component 110 sends the received mapping relationship to bus protocol management component 120. Because bus protocol management component 120 is connected to servo axis slave station 300, it can interact with servo axis slave station 300 based on the mapping relationship. That is, based on the mapping relationship defined in the host computer, the process data in bus protocol management component 120 and the servo axis protocol data in servo axis slave station 300 can perform data interaction operations. Therefore, the scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication can be improved based on the mapping relationship defined in the host computer. Furthermore, data interaction can be achieved without adding hardware through the configuration of internal components.

[0084] In this embodiment, a programmable logic controller (PLC) is provided. The PLC includes a configuration management component connected to a host computer. The configuration management component receives a data mapping table generated by the host computer, wherein the data mapping table includes a mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer. A bus protocol management component is connected to the configuration management component and the servo axis slave. The bus protocol management component interacts with the servo axis slave based on the mapping relationship. By receiving the data mapping table generated by the host computer through the configuration management component, the bus protocol management component can interact with the servo axis slave based on the mapping relationship, thereby avoiding the fixed calling relationship between protocol data and servo axis protocol data in industrial bus communication. This PLC utilizes the editability of the host computer, enabling data interaction between the bus protocol management component and the servo axis slave based on the data mapping table generated by the host computer, without having to use the inherent relationships defined within the PLC, thus improving the scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication.

[0085] Furthermore, based on the first embodiment of the programmable logic controller of this application described above, a second embodiment of the programmable logic controller of this application is proposed. In this embodiment, reference is made to... Figure 2 , Figure 2 The programmable logic controller 100 includes:

[0086] The memory management component 130 is connected to the bus protocol management component 120 and the host computer 200. The memory management component is used to interact with the bus protocol management component 120 and the host computer 200.

[0087] In one embodiment, the programmable logic controller 100 further includes:

[0088] The servo axis management component 140 is connected to the configuration management component 110 and the memory management component 130. The servo axis management component 140 is used to interact with the host computer 200 based on the memory management component 130.

[0089] In this embodiment, the programmable logic controller 100 further includes a memory management component 130 and a servo axis management component 140. The memory management component 130 is a component that interfaces the memory data of the servo axis management component 140 and the bus protocol management component 120. The servo axis management component 140 is a component that manages the servo axis slave station 300. At this time, in addition to data interaction between the programmable logic controller 100 and the servo axis slave station 300 based on the bus protocol management component 120, the programmable logic controller 100 can also interact with the process data in the industrial bus communication protocol and the servo axis protocol data of the servo axis slave station 300 (e.g., the servo axis) through the memory management component 130, reducing the coupling of data interaction between the two.

[0090] In one embodiment, the PLC IDE (Integrated Development Environment) software of the host computer binds the PDO (Process Data Object) data of the bus communication protocol and the servo axis protocol data to a designated memory area according to the mapping relationship between PDO (Process Data Object) and servo axis protocol data in the bus protocol. The binding process supports both manual and automatic binding methods, meaning that users can freely bind the relationship between the bus protocol and the slave physical device data according to their needs, thereby improving the scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication. After the host computer determines the mapping relationship, it writes the PLC IDE software and related communication services (such as wireless communication) to the configuration management component 110. On the one hand, the configuration management component 110 is responsible for reading and writing to the bus protocol management component 120 and the servo axis management component 140. At this time, data interaction between the bus protocol management component 120 and the servo axis slave 300 can be realized based on the mapping relationship. On the other hand, when the host computer PLCIDE software interacts with the PLC runtime system, the PLC IDE provides users with a way to read and write data memory of the bus protocol management component 120 and the servo axis management component 140. Users can perform data read and write according to their needs and the memory management component 130. At this time, the data of the bus protocol management component 120 and the servo axis management component 140 are uniformly maintained by the memory management component 130. At the same time, users can freely bind the mapping relationship between process data and servo axis protocol data in industrial bus communication on the PLC IDE, which has better scalability. Based on the free binding, the existing PLC industrial bus communication protocol can be better compatible with servo axis slaves from other manufacturers. Meanwhile, the memory management component 130 can better provide users with an interface to read and write data of the bus protocol management component 120 and the servo axis management component 140. The PLC IDE can realize data read and write and status monitoring of bus devices and servo axis slaves by reading and writing data of the memory management component 130.

[0091] This application also provides a programmable logic controller; please refer to [reference needed]. Figure 4 The programmable logic controller includes:

[0092] The relationship acquisition module A10 is used to acquire the data mapping table generated by the host computer, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer;

[0093] The data interaction module A20 is used to perform data interaction with the servo axis slave station according to the mapping relationship.

[0094] The programmable logic controller (PLC) provided in this application, employing the data management method described in the above embodiments, can solve the technical problem of low scalability in data interaction between protocol data and servo axis protocol data in industrial bus communication. Compared with the prior art, the beneficial effects of the PLC provided in this application are the same as those of the data management method provided in the above embodiments, and other technical features of the PLC are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0095] This application also provides a data management system, wherein the data management system includes a programmable logic controller (PLC), and the PLC is connected to a host computer and a servo axis slave station.

[0096] The programmable logic controller performs the steps of the data management method described above.

[0097] The programmable logic controller (PLC) can connect to a host computer to receive a data mapping table automatically generated by the user or the host computer. In this case, the user defines the mapping relationship between process data and servo axis protocol data in industrial bus communication on the host computer. This avoids the problem of fixed calling relationships between protocol data and servo axis protocol data in industrial bus communication, thus solving the technical problem of low scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication. The PLC then executes steps to obtain the data mapping table generated by the host computer, whereby the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined on the host computer. Based on this mapping relationship, it performs data interaction with the servo axis slave station. Simultaneously, the host computer can also be used to read and write internal data of the PLC to enable PLC expansion. Compared with the prior art, the beneficial effects of the data management system provided in this application are the same as those of the data management method provided in the above embodiments, and other technical features in the data management system are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0098] This application provides a programmable logic controller (PLC) management device, which can be a PLC. The PLC management device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the data management method in the above embodiment 1.

[0099] The following is for reference. Figure 5 This document illustrates a structural schematic diagram of a programmable logic controller (PLC) management device suitable for implementing embodiments of this application. The PLC management device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 5 The programmable logic controller management device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0100] like Figure 5As shown, the programmable logic controller (PLC) management device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the PLC management device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following slave servo drives can be connected to I / O interface 1006: input slave servo drives 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the programmable logic controller (PLC) management device to communicate wirelessly or wiredly with other devices to exchange data. Although a PLC management device with various slave servo drives is shown in the figure, it should be understood that it is not required to implement or have all of the slave servo drives shown. More or fewer slave servo drives can be implemented or have alternatively.

[0101] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0102] The programmable logic controller (PLC) management device provided in this application, employing the data management method described in the above embodiments, can solve the technical problem of low scalability in data interaction between protocol data and servo axis protocol data in industrial bus communication. Compared with the prior art, the beneficial effects of the PLC management device provided in this application are the same as those of the data management method provided in the above embodiments, and other technical features of this PLC management device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0103] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0104] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0105] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the data management method described in the above embodiments.

[0106] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor slave servo drive, slave servo drive, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be executed by instructions for use by or in conjunction with a slave servo drive, slave servo drive, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0107] The aforementioned computer-readable storage medium may be included in the programmable logic controller management device; or it may exist independently and not assembled into the programmable logic controller management device.

[0108] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a programmable logic controller (PLC) managed device, cause the PLC to manage the device:

[0109] Obtain the data mapping table generated by the host computer, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer;

[0110] Data interaction is performed between the servo axis slave station and the mapping relationship.

[0111] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0112] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of slave servo drivers, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based slave servo driver that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0113] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0114] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described data management method. This solves the technical problem of low scalability in data interaction between protocol data and servo axis protocol data in industrial bus communication. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the data management method provided in the above embodiments, and will not be repeated here.

[0115] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the data management method described above.

[0116] The computer program product provided in this application can solve the technical problem of low scalability of data interaction between protocol data and servo axis protocol data in industrial bus communication. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the data management method provided in the above embodiments, and will not be repeated here.

[0117] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A data management method, characterized in that, The data management method is applied to a programmable logic controller (PLC), which includes a configuration management component and a bus protocol management component. The PLC is connected to a host computer and a servo axis slave station. The data management method includes the following steps: The configuration management component obtains the data mapping table generated by the host computer, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer; Based on the bus protocol management component, data interaction occurs between the component and the servo axis slave station according to the mapping relationship.

2. The data management method as described in claim 1, characterized in that, The servo axis slave is connected to the bus protocol management component, and the step of interacting with the servo axis slave according to the mapping relationship includes: Based on the mapping relationship, the process data in the bus protocol management component is copied to the output memory of the servo axis slave station, and the process data is read as the first read data; Based on the mapping relationship, the servo axis protocol data in the servo axis slave station is copied to the input memory of the bus protocol management component, and the servo axis protocol data is read as the second read data.

3. The data management method as described in claim 2, characterized in that, After the step of performing data interaction with the servo axis slave station according to the mapping relationship, the following steps are included: Based on the first read data, the corresponding first write data is determined, and in the next task cycle, the first write data is used as the process data in the bus protocol management component. Based on the second read data, the corresponding second write data is determined, and in the next task cycle, the second write data is used as the servo axis protocol data in the servo axis slave station.

4. The data management method as described in claim 1, characterized in that, The data mapping table includes a first binding relationship between process data and input / output areas in the industrial bus communication and a second binding relationship between servo axis protocol data and input / output areas. Following the step of obtaining the data mapping table generated by the host computer, the process includes: The first binding relationship is sent as the mapping relationship to the bus protocol management component in the programmable logic controller; The second binding relationship is sent as the mapping relationship to the servo axis management component in the programmable logic controller, wherein the servo axis management component is communicatively connected to the servo axis slave.

5. The data management method as described in claim 1, characterized in that, The programmable logic controller includes a memory management component connected to a host computer, and the data management method includes: When a read / write request instruction is received that is a bus protocol data read / write instruction, the memory management component is controlled to read and write data of the bus protocol management component in the programmable logic controller based on the read / write request instruction. When a read / write request instruction is received that is a servo axis protocol data read / write instruction, the memory management component is controlled to read and write data of the servo axis management component in the programmable logic controller based on the read / write request instruction.

6. The data management method as described in claim 5, characterized in that, The data management method further includes: When a read / write request instruction is received as a diagnostic information read instruction, the memory management component is controlled to read the status of the servo axis management component in the programmable logic controller based on the read / write request instruction.

7. A programmable logic controller, characterized in that, The programmable logic controller includes: A configuration management component is used to receive a data mapping table generated by a host computer, wherein the data mapping table includes the mapping relationship between process data and servo axis protocol data in industrial bus communication defined in the host computer; A bus protocol management component is connected to the configuration management component. The bus protocol management component is used to perform data interaction with the servo axis slave station according to the mapping relationship.

8. The programmable logic controller as described in claim 7, characterized in that, The programmable logic controller includes: A memory management component is connected to the bus protocol management component and the host computer, and the memory management component is used to interact with the bus protocol management component and the host computer.

9. The programmable logic controller as described in claim 8, characterized in that, The programmable logic controller further includes: A servo axis management component is connected to the configuration management component and the memory management component. The servo axis management component is used to interact with the host computer based on the memory management component.

10. A data management system, characterized in that, The data management system includes a programmable logic controller as described in any one of claims 7 to 9, wherein the programmable logic controller is connected to a host computer and a servo axis slave station; The programmable logic controller performs the steps of the data management method as described in any one of claims 1 to 6.