A method and device for checking the coding of materials used in the production of a mould

By using coding rule data models and cross-system consistency verification, the problems of error-prone and inefficient material coding management in mold production have been solved, and automated verification of material codes and improved data reliability have been achieved.

CN120893391BActive Publication Date: 2026-04-24ZHONG SHU FU XIN ZHI NENG KE JI (SHANG HAI) YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHONG SHU FU XIN ZHI NENG KE JI (SHANG HAI) YOU XIAN GONG SI
Filing Date
2025-07-19
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

The existing material coding management in the mold production process is prone to errors, inefficient, and lacks linkage and traceability, especially in terms of multi-process collaboration and data chain closed loop.

Method used

The system is initialized using a coding rule data model. Material codes are scanned or manually entered, segmented parsing is performed, and the regularity matching degree is calculated. Combined with cross-system consistency verification, the SHA-256 algorithm is used to encrypt and store traceability records to achieve automated verification.

Benefits of technology

It improves the accuracy and efficiency of material code verification, reduces human error, ensures data consistency in MES, ERP, and WMS, and supports rapid identification of anomalies and tracing the source of problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120893391B_ABST
    Figure CN120893391B_ABST
Patent Text Reader

Abstract

The application relates to a material coding verification method and device for a mold production process, and relates to the technical field of material coding verification.The verification method comprises the following steps: S1. Coding rule initialization: initializing the coding rules of various materials through a coding rule data model; S2. Material coding input; S3. Coding segmentation analysis; S4. Rule matching verification: calculating the regular matching degree of each candidate segment, and judging whether the coding format is legal according to the regular matching degree; S5. Cross-system consistency verification: performing verification based on the calculation of a consistency verification model; S6. Verification result processing: according to the coding format legality and the cross-system consistency result, performing release, abnormal prompt or blocking operation; the application can automatically verify, realizes accurate matching of coding rules based on a mathematical model and formula, reduces the human error rate, supports dynamic rule configuration, and adapts to the coding requirements of different product structures through a parameterized rule model R.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of material coding verification technology, and in particular to a method and apparatus for verifying the codes of various materials in the mold production process. Background Technology

[0002] In existing mold production processes, material coding management is typically carried out manually or through simple system input methods, such as using Excel spreadsheets or basic ERP systems for information tracking. These codes are often entered and compared manually, which presents the following problems:

[0003] Error-prone: Because mold production involves a variety of materials, and the coding structure of each type of material is complex, manual input is prone to errors.

[0004] Low efficiency: When materials enter the next process (such as processing or warehousing), the codes need to be compared one by one, which wastes a lot of manual time;

[0005] Unable to link and trace: Coding errors may lead to mixed or incorrect materials in subsequent processes, affecting product quality and making it difficult to quickly trace the source of the problem;

[0006] Although some MES systems support basic material management functions, they do not go deep into material coding rule recognition and automatic verification, especially in areas such as multi-process collaboration, data chain closure, and intelligent production.

[0007] Therefore, in response to the aforementioned technical problems, a method and device for verifying the codes of various materials during the mold production process is proposed. Summary of the Invention

[0008] To address the aforementioned issues, this application provides a method and apparatus for verifying material codes during mold production, employing the following technical solution:

[0009] on the one hand

[0010] A method for verifying the codes of various materials during mold production, the verification method comprising the following steps:

[0011] S1. Coding rule initialization: Initialize the coding rules for various materials by constructing coding rules through the coding rule data model;

[0012] S2. Material Code Input: Operators scan the material code using a scanning device or manually enter it to obtain the material code to be verified and the input timestamp. ;

[0013] S3. Code Segmentation and Parsing: Construct a code parsing function to segment the material code and generate a candidate segment set;

[0014] S4. Rule matching verification: Calculate the regular expression matching degree for each candidate segment, and determine whether the encoding format is valid based on the regular expression matching degree;

[0015] S5. Cross-system consistency verification: Obtain the associated code data of the material in the MES and ERP systems, and perform verification based on the consistency verification model;

