Method and device for verifying codes of materials in mold production process

By adopting a coding rule data model and cross-system consistency verification during the mold production process, the problems of error-proneness and low efficiency in material coding management have been solved, and the automation of material coding and data consistency verification have been realized.

CN120893391AActive Publication Date: 2025-11-04ZHONG SHU FU XIN ZHI NENG KE JI (SHANG HAI) YOU XIAN GONG SI
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510997673.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-19
Publication Date
2025-11-04
Estimated Expiration
2045-07-19

AI Technical Summary

Technical Problem

In the mold production process, material coding management is prone to errors, inefficient, and lacks linkage and traceability. Existing MES systems have shortcomings in material coding rule recognition and automatic verification.

Method used

Material coding rules are initialized using a coding rule data model. Material codes are scanned or manually entered, parsed in segments, and regularity matching is calculated. Combined with cross-system consistency verification, traceability records are encrypted and stored using the SHA-256 algorithm.

Benefits of technology

It improved the accuracy and efficiency of material code verification, realized the automation and intelligence of coding rules, reduced the human error rate, and ensured the data consistency of MES and ERP systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120893391A_ABST
    Figure CN120893391A_ABST
Patent Text Reader

Abstract

The invention relates to a verification method and device for each material code in a mold production process, and relates to the technical field of material code verification, the verification method comprises the following steps: S1, coding rule initialization: constructing coding rules of various materials through a coding rule data model for initialization; s2, inputting material codes; s3, the codes are analyzed in a segmented mode; s4, rule matching verification: calculating a regular matching degree for each candidate segment, and judging whether a coding format is legal or not according to the regular matching degree; s5, performing cross-system consistency verification: performing calculation and verification based on the consistency model; s6, verification result processing: according to the legality of the coding format and the cross-system consistency result, executing release, abnormity prompt or blocking operation; according to the invention, automatic verification can be realized, accurate matching of coding rules is realized based on a mathematical model and a formula, and the human error rate is reduced; dynamic rule configuration is supported, and coding requirements of different product structures are met through a parameterized rule model R.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of material coding verification, in particular to a material coding verification method and device for mold production process. BACKGROUND

[0002] In the existing mold production process, material coding management is usually performed by manual or simple system inputting, such as using Excel table, ERP primary system and the like to track information. These codes are often manually inputted and compared, which has the following problems: Error-prone: Since mold production involves multiple materials, the coding structure of each type of material is complex, and manual inputting is prone to errors; Low efficiency: When the material enters the next process (such as processing or warehousing), the codes need to be compared one by one, which wastes a lot of manual time; Unable to link and trace: coding errors may cause mixing or wrong materials in subsequent processes, affecting product quality, and it is difficult to quickly trace the source of the problem; Although some MES systems support basic material management functions, they do not go deep into material coding rule identification and automatic verification, especially in aspects such as multi-process flow collaboration, data chain closed loop, and production intelligence.

[0003] Therefore, in view of the above problems, a material coding verification method and device for mold production process are provided. SUMMARY

[0004] In order to improve the above problems, the present application provides a material coding verification method and device for mold production process, which adopts the following technical solution: One aspect A material coding verification method for mold production process, the verification method comprising the following steps: S1. Coding rule initialization: initializing the coding rules of various materials by constructing a coding rule data model; S2. Material coding input: an operator scans or manually inputs material coding through a scanning device to obtain the material coding to be verified and an input timestamp t input ; S3. Coding segmentation analysis: constructing a coding analysis function to segment and cut the material coding, and generating a set of selected segments; 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: obtaining the associated coding data of the material in the MES and ERP systems, and performing verification based on the consistency model; S6. Check result processing: according to the legality of the coding format and the cross-system consistency result, perform release, abnormal prompt or blocking operation, and store the check data through SHA-256 algorithm encryption and generate traceability record according to the hash chain structure.

[0005] By adopting the above technical scheme, the problems of low efficiency, poor accuracy and difficult traceability of material coding verification in existing mold production can be solved, and the automation level and data credibility are improved.

