Configuration method, device and equipment of PLC system and medium

By adding an intelligent module to the PLC system and verifying the configuration information, the reliability and stability issues caused by the CPU module processing complex data were resolved, resulting in more efficient industrial control.

CN118466385BActive Publication Date: 2025-12-19BEIJING LANPUFENG TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410711350.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2025-12-19
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

When faced with complex industrial control requirements, the CPU module of the existing PLC system has a weak ability to process complex data, resulting in excessive resource consumption and affecting the reliability and stability of the PLC system.

Method used

An intelligent module is added to the PLC system to generate target configuration information through different download modes. The CPU module verifies the configuration information and data format of the intelligent module to complete the configuration operation and share the complex mathematical calculation tasks.

Benefits of technology

It enhances the overall reliability and stability of the PLC system, improves its ability to process complex data, and meets more complex industrial control needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118466385B_ABST
    Figure CN118466385B_ABST
Patent Text Reader

Abstract

The application discloses a configuration method and device of a PLC system, equipment and a medium, relates to the technical field of industrial automation control, and the PLC system comprises an intelligent module, wherein the method comprises the following steps: generating target configuration information for configuring the intelligent module connected with a CPU module according to a received download mode; when the download mode is a first download mode, the CPU module completes the configuration operation of the PLC system through downloading after verifying the configuration information stored in the intelligent module and array data corresponding to the configuration information according to the target configuration information; and when the download mode is a second download mode, the CPU module completes the configuration operation of the PLC system through downloading after verifying the data format of the configuration information stored in the intelligent module according to the target configuration information. The application is suitable for the intelligent configuration of the PLC system in an industrial system.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of industrial automation control, and particularly to a configuration method, device and equipment of a PLC system and a medium. BACKGROUND

[0002] With the development of industrial technology, the process is becoming more and more complex, and the requirement for control technology is also getting higher and higher. If precise control is needed, more sensors are often used to collect more data, more complex algorithms are used, and the performance requirement of the CPU module of the PLC system is also higher.

[0003] The performance of the traditional PLC is limited when facing more advanced industrial environments and control processes. If the CPU module performance is improved unilaterally to meet the complex industrial control requirements, the following problems exist: 1. The main function of the CPU module of the PLC is logical control. If a large number of complex mathematical operations are performed, the CPU internal resources are excessively occupied, which leads to a decrease in the stability and reliability of the PLC as a whole; 2. The programming method of the traditional PLC is weak in complex data analysis and processing. SUMMARY

[0004] Therefore, the present application provides a configuration method, device, equipment and medium of a PLC system, which mainly aims to solve the technical problem that the CPU module of the existing PLC system has weak ability to process complex data, and excessively occupying the internal resources of the CPU module may lead to a decrease in the overall reliability and stability of the PLC.

[0005] According to one aspect of the present application, a configuration method of a PLC system is provided, which comprises:

[0006] According to the received download mode, target configuration information for configuring an intelligent module connected with the CPU module is generated;

[0007] When the download mode is a first download mode, the CPU module verifies the configuration information stored in the intelligent module and the array data corresponding to the configuration information according to the target configuration information, and then completes the configuration operation of the PLC system through downloading;

[0008] When the download mode is a second download mode, the CPU module verifies the data format of the configuration information stored in the intelligent module according to the target configuration information, and then completes the configuration operation of the PLC system through downloading.

[0009] According to another aspect of the present application, a configuration device of a PLC system is provided, which comprises:

[0010] generating a target configuration information for configuring the smart module connected with the CPU module according to the received download mode;

[0011] The first download module is configured to, when the download mode is the first download mode, check the configuration information stored in the smart module and the array data corresponding to the configuration information according to the target configuration information, and complete the configuration operation of the PLC system through downloading.

[0012] The second download module is configured to, when the download mode is the second download mode, check the data format of the configuration information stored in the smart module according to the target configuration information, and complete the configuration operation of the PLC system through downloading.