[0016] S6. Verification Result Processing: Based on the legality of the encoding format and the cross-system consistency results, perform release, exception prompt or blocking operations, and encrypt the verification data using the SHA-256 algorithm and store it to generate traceability records according to the hash chain structure.

[0017] By adopting the above technical solutions, the problems of low efficiency, poor accuracy, and difficulty in traceability of material coding verification in existing mold production can be solved, thereby improving the level of automation and data reliability.

[0018] Furthermore, the coding rule data model in S1 is used to define material coding rules, specifically as follows: ,in, For a set of material types, This corresponds to different material types in the mold production process; For the set of coded segments, Each encoded segment corresponds to a specific semantic; This is the code segment length constraint function. Define the character length range for each segment; For the positional constraints of the encoded segments, Representation segment and The order constraints; For the constraints of the encoded segment content, Use regular expressions to define the valid patterns of this character segment, and the regular expressions include combinations of numbers and letters.

[0019] By adopting the above technical solution, taking the mold frame coding rule as an example, its formal model can be expressed as: ,in, For factory code segment, , ; For mold type segment, , ; For size range, , ; For version segment, , ;

[0020] Through the model By converting various material coding rules (such as mold frames, cavities, etc.) into structured data, the coding chaos caused by fuzzy rules in traditional Excel management is avoided, making the coding rules calculable and traceable.

[0021] Furthermore, in S3, the material code is divided into multiple candidate segments according to the position constraint relationship P, and the material code is divided into multiple candidate segments L according to the position constraint relationship P;

[0022] The encoding parsing function is ,in, The encoding to be parsed For a rule-based model, the output parsing result vector is: Each component The parsed value of the corresponding encoded segment.

[0023] Furthermore, the encoding parsing function executes the following strategy during the parsing process:

[0024] Segmentation: Based on the order defined by the positional constraint relationship P, segment... And divided into m candidate segments ,satisfy: ,and .

[0025] Furthermore, the regular matching degree calculation strategy in S4 is as follows: for each candidate segment Calculate its relationship with Matching degree The regular expression matching algorithm is used, and the formula is: ,in, The number of characters that were successfully matched, when When the candidate segment encoding format is deemed valid, if the matching degree of all candidate segments is... If all values ​​are 1, then the encoding format of all candidate segments is valid, and proceed to the next step; otherwise, output the location of the erroneous segment and... Rules and regulations.

[0026] By adopting the above technical solutions, different mold projects can reuse the coding rules of the same type of material (such as the mold frame coding rules of automotive molds and electronic molds can share the basic segment), reducing the workload of repetitive configuration;

[0027] The long code is split into independent semantic segments (such as factory code segment and size segment) according to the S set. The length (L) and content (C) of each segment are checked separately. Compared with the traditional whole code check, the error location accuracy is improved from the whole code level to the segment level, which improves the efficiency of fault diagnosis.

[0028] Furthermore, the consistency verification model is as follows: ,in, For encoding matching rate, , To calculate the time difference between cross-system data, timestamp comparison is used: The consistency score is converted using an exponential decay function. ;

[0029] To score the integrity of the traceability chain, a blockchain hash chain structure is used. Derived through hash verification: ;

[0030] , , These are the weighting coefficients, and Dynamically configure according to business scenarios. This is the attenuation coefficient.

[0031] Furthermore, the cross-system consistency check is calculated based on the consistency check model. Value, when If cross-system consistency is not verified, a data synchronization error message will be displayed, and the time difference will be recorded. And the status of the traceability chain.

[0032] By adopting the above technical solution, through The formula accurately calculates segment matching degree, which greatly improves the detection rate of encoding format errors compared to manual comparison. It enables multi-system data linkage verification, which greatly improves the detection rate of cross-system data deviation compared to single-system verification, ensuring the consistency of MES, ERP, and WMS data.

[0033] Furthermore, in S6:

[0034] If the coding format is valid and consistent across systems, the system will automatically allow the material flow.