[0006] Further, the coding rule data model in S1 is used to define the material coding rule, specifically: R={T, S, L, P, C}, wherein T is a material type set, T={t1, t2,..., t n}, corresponding to different material types in the mold production process; S is a coding segment set, S={s1, s2,..., s n}, each coding segment corresponds to a specific semantic; L is a coding segment length constraint function, L(s i )=[min_len i ,max_len i ], defining the length range of each segment; P is a coding segment position constraint relationship, P(s i ,s j ) represents the order constraint of s i and s j ; C is a coding segment content constraint condition, C(s i ) uses a regular expression to define the legal pattern of the characters in this segment, and the regular expression includes a combination of numbers and letters.

[0007] By adopting the above technical scheme, taking the mold frame coding rule as an example, its formalized model can be expressed as: R mold =(t mold ,{s1,s2,s3,s4},L,P,C), wherein s1 is a factory code segment, L(s1)=[2,2], C(s1)=[A-Z]2; s2 is a mold type segment, L(s2)=[3,3], C(s2)=M[0-9]2; s3 is a size segment, L(s3)=[4,4], C(s3)=[0-9]4; s4 is a version segment, L(s4)=[1,1], C(s4)=[A-Z]; By converting various material coding rules (such as mold frames, cavities, etc.) into structured data through the model R={T, S, L, P, C}, the coding chaos caused by the ambiguity of traditional Excel management is avoided, and the coding rules are computable and traceable.

[0008] Further, the S3 splits the material code according to the position constraint relationship P into multiple candidate segments, and splits the material code according to the position constraint relationship P into multiple candidate segments L; The encoding analysis function is F(E, R), wherein E is the encoding to be analyzed, R is the rule model, and the output analysis result vector is V={v1, v2,..., v m} each component v i corresponds to the encoding segment analysis value.

[0009] Further, the encoding analysis function performs the following strategies during the analysis process: Segmentation: according to the order defined by the position constraint relationship P, E is divided into m candidate segments E1, E2,..., Em. m , satisfying: And len(E i )∈L(s i ).

[0010] Further, the S4 regular matching degree calculation strategy is: for each candidate segment E i , calculate its matching degree Match(E i , C(s i )) with C(s i ), using regular expression matching algorithm, the formula is: Where count match is the number of characters matched successfully, when Match(E i , C(s i ))=1, it is determined that the candidate segment encoding format is legal, if the matching degree Match value of all candidate segments is 1, the encoding format of all candidate segments is legal, then go to the next step; otherwise, output the error segment position and C(s i ) rule description.

[0011] By using the above technical scheme, different mold projects can reuse the same type of material code rules (such as the mold frame code rules of automobile molds and electronic molds can share the basic segment), reducing the repeated configuration workload; Split the long code into independent semantic segments according to the S set (such as the factory code segment, the size segment), and check the length (L) and content (C) of each segment separately. Compared with traditional whole code checking, the error positioning accuracy is improved from whole code level to segment level, improving the fault troubleshooting efficiency.

[0012] Further, the S5 cross-system consistency verification model is: Consistency=α×Match_rate+β×Time_diff+γ×Trace_score, wherein Match_rate is the encoding matching rate, Time_diff is the cross-system data time difference, calculated by timestamp comparison: Time_diff = |t mes -t erp |, converted into consistency score by exponential decay function: Score time =e -δ×Time_diff ,; Trace_score is the trace chain integrity score, based on the blockchain hash chain structure H = {h1, h2,..., h n}, derived by hash verification: α, β, γ are weight coefficients, and α + β + γ = 1, dynamically configured according to business scenarios, and δ is the decay coefficient.

[0013] Further, the cross-system consistency verification method in S5 is: based on the cross-system consistency verification model, the Consistency value is calculated, when Consistency > θ, it is determined that the cross-system is consistent, otherwise, the data synchronization exception prompt is given, and the time difference Time_diff and the trace chain state are recorded.

