CN-121995835-A - Method, system and computer readable storage medium for automatically configuring process data objects
Abstract
The invention provides a method, a system and a computer readable storage medium for automatically configuring a process data object. The method includes judging whether a function of an auto-configuration process data object is opened, judging whether a current process data object is complete when the function of the auto-configuration process data object is judged to be opened, and configuring a new process data object when the current process data object is judged to be incomplete. The method of the invention can realize the automatic configuration of PDO, reduce the difficulty and time of manual configuration, reduce the probability of PDO deficiency and/or error caused by manual configuration, and improve the accuracy and reliability of PDO configuration.
Inventors
- JIN XIN
Assignees
- 施耐德电气工业公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241104
Claims (13)
- 1. A method of automatically configuring a process data object, comprising: judging whether the function of the automatic configuration process data object is opened or not; When judging that the function of the automatic configuration process data object is opened, judging whether the current process data object is complete or not, and And when judging that the current process data object is incomplete, configuring a new process data object.
- 2. The method of claim 1, wherein the step of determining whether the function of the auto-configuration process data object is on comprises determining whether the function of the auto-configuration process data object is on based on whether a function switch of the auto-configuration process data object is on.
- 3. The method of claim 1, wherein determining whether the current process data object is complete comprises determining whether the current process data object is complete based on the current process data object and a preset process data object.
- 4. A method according to claim 3, wherein the current process data object and the preset process data object are determined according to a currently used function block.
- 5. The method of claim 3, wherein configuring the new process data object comprises adding a process data object missing from the current process data object based on the pre-set process data object.
- 6. The method of any of claims 1-5, further comprising determining whether the number of current process data objects meets an allocation number threshold, and configuring the new process data object when the number is determined to not meet the allocation number threshold.
- 7. The method of claim 6, further comprising alerting the current process data object that the number of process data objects has reached the allocation number threshold and is not configurable when the number is determined to reach the allocation number threshold.
- 8. The method of any of claims 1-5, wherein the step of configuring the new process data object further comprises re-determining whether the new current process data object is complete.
- 9. The method of any of claims 1-5, further comprising determining whether a redundant process data object is included in the current process data object when the current process data object is determined to be complete.
- 10. The method of claim 9, wherein determining whether the current process data object includes an excess process data object comprises determining whether the excess process data object is included based on a use case of the current process data object.
- 11. The method of claim 9, further comprising alerting the current process data object to include an excess process data object when it is determined that the excess process data object is included in the current process data object.
- 12. A system for automatically configuring a process data object, comprising: programmable logic controller, and The servo driver is in communication connection with the programmable logic controller, Wherein the programmable logic controller is configured to perform the method of any of claims 1-11 and to control operation of the servo driver.
- 13. A computer readable storage medium storing computer executable instructions which, when executed by a processor, implement the method of any one of claims 1-11.
Description
Method, system and computer readable storage medium for automatically configuring process data objects Technical Field The present invention relates generally to the field of process data objects, and more particularly to a method of automatically configuring a process data object, a system for automatically configuring a process data object, and a computer readable storage medium. Background A programmable logic controller (Programmable Logic Controller, PLC) is a control device commonly used in the field of industrial automation, and is widely used in various fields of industrial automation, such as a production line, a packaging machine, a conveying system, and the like. PLCopen functional blocks are an important component in the programming of the PLC for implementing specific functions, and are closely related to the control system of the PLC. In a motion control system, PLCopen function blocks are standardized function blocks for motion control, while process data objects (Progress Data Object, PDO) are objects for real-time data transmission. PLCopen blocks are associated with PDOs. The PLCopen functional block performs data transmission and communication through the PDO, and the PLCopen functional block realizes accurate motion control by assigning a value to the PDO, so that quick and accurate transmission of control instructions and feedback information is ensured. Because PDOs associated with the functional blocks are different, in some conventional schemes, the PDOs are manually configured by a person, and this configuration is not only inefficient, but also prone to missing and/or incorrect PDO configurations. When the PDO configuration is missing and/or wrong, the data of PLCopen functional blocks cannot be written into the servo driver normally, the PDO cannot be assigned accurately, accurate motion control cannot be realized, the missing and/or wrong PDO cannot be positioned, and the time and difficulty of manual debugging are increased. When the unnecessary PDO is configured, an additional communication burden is added. Thus, there is a need for an efficient and accurate PDO configuration scheme. The matters in the background section are only those known to the inventors and do not, of course, represent prior art in the field. Disclosure of Invention In view of one or more of the problems with the prior art, the present invention provides a method of automatically configuring a process data object, comprising: judging whether the function of the automatic configuration process data object is opened or not; When judging that the function of the automatic configuration process data object is opened, judging whether the current process data object is complete or not, and And when judging that the current process data object is incomplete, configuring a new process data object. Optionally, the step of determining whether the function of the auto-configuration process data object is on includes determining whether the function of the auto-configuration process data object is on based on whether a function switch of the auto-configuration process data object is on. Optionally, the step of determining whether the current process data object is complete includes determining whether the current process data object is complete based on the current process data object and a preset process data object. Optionally, the current process data object and the preset process data object are determined according to a currently used function block. Optionally, the configuring the new process data object includes adding a process data object missing from the current process data object based on the preset process data object. Optionally, the method further comprises determining whether the number of the current process data objects reaches an allocated number threshold, and configuring the new process data objects when it is determined that the number does not reach the allocated number threshold. Optionally, the method further comprises prompting that the number of the current process data objects reaches the allocation number threshold and cannot be configured when the number is judged to reach the allocation number threshold. Optionally, the step of configuring the new process data object further comprises re-determining whether the new current process data object is complete. Optionally, the method further comprises determining whether an excess process data object is included in the current process data object when it is determined that the current process data object is complete. Optionally, the step of determining whether the current process data object includes an excess process data object includes determining whether the excess process data object is included based on a use case of the current process data object. Optionally, the method further comprises prompting the current process data object to include the redundant process data object when the current process data object is judged to include the r