[0013] According to another aspect of the present application, a computer storage medium is provided, which stores a computer program. The program is executed by a processor to implement the configuration method of the PLC system.

[0014] According to another aspect of the present application, a computer device is provided, which includes a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor. The processor implements the configuration method of the PLC system when executing the program.

[0015] Compared with the prior art in which the PLC system only uses the CPU module to meet the complex industrial control requirements and the CPU module of the PLC has weak ability to process complex data, the PLC system of the present application includes a smart module, generates target configuration information for configuring the smart module connected with the CPU module according to the received download mode, checks the configuration information stored in the smart module and the array data corresponding to the configuration information according to the target configuration information when the download mode is the first download mode, and completes the configuration operation of the PLC system through downloading. When the download mode is the second download mode, the CPU module checks the data format of the configuration information stored in the smart module according to the target configuration information, and completes the configuration operation of the PLC system through downloading. Therefore, by adding the smart module in the PLC system, the CPU module is mainly used for logical control and checking the smart module, and the CPU module is released from complex mathematical operations, so as to enhance the reliability and stability of the PLC system as a whole.

[0016] The above description is only a summary of the technical solutions of the present application. In order to more clearly understand the technical means of the present application, the specific embodiments of the present application can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following specific embodiments of the present application are described. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 A schematic flowchart of a configuration method for a PLC system provided in an embodiment of this application is shown;

[0019] Figure 2 A schematic diagram of a PLC system is shown, illustrating another configuration method for a PLC system provided in an embodiment of this application.

[0020] Figure 3 This paper illustrates a schematic diagram of the intelligent module configuration process for another PLC system configuration method provided in an embodiment of this application.

[0021] Figure 4 This invention illustrates a schematic diagram of the intelligent module structure of another PLC system configuration method provided in an embodiment of this application;

[0022] Figure 5 This paper shows a schematic diagram of the structure of a configuration device for a PLC system provided in an embodiment of this application;

[0023] Figure 6 A schematic diagram of the configuration device for another PLC system provided in an embodiment of this application is shown. Detailed Implementation

[0024] The present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features described in the embodiments of the present application can be combined with each other.

[0025] To address the technical problems of existing PLC systems failing to meet complex industrial control requirements, the limited ability of PLC CPU modules to process complex data, and the potential for excessive CPU resource consumption leading to a decline in overall PLC reliability and stability, this embodiment provides a PLC system configuration method. This method, by adding intelligent modules, avoids complex data analysis by the CPU module, thereby ensuring the overall reliability and stability of the PLC system. Figure 1 As shown, the above method includes the following steps:

[0026] Step 101: Based on the received download mode, generate target configuration information for configuring the intelligent module connected to the CPU module.

[0027] In the embodiment, the PLC system comprises a CPU module, a power module, a high-speed backplane and at least one intelligent module, and can further comprise a plurality of I / O modules, a camera device connected to the intelligent module by using a video line, a sensor connected to the intelligent module by using an external bus and an external device of the intelligent module. As shown in Figure 2 The CPU module is a master device of the PLC system, used to execute an application layer program, issue instructions and data to other modules by means of high-speed backplane communication, read feedback data of other modules, and realize control of the entire PLC system; the high-speed backplane constitutes a physical connection for communication between the CPU module and other modules, and realizes data transmission at a relatively fast speed.

[0028] In step 102, when the download mode is the first download mode, the CPU module completes the configuration operation of the PLC system by downloading after verifying the configuration information stored in the intelligent module and the array data corresponding to the configuration information according to the target configuration information.

[0029] In step 103, when the download mode is the second download mode, the CPU module completes the configuration operation of the PLC system by downloading after verifying the data format of the configuration information stored in the intelligent module according to the target configuration information.