[0014] By using the above technical solution, the segment matching degree is accurately calculated by formula, compared with manual comparison, the error detection rate of coding format is greatly improved, based on Consistency = α × Match_rate + β × Time_diff + γ × Trace_score, the multi-system data linkage verification is realized, compared with single system verification, the cross-system data deviation detection rate is greatly improved, and the consistency of MES, ERP and WMS data is ensured.

[0015] Further, in S6: If the coding format is legal and the cross-system is consistent, the system automatically releases the material flow; If the coding is abnormal, the error type is prompted and blocked by the module, and whether to block the flow is determined according to the configuration.

[0016] On the other hand A material coding verification device for mold production process, comprising: A coding rule library module for maintaining material coding rules based on a coding rule mathematical model R = {T, S, L, P, C}, and the coding rule library module is also used to store verification data encrypted by SHA-256 algorithm; An analysis engine module for splitting material coding according to position constraint relationship P, verifying segment length and calculating matching degree with content constraint condition C; The check comparison module is used for performing rule matching check and cross-system consistency check based on a cross-system consistency check model Consistency = a x Match_rate + b x Time_diff + g x Trace_score. The prompt and blocking module is used for outputting abnormal prompt information and controlling material flow operation. The interface module is used for data synchronization with the MES and ERP systems, obtaining associated code data and time stamps.

[0017] Compared with the prior art, the material code check method and device for the mold production process automatically check, accurately match the code rules based on mathematical models and formulas, and reduce the human error rate. By constructing the code rule and the cross-system consistency model, the automation and intelligentization of the code check are realized, and the problems of low efficiency and easy error of traditional manual check are effectively solved. The abnormal code is quickly identified, the matching degree formula and the consistency model are combined to realize efficient check response, and log tracing is supported; the consistency of information flow and material flow is improved, and the cross-system consistency model can reduce the data deviation rate of multiple systems. BRIEF DESCRIPTION OF DRAWINGS

[0018] Fig. 1 is a method flowchart of the present application; Fig. 2 is a structural schematic diagram of the device of the present application. DETAILED DESCRIPTION

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

[0020] Embodiment 1 The following will be combined with the drawings Figs. 1-2 The present application will be further described in detail.

[0021] A material code check method for a mold production process, the check method comprising the following steps: S1. Code rule initialization: initializing the code rules of various materials by constructing a code rule data model; The code rule data model in S1 is used to define the material code rule, specifically: R = {T, S, L, P, C}, wherein T is a material type set, T = {t1, t2,..., t n}, corresponding to different material types in the mold production process; S is a set of encoding segments, S = {s1, s2,..., s n} each encoding segment corresponds to a specific semantic; L is an encoding segment length constraint function, L(s i ) = [min_len i , max_len i ], defining the length range of each segment character; P is an encoding segment position constraint relationship, P(s i , s j ) represents the order constraint of s i and s j ; C is the encoding segment content constraint condition, C(s i ) uses regular expressions to define the legal pattern of the segment characters, and the regular expression includes the combination pattern of numbers and letters.

[0022] By adopting the above technical scheme, taking the mold frame encoding rule as an example, its formal model can be expressed as: R mold = (t mold , {s1, s2, s3, s4}, L, P, C), wherein s1 is a factory code segment, L(s1) = [2, 2], C(s1) = [A-Z]2; s2 is a mold type segment, L(s2) = [3, 3], C(s2) = M[0-9]2; s3 is a size segment, L(s3) = [4, 4], C(s3) = [0-9]4; s4 is a version segment, L(s4) = [1, 1], C(s4) = [A-Z]; By the model R = {T, S, L, P, C}, various material coding rules (such as mold frames, cavities, etc.) are converted into structured data, avoiding the coding chaos caused by the ambiguity of traditional Excel management, making the coding rules computable and traceable.

[0023] S2. Material coding input: the operator scans or manually enters the material coding through the scanning device, obtains the material coding to be verified and the input timestamp t input ; S3. Encoding segment analysis: build an encoding analysis function to segment the material coding, and generate a set of selected segments; According to the position constraint relationship P, the material coding is divided into a plurality of candidate segments, and according to the position constraint relationship P, the material coding is divided into a plurality of candidate segments L. The encoding analysis function is F(E, R), wherein E is the encoding to be analyzed, R is the rule model, and the output analysis result vector is V = {v1, v2,..., v m}, each component v i corresponds to the encoding segment analysis value.

