A method, device and equipment for collecting high-concurrency process information of MES system
By obtaining mathematical model division and combining cached data in the MES system and using Redis for management, the problem of low process information collection efficiency under high concurrency is solved, efficient data acquisition and update are achieved, and system performance is improved.
Patent Information
- Application Number
- CN202311297514.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-08
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2043-10-08
AI Technical Summary
The existing large-scale intelligent manufacturing factory MES systems are difficult to achieve real-time and efficient collection of process information in high concurrency scenarios, resulting in high pressure on database processing and poor application results.
By obtaining the mathematical model of the MES system server, the key business data is divided and combined, cached data is constructed, and data management and distributed lock control are used to use preset key values to implement data planning and dispatch of work orders on the cache side (such as Redis) to achieve process planning and work order assignment Efficient data collection and update.
In high-concurrency scenarios, efficient data acquisition and update are achieved, data consistency is ensured, and the application effect and performance of the MES system are improved.
Smart Images

Figure CN117349300B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data collection technology, and in particular to a method, device and equipment for collecting high-concurrency process information of an MES system. Background Art
[0002] The Manufacturing Execution System (MES) of a manufacturing enterprise is a production information management system for the execution layer of the workshop of a manufacturing enterprise. MES can provide enterprises with management modules including manufacturing data management, production planning and scheduling management, production scheduling management, inventory management, quality management, human resources management, work center / equipment management, tool and fixture management, procurement management, cost management, project kanban management, production process control, bottom-level data integration analysis, and upper-level data integration and decomposition, creating a solid, reliable, comprehensive, and feasible manufacturing collaborative management platform for enterprises. With the deepening application of MES systems in large-scale intelligent manufacturing factories, improving the efficiency of collecting process information is an important part of improving the performance of MES systems.
[0003] The existing large-scale intelligent manufacturing factory MES system, when used in scenarios with multiple work orders and multiple users, is limited by the high concurrency of process information collection and involves frequent read and write and lock control operations on the back-end database. This usually leads to high processing pressure on the MES system database, which in turn leads to poor application effects of the MES system and makes it difficult to achieve real-time and efficient collection of intelligent factory process information under high concurrency. Summary of the invention
[0004] In order to solve the above technical problems, one or more embodiments of this specification provide a method, device and equipment for collecting high-concurrency process information of an MES system.
[0005] One or more embodiments of this specification adopt the following technical solutions:
[0006] One or more embodiments of this specification provide a method for collecting high-concurrency process information of an MES system, the method comprising:
[0007] Acquire multiple mathematical models of the MES system server, and divide and combine key business data of the MES system based on the mathematical models to construct cache data of the MES system server in real time during the production process;
[0008] Send the cache data to the preset key-value pair cache end of the MES system to determine the key value of each cache data based on the cache pool corresponding to each mathematical model in the preset key-value pair cache end; wherein the cache pool includes: a process plan cache pool and a work order cache pool;
[0009] Read the cache data in the work order cache pool based on the key value to determine the process collection data of the MES system;
[0010] The process collection data is sent to the process collection cache data pool of the preset key-value pair cache end, and the write-back thread of the process collection data is controlled based on the distributed lock of the preset key-value pair cache end to realize the data update of the process plan cache pool and the work order cache pool.
[0011] Optionally, in one or more embodiments of the present specification, the acquiring of multiple mathematical models of the MES system server, and dividing and combining the key business data of the MES system based on the mathematical models to construct cache data of the MES system server in the production process in real time, specifically includes:
[0012] Obtain the key business data of the current process on the MES system server, and obtain the business characteristics of each of the key business data and the current data structure and pre-data structure of each of the key businesses; wherein the key business data includes: sequence plan, serial number information, work order team or equipment, and process collection data;
[0013] Based on the business characteristics of each of the key business data, determine the mathematical modeling structure of the current data structure and the front-end data structure, and use the mathematical modeling structure as the mathematical model of the MES system server; wherein the mathematical model includes: a process planning model, a work order model, and a process collection model;
[0014] The key business data are combined and divided based on the mathematical model to obtain the cache data of the MES system server; wherein the cache data includes: process planning data, work order data, and process collection data.
[0015] Optionally, in one or more embodiments of the present specification, the cache data is sent to a preset key-value pair cache end of the MES system to determine a key value of each cache data based on a cache pool corresponding to each mathematical model in the preset key-value pair cache end, specifically including:
[0016] Based on the mathematical model corresponding to the cache data, determining a cache pool corresponding to the cache data, so as to query whether the corresponding cache pool has the cache data;
[0017] If yes, updating the corresponding data in the corresponding cache pool based on the cache data;
[0018] If not, the cache data is sent to the corresponding cache pool, and the cache data is stored and managed based on the corresponding cache pool, and the key value corresponding to each cache data is determined.
[0019] Optionally, in one or more embodiments of the present specification, after sending the cache data to a preset key-value pair cache end of the MES system to determine the key value of each cache data based on a cache pool corresponding to each mathematical model in the preset key-value pair cache end, the method further includes:
[0020] Determining the main cache data in each corresponding cache pool based on the read and write frequency of each cache data;
[0021] storing the main cache data in the high-speed cache memory corresponding to each of the corresponding cache pools;
[0022] Based on the read-write penetration mode of the preset key-value pair cache end, the main cache data in the cache memory is synchronously updated to the preset database of the MES system; wherein the preset key-value pair cache end is a Redis cache end.
[0023] Optionally, in one or more embodiments of the present specification, reading the work order cache data in the work order cache pool based on the key value to determine the process collection data of the MES system specifically includes:
[0024] Reading the work order cache data in the work order cache pool based on the key value; wherein the work order cache data is composed of process data, serial number data and team data;
[0025] Extract the data corresponding to the current process status in the work order cache data to determine the process collection data of the MES system; wherein the process collection data includes: operation information, inspection information, supporting information, equipment operation parameter information, environmental information, and energy consumption information.
[0026] Optionally, in one or more embodiments of the present specification, after sending the process collection data to the process collection cache data pool of the preset key-value pair cache end, the method further includes:
[0027] Based on the read-write penetration mode of the preset key-value pair cache end, the process collection data is synchronously written into the preset database of the MES system.
[0028] Optionally, in one or more embodiments of the present specification, the distributed lock of the cache end based on the preset key value is used to control the write-back thread of the process acquisition data to implement data update of the process plan cache pool and the work order cache pool, specifically including:
[0029] Acquire the process collection data corresponding to each of the write-back threads to obtain multiple parallel write-back threads corresponding to the same process collection data;
[0030] The parallel write-back thread is thread locked based on the distributed lock of the preset key-value pair cache end to achieve orderly update of the process plan cache pool and the work order cache pool; wherein the distributed lock is a distributed lock of a Redisson watchdog.
[0031] Optionally, in one or more embodiments of the present specification, after sending the process collection data to the process collection cache data pool of the preset key-value pair cache end, the method further includes:
[0032] Performing statistical analysis on the process collection data based on the process collection cache data pool to obtain statistical results;
[0033] The process collection data and the statistical results are packaged to obtain corresponding data packets, so as to obtain the corresponding data packets regularly and update the production mechanism of the MES system.
[0034] One or more embodiments of this specification provide a high-concurrency process information collection device for an MES system, the device comprising:
[0035] A construction unit, used to obtain multiple mathematical models of the MES system server, and divide and combine the key business data of the MES system based on the mathematical models, so as to construct cache data of the MES system server in real time during the production process;
[0036] A cache unit, used to send the cache data to a preset key-value pair cache end of the MES system, so as to determine the key value of each cache data based on a cache pool corresponding to each mathematical model in the preset key-value pair cache end; wherein the cache pool includes: a process plan cache pool and a work order cache pool;
[0037] A determination unit, configured to read cache data in the work order cache pool based on the key value, and determine process collection data of the MES system;
[0038] The sending unit is used to send the process collection data to the process collection cache data pool of the preset key-value pair cache end, and control the write-back thread of the process collection data based on the distributed lock of the preset key-value pair cache end to realize the data update of the process plan cache pool and the work order cache pool.
[0039] One or more embodiments of this specification provide a high-concurrency process information collection device for an MES system, the device comprising:
[0040] at least one processor; and,
[0041] a memory communicatively connected to the at least one processor; wherein,
[0042] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to: execute any of the above-mentioned methods.
[0043] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:
[0044] Based on the mathematical model, the key business data of the MES system is divided and combined to build the cache data of the MES system server in the production process in real time, so as to write the cache data to the preset key-value cache end, and then based on the high performance of reading and writing and multi-threaded lock processing mechanism in the preset key-value cache end, an efficient data collection process in high-concurrency data frequent processing scenarios is realized. And through the read-write penetration mode of the preset key-value cache end, the synchronous update of the cache data in the database is realized, ensuring the high consistency of the preset key-value cache end and the database data in high-concurrency scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art description. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. In the drawings:
[0046] Figure 1 A flowchart of a method for collecting high-concurrency process information of an MES system provided in an embodiment of this specification;
[0047] Figure 2 A schematic diagram of the architecture of a high-concurrency process information collection system of an MES system provided in an embodiment of this specification;
[0048] FIG3( a) is a schematic diagram of a process planning model provided in an embodiment of this specification;
[0049] FIG3( b ) is a schematic diagram of a work order model provided in an embodiment of this specification;
[0050] FIG3( c ) is a schematic diagram of a process collection model provided in an embodiment of this specification;
[0051] Figure 4A schematic diagram of the internal structure of a high-concurrency process information collection device for an MES system provided in an embodiment of this specification;
[0052] Figure 5 A schematic diagram of the structure of a high-concurrency process information collection device for an MES system provided in an embodiment of this specification. DETAILED DESCRIPTION
[0053] The embodiments of this specification provide a method, device and equipment for collecting high-concurrency process information of an MES system.
[0054] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0055] like Figure 1 The embodiment of this specification provides a flowchart of a method for collecting high-concurrency process information of an MES system. Figure 1 It can be seen that a method for collecting high-concurrency process information of an MES system specifically includes the following steps:
[0056] S101: Acquire multiple mathematical models of the MES system server, and divide and combine key business data of the MES system based on the mathematical models to construct cache data of the MES system server in real time during the production process.
[0057] With the deepening application of MES systems in large-scale intelligent manufacturing factories, the use scenarios of MES systems with multiple work orders and multiple users are limited by the high concurrency of process information collection involving frequent reading and writing and lock control operations on the back-end database, resulting in high processing pressure on the MES system database side and poor system application effect.
[0058] Especially for large-scale smart factories with high timeliness requirements, advanced information technology is needed to solve the existing high-concurrency process information collection data processing blockage problem. Therefore, in order to achieve efficient collection of smart factory process information under the premise of meeting efficient data consistency, the embodiment of this specification first obtains the following Figure 2The device shown has multiple mathematical models of the MES system server, so that the key business data of the MES system is divided and combined based on the mathematical model to build the cache data of the MES system server in the production process in real time. That is to say, in the embodiment of this specification, the S system high-concurrency process information collection business scenario is used as an opportunity to extract the key data involved in high-concurrency data processing, and manage the key data based on the mathematical model. Specifically, multiple mathematical models of the MES system server are obtained, and the key business data of the MES system is divided and combined based on the mathematical model to build the cache data of the MES system server in the production process in real time, which specifically includes:
[0059] Obtain the key business data of the current process on the MES system server, and obtain the business characteristics of each key business data and the current data structure and pre-data structure of each key business; wherein, it should be noted that the key business data includes: sequence plan, serial number information, work order team or equipment, and process collection data. Then, according to the business characteristics of each key business data, determine the mathematical modeling structure of the current data structure and the pre-data structure, and use the mathematical modeling structure as the mathematical model of the MES system server. Among them, it should be noted that the mathematical model includes: the process planning model shown in Figure 3 (a), the work order model shown in Figure 3 (b), and the process collection model shown in Figure 3 (c). Then, according to the obtained mathematical model, the key business data is combined and divided to obtain the cache data of the MES system server; wherein, the cache data includes: process planning data, work order data, and process collection data.
[0060] S102: Send the cache data to the preset key-value pair cache end of the MES system to determine the key value of each cache data based on the cache pool corresponding to each mathematical model in the preset key-value pair cache end; wherein the cache pool includes: a process plan cache pool and a work order cache pool.
[0061] Since traditional applications and database processing methods can no longer meet the data processing efficiency of the MES system in high-concurrency scenarios, in order to improve the high throughput and efficient lock processing of data collection on the MES system server side, and to ensure that the MES system can operate efficiently in high-concurrency process information collection scenarios. In the embodiment of this specification, the cache data determined in the above step S101 is sent to the preset key-value pair cache end of the MES system. It should be noted that the preset key-value pair cache end is the Redis cache end. Then, in order to be able to use the read and write penetration of the preset key-value pair cache end, the embodiment of this specification also determines the key value of each cache data based on the cache pool corresponding to each of the mathematical models in the preset key-value pair cache end. Among them, Figure 2The cache pools shown include: process plan cache pool and work order cache pool. In addition, it should be noted that when writing cache data to the preset key-value pair cache end, the preset key-value pair cache end Redis write-through is used to synchronize to the database, and the Hash data type is used for storage, and the Value is encoded in Base64, and the original file is in Json format.
[0062] Specifically, in one or more embodiments of the present specification, the cache data is sent to a preset key-value pair cache end of the MES system, so as to determine the key value of each cache data based on a cache pool corresponding to each of the mathematical models in the preset key-value pair cache end, specifically including the following steps:
[0063] First, based on the mathematical model corresponding to the cache data, determine the cache pool corresponding to the cache data to query whether the corresponding cache pool has the cache data. If the cache data exists, the corresponding data in the corresponding cache pool is updated based on the cache data. If yes, the cache data is sent to the corresponding cache pool, and the cache data is stored and managed based on the corresponding cache pool, and the key value corresponding to each cache data is determined, so that this Key value can be used as the only basis for cache retrieval. After determining that there is no corresponding data in the cache end of the preset key value pair based on the Key value, the database read operation is performed, which realizes the relief of the processing pressure on the database end of the MES system and improves the application effect of the MES system.
[0064] Further, in one or more embodiments of the present specification, after the cache data is sent to the preset key-value pair cache end of the MES system to determine the key value of each cache data based on the cache pool corresponding to each mathematical model in the preset key-value pair cache end, the method further includes:
[0065] Based on the read and write frequency of each cache data, the main cache data in each corresponding cache pool is determined, so that the main cache data is stored in the cache memory corresponding to each corresponding cache pool. Then, according to the read and write penetration mode of the preset key-value pair cache end, the main cache data in the cache memory is synchronously updated to the preset database of the MES system, making full use of the read and write penetration mode in the Redis cache active update strategy to realize the synchronous update of the cache data in the database.
[0066] S103: Read the work order cache data in the work order cache pool based on the key value to determine the process collection data of the MES system.
[0067] Based on the above steps, the key value is set after the combination and division of the process and serial number, the process and serial number and the team, the material and serial number and the process is realized based on the mathematical model, so as to achieve the effect of data management of the MES system based on the key-value pair method. Then, in order to obtain the process collection data of the MES system, the work order cache data in the work order cache pool is read based on the key value in the embodiment of this specification, that is, the combination data of the sequence and serial number and the team, so as to generate relevant process collection data according to the data. If the cache time of the work order cache data expires during the reading process, the data in the database is penetrated and read based on the preset key value pair cache end. Specifically, in one or more embodiments of this specification, the work order cache data in the work order cache pool is read based on the key value to determine the process collection data of the MES system, which specifically includes the following processes:
[0068] Read the work order cache data in the work order cache pool according to the key value. The work order cache data is based on process data, serial number data and team data, and then extract the data corresponding to the current process status in the work order cache data to determine the process collection data of the MES system; it should be noted that the process collection data includes: operation information, inspection information, supporting information, equipment operation parameter information, environmental information, energy consumption information, etc.
[0069] S104: Send the process collection data to the process collection cache data pool of the preset key-value pair cache end, and control the write-back thread of the process collection data based on the distributed lock of the preset key-value pair cache end to realize data update of the process plan cache pool and the work order cache pool.
[0070] After the process data including operation information, inspection information, supporting information, equipment operation parameter information, environmental information, energy consumption information, etc. are obtained in the above step S103, it is written into Figure 2The process collection cache data pool of the preset key-value pair cache end is shown, and based on the read-write penetration mode of the preset key-value pair cache end, the process collection data is synchronously written into the preset database of the MES system. At the same time, in order to solve the problem of data caching in high-concurrency scenarios, the distributed lock of the preset key-value pair cache end is used to control the write-back thread of the process collection data, so as to realize the data update of the process plan cache pool and the work order cache pool. Specifically, in the embodiment of this specification, for the scenario of multi-threaded information collection and feedback of multiple equipment and personnel in a unified team, the process collection data corresponding to each write-back thread is first obtained to obtain multiple parallel write-back threads corresponding to the same process collection data; based on the distributed lock of the preset key-value pair cache end, the parallel write-back threads are thread-locked to realize the orderly update of the process plan cache pool and the work order cache pool; wherein, it can be understood that the distributed lock is a distributed lock of the Redisson watchdog, and by entrusting the inter-thread lock processing mechanism to the distributed lock of the Redission watchdog in Redis, the automatic renewal of the distributed lock is realized, and the flexibility and reliability of multi-threaded processing are guaranteed.
[0071] Furthermore, in one or more embodiments of the present specification, after the process collection data is sent to the process collection cache data pool of the preset key-value pair cache end, it also includes the process of process information collection data application, that is, the process collection cache data pool can be used to perform statistical analysis on the process collection data to obtain statistical results. Then, the process collection data and the statistical results are packaged to obtain the corresponding data packet, so that the corresponding data packet can be obtained regularly, the production mechanism of the MES system is updated, and a regular cleaning mechanism is implemented to ensure cache stability.
[0072] like Figure 4 As shown, the embodiment of this specification provides a schematic diagram of the internal structure of a high-concurrency process information collection device of an MES system. Figure 4 It can be seen that in one or more embodiments of this specification, a high-concurrency process information collection device for an MES system includes:
[0073] The construction unit 401 is used to obtain multiple mathematical models of the MES system server, and divide and combine the key business data of the MES system based on the mathematical models to construct the cache data of the MES system server in the production process in real time;
[0074] The cache unit 402 is used to send the cache data to the preset key-value pair cache end of the MES system, so as to determine the key value of each cache data based on the cache pool corresponding to each mathematical model in the preset key-value pair cache end; wherein the cache pool includes: a process plan cache pool and a work order cache pool;
[0075] A determination unit 403 is used to read the cache data in the work order cache pool based on the key value to determine the process collection data of the MES system;
[0076] The sending unit 404 is used to send the process collection data to the process collection cache data pool of the preset key-value pair cache end, and control the write-back thread of the process collection data based on the distributed lock of the preset key-value pair cache end to realize the data update of the process plan cache pool and the work order cache pool.
[0077] like Figure 5 As shown, the embodiment of this specification provides a structural diagram of a high-concurrency process information collection device of an MES system. Figure 5 It can be seen that a high-concurrency process information collection device of an MES system includes:
[0078] at least one processor; and,
[0079] a memory communicatively connected to the at least one processor; wherein,
[0080] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform any of the above methods.
[0081] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0082] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0083] The above description is only one or more embodiments of this specification and is not intended to limit this specification. For those skilled in the art, one or more embodiments of this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of one or more embodiments of this specification shall be included in the scope of the claims of this specification.
Claims
1. A method for collecting high-concurrency process information of an MES system, characterized in that: The method comprises: Acquire multiple mathematical models of the MES system server, and divide and combine key business data of the MES system based on the mathematical models to construct cache data of the MES system server in real time during the production process; Send the cache data to the preset key-value pair cache end of the MES system to determine the key value of each cache data based on the cache pool corresponding to each mathematical model in the preset key-value pair cache end; wherein the cache pool includes: a process plan cache pool and a work order cache pool; Read the work order cache data in the work order cache pool based on the key value to determine the process collection data of the MES system; The process collection data is sent to the process collection cache data pool of the preset key-value pair cache end, and the write-back thread of the process collection data is controlled based on the distributed lock of the preset key-value pair cache end to realize the data update of the process plan cache pool and the work order cache pool; The method of obtaining multiple mathematical models of the MES system server and dividing and combining the key business data of the MES system based on the mathematical models to construct cache data of the MES system server in the production process in real time specifically includes: Obtain the key business data of the current process on the MES system server, and obtain the business characteristics of each of the key business data and the current data structure and pre-data structure of each of the key businesses; wherein the key business data includes: sequence plan, serial number information, work order team or equipment, and process collection data; Based on the business characteristics of each of the key business data, determine the mathematical modeling structure of the current data structure and the front-end data structure, and use the mathematical modeling structure as the mathematical model of the MES system server; wherein the mathematical model includes: a process planning model, a work order model, and a process collection model; The key business data are combined and divided based on the mathematical model to obtain the cache data of the MES system server; wherein the cache data includes: process planning data, work order data, and process collection data.
2. The method for collecting high-concurrency process information of an MES system according to claim 1, characterized in that: Sending the cache data to a preset key-value pair cache end of the MES system to determine the key value of each cache data based on a cache pool corresponding to each mathematical model in the preset key-value pair cache end, specifically includes: Based on the mathematical model corresponding to the cache data, determining a cache pool corresponding to the cache data, so as to query whether the corresponding cache pool has the cache data; If yes, updating the corresponding data in the corresponding cache pool based on the cache data; If not, the cache data is sent to the corresponding cache pool, and the cache data is stored and managed based on the corresponding cache pool, and the key value corresponding to each cache data is determined.
3. The method for collecting high-concurrency process information of an MES system according to claim 1, characterized in that: After sending the cache data to a preset key-value pair cache end of the MES system to determine the key value of each cache data based on a cache pool corresponding to each mathematical model in the preset key-value pair cache end, the method further includes: Determine the main cache data in each corresponding cache pool based on the read and write frequency of each cache data; storing the main cache data in the high-speed cache memory corresponding to each of the corresponding cache pools; Based on the read-write penetration mode of the preset key-value pair cache end, the main cache data in the cache memory is synchronously updated to the preset database of the MES system; wherein the preset key-value pair cache end is a Redis cache end.
4. The method for collecting high-concurrency process information of an MES system according to claim 1, characterized in that: Reading the work order cache data in the work order cache pool based on the key value to determine the process collection data of the MES system specifically includes: Reading the work order cache data in the work order cache pool based on the key value; wherein the work order cache data is composed of process data, serial number data and team data; Extract the data corresponding to the current process status in the work order cache data to determine the process collection data of the MES system; wherein the process collection data includes: operation information, inspection information, supporting information, equipment operation parameter information, environmental information, and energy consumption information.
5. The method for collecting high-concurrency process information of an MES system according to claim 1, characterized in that: After sending the process collection data to the process collection cache data pool of the preset key-value pair cache end, the method further includes: Based on the read-write penetration mode of the preset key-value pair cache end, the process collection data is synchronously written into the preset database of the MES system.
6. The method for collecting high-concurrency process information of an MES system according to claim 1, characterized in that: The distributed lock of the cache end based on the preset key value is used to control the write-back thread of the process collection data to realize the data update of the process plan cache pool and the work order cache pool, specifically including: Acquire the process collection data corresponding to each of the write-back threads to obtain multiple parallel write-back threads corresponding to the same process collection data; The parallel write-back thread is thread locked based on the distributed lock of the preset key-value pair cache end to achieve orderly update of the process plan cache pool and the work order cache pool; wherein the distributed lock is a distributed lock of a Redisson watchdog.
7. The method for collecting high-concurrency process information of an MES system according to claim 1, characterized in that: After sending the process collection data to the process collection cache data pool of the preset key-value pair cache end, the method further includes: Performing statistical analysis on the process collection data based on the process collection cache data pool to obtain statistical results; The process collection data and the statistical results are packaged to obtain corresponding data packets, so as to obtain the corresponding data packets regularly and update the production mechanism of the MES system.
8. A high-concurrency process information collection device for an MES system, characterized in that: The device comprises: A construction unit, used to obtain multiple mathematical models of the MES system server, and divide and combine the key business data of the MES system based on the mathematical models, so as to construct cache data of the MES system server in real time during the production process; A cache unit, used to send the cache data to a preset key-value pair cache end of the MES system, so as to determine the key value of each cache data based on a cache pool corresponding to each mathematical model in the preset key-value pair cache end; wherein the cache pool includes: a process plan cache pool and a work order cache pool; A determination unit, configured to read cache data in the work order cache pool based on the key value, and determine process collection data of the MES system; A sending unit, used for sending the process collection data to the process collection cache data pool of the preset key-value pair cache end, and controlling the write-back thread of the process collection data based on the distributed lock of the preset key-value pair cache end, so as to realize the data update of the process plan cache pool and the work order cache pool; The method of obtaining multiple mathematical models of the MES system server and dividing and combining the key business data of the MES system based on the mathematical models to construct cache data of the MES system server in the production process in real time specifically includes: Obtain the key business data of the current process on the MES system server, and obtain the business characteristics of each of the key business data and the current data structure and pre-data structure of each of the key businesses; wherein the key business data includes: sequence plan, serial number information, work order team or equipment, and process collection data; Based on the business characteristics of each of the key business data, determine the mathematical modeling structure of the current data structure and the front-end data structure, and use the mathematical modeling structure as the mathematical model of the MES system server; wherein the mathematical model includes: a process planning model, a work order model, and a process collection model; The key business data are combined and divided based on the mathematical model to obtain the cache data of the MES system server; wherein the cache data includes: process planning data, work order data, and process collection data.
9. A high-concurrency process information collection device for an MES system, characterized in that: The device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the methods described in claims 1 to 7.