[0030] In the embodiment, the intelligent module selects different download modes according to different data analysis requirements of the PLC system in the PLC system configuration process, and different download modes correspond to different target configuration information. The download modes include a CPU module download mode and an external bus download mode. When an executable code such as an algorithm program (mathematical algorithm, self-defined algorithm), a machine vision model or an artificial intelligence model is compiled and generated, the executable code is downloaded to the intelligent module and saved to the FLASH inside the intelligent module. The executable code of the intelligent module can be generated by a PLC programming software and downloaded by the CPU module and the high-speed backplane interface, or generated by a special programming software and downloaded by the external bus.

[0031] For the embodiment, the target configuration information for configuring the intelligent module connected with the CPU module can be generated according to the received download mode according to the above scheme; when the download mode is the first download mode, the CPU module checks the configuration information stored in the intelligent module and the array data corresponding to the configuration information according to the target configuration information, and then completes the configuration operation of the PLC system through downloading; when the download mode is the second download mode, the CPU module checks the data format of the configuration information stored in the intelligent module according to the target configuration information, and then completes the configuration operation of the PLC system through downloading. Compared with the prior art PLC system which cannot meet the complex industrial control requirements and the technical scheme in which the CPU module of the PLC has weak ability to process complex data, the embodiment adds an intelligent module in the PLC system, the CPU module is mainly used for logical control and verification of the intelligent module, and the CPU module is released from complex mathematical operation, so as to enhance the reliability and stability of the PLC system as a whole.

[0032] Further, as a refinement and expansion of the above embodiment, in order to completely describe the specific implementation process of the embodiment, another configuration method of a PLC system is provided, the embodiment can be applied in different industrial systems to realize intelligent configuration operation of the PLC system, the embodiment can release the pressure of complex mathematical operation of the CPU module according to different download modes by adding an intelligent module in the PLC system, so as to enhance the reliability and stability of the PLC system as a whole. As shown in Figure 3 The method comprises the following steps:

[0033] Step 301, configuration starts.

[0034] Step 302, set mode, parameter and other configuration information.

[0035] In the implementation, step 302 is consistent with step 101, the target configuration information for configuring the intelligent module connected with the CPU module is generated according to the received download mode, that is, the mode, parameter and other configuration information required by the intelligent module during PLC system configuration, and the configuration steps of the intelligent module include: downloading the first executable code of the intelligent module generated by compiling to the intelligent module; and downloading the second executable code corresponding to the data analysis requirement of the PLC system to the intelligent module.

[0036] In the implementation, as Figure 4As shown, the intelligent module is a core module for fast data processing and complex operation in the PLC system, and internally includes a control and calculation core (central processor), a running memory (RAM), a FLASH memory (ROM), a high-speed backplane interface circuit and a physical interface (high-speed backplane interface), a video interface circuit and a physical interface (video input interface), an external bus interface circuit and a physical interface (external bus interface), and a power supply circuit for powering all the above components.

[0037] The control and calculation core of the intelligent module has strong computing power, high floating-point operation capability and parallel computing capability, and can be used to carry a local artificial intelligence model. The running memory of the intelligent module has a large memory capacity, which can meet the memory requirements of complex mathematical algorithms, thereby releasing the operation pressure of the CPU module. The FLASH of the intelligent module has a large storage capacity, which can be used to store configuration data, artificial intelligence model data and executable code of the intelligent module, and the like. The intelligent module has a high-speed backplane communication capability matching the CPU module to realize data interaction with the CPU module. The intelligent module has a video input interface, which can be connected with an external camera device based on a video line to obtain video data and image data from the camera device. The intelligent module has an external bus interface, which can communicate with external devices of the intelligent module, receive control instructions of the external devices of the intelligent module and feedback execution results (here, the sensors and camera devices of the external devices are different), thereby meeting the application function requirements of the PLC system. In addition, the external bus interface can also be connected with a special sensor to directly obtain sensor data.

[0038] To illustrate the specific implementation of step 302, as a preferred embodiment, step 302 includes configuring a mathematical algorithm or a custom algorithm corresponding to a data analysis requirement of the PLC system in the intelligent module according to the data analysis requirement, wherein the data analysis requirement of the PLC system includes a first data analysis requirement of a CPU module connected with the intelligent module and a second data analysis requirement of an external device connected with the intelligent module.