[0024] The encoding analysis function executes the following strategies in the analysis process: Segmentation: according to the order defined by the position constraint relationship P, E is divided into m candidate segments E1, E2,..., Em m , satisfying: and len(E i ) e L(s i ).

[0025] S4. Regular matching verification: calculate the regular matching degree for each candidate segment, and judge whether the coding format is legal according to the regular matching degree; The regular matching degree calculation strategy is: for each candidate segment E i , calculate its matching degree Match(E i , C(s i )) with C(s i ), using regular expression matching algorithm, the formula is: Where count match is the number of characters matched successfully, when Match(E i , C(s i )) = 1, it is determined that the coding format of the candidate segment is legal, if the matching degree Match value of all candidate segments is 1, the coding format of all candidate segments is legal, and the next step is entered; otherwise, output the error segment position and C(s i ) rule description.

[0026] By using the above technical scheme, different mold projects can reuse the coding rules of the same type of material (such as the mold frame coding rules of automobile molds and electronic molds can share the basic segment), reducing the repeated configuration workload; Split the long coding into independent semantic segments (such as factory code segment, size segment) according to the S set, and check the length (L) and content (C) of each segment separately. Compared with traditional whole code verification, the error positioning accuracy is improved from whole code level to segment level, improving the fault troubleshooting efficiency; S5. Cross-system consistency verification: obtain the associated coding data of the material in the MES and ERP systems, and perform calculation and verification based on the consistency model; The cross-system consistency verification model is: Consistency = a x Match_rate + b x Time_diff + g x Trace_score, wherein Match_rate is the coding matching rate, Time_diff is the cross-system data time difference, which is calculated by comparing the time stamps: Time_diff = |t mes -t erp |, and an exponential decay function is used to convert it into a consistency score: Score time = e -δ×Time_diff ; Trace_score is a trace chain integrity score, based on the blockchain hash chain structure H={h1, h2,..., h n}, derived by hash check: α, β, γ are weight coefficients, and α+β+γ=1, dynamically configured according to the business scenario, and δ is the attenuation coefficient.

[0027] The cross-system consistency verification method is: based on the cross-system consistency verification model to calculate the Consistency value, when Consistency>θ, θ is the set threshold, it is judged that the cross-system is consistent, otherwise, the data synchronization exception prompt is given, and the time difference Time_diff and the trace chain state are recorded.

[0028] By adopting the above technical scheme, the segment matching degree is accurately calculated by the formula, the coding format error detection rate is greatly improved compared with manual comparison, the multi-system data linkage verification is realized based on Consistency=α×Match_rate+β×Time_diff+γ×Trace_score, and the cross-system data deviation detection rate is greatly improved compared with single system verification, and the consistency of MES, ERP and WMS data is ensured.

[0029] S6. Verification result processing: according to the coding format legality and cross-system consistency result, execute release, abnormal prompt or block operation, and store the verification data by SHA-256 algorithm encryption and generate trace record according to the hash chain structure; if the coding format is legal and the cross-system is consistent, the system automatically releases the material circulation; If the coding is abnormal, the error type is prompted and blocked by the module, and whether to block the circulation is decided according to the configuration.

[0030] By adopting the above technical scheme, the problems of low material coding verification efficiency, poor accuracy and difficult traceability in the existing mold production can be solved, and the automation level and data reliability are improved.

[0031] Embodiment 2 As Fig. 2 A device for verifying the coding of each material in the mold production process, comprising: The coding rule library module is used for maintaining the material coding rule based on the coding rule mathematical model R={T, S, L, P, C}, and the coding rule library module is also used for storing the verification data encrypted by SHA-256 algorithm; The parsing engine module is used for cutting the material coding according to the position constraint relationship P, verifying the segment length and calculating the matching degree with the content constraint condition C; ​The check comparison module is used for performing rule matching check and cross-system consistency check, and the cross-system consistency check is based on a cross-system consistency check model Consistency = a x Match_rate + b x Time_diff + g x Trace_score. The prompt and blocking module is used for outputting abnormal prompt information and controlling material flow operation. The interface module is used for synchronizing data with the MES and ERP systems, and obtaining associated code data and time stamps.