[0035] If the encoding is abnormal, the error type will be displayed in the prompt and blocking module output, and the flow will be blocked based on the configuration.

[0036] on the other hand

[0037] A device for verifying the coding of various materials during mold production, comprising:

[0038] Encoding rule library module: Used to maintain mathematical models based on encoding rules. The material coding rules, and the coding rule library module is also used to store verification data encrypted by the SHA-256 algorithm;

[0039] Parsing engine module: used to analyze positional constraints. Segment material codes, verify segment lengths, and calculate content constraints. The degree of matching;

[0040] Verification and comparison module: used to perform rule matching verification and cross-system consistency verification, the cross-system consistency verification being based on a consistency verification model. ;

[0041] The prompt and block module is used to output abnormal prompts and control material flow operations.

[0042] Interface module: Used to synchronize data with MES and ERP systems and obtain associated coded data and timestamps.

[0043] Compared with existing technologies, this method and device for verifying the codes of various materials in the mold production process is automated, and achieves accurate matching of coding rules based on mathematical models and formulas, thereby reducing the human error rate.

[0044] By constructing coding rules and a consistency verification model, the automation and intelligence of coding verification have been realized, effectively solving the problems of low efficiency and error-proneness in traditional manual verification.

[0045] It can quickly identify abnormal codes, combine matching degree formulas and consistency verification models to achieve efficient verification response, and support log traceability;

[0046] Improving the consistency between information flow and material flow, a consistency verification model can reduce the data deviation rate of multiple systems. Attached Figure Description

[0047] Figure 1 This is a flowchart illustrating the method of this application;

[0048] Figure 2 This is a schematic diagram of the device of this application. Detailed Implementation

[0049] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0050] Example 1

[0051] The following is in conjunction with the appendix Figures 1-2 This application will be described in further detail below.

[0052] A method for verifying the codes of various materials during mold production, the verification method includes the following steps:

[0053] S1. Coding rule initialization: Initialize the coding rules for various materials by constructing coding rules through the coding rule data model;

[0054] The coding rule data model in S1 is used to define material coding rules, specifically: ,in, For a set of material types, This corresponds to different material types in the mold production process; For the set of coded segments, Each encoded segment corresponds to a specific semantic; This is the code segment length constraint function. Define the character length range for each segment; For the positional constraints of the encoded segments, Representation segment and The order constraints; For the constraints of the encoded segment content, Use regular expressions to define the valid patterns of this character segment, and the regular expressions include combinations of numbers and letters.

[0055] By adopting the above technical solution, taking the mold frame coding rule as an example, its formal model can be expressed as:

[0056] ,in, For factory code segment, , ; For mold type segment, , ; For size range, , ; For version segment, , ;

[0057] Through the model By converting various material coding rules (such as mold frames, cavities, etc.) into structured data, the coding chaos caused by fuzzy rules in traditional Excel management is avoided, making the coding rules calculable and traceable.

[0058] S2. Material Code Input: Operators scan the material code using a scanning device or manually enter it to obtain the material code to be verified and the input timestamp. ;

[0059] S3. Code Segmentation and Parsing: Construct a code parsing function to segment the material code and generate a candidate segment set;

[0060] The material code is divided into multiple candidate segments L based on the location constraint relationship P.

[0061] The encoding parsing function is ,in, The encoding to be parsed For a rule-based model, the output parsing result vector is: Each component The parsed value of the corresponding encoded segment.

[0062] The encoding parsing function executes the following strategy during the parsing process:

[0063] Segmentation: Based on the order defined by the positional constraint relationship P, segment... And divided into m candidate segments ,satisfy: ,and .

[0064] S4. Rule matching verification: Calculate the regular expression matching degree for each candidate segment, and determine whether the encoding format is valid based on the regular expression matching degree;