[0039] In implementation, the intelligent module has a plurality of preset analysis modes and a custom analysis mode in function, and the preset analysis modes include but are not limited to a data fast analysis mode, an image intelligent analysis mode and a running state evaluation mode. The custom analysis mode is that the intelligent module is programmed by an external device of the intelligent module or during PLC programming, thereby being capable of flexibly configuring the function of the intelligent module. In the custom mode, the intelligent module can also use script programming to call preset functions in the programming software of the upper computer. It should be noted that the underlying communication between the intelligent module and the CPU module adopts a fixed format, and the intelligent module uses the same function code and data format in all modes, which is not specifically limited here.

[0040] When it is determined that the data analysis requirement of the current PLC system includes the first data analysis requirement of the CPU module connected with the intelligent module or the second data analysis requirement of the external device connected with the intelligent module, a preset mathematical algorithm (such as FFT, wavelet analysis, etc.) or a user-defined algorithm corresponding to the data analysis requirement is configured in the corresponding intelligent module during the configuration of the PLC system, the data analysis requirement corresponds to a data rapid analysis mode, and accordingly, in the data rapid analysis mode, the intelligent module processes and analyzes the sensor data from the CPU module or from the directly connected sensor by calling the configured mathematical algorithm or user-defined algorithm, thereby releasing the pressure of the CPU module and quickly completing the processing and analysis of the data by the computing power of the intelligent module.

[0041] To illustrate the specific implementation of step 302, as a preferred embodiment, step 302 includes: if the data analysis requirement of the PLC system includes an image analysis requirement, a machine vision model is configured in the intelligent module.

[0042] Accordingly, after the step of completing the configuration operation of the PLC system by downloading, the step further includes: receiving video data based on the video input interface of the intelligent module, analyzing the video features by using the machine vision model configured in the intelligent module, and sending the video features to the CPU module via the high-speed backplane interface. In implementation, when it is determined that the data analysis requirement of the current PLC system includes an image analysis requirement, the intelligent module is equipped with a machine vision model, and during the operation of the PLC system, the image analysis requirement corresponds to an image intelligent analysis mode, that is, in the image intelligent analysis mode, the video data from the camera device is received by the video input interface, and the analysis of the video data is completed by the machine vision model. The machine vision model is a trained machine vision model, for example, trained based on the morphological images of different components and selected and configured by the user, that is, the intelligent module analyzes the input video data by using the already trained machine vision model, and after obtaining the video features, the video features are returned to the CPU module via the high-speed backplane interface, so that the CPU module makes a decision.

[0043] To illustrate the specific implementation of step 302, as a preferred embodiment, step 302 includes: if the data analysis requirement of the PLC system includes a running state analysis requirement, an initialized artificial intelligence model is configured in the intelligent module.

[0044] Correspondingly, the step of completing the configuration operation of the PLC system by the downloading is followed by: when the controlled device is running, the CPU module controls the intelligent module to train the initialized artificial intelligence model to obtain a trained artificial intelligence model; and the trained artificial intelligence model is used to analyze whether the running state of the controlled device is abnormal, and a running state result is sent to the CPU module via the high-speed backboard interface.

[0045] In implementation, when it is determined that the data analysis requirement of the current PLC system includes the running state analysis requirement, an artificial intelligence model is loaded in the corresponding intelligent module during the configuration of the PLC system, the running state analysis requirement corresponds to a running state evaluation mode, in the running state evaluation mode, sensor data from the CPU module or from a directly connected sensor is received, the CPU module controls the intelligent module to complete the training of the artificial intelligence model when the controlled industrial system (for example, a sewage treatment system, an air conditioning system, etc.) is running, the input data is analyzed after the training of the artificial intelligence model is completed, so as to monitor the abnormal running state in the running of the controlled industrial system, and the monitored running state result is fed back to the CPU module via the high-speed backboard interface.

