Configuration management method, device, equipment and storage medium for industrial control equipment
By obtaining and matching the preset configuration information of industrial control equipment and the equipment information of the expansion equipment, the method of automatically synchronizing the configuration data to the expansion equipment is realized, solving the problems of large configuration and configuration workload and low accuracy in the prior art, and improving the configuration accuracy and system stability.
Patent Information
- Application Number
- CN202411929031.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-08
AI Technical Summary
Existing industrial controllers need to configure and configure each expansion device separately, resulting in large workloads and difficult to ensure configuration accuracy.
By obtaining multiple preset configuration information of industrial control equipment and equipment information of the extension device, matching the preset configuration information to determine the target configuration information, and synchronizing the configuration data to the extension device, automatic configuration configuration is realized.
It realizes automatic configuration and configuration of extended equipment, improves configuration accuracy, reduces workload, and improves system stability and equipment availability.
Smart Images

Figure CN119781351A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of industrial control technology, and in particular to a configuration management method, apparatus, device and storage medium for industrial control equipment. Background Art
[0002] In computers, a controller is a hardware device that manages the input and output of data. An expansion device usually refers to a peripheral device that can increase the functionality of a computer. For example, a USB hub is an expansion device that can increase the number of USB ports on a computer.
[0003] The existing controller needs to configure each expansion device separately. When the number of expansion devices under the controller is very large, it will bring a huge workload and cannot guarantee the correctness of the configuration of the expansion devices. Summary of the invention
[0004] In view of the above-mentioned deficiencies in the prior art, the present application provides a configuration management method, apparatus, device and storage medium for industrial control equipment to solve the problems existing in the prior art.
[0005] The technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a configuration management method for an industrial control device, including:
[0007] Acquire multiple preset configuration information for the industrial control device, wherein each preset configuration information includes: preset device information and configuration data;
[0008] Acquire device information of multiple expansion devices connected to the industrial control device;
[0009] According to the device information of each extended device, the preset device information of the plurality of preset configuration information is matched to obtain the target configuration information corresponding to each extended device;
[0010] The configuration data in the target configuration information is synchronized to each of the expansion devices.
[0011] In one embodiment, the preset device information of each preset configuration information includes: preset device attribute information; the device information of each extended device includes at least: the device attribute information and the communication address of each extended device;
[0012] The matching of the preset device information of the plurality of preset configuration information according to the device information of each expansion device to obtain the target configuration information corresponding to each expansion device includes:
[0013] According to the device attribute information of each extended device, the preset device attribute information of the plurality of preset configuration information is matched to obtain the target configuration information corresponding to each extended device;
[0014] The step of synchronizing the configuration data in the target configuration information to each expansion device includes:
[0015] According to the communication address of each expansion device, the configuration data in the target configuration information is synchronized to each expansion device.
[0016] In one embodiment, before synchronizing the configuration data in the target configuration information to each expansion device, the method further includes:
[0017] Acquire existing configuration data of each expansion device;
[0018] Determining whether each expansion device meets a preset configuration update condition according to the existing configuration data of each expansion device and the configuration data in the target configuration information;
[0019] The step of synchronizing the configuration data in the target configuration information to each expansion device includes:
[0020] If the preset configuration update condition is met, the configuration data in the target configuration information is synchronized to each expansion device.
[0021] In one embodiment, determining whether each expansion device meets a preset configuration update condition according to the existing configuration data of each expansion device and the configuration data in the target configuration information includes:
[0022] Determine whether the existing configuration data of each expansion device and the configuration data in the target configuration information are consistent;
[0023] If they are consistent, it is determined that each of the expansion devices does not meet the preset configuration update condition;
[0024] If they are inconsistent, it is determined that each of the expansion devices meets the preset configuration update condition.
[0025] In one embodiment, the configuration data in each preset configuration information includes: a data communication mode and a data transmission period, and the data communication mode is a request response mode or an active transmission mode; the configuration data in the target configuration information includes: a target data communication mode and a target data transmission period, and the method further includes:
[0026] The target data communication mode and the target data transmission period are adopted to perform data communication with each expansion device to obtain real-time data of each expansion device.
[0027] In one embodiment, the configuration data in each preset configuration information further includes: a write data cycle, and the method further includes:
[0028] When the write data cycle of the configuration data in the target configuration information arrives, or after the real-time data changes, the data to be written is sent to each expansion device.
[0029] In one embodiment, the configuration data in each preset configuration information further includes: a callback function, and the configuration data in the target configuration information further includes: a target callback function; and the method further includes:
[0030] Using the target callback function, monitoring each of the expansion devices, and obtaining the real-time status and diagnostic information of each of the expansion devices;
[0031] Determining a target diagnostic event for each of the extended devices according to the real-time status and diagnostic information;
[0032] According to the target diagnostic event, a control command corresponding to the target diagnostic event is sent to each of the expansion devices.
[0033] In a second aspect, an embodiment of the present application provides a configuration management device for an industrial control device, including:
[0034] A first acquisition module is used to acquire a plurality of preset configuration information for the industrial control device, wherein each preset configuration information includes: preset device information and configuration data;
[0035] A second acquisition module is used to acquire device information of multiple expansion devices connected to the industrial control device;
[0036] A matching module, used to match the preset device information of the plurality of preset configuration information according to the device information of each extended device, to obtain the target configuration information corresponding to each extended device;
[0037] A synchronization module is used to synchronize the configuration data in the target configuration information to each expansion device.
[0038] In a third aspect, an embodiment of the present application provides an industrial control device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the industrial control device is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to implement the configuration management method of the industrial control device described in the above embodiment.
[0039] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which program instructions are stored. When the program instructions are executed by a processor, the configuration management method of the industrial control device described in the above embodiment is implemented.
[0040] The beneficial effect of the present application is as follows: the present application provides a configuration management method for industrial control equipment, which can determine the target configuration information of the expansion equipment according to the preset configuration information pre-stored in the industrial control equipment, and configure the expansion equipment according to the target configuration information, thereby realizing automatic configuration of the expansion equipment and ensuring the accuracy of the configuration. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 One of the flow charts of the configuration management method of the industrial control equipment provided in the embodiment of the present application;
[0043] Figure 2 A second flowchart of the configuration management method for industrial control equipment provided in an embodiment of the present application;
[0044] Figure 3 A third flowchart of the configuration management method for industrial control equipment provided in an embodiment of the present application;
[0045] Figure 4 A fourth flowchart of the configuration management method for industrial control equipment provided in an embodiment of the present application;
[0046] Figure 5 A fifth flowchart of the configuration management method for industrial control equipment provided in an embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of a configuration management device for industrial control equipment provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of the structure of an industrial control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination 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.
[0050] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] In the description of the present application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.
[0052] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0053] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.
[0054] An embodiment of the present application provides a configuration management method for an industrial control device. The method can be generated by any industrial control device with computing and processing capabilities. The industrial control device can be, for example, a terminal-oriented computer device or a back-end server.
[0055] The configuration management method of the industrial control device provided by the present application is specifically described below through multiple examples in conjunction with the accompanying drawings.
[0056] Figure 1 One of the flow charts of the configuration management method of the industrial control device provided in the embodiment of the present application is as follows: Figure 1 As shown, the method includes:
[0057] S101: Acquire multiple preset configuration information for industrial control equipment.
[0058] Before executing the method of this embodiment, the user can add multiple preset configuration information in the industrial control device through the host computer software, wherein each preset configuration information includes preset device information and configuration data, that is, each preset configuration information corresponds to a preset device, and the preset configuration information is pre-stored in the industrial control device.
[0059] Taking the preset device as a printer as an example, the preset device information in the preset configuration information is the information of the printer, and the configuration data is the configuration data corresponding to the printer; taking the preset device as a display as an example, the preset device information in the preset configuration information is the information of the display, and the configuration data is the configuration data corresponding to the display.
[0060] S102: Obtain device information of multiple expansion devices connected to the industrial control device.
[0061] When an industrial control device is connected to multiple expansion devices, device information of the multiple expansion devices can be obtained.
[0062] S103 . Match the preset device information of a plurality of preset configuration information according to the device information of each extended device to obtain target configuration information corresponding to each extended device.
[0063] Afterwards, the preset device information of the plurality of preset configuration information is matched according to the device information of each expansion device, and the target configuration information corresponding to each expansion device is respectively determined from the plurality of preset configuration information.
[0064] S104: Synchronize the configuration data in the target configuration information to each expansion device.
[0065] Finally, the configuration data in the target configuration information is synchronized to each expansion device to complete the configuration of the expansion device.
[0066] In summary, the embodiment of the present application provides a configuration management method for industrial control equipment, which can determine the target configuration information of the expansion equipment according to the preset configuration information pre-stored in the industrial control equipment, and configure the expansion equipment according to the target configuration information, thereby realizing automatic configuration of the expansion equipment and ensuring the accuracy of the configuration.
[0067] In one embodiment, the preset device information of each preset configuration information includes preset device attribute information, and the preset device attribute may include, for example, the preset device type, the preset device model, and the preset device software and hardware version. The device information of each extended device at least includes the device attribute information and the communication address of each extended device. Among them, the device attribute information includes the device type, device model, and device software and hardware version of the extended device, and the communication address is the IP address of the extended device.
[0068] On this basis, the preset device information of multiple preset configuration information is matched according to the device information of each extended device in S103 to obtain the target configuration information corresponding to each extended device, which may include:
[0069] S201. Match preset device attribute information of a plurality of preset configuration information according to device attribute information of each extended device to obtain target configuration information corresponding to each extended device.
[0070] Since the preset device information of each preset configuration information pre-stored in the industrial control device includes the preset device attribute information, after determining the device attribute information of each extended device, the device attribute information of the extended device can be matched with the preset device attribute information in the preset device information. If the match is consistent, it means that the extended device is an object that needs to be configured synchronized.
[0071] The step S104 of synchronizing the configuration data in the target configuration information to each expansion device may include:
[0072] S202: Synchronize the configuration data in the target configuration information to each expansion device according to the communication address of each expansion device.
[0073] After obtaining the target configuration information corresponding to each expansion device, the industrial control device can synchronize the configuration data in the target configuration information to each expansion device through the User Datagram Protocol (UDP) according to the communication address (i.e., IP address) of each expansion device to implement the configuration of each expansion device.
[0074] In another embodiment, if Figure 3 As shown, before executing step S104, the method of the present application further includes:
[0075] S301, obtaining existing configuration data of each expansion device.
[0076] Configuration data may also be pre-stored in each expansion device. Before synchronizing the configuration data in the target configuration information to each expansion device, the existing configuration data of each expansion device may be obtained first.
[0077] S302: Determine whether each expansion device meets a preset configuration update condition according to the existing configuration data of each expansion device and the configuration data in the target configuration information.
[0078] Then, according to the existing configuration data of each expansion device and the configuration data in the target configuration information, it is determined whether each expansion device meets the preset configuration update condition.
[0079] Then the step of synchronizing the configuration data in the target configuration information to each expansion device in S104 includes:
[0080] S303: If the preset configuration update condition is met, the configuration data in the target configuration information is synchronized to each expansion device.
[0081] The configuration data in the target configuration information will be synchronized to each expansion device only when the preset configuration update conditions are met, avoiding frequent and unnecessary data transmission and updates.
[0082] For example, in an industrial automation control system, the expansion devices may be various sensors and actuators. If there are no restrictions, some minor temporary changes or error signals may trigger the configuration data update, which may cause the expansion devices to frequently adjust their working status and increase the probability of equipment errors. By presetting the configuration update conditions, it can be ensured that the target configuration information is synchronized to the expansion device only when the data is verified and there is a reasonable update demand, such as when the process parameters are substantially changed or the equipment is calibrated after regular maintenance, so that the change of the equipment working status is planned and necessary, thereby improving the overall stability of the system.
[0083] Specifically, Figure 4 As shown, the step S302 of determining whether each expansion device meets a preset configuration update condition according to the existing configuration data of each expansion device and the configuration data in the target configuration information may include:
[0084] S401: Determine whether the existing configuration data of each expansion device and the configuration data in the target configuration information are consistent.
[0085] After the existing configuration data of each expansion device is acquired, it is determined whether the existing configuration data of each expansion device is consistent with the configuration data in the target configuration information.
[0086] S402: If they are consistent, it is determined that each expansion device does not meet the preset configuration update condition.
[0087] The existing configuration data of the expansion device is consistent with the configuration data in the target configuration information, indicating that there is no need to update the configuration of the expansion device. Therefore, it is determined that each expansion device does not meet the preset configuration update condition.
[0088] S403: If not consistent, determine whether each expansion device meets the preset configuration update condition.
[0089] The existing configuration data of the expansion device is inconsistent with the configuration data in the target configuration information, indicating that the expansion device needs to be updated in configuration. It is determined that each expansion device meets the preset configuration update conditions, and the configuration data in the target configuration information is synchronized to each expansion device.
[0090] In summary, this embodiment will only update the configuration of the expansion device when the existing configuration data of the expansion device is inconsistent with the configuration data in the target configuration information. This can maintain the stability of the system to the greatest extent, reduce the potential risks caused by the update, save unnecessary updates, ensure that the device is in normal working condition for more time, and improve the availability and work efficiency of the device.
[0091] In another embodiment, after the industrial control device synchronizes the configuration data in the target configuration information to each expansion device according to the communication address of each expansion device, the industrial control device and the expansion device will perform data communication according to the configured configuration data to obtain the real-time data of each expansion device, wherein the real-time data of the expansion device is the data generated by the expansion device during operation.
[0092] In this case, the configuration data in each preset configuration information may also include a data communication mode and a data transmission cycle, wherein the data communication mode is a request response mode or an active sending mode, the data communication mode is used to indicate the data interaction method, and the data transmission cycle is used to indicate the time period of the data interaction. For example, when the data communication mode is a request response mode, the industrial control device will send a request command to the expansion device at a preset time interval according to the preset request cycle to request to obtain the real-time data of the expansion device; when the data communication mode is an active sending mode, the expansion device will actively send the real-time data to the controller.
[0093] Specifically, since the configuration data in the preset configuration information includes data communication mode and data transmission cycle, after determining the target configuration information corresponding to the expansion device, the target data communication mode and target data transmission cycle corresponding to the expansion device are also determined. During the data interaction process, the industrial control device will adopt the target data communication mode and target data transmission cycle to communicate data with each expansion device to obtain real-time data of each expansion device.
[0094] In one embodiment, the expansion device may generate other business needs during operation and need to obtain data to be written in addition to the configuration data. Therefore, the configuration data in each preset configuration information may also include a write data cycle, which is used to indicate the time period for sending the data to be written to the expansion device. When the write data cycle of the configuration data in the target configuration information arrives, the industrial control device will send the data to be written to the expansion device. Alternatively, after the real-time data of the expansion device changes, the industrial control device will also send the data to be written to the expansion device.
[0095] In one embodiment, the configuration data in each preset configuration information may further include a callback function, and the configuration data in the target configuration information may further include a target callback function.
[0096] On this basis, the method of the present application also includes:
[0097] S501. Use the target callback function to monitor each extended device to obtain the real-time status and diagnostic information of each extended device.
[0098] The target callback function can be, for example, a socket receiving callback function. With the target callback function, the industrial control device can monitor each extended device and obtain the real-time status and diagnostic information of each control device. For example, the diagnostic information reported by the extended device includes: Ethernet self-test results, CAN self-test results, WLAN self-test results, BLE self-test results, etc.
[0099] S502: Determine a target diagnostic event for each extended device according to the real-time status and diagnostic information.
[0100] According to the real-time status and diagnostic information, the industrial control device can determine the target diagnostic event of each extended device. The target diagnostic event may be, for example, a failure of a certain self-test result.
[0101] S503: According to the target diagnostic event, a control command corresponding to the target diagnostic event is sent to each extended device.
[0102] When a self-test result fails, it is deemed that a target diagnostic event of the expansion device is received. The industrial control device will send a control command corresponding to the target diagnostic event to the expansion device, so that the expansion device can perform corresponding operations according to the received command to restore the hardware module to a successful self-test.
[0103] At the same time, the industrial control device also needs to confirm whether the expansion device has received the control command so that the control command will not be sent repeatedly. If a hardware module fails to self-check, the industrial control device will report the diagnostic information to the host computer software, and the Error light of the expansion device will also have a corresponding status, so that the staff can observe and handle it more intuitively and conveniently.
[0104] Through the target callback function, each expansion device is monitored to obtain the real-time status and diagnostic information of each expansion device, so that measures can be taken in advance to avoid serious consequences such as complete damage to the equipment and loss of data, thus playing a role in preventing equipment failures and timely maintenance.
[0105] It should also be noted that in the method provided in the present application, when the industrial control device and the expansion device interact with each other through data, the data is transmitted through the UDP binary protocol. The transmitted data includes the size of each data type, the location where it needs to be stored, and the specific data. Regardless of whether it is data sent by the industrial control device to the expansion device, or data sent by the expansion device to the industrial control device, both parties can correctly parse and save the data.
[0106] In summary, this application provides a configuration management method for industrial control equipment, which has the following advantages:
[0107] 1. Automatically configure the expansion equipment and ensure the accuracy of the configuration, realizing automatic management and data interaction between industrial control equipment and expansion equipment.
[0108] 2. When data is exchanged between the controller and the expansion device, different communication modes can be selected and update cycles of various data types can be set, which greatly improves the flexibility of data interaction.
[0109] 3. Only when the preset configuration update conditions are met will the configuration data in the target configuration information be synchronized to each expansion device, avoiding frequent and unnecessary data transmission and updates, and improving the overall stability of the system, ensuring that the equipment is in normal working condition more time, and improving the availability and work efficiency of the equipment.
[0110] 4. Through the target callback function, each expansion device is monitored to obtain the real-time status and diagnostic information of each expansion device, so that measures can be taken in advance to avoid serious consequences such as data loss caused by complete damage to the equipment, thus playing a role in preventing equipment failures and timely maintenance.
[0111] The following is a corresponding explanation of the apparatus, equipment and storage medium for executing the configuration management method of industrial control equipment provided by any of the above embodiments of the present application. Its specific implementation process and the technical effects produced are the same as those of the corresponding method embodiments mentioned above. For the sake of brief description, for the parts not mentioned in the following embodiments, please refer to the corresponding contents in the method embodiments.
[0112] like Figure 6 As shown, the present application also provides a configuration management device for industrial control equipment, including:
[0113] The first acquisition module 10 is used to acquire multiple preset configuration information for industrial control devices, wherein each preset configuration information includes: preset device information and configuration data.
[0114] The second acquisition module 20 is used to acquire device information of multiple expansion devices connected to the industrial control device.
[0115] The matching module 30 is used to match the preset device information of multiple preset configuration information according to the device information of each extended device, so as to obtain the target configuration information corresponding to each extended device.
[0116] The synchronization module 40 is used to synchronize the configuration data in the target configuration information to each expansion device.
[0117] Optionally, the preset device information of each preset configuration information includes: preset device attribute information; the device information of each extended device at least includes: device attribute information and a communication address of each extended device.
[0118] The matching module 30 is further used to match the preset device attribute information of the plurality of preset configuration information according to the device attribute information of each extended device, so as to obtain the target configuration information corresponding to each extended device.
[0119] The synchronization module 40 is further used to synchronize the configuration data in the target configuration information to each expansion device according to the communication address of each expansion device.
[0120] Optionally, the configuration management device of the industrial control equipment may further include a determination module for acquiring existing configuration data of each expansion device; and determining whether each expansion device meets preset configuration update conditions based on the existing configuration data of each expansion device and the configuration data in the target configuration information.
[0121] The synchronization module 40 is further configured to synchronize the configuration data in the target configuration information to each expansion device if a preset configuration update condition is met.
[0122] Optionally, the determination module is also used to determine whether the existing configuration data of each expansion device and the configuration data in the target configuration information are consistent; if consistent, determine that each expansion device does not meet the preset configuration update conditions; if inconsistent, determine that each expansion device meets the preset configuration update conditions.
[0123] Optionally, the configuration data in each preset configuration information includes: a data communication mode and a data transmission period, the data communication mode is a request response mode or an active sending mode; the configuration data in the target configuration information includes: a target data communication mode and a target data transmission period.
[0124] The configuration management device of the industrial control equipment may further include a communication module for performing data communication with each expansion device by adopting a target data communication mode and a target data transmission cycle to obtain real-time data of each expansion device.
[0125] Optionally, the configuration data in each preset configuration information also includes: a write data cycle, and the communication module is also used to send the data to be written to each expansion device when the write data cycle of the configuration data in the target configuration information arrives or after the real-time data changes.
[0126] Optionally, the configuration data in each preset configuration information further includes: a callback function, and the configuration data in the target configuration information further includes: a target callback function.
[0127] The configuration management device of the industrial control equipment may also include a monitoring module, which is used to use a target callback function to monitor each expansion device to obtain the real-time status and diagnostic information of each expansion device; determine the target diagnostic event of each expansion device based on the real-time status and diagnostic information; and send a control command corresponding to the target diagnostic event to each expansion device based on the target diagnostic event.
[0128] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0129] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0130] like Figure 7 As shown, the present application also provides an industrial control device, including: a processor 100, a storage medium 200 and a bus 300, the storage medium stores program instructions executable by the processor, when the industrial control device is running, the processor and the storage medium communicate through the bus, and the processor executes the program instructions to implement the configuration management method of the industrial control device of any of the above embodiments.
[0131] The present application also provides a readable storage medium, on which program instructions are stored. When the program instructions are executed by a processor, the configuration management method of the industrial control device of any of the above embodiments is implemented.
[0132] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0134] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0135] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0136] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A configuration management method for industrial control equipment, characterized in that: include: Acquire multiple preset configuration information for the industrial control device, wherein each preset configuration information includes: preset device information and configuration data; Acquire device information of multiple expansion devices connected to the industrial control device; According to the device information of each extended device, the preset device information of the plurality of preset configuration information is matched to obtain the target configuration information corresponding to each extended device; The configuration data in the target configuration information is synchronized to each of the expansion devices.
2. The method according to claim 1, characterized in that The preset device information of each preset configuration information includes: preset device attribute information; the device information of each extended device at least includes: the device attribute information and communication address of each extended device; The matching of the preset device information of the plurality of preset configuration information according to the device information of each expansion device to obtain the target configuration information corresponding to each expansion device includes: According to the device attribute information of each extended device, the preset device attribute information of the plurality of preset configuration information is matched to obtain the target configuration information corresponding to each extended device; The step of synchronizing the configuration data in the target configuration information to each expansion device includes: According to the communication address of each expansion device, the configuration data in the target configuration information is synchronized to each expansion device.
3. The method according to claim 1, characterized in that Before synchronizing the configuration data in the target configuration information to each expansion device, the method further includes: Acquire existing configuration data of each expansion device; Determining whether each expansion device meets a preset configuration update condition according to the existing configuration data of each expansion device and the configuration data in the target configuration information; The step of synchronizing the configuration data in the target configuration information to each expansion device includes: If the preset configuration update condition is met, the configuration data in the target configuration information is synchronized to each expansion device.
4. The method according to claim 3, characterized in that The determining, according to the existing configuration data of each expansion device and the configuration data in the target configuration information, whether each expansion device meets a preset configuration update condition includes: Determine whether the existing configuration data of each expansion device and the configuration data in the target configuration information are consistent; If they are consistent, it is determined that each of the expansion devices does not meet the preset configuration update condition; If they are inconsistent, it is determined that each of the expansion devices meets the preset configuration update condition.
5. The method according to claim 1, characterized in that The configuration data in each preset configuration information includes: a data communication mode and a data transmission period, and the data communication mode is a request response mode or an active transmission mode; the configuration data in the target configuration information includes: a target data communication mode and a target data transmission period, and the method further includes: The target data communication mode and the target data transmission period are adopted to perform data communication with each expansion device to obtain real-time data of each expansion device.
6. The method according to claim 5, characterized in that The configuration data in each preset configuration information further includes: a write data cycle, and the method further includes: When the write data cycle of the configuration data in the target configuration information arrives, or after the real-time data changes, the data to be written is sent to each expansion device.
7. The method according to claim 5, characterized in that The configuration data in each preset configuration information further includes: a callback function, and the configuration data in the target configuration information further includes: a target callback function; the method further includes: Using the target callback function, monitoring each of the expansion devices, and obtaining the real-time status and diagnostic information of each of the expansion devices; Determining a target diagnostic event for each of the extended devices according to the real-time status and diagnostic information; According to the target diagnostic event, a control command corresponding to the target diagnostic event is sent to each of the expansion devices.
8. A configuration management device for industrial control equipment, characterized in that: include: A first acquisition module is used to acquire a plurality of preset configuration information for the industrial control device, wherein each preset configuration information includes: preset device information and configuration data; A second acquisition module is used to acquire device information of multiple expansion devices connected to the industrial control device; A matching module, configured to match the preset device information of the plurality of preset configuration information according to the device information of each extended device, so as to obtain the target configuration information corresponding to each extended device; A synchronization module is used to synchronize the configuration data in the target configuration information to each expansion device.
9. An industrial control device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the industrial control device is running, the processor communicates with the storage medium via the bus, and the processor executes the program instructions to implement the configuration management method of the industrial control device described in any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium stores program instructions, and when the program instructions are executed by a processor, the configuration management method for industrial control equipment according to any one of claims 1 to 7 is implemented.