Control processing method and device of industrial control system, industrial control system and electronic equipment
Through the communication connection between the main and secondary industrial control systems, fast switching and active takeover are achieved, which solves the problems of long switching time and poor real-time performance of the existing dual industrial control system architecture, reduces hardware costs, and improves the real-time and reliability of the system.
Patent Information
- Application Number
- CN201910854119.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-10
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-09-10
AI Technical Summary
The existing industrial control dual system architecture has long switching time under abnormal conditions, poor real-time performance, and high hardware cost. It fails to give full play to the advantages of dual systems and is difficult to meet the real-time needs of industrial production.
Through the communication connection between the main and auxiliary industrial control systems, the auxiliary industrial control system obtains the operating status information of the main industrial control system and equipment in real time, enabling rapid switching and active takeover to avoid interrupting the control processing flow.
It realizes an industrial control system that can quickly switch under abnormal circumstances, reduces hardware costs, improves the real-time and reliability of the system, and meets the real-time needs of industrial production.
Smart Images

Figure CN112558505B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a control processing method and device for an industrial control system, an industrial control system and electronic equipment, and belongs to the field of computer technology. Background Art
[0002] Industrial control systems are widely used in processing and manufacturing and other fields to provide automated control of operating processes. In order to avoid interruptions in operations caused by problems with a single system, some industrial control systems adopt a dual-system architecture. In the industrial control dual-system solution in the prior art, the two systems are equipped with independent power supplies, switches, resets, indicator lights, and various control interfaces. The two systems are independent of each other, and when one system has an abnormality, it switches to the other control system. However, such a dual-system architecture has high system hardware costs, long switching time, and poor real-time performance, which is not conducive to the requirements of industrial production scenarios and does not give full play to the advantages of the dual systems working together. Summary of the invention
[0003] The embodiments of the present invention provide a control processing method and device for an industrial control system, an industrial control system and electronic equipment to achieve rapid and timely switching under abnormal circumstances.
[0004] In order to achieve the above object, an embodiment of the present invention provides a control processing method of an industrial control system, comprising:
[0005] Obtaining code running status information of the industrial control code executed by the main industrial control system;
[0006] Obtain equipment operation status information of industrial control equipment;
[0007] When it is detected that the state of the main industrial control system is abnormal, the main industrial control system is switched to the secondary industrial control system, and the control processing of the main industrial control system is continued according to the code running state information and the equipment running state information.
[0008] The embodiment of the present invention further provides a control processing device for an industrial control system, comprising:
[0009] A code running status information acquisition module is used to acquire the code running status information of the industrial control code executed by the main industrial control system;
[0010] The device operation status information acquisition module is used to obtain the device operation status information of the industrial control equipment;
[0011] The switching control module is used to switch the main industrial control system to the secondary industrial control system when it is detected that the state of the main industrial control system is abnormal, and continue to execute the control processing of the main industrial control system according to the code running state information and the equipment running state information.
[0012] The embodiment of the present invention further provides an industrial control system, including:
[0013] The main industrial control system is used to perform control processing on the industrial control equipment;
[0014] The secondary industrial control system is used to obtain the code running status information of the industrial control code executed by the main industrial control system and obtain the equipment running status information of the industrial control equipment;
[0015] The main industrial control system is monitored for abnormal status. When an abnormal status of the main industrial control system is detected, a switching operation of the industrial control system is executed, and the secondary industrial control system is triggered to continue to execute the control processing of the main industrial control system according to the code operation status information and the equipment operation status information.
[0016] The embodiment of the present invention further provides an industrial control device, including a SOC module, an MCU module and an interface circuit module.
[0017] SOC module, used to perform control processing on industrial control equipment;
[0018] The MCU module is connected to the SOC module and is used to obtain the code running status information of the industrial control code executed by the SOC module and obtain the device running status information of the industrial control device;
[0019] The interface circuit module is connected to the SOC module and the MCU module, and is used to convert the industrial control instructions and / or control data generated by the SOC module into level control signals and / or analog control signals, output them to the industrial control equipment, and receive the level feedback signals and / or analog feedback information of the industrial control equipment, and convert them into equipment operation status information and send them to the MCU module.
[0020] An embodiment of the present invention further provides an electronic device, including:
[0021] Memory, used to store programs;
[0022] The processor is used to run the program stored in the memory to execute the control processing method of the industrial control system.
[0023] The main and auxiliary industrial control systems in the embodiment of the present invention are not two independent industrial control systems isolated from each other. On the one hand, the auxiliary industrial control system obtains the operating status of the industrial control code and the equipment operating status through continuous communication with the main industrial control system and the industrial control equipment, thereby realizing fast switching without interrupting the control processing flow. On the other hand, through communication with the main industrial control system and the industrial control equipment, it can also timely discover the abnormality of the main industrial control system, thereby realizing active and timely switching.
[0024] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 A schematic diagram of the structure of an application example of an industrial control system according to an embodiment of the present invention;
[0026] Figure 2 A schematic diagram of the core industrial control processing flow of the main industrial control system according to an embodiment of the present invention;
[0027] Figure 3 A flowchart of an application scenario of a control processing method for an industrial control system according to an embodiment of the present invention;
[0028] Figure 4 A schematic diagram of the switching control processing logic of the CPLD of the industrial control system according to an embodiment of the present invention;
[0029] Figure 5 A schematic flow chart of a control processing method for an industrial control system according to an embodiment of the present invention;
[0030] Figure 6 A schematic diagram of the structure of a control processing device of an industrial control system according to an embodiment of the present invention;
[0031] Figure 7 Another structural schematic diagram of the industrial control system according to an embodiment of the present invention;
[0032] Figure 8 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0034] In the existing industrial control dual-system solution, the two systems are independent of each other, and when one system fails, it switches to the other control system. However, the system hardware cost is high, the switching time is long, and the real-time performance is poor, which is not conducive to the scene requirements of industrial production and does not give full play to the advantages of the dual system cooperation.
[0035] The embodiment of the present invention adopts a communication connection between the main and auxiliary industrial control systems. The auxiliary industrial control system can obtain the operating status of the industrial control code and the operating status of the equipment by continuously communicating with the main industrial control system and the industrial control equipment, thereby realizing that when the main industrial control system is abnormal, the auxiliary industrial control system can take over in a timely and active manner without interrupting the control processing flow.
[0036] Specifically, Figure 1 As shown, it is a schematic diagram of an application example of the industrial control system of an embodiment of the present invention. In this industrial control system, a main industrial control system based on the SOC (System on Chip) platform with richer functions is configured, and a relatively streamlined auxiliary industrial control system based on the MCU (Single Chip Microcomputer) platform is also configured, wherein the main and auxiliary industrial control systems are powered by external power supplies, and the main and auxiliary controls are respectively designed with independent power supply circuits, so that the power supplies of the two sets of industrial control systems will not affect each other. As shown in the figure, the main industrial control system based on the SOC platform is powered by the SOC domain power supply topology, and the auxiliary industrial control system based on the MCU platform is powered by the MCU+CPLD (Complex Programmable Logic Device) domain power supply topology. At the same time, the power supply also powers the CPLD introduced below as part of the I / O interface module. Figure 1 In the hardware structure shown, the SOC as a whole can be considered to be equivalent to the main industrial control system, and the MCU as a whole can be considered to be equivalent to the auxiliary industrial control system. Of course, the main industrial control system and the auxiliary industrial control system can also be considered to be part of the software system or code embedded in the SOC and MCU, and this part of the software system or code is mainly used to perform industrial control processing.
[0037] The main and auxiliary industrial control systems use two different platform architectures, which can avoid the risk of the auxiliary industrial control system switching to the auxiliary industrial control system after an abnormality occurs in the main industrial control system and the same abnormality occurs again. In addition, the auxiliary industrial control system uses a relatively simple MCU platform architecture, which can save hardware resources.
[0038] In the embodiment of the present invention, the main and auxiliary industrial control systems are not independent of each other, but maintain a communication relationship through a data / control bus connection. For example, the main and auxiliary industrial control systems can interact with each other through heartbeat signals, and the main and auxiliary industrial control systems also communicate with the industrial control equipment through the data / control bus to obtain the operating status of the industrial control code and the operating status of the equipment, so as to achieve a rapid switch of the auxiliary industrial control system to take over the control processing of the main industrial control system when an abnormality occurs in the main industrial control system, so that the control process is not interrupted. Among them, the industrial control equipment mentioned here refers to the control object of the industrial control system, such as large equipment such as machining centers and CNC machine tools, and can also be some specific industrial control components, such as servo controllers, infrared encoders, etc.
[0039] Specifically, in actual applications, the main industrial control system is used to perform control processing under normal circumstances. Figure 2 As shown, it is a schematic diagram of the core industrial control processing flow of the main industrial control system of an embodiment of the present invention. The main functions of the main industrial control system include the following aspects:
[0040] (1) Parse the input production process file into industrial control code. The production process file is a file that describes the production process of a specific product. Industrial control code refers to the program code for controlling industrial control equipment, such as G / M code designed for CNC machine tools.
[0041] In large-scale industrial control systems, product processing can be automated. The industrial control system will first receive the product order, which contains the product information and product quantity to be produced or processed. The industrial control system can obtain the pre-stored process file according to the order (of course, the process file can also be sent to the industrial control system as part of the order), and control the industrial control equipment based on the process file and the number of products in the order to realize the production and processing of the product. An order generally involves only one specific product (or a specific type of product), that is, an order generally corresponds to only one production process file. For the need to produce multiple products in an order, it can be achieved by repeatedly executing the industrial control code after parsing the production process file, or the product quantity can be directly parsed into the industrial control code, so that the industrial control code is executed once to complete the processing of the entire number of products.
[0042] (2) Execute the industrial control code. The process of executing the industrial control code is to send specific instructions to each industrial control device based on the industrial control code. These specific instructions will be converted by the I / O interface module (described below) and finally form control signals for the public devices, such as input / output switch quantity, motor control waveform, and input / output analog quantity.
[0043] Since the hardware structure generally used in various industrial control equipment needs to be controlled by level signals or analog signals, the control instructions executed by the SOC also need to be converted by the I / O interface module. The main function of the I / O interface module is to convert the code into output signals and receive feedback signals. For example, the I / O interface module sends instructions to devices such as servo controllers and infrared encoders, and sends or receives input / output switch quantities and input / output analog quantities. The structure of the I / O interface module can be as follows Figure 1 As shown in , it may include modules such as CPLD, level conversion / isolation circuit, A / D (analog signal to digital signal conversion module), D / A (digital signal to analog signal conversion module), etc.
[0044] Among them, CPLD, as the core control component of the I / O interface module, controls the signal conversion of modules such as the level conversion / isolation circuit, A / D, and D / A. In addition, the CPLD is internally provided with registers for storing the device operation status information of the industrial control equipment for reading by the main and auxiliary industrial control systems. For example, the CPLD can be provided with registers for storing the variables of each control axis (direction, speed, displacement) in the CNC machine tool. The values of these codes come from the feedback of the CNC machine tool. These variables reflect the current operation status of the control axis of the CNC machine tool. In addition, the CPLD can also be provided with registers for input / output switch quantity / analog quantity. These registers record the control quantity output by the industrial control system to the industrial control equipment, and also collect the feedback quantity from the industrial control equipment. For example, the control quantity output to the displacement platform is to move 5 cm, while the feedback quantity of the displacement platform is actually moved 4.9 cm. These control quantity and feedback quantity data can be used to judge the error of the industrial control equipment. The CPLD can design registers according to the different industrial control equipment connected to the industrial control system. For example, a special register can be set for the CNC machine tool, and a register can also be set for the infrared encoder.
[0045] In addition, the above-mentioned level conversion / isolation circuit is used to convert the control signal into a control signal suitable for industrial control equipment and isolate the interference source, and the above-mentioned A / D and D / A modules are used to convert digital signals and analog signals to realize analog input and output.
[0046] Based on the functions of the above-mentioned I / O interface module, the above-mentioned process of executing the industrial control code can be specifically as follows:
[0047] The industrial control code is parsed to generate industrial control instructions and / or control data and sent to the I / O interface module through the data / control bus. The I / O interface module converts the industrial control instructions and / or control data into level control signals and / or analog control signals and outputs them to the industrial control equipment.
[0048] The industrial control instruction may be a control of a specific action of the industrial control device, for example, controlling the industrial control device to move to the left, while the control data is quantitative information of the specific action, for example, controlling the displacement of the industrial control device to be 2 cm.
[0049] The above is the process of parsing the process file into process code and executing the process code executed by the main industrial control system under normal circumstances. When the main industrial control system is abnormal, the auxiliary industrial control system will take over the control processing of the main industrial control system as a backup system. To this end, the auxiliary industrial control system will be prepared to take over the main industrial control system. Specifically:
[0050] On the one hand, the secondary industrial control system will continuously obtain the industrial control code executed by the main industrial control system and the code running status information, where the code running status information may include the running flag marking the code execution position (recording where the code is currently executed) and control data (such as the displacement and motion trajectory of the industrial control equipment, etc.), so that after the switch, the current and subsequent industrial control codes and related control data can be quickly found, so that the control operation can be continued. Since the main and secondary industrial control systems have always maintained a communication connection, it is also convenient for the secondary industrial control system to detect abnormalities in the main industrial control system, so that it can take over the industrial control system in time.
[0051] On the other hand, the auxiliary industrial control system will also continuously obtain the equipment operation status information of the industrial control equipment from the I / O interface module through the data / control bus. In this process, the I / O interface module communicates with the industrial control equipment to obtain the equipment operation status information and stores it in the register of the I / O interface module, where the equipment operation status information may be the current operation status of the equipment. For example, taking the servo controller as an example, its operation status may be in speed control mode or torque control mode, etc. The auxiliary industrial control system reads the equipment operation status information from the register of the I / O interface module and saves it.
[0052] The secondary industrial control system can take over the industrial control processing performed by the main industrial control system at any time by recording the code running status information and equipment running status information in real time. When the status of the main industrial control system is detected to be abnormal, the secondary industrial control system sends a takeover control signal to the I / O interface module, and the I / O interface module switches the control logic to accept the control of the secondary industrial control system, thereby realizing the switch from the main industrial control system to the secondary industrial control system.
[0053] In addition, the auxiliary industrial control system can continuously obtain the equipment operation status information of the industrial control equipment to understand the operation feedback of the industrial control equipment in real time, so as to judge some abnormal situations of the main industrial control system. In addition, the auxiliary industrial control system can also monitor the industrial control equipment according to the equipment operation status information, and judge whether the industrial control equipment is abnormal and whether it needs maintenance. When the industrial control equipment is abnormal, it can issue an alarm. When it is judged that the industrial control equipment needs maintenance, it can trigger the maintenance task to maintain the equipment.
[0054] The above introduces the basic principle of active and timely switching of the main and auxiliary industrial control systems based on communication. The following will explain in detail the processing performed by the main and auxiliary industrial control systems through specific processes.
[0055] like Figure 3 As shown, it is a flow chart of the application scenario of the control processing method of the industrial control system of the embodiment of the present invention. After the main industrial control system based on the SOC platform is started (hereinafter referred to as the main industrial control system by SOC), it maintains a connection state with the auxiliary industrial control system based on the MCU (hereinafter referred to as the auxiliary industrial control system by MCU) through a heartbeat signal.
[0056] SOC obtains industrial control code by parsing process files, and then executes the industrial control code to generate industrial control instructions and control data, and sends them to CPLD as part of the I / O interface module to send control signals to the industrial control equipment. On the other hand, SOC synchronizes the code running status of the industrial control code to MCU. In addition, MCU also reads the variables related to the industrial control equipment in the CPLD register in real time, generates and updates the running status table of the industrial control equipment in real time, where the running status table of the industrial control equipment records the running status of the industrial control equipment, such as which industrial control instruction the control equipment executes, the equipment parameters during the operation of the control equipment, etc., so that MCU can detect whether SOC is abnormal in real time, and understand the running status of the industrial control equipment when taking over.
[0057] When an abnormality occurs in the SOC, the MCU notifies the CPLD to take over the control processing, and on the other hand, determines which instruction or coordinate to start continuing production based on the content of the operating status table of the industrial control equipment and the code running status.
[0058] Since the industrial control processing of the industrial control system is triggered by orders, as mentioned above, one order corresponds to a specific model product, that is, one production process file. When the product processing of the order is completed, the next order will be processed, and the next order will load a new production process file and execute a new industrial control code. In the process of processing an order, after parsing the process file, the SOC will synchronize all the industrial control codes to the MCU so that the MCU can take over. When an order is completed and the next order needs to be processed, the MCU needs to obtain a new process file. As mentioned above, the system functions of the SOC are richer than those of the MCU. In actual applications, the SOC is generally configured with a communication interface connected to the network, so that it can automatically receive orders through the network to perform industrial control processing. The system function configuration of the MCU is relatively simple. In order to simplify the complexity of the system, the network interface can be omitted. Therefore, after the MCU takes over, if a new order needs to be processed after an order is processed, the industrial control processing corresponding to the new order can be executed by manually loading a new order. For completed orders, the MCU will also accumulate the order quantity and synchronize it to the SOC after the SOC returns to normal.
[0059] In addition, when there is no abnormality in the SOC, the MCU can be used as a self-checking unit to monitor the operating status of the industrial control equipment. For example, the data of the infrared encoder can be read based on the CPLD to determine whether each displacement instruction meets the coordinate or speed requirements. When the displacement or speed data read back from the encoding area is normal, the industrial control equipment does not need maintenance. When the data is abnormal, the errors that occur are accumulated and calculated, and a judgment is made based on the error accumulation mechanism (possibly after multiple errors). When the accumulated errors reach the preset threshold, the industrial control equipment maintenance task is triggered.
[0060] In the above-mentioned normal industrial control processing, CPLD, as the core control component of the I / O interface module, will receive the industrial control instructions of the main industrial control system and perform various industrial control processing on the industrial control equipment, while MCU only has the authority to read the registers of CPLD. When an abnormality occurs and it is necessary to switch to the secondary industrial control system, in CPLD, it is necessary to switch its own processing logic to accept the control of MCU. Figure 4As shown, it is a schematic diagram of the switching control processing logic of the CPLD of the industrial control system of the embodiment of the present invention. When the CPLD is started, the internal threads and registers will be initialized first, and in the default state, it will only accept the takeover control of the SOC, and only open the read-only permission of the registers to the MCU. The CPLD will constantly determine whether it has received the takeover control signal of the MCU. If it has received it, the CPLD will switch to be taken over by the MCU, so that it can receive the industrial control instructions and industrial control data sent by the MCU, and convert them into control signals to send to the industrial control equipment. If it has not received it, the SOC will still take over the control, and the MCU still has only read-only permission.
[0061] It should be noted that the above-mentioned CPLD can also use other programmable logic devices, such as FPGA, as long as it can execute the industrial control instructions of SOC and MCU and convert them into control signals for industrial control equipment, or convert them into control signals for industrial control equipment with the help of level conversion / isolation circuits, A / D, D / A and other modules.
[0062] The main and auxiliary industrial control systems of the embodiment of the present invention are not two independent industrial control systems isolated from each other. On the one hand, the auxiliary industrial control system obtains the operating status of the industrial control code and the equipment operating status through continuous communication with the main industrial control system and the industrial control equipment, thereby realizing fast switching without interrupting the control processing flow. On the other hand, through communication with the main industrial control system and the industrial control equipment, it can also timely discover the abnormality of the main industrial control system, thereby realizing active and timely switching.
[0063] The technical solution of the present invention is further illustrated below through other embodiments.
[0064] Embodiment 1
[0065] like Figure 5 As shown, it is a flow chart of a control processing method of an industrial control system according to an embodiment of the present invention, and the method comprises the following steps:
[0066] S101: Obtain code running status information of the industrial control code executed by the main industrial control system.
[0067] Specifically, the main industrial control system can synchronize the industrial control code and code running status information to the secondary industrial control system through the data / control bus, wherein the main and secondary industrial control systems can interact with each other through heartbeat signals.
[0068] Among them, the above-mentioned main industrial control system can be an industrial control system based on a SOC platform, and the auxiliary industrial control system can be an industrial control system based on an MCU platform. The main industrial control system and the auxiliary industrial control system can be powered by independent power supply circuits respectively.
[0069] In addition, the industrial control code mentioned here can be a program code for controlling industrial control equipment parsed from the process file, such as G / M code. The code running status information can include a running flag marking the code execution position (recording where the code is currently executed) and control data (for example, the displacement and motion trajectory of the industrial control equipment).
[0070] S102: Obtaining device operation status information of the industrial control device.
[0071] Specifically, the aforementioned I / O interface module communicates with the industrial control device, obtains the device operation status information, and stores it in the register of the I / O interface module. The secondary industrial control system reads the device operation status information from the register of the I / O interface module and saves it.
[0072] S103: When the state of the main industrial control system is detected to be abnormal, the main industrial control system is switched to the secondary industrial control system, and the control processing of the main industrial control system is continued according to the code operation state information and the equipment operation state information.
[0073] Specifically, the main and sub-industrial control systems maintain communication connection through heartbeat signals. When the sub-industrial control system finds that the heartbeat signal is interrupted or abnormal, it can be determined that the status of the main industrial control system is abnormal. Therefore, the sub-industrial control system sends a takeover control signal to the I / O interface module, and the I / O interface module switches the control logic to accept the control of the sub-industrial control system.
[0074] The above describes the process in which the secondary industrial control system continuously communicates with the primary industrial control system and the industrial control equipment to obtain the operating status of the industrial control code and the equipment operating status, thereby enabling rapid switching.
[0075] In the embodiment of the present invention, the main industrial control system mainly performs the following industrial control processing: the main industrial control system obtains the production process file, and parses the production process file into industrial control code, and parses the industrial control code to generate industrial control instructions and / or control data and send them to the I / O interface module; the I / O interface module converts the industrial control instructions and / or control data into level control signals and / or analog control signals, and outputs them to the industrial control equipment. Among them, the industrial control instructions can be the control of the specific actions of the industrial control equipment, and the control data can be the quantified information of the specific actions.
[0076] In addition to being ready to take over the industrial control processing of the main industrial control system at any time, the secondary industrial control system of the embodiment of the present invention can also monitor and process the industrial control equipment, so as to perform timely alarm or maintenance. Specifically, the secondary industrial control system monitors the industrial control equipment according to the equipment operation status information, and determines whether the industrial control equipment is abnormal and / or needs maintenance. If it is determined that the industrial control equipment is abnormal, an alarm process is executed; if it is determined that the industrial control equipment needs maintenance, the equipment maintenance task is triggered.
[0077] In the control processing method of the industrial control system of the embodiment of the present invention, the main and auxiliary industrial control systems are not two independent industrial control systems isolated from each other. On the one hand, the auxiliary industrial control system obtains the operating status of the industrial control code and the equipment operating status through continuous communication with the main industrial control system and the industrial control equipment, thereby realizing fast switching without interrupting the control processing flow. On the other hand, through communication with the main industrial control system and the industrial control equipment, the auxiliary industrial control system can also promptly discover the abnormality of the main industrial control system, thereby realizing active and timely switching.
[0078] Embodiment 2
[0079] like Figure 6 As shown, it is a schematic diagram of the structure of the control processing device of the industrial control system according to an embodiment of the present invention, which mainly includes:
[0080] The code running status information acquisition module 11 is used to acquire the code running status information of the industrial control code executed by the main industrial control system;
[0081] The device operation status information acquisition module 12 is used to acquire the device operation status information of the industrial control device;
[0082] The switching control module 13 is used to switch the main industrial control system to the secondary industrial control system when an abnormal state of the main industrial control system is detected, and trigger the secondary industrial control system to continue to execute the control processing of the main industrial control system according to the code operation state information and the equipment operation state information.
[0083] The control processing device may be arranged on the side of the secondary industrial control system as a part of the secondary industrial control system or independently of the secondary industrial control system. For example, it may be arranged in the MCU in the above example.
[0084] Based on the control processing of the control processing device of the industrial control system in the embodiment of the present invention, the main and auxiliary industrial control systems are not two independent industrial control systems isolated from each other. On the one hand, the auxiliary industrial control system obtains the operating status of the industrial control code and the equipment operating status through continuous communication with the main industrial control system and the industrial control equipment, thereby realizing fast switching without interrupting the control processing flow. On the other hand, through communication with the main industrial control system and the industrial control equipment, it can also timely discover the abnormality of the main industrial control system, thereby realizing active and timely switching.
[0085] Embodiment 3
[0086] like Figure 7 As shown, it is another structural schematic diagram of the industrial control system of an embodiment of the present invention, which shows the structure of two sets of main and auxiliary industrial control systems. The industrial control system includes:
[0087] The main industrial control system 21 is used to perform control processing on the industrial control equipment. The control processing mainly includes obtaining the production process file, parsing the production process file into industrial control code, and executing the industrial control code, so as to control the industrial control equipment 20 to perform specific processing actions.
[0088] The secondary industrial control system 22 is used to obtain the code running status information of the industrial control code executed by the main industrial control system and the equipment running status information of the industrial control equipment; in addition, the secondary industrial control system 22 monitors the abnormal state of the main industrial control system. When the abnormal state of the main industrial control system is detected, the industrial control system switching operation is executed, and the control processing of the main industrial control system is continued according to the code running status information and the equipment running status information. The above-mentioned main industrial control system 21 and the secondary industrial control system 22 can be connected through a data / control bus and maintain a communication state in the form of a heartbeat signal, so that the secondary industrial control system 22 can detect the abnormal state of the main industrial control system in time.
[0089] In addition, in order to enable the control instructions generated by the industrial control system to control the industrial control device 20, the control instructions and control data need to be converted to meet the control requirements of the industrial control device 20. Therefore, the above industrial control system may further include an I / O interface module 23. The main industrial control system 21 may specifically include: parsing the industrial control code, generating industrial control instructions and / or control data, and sending them to the I / O interface module 23. Accordingly, the I / O interface module 23 may be used to convert the industrial control instructions and / or control data into level control signals and / or analog control signals, and output them to the industrial control device 20.
[0090] On the other hand, the I / O interface module 23 can also obtain feedback information from the industrial control device 20 and provide it to the secondary industrial control system for monitoring the industrial control device. Specifically, the I / O interface module 23 can also be used to communicate with the industrial control device, obtain the device operation status information, and store it in the register of the I / O interface module 23; the secondary industrial control system 22 obtains the device operation status information from the register of the I / O interface module 23. In addition to monitoring the abnormality of the main industrial control system, the secondary industrial control system 22 can also use its idle resources to monitor the status of the industrial control device 20. Specifically, the secondary industrial control system 22 can also be used to monitor the industrial control device according to the device operation status information, and judge whether the industrial control device is abnormal and / or needs maintenance. If it is determined that the industrial control device is abnormal, an alarm process is performed. If it is determined that the industrial control device needs maintenance, the device maintenance task is triggered.
[0091] The industrial control system of the embodiment of the present invention includes two sets of main and auxiliary industrial control systems. These two sets of industrial control systems are not isolated from each other. On the one hand, the auxiliary industrial control system obtains the operating status of the industrial control code and the operating status of the equipment through continuous communication with the main industrial control system and the industrial control equipment, thereby realizing fast switching without interrupting the control processing flow. On the other hand, through communication with the main industrial control system and the industrial control equipment, it can also timely discover the abnormality of the main industrial control system, thereby realizing active and timely switching.
[0092] Embodiment 4
[0093] The embodiment of the present invention further provides an industrial control device, including a SOC module, an MCU module and an interface circuit module.
[0094] The SOC module is used to perform control processing on the industrial control equipment, that is, the SOC module serves as the main industrial control system.
[0095] The MCU module is connected to the SOC module and is used to obtain the code running status information of the industrial control code executed by the SOC module and the equipment running status information of the industrial control equipment. That is, the MCU module is used as a secondary industrial control system to be ready at any time to take over the processing work of the SOC module.
[0096] The interface circuit module is connected to the SOC module and the MCU module, and is used to convert the industrial control instructions and / or control data generated by the SOC module into level control signals and / or analog control signals, output them to the industrial control equipment, and receive the level feedback signals and / or analog feedback information of the industrial control equipment, and convert them into equipment operation status information and send them to the MCU module. The interface circuit module can be implemented by a hardware programmable logic circuit such as CPLD.
[0097] Furthermore, when implementing the interface circuit module, a structure of two CPLD circuit modules can be adopted, wherein one CPLD circuit module is designed to be connected to the SOC module, and is used to execute the conversion of industrial control instructions and / or control data to level control signals and / or analog control signals, and output to the industrial control equipment. The other CPLD circuit module is designed to be connected to the MCU module, and is used to receive the level feedback signal and / or analog feedback information of the industrial control equipment, and convert it into equipment operation status information and send it to the MCU module. When the SOC module fails, the MCU module takes over the two CPLD circuit modules.
[0098] In addition, as introduced earlier, the SOC module and the MCU module maintain connection through the heartbeat signal. The MCU module can monitor whether the SOC module is normal by monitoring the heartbeat signal. When the monitored heartbeat signal is abnormal, the MCU module actively takes over the SOC module and performs control processing on the industrial control equipment. Accordingly, the MCU module also takes over the interface circuit module.
[0099] The above-mentioned industrial control device uses a differentiated industrial control platform to divide the main industrial control system and the auxiliary industrial control system into two parts, so that when a problem occurs in the main industrial control system, the same problem will generally not occur in the auxiliary industrial control system, thereby ensuring the stability of the entire industrial control device. In addition, from a cost perspective, the main industrial control system uses a chip module based on the SOC platform to achieve a more comprehensive main industrial control processing operation, while the slave industrial control system uses a relatively low-cost MCU platform chip module. Its chip system is relatively streamlined and more suitable for data collection and anomaly detection. In addition, as some variants, the main industrial control system can use a chip system based on the SOC platform with a higher configuration, while the slave industrial control system also uses a chip system based on the SOC platform with a lower configuration, or a combination of a chip system based on the SOC platform with a lower configuration and a chip system based on the MCU platform.
[0100] As a product-level device provided to users, the above-mentioned industrial control equipment can be configured by users, so that users can flexibly choose functions and configuration costs based on their actual needs.
[0101] Embodiment 5
[0102] The above embodiments describe the process processing and device structure of the embodiments of the present invention. The functions of the above methods and devices can be implemented by means of an electronic device, such as Figure 8 As shown, it is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention, which specifically includes: a memory 110 and a processor 120.
[0103] The memory 110 is used to store programs.
[0104] In addition to the above-mentioned programs, the memory 110 may also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.
[0105] The memory 110 may be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0106] The processor 120 is coupled to the memory 110 and is used to execute the program in the memory 110 to perform the operation steps of the control processing method of the industrial control system described in the above embodiments.
[0107] In addition, the processor 120 may also include various modules described in the above embodiments to perform control processing of the industrial control system, and the memory 110 may be used, for example, to store data required for these modules to perform operations and / or output data.
[0108] The specific description of the above-mentioned processing process, the detailed description of the technical principle and the detailed analysis of the technical effect have been described in detail in the previous embodiments and will not be repeated here.
[0109] Furthermore, as shown in the figure, the electronic device may also include other components such as a communication component 130, a power component 140, an audio component 150, and a display 160. The figure only schematically shows some components, which does not mean that the electronic device only includes the components shown in the figure.
[0110] The communication component 130 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 130 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 130 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0111] The power supply component 140 provides power to various components of the electronic device. The power supply component 140 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.
[0112] The audio component 150 is configured to output and / or input audio signals. For example, the audio component 150 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 110 or sent via the communication component 130. In some embodiments, the audio component 150 also includes a speaker for outputting audio signals.
[0113] The display 160 includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0114] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A control processing method for an industrial control system, include: Obtaining code running status information of the industrial control code executed by the main industrial control system; The code running status information includes a running flag marking a code execution position and control data, and the control data includes a displacement and / or a motion trajectory executed by the industrial control device; Obtain equipment operation status information of industrial control equipment; The device operation status information includes the industrial control instructions currently executed by the industrial control device and / or the device parameters during the operation of the industrial control device; When it is detected that the state of the main industrial control system is abnormal, the main industrial control system is switched to the secondary industrial control system, and the control processing of the main industrial control system is continued according to the code running state information and the equipment running state information; Wherein, the continuing to execute the control processing of the main industrial control system includes: Determine the current coordinates and / or industrial control instructions of the industrial control device, and control the industrial control device to continue production according to the coordinates and / or the industrial control instructions.
2. The method according to claim 1, in, Also includes: The secondary industrial control system interacts with the primary industrial control system by means of a heartbeat signal to detect abnormal status of the primary industrial control system.
3. The method according to claim 1, in, Also includes: The main industrial control system obtains the production process file, parses the production process file into industrial control code, and executes the industrial control code.
4. The method according to claim 3, in, Executing the industrial control code includes: Parsing the industrial control code, generating industrial control instructions and / or control data and sending them to the I / O interface module; The I / O interface module converts the industrial control instructions and / or control data into level control signals and / or analog control signals, and outputs them to the industrial control equipment.
5. The method according to claim 1, in, The obtaining of the equipment operation status information of the industrial control equipment includes: The I / O interface module communicates with the industrial control device to obtain the device operation status information and stores it in the register of the I / O interface module. The secondary industrial control system reads and saves the device operation status information from the register of the I / O interface module.
6. The method according to claim 3, in, The step of obtaining the code running status information of the industrial control code executed by the main industrial control system includes: The main industrial control system synchronizes the industrial control code and code running status information to the secondary industrial control system via a data / control bus.
7. The method according to claim 1, in, Also includes: The secondary industrial control system monitors the industrial control equipment according to the equipment operation status information, and determines whether the industrial control equipment has an abnormality and / or requires maintenance. If it is determined that the industrial control equipment has an abnormality, an alarm processing is performed; if it is determined that the industrial control equipment requires maintenance, an equipment maintenance task is triggered.
8. The method according to claim 4, in, Switching the main industrial control system to the secondary industrial control system includes: The secondary industrial control system sends a takeover control signal to the I / O interface module; The I / O interface module switches the control logic to accept the control of the secondary industrial control system.
9. The method according to claim 1, in, The main industrial control system is an industrial control system based on a SOC platform, and the auxiliary industrial control system is an industrial control system based on an MCU platform.
10. The method according to claim 9, in, The main industrial control system and the auxiliary industrial control system are powered by independent power supply circuits respectively.
11. A control processing device for an industrial control system, include: A code running status information acquisition module is used to acquire the code running status information of the industrial control code executed by the main industrial control system; The code running status information includes a running flag marking a code execution position and control data, and the control data includes a displacement and / or a motion trajectory executed by the industrial control device; The device operation status information acquisition module is used to acquire the device operation status information of the industrial control device; the device operation status information includes the industrial control instructions currently executed by the industrial control device and / or the device parameters during the operation of the industrial control device; A switching control module, configured to switch the main industrial control system to the secondary industrial control system when an abnormal state of the main industrial control system is detected, and trigger the secondary industrial control system to continue to execute the control processing of the main industrial control system according to the code running state information and the device running state information; Wherein, the continuing to execute the control processing of the main industrial control system includes: Determine the current coordinates and / or industrial control instructions of the industrial control device, and control the industrial control device to continue production according to the coordinates and / or the industrial control instructions.
12. An industrial control system, include: The main industrial control system is used to perform control processing on the industrial control equipment; The secondary industrial control system is used to obtain the code running status information of the industrial control code executed by the main industrial control system and the device running status information of the industrial control device; the code running status information includes the running flag and control data marking the code execution position, and the control data includes the displacement and / or motion trajectory executed by the industrial control device; the device running status information includes the industrial control instruction currently executed by the industrial control device and / or the device parameters during the operation of the industrial control device; The secondary industrial control system is further used to monitor the abnormal state of the main industrial control system, and when it is detected that the state of the main industrial control system is abnormal, execute the switching operation of the industrial control system, and continue to execute the control processing of the main industrial control system according to the code running state information and the equipment running state information; Wherein, the continuing to execute the control processing of the main industrial control system includes: Determine the current coordinates and / or industrial control instructions of the industrial control device, and control the industrial control device to continue production according to the coordinates and / or the industrial control instructions.
13. The system according to claim 12, in, The performing control processing on the industrial control equipment includes: The main industrial control system obtains the production process file, parses the production process file into industrial control code, and executes the industrial control code.
14. The system according to claim 13, in, It also includes I / O interface modules, The executing the industrial control code comprises: parsing the industrial control code, generating industrial control instructions and / or control data and sending them to the I / O interface module, The I / O interface module is used to convert the industrial control instructions and / or control data into level control signals and / or analog control signals, and output them to the industrial control equipment.
15. The system according to claim 12, in, It also includes I / O interface modules, An I / O interface module, used to communicate with the industrial control device, obtain the device operation status information, and store it in a register of the I / O interface module; The secondary industrial control system obtains the device operation status information from the register of the I / O interface module.
16. The system according to claim 12, in, The secondary industrial control system is also used to monitor the industrial control equipment according to the equipment operation status information, and to determine whether the industrial control equipment has an abnormality and / or requires maintenance. If it is determined that the industrial control equipment has an abnormality, an alarm process is performed; if it is determined that the industrial control equipment requires maintenance, an equipment maintenance task is triggered.
17. An industrial control device, comprising a SOC module, an MCU module and an interface circuit module, SOC module, used to perform control processing on industrial control equipment; The MCU module is connected to the SOC module and is used to obtain the code running status information of the industrial control code executed by the SOC module and the device running status information of the industrial control device; the code running status information includes the running flag and control data marking the code execution position, and the control data includes the displacement and / or motion trajectory executed by the industrial control device; the device running status information includes the industrial control instruction currently executed by the industrial control device and / or the device parameters during the operation of the industrial control device; The MCU module is further used to monitor the abnormal state of the SOC module. When the abnormal state of the SOC module is detected, the MCU module performs a switching operation of the industrial control system and continues to perform control processing of the SOC module according to the code running state information and the device running state information. in, The continuing to execute the control process of the main industrial control system includes: Determine the current coordinates and / or industrial control instructions of the industrial control device, and control the industrial control device to continue production according to the coordinates and / or the industrial control instructions; The interface circuit module is connected to the SOC module and the MCU module, and is used to convert the industrial control instructions and / or control data generated by the SOC module into level control signals and / or analog control signals, output them to the industrial control equipment, and receive the level feedback signals and / or analog feedback information of the industrial control equipment, and convert them into equipment operation status information and send them to the MCU module.
18. The industrial control device according to claim 17, in, The SOC module and the MCU module maintain connection through a heartbeat signal. The MCU module is also used to take over the SOC module and perform control processing on the industrial control equipment when an abnormality is detected in the heartbeat signal.
19. An electronic device, include: Memory, used to store programs; A processor is used to run the program stored in the memory to execute the control processing method of the industrial control system according to claims 1 to 10.