[0046] Step 303: whether to use the external bus downloading mode. If the external bus downloading mode is used, steps 3041-3061 are executed, and if the external bus downloading mode is not used, steps 3042-3062 are executed.

[0047] Step 3041: verifying the configuration information and the data content.

[0048] Step 3051: verifying whether the verification is successful.

[0049] Step 3061: writing the target configuration information and the data content.

[0050] In implementation, when it is determined that the external bus downloading mode is not used, the first downloading mode is the CPU module downloading mode, the target configuration information and array data corresponding to the target configuration information are obtained, it is judged whether the configuration information stored in the intelligent module and the array data corresponding to the configuration information are consistent with the target configuration information and the array data corresponding to the target configuration information, if the two are consistent, the verification is successful, and the configuration operation of the PLC system is completed by the downloading; and if the two are not consistent, the verification fails, the target configuration information and the array data corresponding to the target configuration information are directly written, and the configuration operation of the PLC system is completed by the downloading.

[0051] Step 3042: verifying the data format of the external bus downloading.

[0052] Step 3052: verifying whether the verification is successful.

[0053] Step 3062, report configuration error.

[0054] In the implementation, when it is determined to use the external bus download mode, the second download mode is the external bus download mode, the preset data format corresponding to the target configuration information is obtained, and it is judged whether the data format of the configuration information stored in the smart module is consistent with the preset data format; the data format is byte format; if they are consistent, the verification is successful, and the configuration operation of the PLC system is completed through the download; if they are not consistent, the verification fails, error information is generated, and the configuration operation of the PLC system is completed through the download after the re-verification is successful.

[0055] According to the actual application scene requirement, when the PLC system configuration of the smart module is performed, the target configuration information such as the selected mode, the corresponding parameter, and the CPU module download mode or the external bus download mode is selected, and the smart module is configured by the CPU module. Specifically, when the CPU module download mode is selected, the CPU module verifies whether the configuration information stored in the smart module and the array data format thereof are consistent with the target configuration information and the array data format thereof, for example, whether the data contents of the corresponding positions in the array data of the two are consistent (both are 1 or 0), if they are not consistent, the target configuration information and the corresponding array data are written into the smart module, if they are consistent, no change is needed, and step 307 is executed; when the external bus download mode is selected, the downloaded data content has a fixed data format, and when the smart module is configured, the CPU module verifies whether the data format stored in the smart module conforms to the preset data format in the target configuration information, if it does not conform to the preset data format, for example, the data formats stored in the corresponding bytes of the two are different (for example, the same byte is a temperature parameter and a deformation parameter), error information is generated, step 307 is executed, and the configuration operation of the PLC system is completed through the download after the re-verification is successful.

[0056] Step 307, configuration end.

[0057] By applying the technical scheme of the embodiment, target configuration information for configuring the intelligent module connected with the CPU module is generated according to the received download mode; when the download mode is the first download mode, the CPU module verifies the configuration information stored by the intelligent module and the array data corresponding to the configuration information according to the target configuration information, and then completes the configuration operation of the PLC system through downloading; when the download mode is the second download mode, the CPU module verifies the data format of the configuration information stored by the intelligent module according to the target configuration information, and then completes the configuration operation of the PLC system through downloading. Compared with the prior art PLC system which cannot meet the complex industrial control requirements and the CPU module of the PLC has weak ability to process complex data, the PLC system is more flexible in building mode and programming mode than the traditional PLC system, and has higher support for complex mathematical operations, thereby meeting more complex industrial scenarios. Accordingly, the CPU module is freed from the existing complex mathematical operations, and is mainly used for logical control and verification of the intelligent module, thereby avoiding the technical problem that the overall reliability and stability of the existing PLC system are poor due to excessive data processing of the CPU module.

[0058] Further, as Figure 1 a specific implementation of the method, the embodiment of the application provides a configuration device of a PLC system, as Figure 5 shown in the figure, the device comprises a generation module 51, a first download module 52 and a second download module 53.