[0065] The regular expression matching degree calculation strategy is as follows: for each candidate segment Calculate its relationship with Matching degree The regular expression matching algorithm is used, and the formula is: ,in, The number of characters that were successfully matched, when When the candidate segment encoding format is deemed valid, if the matching degree of all candidate segments is... If all values ​​are 1, then the encoding format of all candidate segments is valid, and proceed to the next step; otherwise, output the location of the erroneous segment and... Rules and regulations.

[0066] By adopting the above technical solutions, different mold projects can reuse the coding rules of the same type of material (such as the mold frame coding rules of automotive molds and electronic molds can share the basic segment), reducing the workload of repetitive configuration;

[0067] The long code is split into independent semantic segments (such as factory code segment and size segment) according to the S set. Each segment is checked separately for length (L) and content (C). Compared with traditional whole code verification, the error location accuracy is improved from the whole code level to the segment level, which improves the efficiency of fault diagnosis.

[0068] S5. Cross-system consistency verification: Obtain the associated code data of the material in the MES and ERP systems, and perform verification based on the consistency verification model;

[0069] The consistency verification model is as follows: ,in, For encoding matching rate, , To calculate the time difference between cross-system data, timestamp comparison is used: The consistency score is converted using an exponential decay function. ;

[0070] To score the integrity of the traceability chain, a blockchain hash chain structure is used. Derived through hash verification: ;

[0071] , , These are the weighting coefficients, and Dynamically configure according to business scenarios. This is the attenuation coefficient.

[0072] Cross-system consistency verification is calculated based on the consistency verification model. Value, when , The system checks for consistency across systems based on a set threshold; otherwise, it issues a data synchronization error warning and records the time difference. And the status of the traceability chain.

[0073] By adopting the above technical solution, through The formula accurately calculates segment matching degree, which greatly improves the detection rate of encoding format errors compared to manual comparison. It enables multi-system data linkage verification, which greatly improves the detection rate of cross-system data deviation compared to single-system verification, ensuring the consistency of MES, ERP, and WMS data.

[0074] S6. Verification result processing: Based on the legality of the encoding format and the cross-system consistency results, perform release, abnormal prompt or blocking operations, and encrypt the verification data using the SHA-256 algorithm and store it to generate traceability records according to the hash chain structure;

[0075] If the coding format is valid and consistent across systems, the system will automatically allow the material flow.

[0076] If the encoding is abnormal, the error type will be displayed in the prompt and blocking module output, and the flow will be blocked based on the configuration.

[0077] By adopting the above technical solutions, the problems of low efficiency, poor accuracy, and difficulty in traceability of material coding verification in existing mold production can be solved, thereby improving the level of automation and data reliability.

[0078] Example 2

[0079] like Figure 2A device for verifying the coding of various materials during mold production, comprising:

[0080] Encoding rule library module: Used to maintain mathematical models based on encoding rules. The material coding rules, and the coding rule library module is also used to store verification data encrypted by the SHA-256 algorithm;

[0081] Parsing engine module: used to analyze positional constraints. Segment material codes, verify segment lengths, and calculate content constraints. The degree of matching;

[0082] Verification and Comparison Module: Used to perform rule matching verification and cross-system consistency verification. Cross-system consistency verification is based on a consistency verification model. ;

[0083] The prompt and block module is used to output abnormal prompts and control material flow operations.

[0084] Interface module: Used to synchronize data with MES and ERP systems and obtain associated coded data and timestamps.

[0085] The embodiments described in this specific implementation are preferred embodiments of this application and are not intended to limit the scope of protection of this application. Identical components are represented by the same reference numerals. Therefore, all equivalent changes made to the structure, shape, and principle of this application should be covered within the scope of protection of this application.

Claims