[0032] The embodiments of the specific implementation are the preferred embodiments of the present application, and are not intended to limit the protection scope of the present application, wherein the same parts are denoted by the same reference numerals. Therefore, any equivalent changes made according to the structure, shape and principle of the present application should be covered within the protection scope of the present 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 t. input ; S3. Code Segmentation and Parsing: Construct a code parsing function to segment the material code and generate a set of selected segments; 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 model; 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: R = {T, S, L, P, C}, where... T is the set of material types, T = {t1, t2, ..., t} n }, corresponding to different material types in the mold production process; S is the set of coded segments, S={s1,s2,...,s n Each coding segment corresponds to a specific semantic; L is the coding segment length constraint function, L(s) i ) = [min_len i ,max_len i ], defines the character length range for each segment; P represents the positional constraint relationship of the encoded segment, P(s i ,s j ) indicates segment s i With s j The order constraint; C is the content constraint of the encoded segment, C(s) i The valid pattern of this segment of characters is defined using regular expressions, and the regular expressions include combinations of numbers and letters.

3. The method for verifying material codes during mold production according to claim 2, characterized in that: In step 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 F(E,R), where E is the encoding to be parsed, R is the rule model, and the output parsing result vector is V={v1,v2,...,v... m }, each component v i 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, E is divided into m candidate segments E1, E2, ..., E m ,satisfy: And len(E i )∈L(s i ).

5. The method for verifying material codes during mold production according to claim 4, characterized in that: The regular matching degree calculation strategy in S4 is as follows: for each candidate segment E i Calculate its relationship with C(s) i Match(E) i ,C(s i The algorithm uses regular expressions for matching, and the formula is: Where, count match The number of characters that were successfully matched when Match(E) i ,C(s i When )) = 1, the candidate segment encoding format is determined to be valid. If the Match value of all candidate segments is 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 C(s). i Rules and regulations.

6. The method for verifying material codes during mold production according to claim 5, characterized in that: The S5 cross-system consistency verification model is: Consistency = α × Match_rate + β × Time_diff + γ × Trace_score, where Match_rate is the encoding matching rate. Time_diff represents the time difference between data across systems, calculated by comparing timestamps: Time_diff = |t mes -t erp | The consistency score is converted using an exponential decay function: Score time =e -δ×Time_diff ; Trace_score is a score for the integrity of the traceability chain, based on the blockchain hash chain structure H={h1,h2,...,h n }, derived through hash verification: α, β, and γ are weighting coefficients, and α+β+γ=1. They are dynamically configured according to the business scenario, and δ is the attenuation coefficient.

7. The method for verifying material codes during mold production according to claim 6, characterized in that: The cross-system consistency verification method in S5 is as follows: the Consistency value is calculated based on the cross-system consistency verification model. When Consistency > θ, cross-system consistency is determined. Otherwise, a data synchronization anomaly is triggered, and the time difference Time_diff and traceability chain status are recorded.

8. A method for verifying material codes during mold production according to claim 7, 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.

9. A device for verifying the coding of various materials during mold production, characterized in that, include: The coding rule base module is used to maintain the material coding rules based on the coding rule mathematical model R={T,S,L,P,C}. The coding rule base module is also used to store verification data encrypted by the SHA-256 algorithm. Parsing engine module: used to segment material codes according to positional constraint relationship P, verify segment length and calculate the matching degree with content constraint condition C; Verification and comparison module: used to perform rule matching verification and cross-system consistency verification. The cross-system consistency verification is based on the cross-system consistency verification model Consistency=α×Match_rate+β×Time_diff+γ×Trace_score; 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

  • Short message signature title real name automation method and system

    CN118741436A

  • Password verification method and device, computer apparatus, and storage medium

    WO2020151319A1