[0059] The generation module 51 is configured to generate target configuration information for configuring an intelligent module connected with a CPU module according to a received download mode.

[0060] The first download module 52 is configured to, when the download mode is a first download mode, verify the configuration information stored by the intelligent module and the array data corresponding to the configuration information according to the target configuration information, and then complete the configuration operation of the PLC system through downloading.

[0061] The second download module 53 is configured to, when the download mode is a second download mode, verify the data format of the configuration information stored by the intelligent module according to the target configuration information, and then complete the configuration operation of the PLC system through downloading.

[0062] In a specific application scenario, as Figure 6 shown in the figure, the generation module 51 comprises a first configuration unit 511, a second configuration unit 512, a third configuration unit 513 and a fourth configuration unit 514.

[0063] The first configuration unit 511 is configured to configure the intelligent module, and specifically configured to download the first executable code of the intelligent module generated by compiling to the intelligent module; and download the second executable code corresponding to the data analysis requirement of the PLC system to the intelligent module.

[0064] The second configuration unit 512 is configured to configure a mathematical algorithm or a self-defined algorithm corresponding to the data analysis requirement in the intelligent module according to the data analysis requirement of the PLC system; wherein the data analysis requirement of the PLC system includes a first data analysis requirement of a CPU module connected to the intelligent module and a second data analysis requirement of an external device connected to the intelligent module.

[0065] The third configuration unit 513 is configured to configure a machine vision model in the intelligent module if the data analysis requirement of the PLC system includes an image analysis requirement; and correspondingly, after the step of completing the configuration operation of the PLC system by downloading, the method further includes receiving video data based on a video input interface of the intelligent module, analyzing the video features by using the configured machine vision model in the intelligent module, and sending the video features to the CPU module via a high-speed backplane interface.

[0066] The fourth configuration unit 514 is configured to configure an initialized artificial intelligence model in the intelligent module if the data analysis requirement of the PLC system includes a running state analysis requirement; and correspondingly, after the step of completing the configuration operation of the PLC system by downloading, the method further includes model training of the initialized artificial intelligence model by the intelligent module when the controlled device is running, obtaining a trained artificial intelligence model, analyzing the running state of the controlled device by using the trained artificial intelligence model, and sending the running state result to the CPU module via a high-speed backplane interface.

[0067] In a specific application scenario, the first downloading module 52 includes a first verification unit 521.

[0068] The first verification unit 521 is configured to obtain target configuration information and array data corresponding to the target configuration information if the first downloading mode is a CPU module downloading mode; and judge whether the configuration information stored in the intelligent module and the array data corresponding to the configuration information are consistent with the target configuration information and the array data corresponding to the target configuration information; if the two are consistent, the verification is successful, and the configuration operation of the PLC system is completed by downloading; if the two are not consistent, the target configuration information and the array data corresponding to the target configuration information are directly written, and the configuration operation of the PLC system is completed by downloading.

[0069] In a specific application scenario, the second lower module 53 comprises a second checking unit 531.

[0070] The second checking unit 531 is configured to acquire a preset data format corresponding to the target configuration information in an external bus lower mode, to determine whether the data format of the configuration information stored in the intelligent module is consistent with the preset data format, to determine that the checking is successful if the two are consistent, to complete the configuration operation of the PLC system through the lower mode, to generate an error information if the two are inconsistent, and to complete the configuration operation of the PLC system through the lower mode after the checking is successful again.

[0071] It should be noted that other corresponding descriptions of the functions of the PLC system configuration device provided in the embodiments of the present application can be referred to the corresponding descriptions in Figure 1 and Figure 2 , which will not be described here.

[0072] Based on the method as shown in Figure 1 and Figure 3 , correspondingly, the embodiments of the present application also provide a computer storage medium, which stores a computer program, and the program is executed by a processor to implement the PLC system configuration method as shown in Figure 1 and Figure 3 .

[0073] Based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.), and includes a plurality of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method described in each embodiment of the present application.