1. A method for verifying the codes of various materials during mold production, characterized in that, The verification method includes the following steps: S1. Coding rule initialization: Initialize the coding rules for various materials by constructing coding rules through the coding rule data model; S2. Material Code Input: Operators scan the material code using a scanning device or manually enter it to obtain the material code to be verified and the input timestamp. ; S3. Code Segmentation and Parsing: Construct a code parsing function to segment the material code and generate a candidate segment set; S4. Rule matching verification: Calculate the regular expression matching degree for each candidate segment, and determine whether the encoding format is valid based on the regular expression matching degree; S5. Cross-system consistency verification: Obtain the associated code data of the material in the MES and ERP systems, and perform verification based on the consistency verification model; The regular matching degree calculation strategy in S4 is as follows: for each candidate segment Calculate its relationship with Matching degree The regular expression matching algorithm is used, and the formula is: ,in, The number of characters that were successfully matched, when When the candidate segment's encoding format is deemed valid, if the matching degree of all candidate segments is... If all values ​​are 1, then the encoding format of all candidate segments is valid, and proceed to the next step; otherwise, output the location of the erroneous segment and... Rules and regulations Use regular expressions to define the valid patterns of this character segment, and the regular expressions include combinations of numbers and letters; The consistency verification model is as follows: ,in, For encoding matching rate, , To calculate the time difference between cross-system data, timestamp comparison is used: The consistency score is converted using an exponential decay function. ; To score the integrity of the traceability chain, a blockchain hash chain structure is used. Derived through hash verification: ; , , These are the weighting coefficients, and Dynamically configure according to business scenarios. The attenuation coefficient; S6. Verification Result Processing: Based on the legality of the encoding format and the cross-system consistency results, perform release, exception prompt or blocking operations, and encrypt the verification data using the SHA-256 algorithm and store it to generate traceability records according to the hash chain structure.

2. The method for verifying material codes during mold production according to claim 1, characterized in that: The coding rule data model in S1 is used to define material coding rules, specifically: ,in, For a set of material types, This corresponds to different material types in the mold production process; For the set of coded segments, Each encoded segment corresponds to a specific semantic; This is the code segment length constraint function. Define the character length range for each segment; For the positional constraints of the encoded segments, Representation segment and The order constraints; These are constraints on the content of the encoded segment.

3. The method for verifying material codes during mold production according to claim 2, characterized in that: In S3, the material code is divided into multiple candidate segments according to the position constraint relationship P, and the material code is divided into multiple candidate segments L according to the position constraint relationship P; The encoding parsing function is ,in, The encoding to be parsed For a rule-based model, the output parsing result vector is: Each component The parsed value of the corresponding encoded segment.

4. The method for verifying material codes during mold production according to claim 3, characterized in that: The encoding parsing function executes the following strategy during the parsing process: Segmentation: Based on the order defined by the positional constraint relationship P, segment... And divided into m candidate segments ,satisfy: ,and .

5. The method for verifying material codes during mold production according to claim 4, characterized in that: The cross-system consistency check is calculated based on the consistency check model. Value, when If cross-system consistency is not verified, a data synchronization error message will be displayed, and the time difference will be recorded. And the status of the traceability chain.

6. The method for verifying material codes during mold production according to claim 5, characterized in that: In S6: If the coding format is valid and consistent across systems, the system will automatically allow the material flow. If the encoding is abnormal, the error type will be displayed in the prompt and blocking module output, and the flow will be blocked based on the configuration.

7. A device for verifying material codes during mold production, applied to the method for verifying material codes during mold production as described in any one of claims 1-6, characterized in that, include: Encoding rule library module: Used to maintain mathematical models based on encoding rules. The material coding rules, and the coding rule library module is also used to store verification data encrypted by the SHA-256 algorithm; Parsing engine module: used to analyze positional constraints. Segment material codes, verify segment lengths, and calculate content constraints. The degree of matching; Verification and comparison module: used to perform rule matching verification and cross-system consistency verification, the cross-system consistency verification being based on a consistency verification model. ; The prompt and block module is used to output abnormal prompts and control material flow operations. Interface module: Used to synchronize data with MES and ERP systems and obtain associated coded data and timestamps.

Citation Information

Patent Citations

  • Industrial element identification coding method

    CN113672230A

  • Code material configuration abnormity identification method and system, electronic equipment and storage medium

    CN118211600A