System and method for processing online operation state data of manufacturing execution system MES equipment
By combining Golang and JavaScript in the MES system, efficient real-time acquisition and dynamic analysis of multi-source heterogeneous data were achieved, solving the problem of insufficient flexibility in device status analysis in the MES system and improving device management efficiency and system stability.
Patent Information
- Application Number
- CN202510817080.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-10-17
AI Technical Summary
Existing Manufacturing Execution Systems (MES) lack flexibility in assessing equipment status. Traditional industrial equipment monitoring systems suffer from complex monitoring rule configurations, making it difficult to meet the millisecond-level data throughput requirements of thousands of devices and support user-defined dynamic rules.
A lightweight data acquisition module is built using the high concurrency features of Golang and combined with the dynamic scripting capabilities of JavaScript to achieve real-time acquisition of multi-source heterogeneous data and dynamic analysis of device operating status. Through heterogeneous language collaborative analysis methods, user-defined dynamic rule configuration and hot reloading are supported.
It improves the efficiency and accuracy of equipment operation status assessment, reduces the complexity of rule configuration, enhances the system's flexibility and response speed, and provides a strong guarantee for the stable operation of the MES system.
Smart Images

Figure CN120803838A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of data processing, in particular to the technical field of the intersection of industrial intelligent manufacturing and information technology, and relates to a manufacturing execution system (MES) online running state data processing method. BACKGROUND
[0002] The existing manufacturing execution system (MES) has poor flexibility in equipment state research and judgment, and the traditional industrial equipment monitoring system has problems such as complex monitoring rule configuration. The existing manufacturing execution system (MES) can manage thousands of devices at the same time, and there are many problems in actual application, and various errors and omissions are easily generated. SUMMARY
[0003] In order to solve the problem that the general large model in the prior art does not understand professional terms, resulting in the problem that the general large model is not accurate in the field of bidding document processing, the present application provides a bidding document data processing method and system, which uses a hybrid expert model (MoE) as an innovative form of a large model architecture, and through the design idea of "specialization in one's own field", the task is allocated to multiple "experts" for solution after being classified.
[0004] In order to achieve the above-mentioned purpose, the embodiment of the present application provides a manufacturing execution system (MES) device online running state data processing system, characterized in that it comprises a business layer, a data layer, a collection layer and a device layer.
[0005] The device layer comprises the MES device to collect the state parameters of the MES device.
[0006] The collection layer is constructed by using the high-concurrency characteristics of Golang to construct a lightweight collection module, realizes real-time collection of multi-source heterogeneous data, and synchronously transmits the data to the data layer based on an efficient I / O model. The collection layer utilizes the unique goroutine and channel mechanism of Golang to achieve multi-threading and high-concurrency data collection functions. The collection layer is used to efficiently process the data of multi-source heterogeneous devices to ensure that the running parameters of various devices can be collected in real time, and to provide timely and accurate data support for subsequent state research and judgment.
[0007] The business layer uses JavaScript scripts to create a device running judgment rule library, dynamically parses device parameters, judges device running states, and writes device running states to the data platform. The dynamic rule configuration and hot loading method can flexibly define the judgment logic according to actual needs through the JavaScript script rule engine. The engine supports script hot loading function, and when the rules change, the entire system does not need to be recompiled, and only the new script needs to be loaded to update the judgment rules.
[0008] In the business layer of the MES system, for each device running state, a heterogeneous language collaborative judgment method is applied for intelligent judgment; the device running state judgment is performed by the background, and Golang is used to allocate an independent trip running for each device running judgment service; the front end is used for editing a rule script of the device running judgment by JavaScript, and the rule script is submitted to the back end service; the back end service reads device running parameters in real time according to the script rule, and performs second-level calculation on the device running state; the judgment script rule of each device includes: device online judgment, device running state judgment, and device running state release.
[0009] In the MES system, an online editing tool of the device running state judgment rule library is provided, and the device running state judgment rule library is edited according to business rules; the device running state rule editor provides a rule creation, editing and simulation running, and a whole process link from release. The rule library is built-in with multiple JavaScript script function libraries, such as time functions, mathematical functions, byte bit read-write functions, byte sequence conversion functions, device parameter value read-write functions, Tcp network output, MQTT output functions and the like, which greatly enrich the editing capability of the rule library, and adapt to the logical judgment of the device running state of complex production business.
[0010] In order to achieve the above purpose, the embodiment of the application also provides an online running state data processing method using the MES device online running state data processing system.
[0011] The device online judgment step reads the pre-defined device running parameters according to the JavaScript script rule definition, and judges the quality of the parameters; if the running parameters are valid, the data timestamp is judged, the data refresh time is compared, and if the data refresh time is within the defined data collection timestamp range, the device is online, otherwise the device is offline. The above script rule logic applies self-researched cross-language support bottom function, such as device parameter value read-write, parameter quality reading, parameter time read-write, system time acquisition, log output, byte bit read-write and the like;
[0012] The device running state judgment step, in the case that the device is online, judges the device running state according to different device business rules; the device running state includes: online, production, standby, idle, fault, offline and the like; the device running state judgment logic needs to be combined with the production business scene, and the rule code of JavaScript is edited. After the device running state is acquired, the device running state data is written into the data platform, and the data platform provides the device running state data for the application layer to perform business analysis
[0013] The beneficial effects of the above technical solutions of the present application are as follows: the MES device online running state data processing method proposed in the embodiments of the present application can effectively improve the efficiency and accuracy of equipment running state research and judgment, and provide strong guarantee for the stable operation of the MES system. BRIEF DESCRIPTION OF DRAWINGS
[0014] The following drawings are used to provide further understanding of the present application, and the illustrative examples of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. In the drawings:
[0015] Figure 1 is a system structure diagram of the embodiments of the present application;
[0016] Figure 2 is a device online running state research and judgment process diagram;
[0017] Figure 3 is a device online rule library editing flowchart. DETAILED DESCRIPTION
[0018] It should be noted that, in the absence of conflicts, the examples in the present application and the features in the examples can be combined with each other, unless explicitly required, individual components and functions are optional, and the order of operations can be changed. Some parts and features of the embodiments can be included or replaced by parts and features of other embodiments. The scope of the embodiments of the present application includes the entire scope of the claims, and all available equivalents of the claims. The present application will be described in detail below with reference to the drawings and in conjunction with the examples.
[0019] The existing manufacturing execution system (MES) has poor flexibility in equipment state research and judgment, and the traditional industrial equipment monitoring system has problems such as complex monitoring rule configuration. To solve these pain points, the present application fully utilizes the unique advantages of Golang and JavaScript. On the one hand, the high concurrency feature of Golang can be used to make real-time research and judgment on the running state of thousands of devices, greatly improving the processing efficiency and response speed of the system; on the other hand, with the help of the powerful dynamic script capability of JavaScript, a rich set of underlying script support functions are expanded, realizing the flexible configuration of device operation business rules, and effectively reducing the complexity of device running state monitoring rules. Under the background of industrial 4.0 and intelligent manufacturing transformation, the MES system needs to collect multi-source heterogeneous device data in real time. The MES system device categories can include: numerical control equipment, PLC controller, identification equipment, robot, automatic guided vehicle and various sensors, etc., and based on device data, dynamically evaluate the device running state and device health condition, to realize predictive maintenance and reduce unplanned downtime.
[0020] The prior art has the following limitations: one is data processing bottleneck: traditional backend framework (such as Java / Python) faces performance deficiency in high-concurrency real-time data collection scenarios, and it is difficult to cope with the millisecond-level data throughput demand of thousands of devices; two is rigid judgment rule: the existing system relies on fixed threshold or static model, and cannot support user-defined dynamic rules (such as multi-condition combination logic definition), resulting in poor adaptability.
[0021] To solve the problems of device state collection in the MES system, such as not timely, rigid judgment rule, etc., the high-concurrency feature of Golang is used in the data collection and transmission module for module construction, the lightweight collection module is constructed, the real-time collection of multi-source heterogeneous data is realized, and based on the efficient I / O model, the data is transmitted to the data center synchronously, the device data collection throughput and real-time performance are greatly improved, and real-time and stable data support is provided for subsequent device state dynamic judgment. In the device running state intelligent research and judgment module, the JavaScript script is used to create the device running judgment rule library, the device parameters are dynamically parsed, the device running state is researched and judged, and the device running state is written back to the data center.
[0022] The application provides an MES device online running state intelligent research and judgment method.
[0023] The implementation method is as follows: in the data collection and transmission module, the module is developed by using Golang. By using the unique goroutine and channel mechanism of Golang, the multi-thread and high-concurrency data collection function is achieved. This mechanism can efficiently process the data of multi-source heterogeneous devices, ensure that the running parameters of various devices can be collected in real time, and provide timely and accurate data support for subsequent state research and judgment. In the device running state research and judgment module: based on the goroutine mechanism of Golang, the online concurrent research and judgment of multiple devices is realized. The device state intelligent research and judgment rule library is loaded and run in each goroutine, so that the running state of the device can be dynamically and real-timely researched and judged, and potential problems in the running of the device can be found in time.
[0024] The technical innovations of the intelligent analysis method for the online operating status of MES equipment include, first, the heterogeneous language collaborative analysis method, which cleverly combines the high concurrency performance of Golang and the dynamic scripting capabilities of JavaScript. Golang is responsible for data processing on the back end, and with its powerful concurrent processing capabilities, it can efficiently collect and analyze equipment data; JavaScript is used for front-end interaction, and its dynamic scripting capabilities enable the front-end interface to flexibly display data and perform interactive operations. This approach decouples back-end data processing from front-end interaction, improving the maintainability and scalability of the system. Second, it is a dynamic rule configuration and hot loading method. Through the JavaScript scripted rule engine, users can flexibly define the analysis logic according to actual needs. At the same time, the engine supports script hot loading. When the rules change, there is no need to recompile the entire system; only the new script needs to be loaded to update the analysis rules, greatly improving the flexibility and responsiveness of the system.
[0025] In summary, the method for intelligently analyzing the online operating status of MES equipment of the present invention, by adopting advanced technical implementation methods and unique innovations, can effectively improve the efficiency and accuracy of equipment operating status analysis, and provide a strong guarantee for the stable operation of the MES system.
[0026] The present invention Figure Two As shown in the figure, in the MES system, the operating status of each device can be intelligently assessed using a collaborative analysis method using heterogeneous languages. To assess the operating status of each device, Golang is used in the backend to assign an independent Ctrip runtime to each device's operating assessment service. JavaScript is used on the front end to create a script for device operating assessment rules and submit it to the backend service. The backend service reads device operating parameters in real time based on the script rules and calculates the device's operating status within seconds. The assessment script rules for each device include: online device assessment, device operating status assessment, and device operating status publication.
[0027] The analysis process is as follows: First, the device is analyzed online. According to JavaScript script rules, predefined device operating parameters are read and their quality is determined. If the operating parameters are valid, the data timestamp is determined, and the data refresh time is compared. If it is within the defined data collection timestamp range, the device is online; otherwise, it is offline. The above script rule logic applies self-developed cross-language support for underlying functions, such as reading and writing device parameter values, reading parameter quality, reading and writing parameter time, obtaining system time, logging output, and reading and writing bytes.
[0028] Second, equipment operation state research and judgment, in the case of equipment online, according to different equipment business rules, equipment operation state research and judgment. Equipment operation state includes: online, production, standby, idle, fault, offline, etc. The logic of equipment operation state judgment needs to be combined with production business scenarios to edit the rule code of JavaScript. After obtaining the equipment operation state, write it into the data platform, and the data platform provides equipment operation state data to the application layer for business analysis.
[0029] As shown in the present application Figure Three The online editing tool of the equipment operation state research and judgment rule library is provided in the MES system, and the equipment operation state research and judgment rule library is edited according to business rules. The equipment operation state rule editor provides the whole process links from creation, editing and simulation running to publishing of rules. The rule library is built-in with multiple JavaScript script function libraries, such as time function, mathematical function, byte bit reading and writing function, byte sequence conversion function, equipment parameter value reading and writing function, Tcp network output, MQTT output function and the like. The editing ability of the rule library is greatly enriched, and the logic judgment of the equipment operation state of complex production business is adapted.
[0030] The application of the equipment operation state research and judgment method in the MES system significantly improves the equipment management efficiency, reduces the operation and maintenance cost, and effectively improves the production efficiency of the enterprise, thereby providing decision support based on data for the enterprise in the process of digital manufacturing.
[0031] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer programs. When the computer programs are loaded on a computer and executed, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer programs can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer programs can be transferred from one website, computer, server or data center to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (such as floppy disk, hard disk, magnetic tape), optical media (such as high-density digital video disc (digital video disc, DVD)), or semiconductor media (such as solid state disk (solid state disk, SSD)) and the like.
[0032] Those skilled in the art can understand that the first, second, etc. various numerical designations involved in the present application are only for the convenience of description, and do not limit the scope of the embodiments of the present application, nor indicate the order.
[0033] At least one of the present application can also be described as one or more, and the plurality can be two, three, four or more, which is not limited in the present application. In the embodiments of the present application, for a technical feature, the technical features in the technical feature are distinguished by "first", "second", "third", "A", "B", "C" and "D". There is no order or size order between the technical features described by "first", "second", "third", "A", "B", "C" and "D".
[0034] The correspondence relationship shown in each table in the present application can be configured or predefined. The values of the information in each table are merely examples, and other values can be configured, and the present application is not limited thereto. When configuring the correspondence relationship of the information and each parameter, it is not necessarily required to configure all the correspondence relationships shown in each table. For example, the correspondence relationship shown in some rows in the table in the present application can also not be configured. For another example, the above tables can be appropriately deformed, for example, split, merged, and the like. The names of the parameters shown in the titles of the above tables can also use other names understandable by the communication device, and the values or representation manners of the parameters can also use other values or representation manners understandable by the communication device. The above tables can also use other data structures when implemented, for example, an array, a queue, a container, a stack, a linear table, a pointer, a linked list, a tree, a graph, a structure, a class, a heap, a hash table, or the like.
[0035] The predefinition in the present application can be understood as defining, predefining, storing, pre-storing, pre-negotiating, pre-configuring, solidifying, or pre-burning.
[0036] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are realized in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0037] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the above-described system, device and unit can refer to the corresponding processes in the foregoing method embodiments, which will not be described here.
[0038] The above is merely a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A manufacturing execution system (MES) equipment online operation status data processing system, characterized by: include: Business layer, data layer, collection layer, and device layer; The device layer includes the MES device to collect status parameters of the MES device; The acquisition layer is modularized based on Golang's high concurrency characteristics to build a lightweight acquisition module, realize the real-time acquisition of multi-source heterogeneous data, and synchronously transmit it to the data middle platform of the data layer based on an efficient I / O model; the acquisition layer utilizes Golang's unique goroutine and channel mechanisms to achieve multi-threaded, high-concurrency data acquisition functions; the acquisition layer is used to efficiently process data from multi-source heterogeneous devices, ensuring that the operating parameters of various devices can be collected in real time, providing timely and accurate data support for subsequent status analysis; The business layer uses JavaScript scripts to create a device operation judgment rule library, dynamically analyze device parameters, judge the device operation status, and write the device operation status back to the data center. The dynamic rule configuration and hot loading method uses a JavaScript scripted rule engine, allowing users to flexibly define the judgment logic according to actual needs. The engine supports the script hot loading function. When the rules change, there is no need to recompile the entire system. Only the new script needs to be loaded to update the judgment rules. In the business layer of the MES system, the operating status of each device is intelligently judged by applying a method of collaborative judgment using heterogeneous languages; To analyze the device's operating status, the backend uses Golang to assign an independent Ctrip runtime to each device's operating analysis service. The frontend uses JavaScript to edit the device's operating analysis rule script and submit it to the backend service. The backend service reads the device's operating parameters in real time based on the script rules and calculates the device's operating status in seconds. The analysis and judgment script rules for each device include: online analysis and judgment of the device, analysis and judgment of the device operating status, and release of the device operating status.
2. The manufacturing execution system MES equipment online operation status data processing system according to claim 1 is characterized in that: The MES system provides an online editing tool for the equipment operating status analysis rule base, allowing users to edit the rule base according to business rules. The equipment operating status rule editor provides comprehensive support for rule creation, editing, simulation, and publishing. The rule base includes multiple built-in JavaScript script function libraries, including time functions, mathematical functions, byte read and write functions, endian conversion functions, device parameter value read and write functions, TCP network output, and MQTT output functions. This greatly enriches the rule base's editing capabilities and adapts to the logical judgment of equipment operating status in complex production operations.
3. A method for processing online operation status data using the manufacturing execution system (MES) device according to claim 1 or 2, the method comprising: The online equipment evaluation process is defined according to JavaScript script rules, which reads predefined equipment operating parameters and makes quality judgments on the parameters. If the operating parameters are valid, the data timestamp is judged and the data refresh time is compared. If it is within the defined data collection timestamp range, the device is online; otherwise, it is offline. The above script rule logic applies self-developed cross-language support underlying functions, such as device parameter value reading and writing, parameter quality reading, parameter time reading and writing, system time acquisition, log output, byte position reading and writing, and other basic functions; The equipment operation status assessment step: When the equipment is online, the equipment operation status is assessed based on different equipment business rules. Equipment operation status includes: online, production, standby, idle, faulty, offline, etc. The logic for determining device operating status must be integrated with production business scenarios and JavaScript rule code must be edited. After obtaining the device operating status, it is written to the data center, which provides the device operating status data to the application layer for business analysis.