[0074] Based on the method as shown in Figure 1 , Figure 3 , and the virtual system embodiment as shown in Figure 5 , Figure 6 , in order to achieve the above purpose, the embodiments of the present application also provide a computer device, which can be a personal computer, a server, a network device, etc., and the physical device includes a storage medium and a processor; the storage medium is configured to store a computer program; and the processor is configured to execute the computer program to implement the PLC system configuration method as shown in Figure 1 and Figure 3 .

[0075] Optionally, the computer device can further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface can include a display, an input unit such as a keyboard, and the like. Optionally, the user interface can further include a USB interface, a card reader interface, and the like. The network interface can optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), and the like.

[0076] Those skilled in the art can understand that the computer device structure provided by the embodiment does not constitute a limitation on the entity device, and can include more or fewer components, or combine certain components, or different component arrangements.

[0077] The storage medium can further include an operating system and a network communication module. The operating system is a program for managing computer devices and software resources, and supports the running of information processing programs and other software and / or programs. The network communication module is used to realize communication between components in the storage medium, and communication with other hardware and software in the entity device.

[0078] Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by means of software and necessary general hardware platforms, or by hardware. By applying the technical solutions of the present application, compared with the prior art PLC system which cannot meet the complex industrial control requirements and the PLC CPU module which has weak ability to process complex data, the present application generates target configuration information for configuring the intelligent module connected with the CPU module according to the received download mode; when the download mode is the first download mode, the CPU module verifies the configuration information stored in the intelligent module and the array data corresponding to the configuration information according to the target configuration information, and then completes the configuration operation of the PLC system through downloading; when the download mode is the second download mode, the CPU module verifies the data format of the configuration information stored in the intelligent module according to the target configuration information, and then completes the configuration operation of the PLC system through downloading. As can be seen, by adding an intelligent module in the PLC system, the CPU module is mainly used for logical control and verification of the intelligent module, which liberates the CPU module from complex mathematical operations, so as to enhance the overall reliability and stability of the PLC system.

[0079] Those skilled in the art can understand that the modules or flows in the drawings are not necessarily required for implementing the present application. Those skilled in the art can understand that the modules in the system in the implementation scenario can be distributed in the system in the implementation scenario according to the description of the implementation scenario, or can be changed to be located in one or more systems different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.

[0080] The above application number is only for description, and does not represent the advantages and disadvantages of the implementation scenario. The above disclosure is only some specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be thought of by those skilled in the art should fall within the protection scope of the present application.

Claims

1. A configuration method of a PLC system, characterized by, The PLC system comprises an intelligent module, and the configuration method comprises the following steps: According to the received download mode, generate target configuration information for configuring the intelligent module connected with the CPU module, the download mode comprising a CPU module download mode and an external bus download mode; When the download mode is the first download mode, the CPU module verifies the configuration information stored in the intelligent module and the array data corresponding to the configuration information according to the target configuration information, and then completes the configuration operation of the PLC system through downloading; When the download mode is the second download mode, the CPU module verifies the data format of the configuration information stored in the intelligent module according to the target configuration information, and then completes the configuration operation of the PLC system through downloading; The internal structure of the intelligent module comprises a central processing unit, a running memory RAM, a FLASH memory, a high-speed backplane interface circuit and a physical interface, a video interface circuit and a physical interface, an external bus interface circuit and a physical interface, and a power supply, and the CPU module and the intelligent module interact based on the high-speed backplane interface circuit or the external bus interface circuit.

2. The method of claim 1, wherein, The configuration steps of the intelligent module comprise the following steps: Download the first executable code of the intelligent module generated by compiling to the intelligent module; Download the second executable code corresponding to the data analysis requirement of the PLC system to the intelligent module.

3. The method of claim 1, wherein, The step of generating target configuration information for configuring the intelligent module connected with the CPU module according to the received download mode further comprises the following steps: According to the data analysis requirement of the PLC system, configure mathematical algorithms or custom algorithms corresponding to the data analysis requirement in the intelligent module; The data analysis requirement of the PLC system comprises a first data analysis requirement of the CPU module connected with the intelligent module and a second data analysis requirement of an external device connected with the intelligent module.

4. The method of claim 1, wherein, The step of generating target configuration information for configuring the intelligent module connected with the CPU module according to the received download mode further comprises the following steps: If the data analysis requirement of the PLC system comprises an image analysis requirement, configure a machine vision model in the intelligent module; After the step of completing the configuration operation of the PLC system through downloading, the following steps are further included: Receive video data based on the video input interface of the intelligent module, analyze the video features by using the machine vision model configured in the intelligent module, and then send the video features to the CPU module through the high-speed backplane interface.

5. The method of claim 1, wherein, The step of generating target configuration information for configuring the intelligent module connected with the CPU module according to the received download mode further comprises the following steps: If the data analysis requirement of the PLC system comprises a running state analysis requirement, configure an initialized artificial intelligence model in the intelligent module; After the step of completing the configuration operation of the PLC system through downloading, the following steps are further included: When the controlled device is running, the CPU module controls the intelligent module to perform model training on the initialized artificial intelligence model to obtain a trained artificial intelligence model; The trained artificial intelligence model is used to analyze whether the operation state of the controlled device is abnormal, and an operation state result is sent to the CPU module via a high-speed backplane interface.

6. The method according to claim 1 or 5, characterized in that, The first download mode is a CPU module download mode, and when the download mode is the first download mode, the CPU module checks configuration information stored by the intelligent module and array data corresponding to the configuration information according to the target configuration information, and then completes a configuration operation of the PLC system through download. Target configuration information and array data corresponding to the target configuration information are obtained. It is determined whether the configuration information stored by the intelligent module and the array data corresponding to the configuration information are consistent with the target configuration information and the array data corresponding to the target configuration information. If the two are consistent, the check is successful, and the configuration operation of the PLC system is completed through download. If the two are inconsistent, the target configuration information and the array data corresponding to the target configuration information are directly written, and the configuration operation of the PLC system is completed through download.

7. The method according to claim 1 or 5, characterized in that, The second download mode is an external bus download mode, and when the download mode is the second download mode, the CPU module checks a data format of the configuration information stored by the intelligent module according to the target configuration information, and then completes a configuration operation of the PLC system through download. A preset data format corresponding to the target configuration information is obtained. It is determined whether the data format of the configuration information stored by the intelligent module is consistent with the preset data format. If the two are consistent, the check is successful, and the configuration operation of the PLC system is completed through download. If the two are inconsistent, error information is generated, and the configuration operation of the PLC system is completed through download after re-checking is successful. The data format is a byte format.

8. A configuration device of a PLC system, characterized by comprising: The PLC system includes an intelligent module, which internally includes a central processing unit, a running memory RAM, a FLASH memory, a high-speed backplane interface circuit and a physical interface, a video interface circuit and a physical interface, an external bus interface circuit and a physical interface, and a power supply, the CPU module and the intelligent module interact based on the high-speed backplane interface circuit or the external bus interface circuit, and the configuration device includes: A generation module for generating target configuration information for configuring an intelligent module connected to the CPU module according to a received download mode, the download mode including a CPU module download mode and an external bus download mode; A first download module for, when the download mode is the first download mode, the CPU module checking configuration information stored by the intelligent module and array data corresponding to the configuration information according to the target configuration information, and then completing a configuration operation of the PLC system through download; A second download module for, when the download mode is the second download mode, the CPU module checking a data format of the configuration information stored by the intelligent module according to the target configuration information, and then completing a configuration operation of the PLC system through download.

9. A computer storage medium having stored thereon a computer program, characterized in that The program is executed by the processor to implement the configuration method of the PLC system of any one of claims 1 to 7.

10. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, The processor implements the configuration method of the PLC system of any one of claims 1 to 7 when executing the program.

Citation Information

Patent Citations

  • Operation system

    CN115408109A