Device parameter issuing and controlling method and system based on double check
Patent Information
- Application Number
- CN202611178670.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-05
- Publication Date
- 2026-10-30
AI Technical Summary
追溯体系不完善:缺乏参数修改的全流程记录,无法追溯修改人员、修改时间、原参数值、新参数值等关键信息,不利于质量问题排查
[0045]1、分层管控架构确保参数标准由 MES统一下发,多设备参数一致性提升 90%,避免因参数差异导致的产品缺陷。
Smart Images

Figure CN123013063A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method and system for controlling and distributing equipment parameters based on dual verification, and belongs to the field of equipment control. Background Technology
[0002] In the lithium battery industry production process, welding is one of the core processes affecting the structural stability and electrochemical performance of the battery. Key parameters such as welding power, welding speed, decoking amount, and welding pressure directly determine core quality indicators such as tab welding strength and battery sealing. Currently, the industry commonly uses a "direct operation HMI screen modification" model for adjusting the PLC operating parameters of welding equipment. Parameter maintenance relies on manual input by on-site personnel, lacking a systematic control mechanism.
[0003] Existing technologies suffer from several shortcomings: First, there is a lack of access control: No personnel authentication or hierarchical access control mechanisms exist, allowing operators, technicians, and administrators to modify all parameters, increasing the risk of unauthorized modifications and illegal operations. Second, parameter maintenance is fragmented: PLC parameters for each welding device are stored independently, lacking a unified management platform. Parameter updates require manual adjustment for each device, leading to inconsistencies across multiple devices and impacting product quality uniformity. Third, a lack of verification mechanisms: No automatic verification process exists after parameter modification. Execution can still proceed even when input values exceed process thresholds or contradict baseline values, potentially causing equipment malfunctions or product defects. Fourth, the traceability system is incomplete: The lack of a complete record of parameter modifications makes it impossible to trace the modifier, modification time, original parameter values, and new parameter values, hindering quality problem investigation. Fifth, insufficient system integration: Data is not shared between the MES system, the host computer, PLCs, and card-swiping devices, preventing real-time synchronization of parameter standards and resulting in a disconnect between standards and implementation. Sixth, the low barrier to entry: The HMI screen directly grants parameter modification permissions without error-proofing, making it easy for novice operators or accidental touches to cause parameter inconsistencies. Summary of the Invention
[0004] This invention provides a method and system for controlling the distribution of device parameters based on dual verification, which solves the problems disclosed in the background art.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0006] A device parameter distribution and control method based on dual verification:
[0007] Obtain process parameters and input them into the pre-built MES parameter standard library;
[0008] Obtain personnel permission data and enter the personnel permission data into the pre-built MES permission matrix library;
[0009] When a person issues a request to modify process parameters, the MES permission matrix library unlocks the corresponding parameter modification permission based on the person's permission data;
[0010] Personnel modify the corresponding parameters in the MES parameter standard library according to their respective parameter modification permissions, verify the modified parameters, and save the parameters that pass the verification to the MES parameter standard library.
[0011] The parameters in the MES parameter standard library are sent to the corresponding equipment to execute the corresponding process.
[0012] The technical effects achieved by the above method are as follows: a closed-loop control system is established, which is "MES centrally maintains parameters and permissions → personnel swipe cards to initiate requests → upper computer performs dual verification (permissions + parameters) → PLC executes compliant parameters → MES records the entire process", to ensure that the modification of process parameters is "legal in identity, matching in permissions, compliant in value, and traceable in process", and ultimately improves the stability of the production process and the consistency of product quality.
[0013] Furthermore, the process parameters include: parameter code, parameter name, process standard range, baseline value, required permission level, and MD5 hash baseline value.
[0014] The technical effect achieved by the above method is that the core parameters of the process are selected for input, which facilitates rapid verification.
[0015] Furthermore, the personnel permission data includes: permission level, personnel type, modifiable parameters, operation permissions, and system key.
[0016] The technical effect achieved by the above method is that it facilitates precise permission allocation.
[0017] Furthermore, the method for unlocking and modifying permissions based on personnel permission data in the MES permission matrix library includes: using the SHA256 algorithm to combine the personnel ID with the system key to generate a unique permission identifier: AuthHash(ID,K)=SUBSTR(SHA256(ID+K),0,8);
[0018] ID represents a unique identifier for a person; K represents a system key;
[0019] SHA256 () represents the SHA256 hash function, which takes a string combination as input and outputs a 256-bit hexadecimal hash value.
[0020] SUBSTR( (,0,8) indicates that the first 8 bits of the hash value are used as the permission identifier;
[0021] The output is an 8-bit unique permission identifier string.
[0022] The technical effects achieved by the above method are: facilitating identity verification after personnel swipe their cards and providing a unique basis for matching permission levels.
[0023] Furthermore, the method for unlocking corresponding parameter modification permissions based on personnel permission data in the MES permission matrix library includes: based on a three-level permission system: Level 1 = Administrator = 3, Level 2 = Technician = 2, Level 3 = Operator = 1; determining whether a person has the permission to modify the target parameter:
[0024] ;
[0025] Indicates the actual level of authority of the personnel; Indicates the minimum privilege level required to modify the parameter;
[0026] Output: 1 indicates that the permission match is successful, and 0 indicates that the permission is insufficient.
[0027] The technical effect achieved by the above method is to facilitate the determination of permissions after identity authentication, and to determine whether the HMI screen unlocks the corresponding parameter modification permissions.
[0028] Furthermore, the methods for validating the modified parameters include:
[0029] The MD5 algorithm is used to calculate the hash value of the parameters, and the consistency between the modified parameters and the preset MES baseline value is compared:
[0030] ;
[0031] This indicates the modified parameters. This represents the preset MES baseline value;
[0032] This represents the MD5 hash function, which takes a UTF-8 encoded byte array as input and outputs a 128-bit hexadecimal hash value.
[0033] Output: 1 indicates that the consistency check passed, and 0 indicates that the consistency check failed.
[0034] The technical effects achieved by the above method are: it facilitates secondary anti-tampering after the range verification is passed, and ensures that the parameters are not deviated from the process reference.
[0035] Furthermore, it also includes comparing the parameters of the equipment's execution process with the corresponding process standard range in the MES parameter standard library. If the parameter is within the corresponding process standard range, it is displayed as qualified; if the parameter is not within the corresponding process standard range, it is displayed as unqualified.
[0036] The technical effects achieved by the above method are: to strictly inspect product quality attributes and to promptly identify defective products.
[0037] This invention also provides a device parameter distribution and control system based on dual verification, including:
[0038] MES parameter standard library, used for entering process parameters;
[0039] MES permission matrix library, used for entering personnel permission data;
[0040] The permission verification module is used to unlock the corresponding parameter modification permission when a person issues a request to modify process parameters, and calls the MES permission matrix library to unlock the permission to modify the corresponding parameter based on the person's permission data.
[0041] The parameter verification module is used by personnel to modify the corresponding parameters in the MES parameter standard library according to their corresponding parameter modification permissions, verify the modified parameters, and save the parameters that pass the verification to the MES parameter standard library.
[0042] The parameter distribution module is used to distribute parameters from the MES parameter standard library to the corresponding devices to execute the corresponding processes.
[0043] The technical effects achieved by the above system are as follows: relying on the MES system to build a unified parameter and permission management platform, using the host computer software as an intermediate interaction hub to link the work card reader, HMI screen and PLC controller, realize hardware deployment, and solve the problems of no permission constraints for parameter modification, missing verification, difficulty in traceability and system disconnect in the existing technology.
[0044] The beneficial effects achieved by this invention are as follows:
[0045] 1. The hierarchical management architecture ensures that parameter standards are uniformly issued by MES, improving the consistency of parameters across multiple devices by 90% and avoiding product defects caused by parameter differences.
[0046] 2. The dual verification algorithm intercepts illegal modifications from both "permissions" and "values" perspectives, reducing the parameter error rate to below 0.1% and significantly improving the product quality pass rate. Attached Figure Description
[0047] Figure 1 This is a schematic diagram of the basic architecture of the present invention;
[0048] Figure 2This is a schematic diagram of the data algorithm processing logic in this invention;
[0049] Figure 3 This is a schematic diagram of the query interface after the determination is made using the present invention. Detailed Implementation
[0050] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0051] like Figure 1 As shown, this invention takes the lithium battery busbar welding process as a specific application scenario and provides a method for controlling and distributing equipment parameters based on dual verification, including the following steps:
[0052] Step 1: Preset basic data for the MES system:
[0053] Enter the core parameters of the welding process into the MES parameter standard library (Param_DB), specifying the process range (min / max), baseline value B, and the required minimum access level. The MD5 hash base value is shown in Table 1.
[0054]
[0055] Table 1
[0056] Enter personnel permission data into the MES permission matrix database (Auth_DB), and bind the person ID and actual permission level. The parameters and system key K can be modified, and the data is shown in Table 2.
[0057]
[0058] Table 2
[0059] Step 2: Personnel swipe their cards to send a parameter modification request and undergo identity authentication. The following algorithm provides a unique basis for matching permission levels.
[0060] The SHA256 algorithm is used to combine the user ID with the system key to generate a unique authorization identifier, preventing identity forgery.
[0061] AuthHash(ID,K)=SUBSTR(SHA256(ID+K),0,8);
[0062] Variable definition:
[0063] ID: Unique identifier for personnel (e.g., “OP123”, “TEC007”);
[0064] K: System fixed key (found in the MES backend, such as "MES_WELDING_2024");
[0065] SHA256 SHA256 hash function: Takes a string combination as input and outputs a 256-bit hexadecimal hash value.
[0066] SUBSTR( ,0,8): Extract the first 8 bits of the hash value as the permission identifier (e.g., "7A2F9D1E").
[0067] Output: An 8-bit unique permission identifier string.
[0068] Step 3: Based on the authentication result, call the MES permission matrix library to match the corresponding modification permissions. The specific process is as follows:
[0069] Permission level matching formula (Formula 4: Role-Parameter Permission Binding);
[0070] Based on a three-tiered permission system (Level 1 = Administrators = 3, Level 2 = Technicians = 2, Level 3 = Operators = 1), determine whether a person has permission to modify the target parameter:
[0071] ;
[0072] Variable definition:
[0073] : The actual level of access privileges of the personnel (derived by matching the access privilege identifier);
[0074] : Minimum access level required for parameters (e.g., welding pressure) =3);
[0075] Output: 1 = Permissions matched, 0 = Permissions not met.
[0076] The permission determination after identity authentication determines whether to unlock the corresponding parameter modification permission on the HMI screen. The HMI screen only displays the parameters within the permission range to avoid accidental operation.
[0077] Step 4: Perform consistency verification on the modified parameters:
[0078] The MD5 algorithm is used to calculate the hash value of the parameters, and the consistency between the modified parameters and the MES baseline value is compared to prevent unauthorized parameter tampering.
[0079] ;
[0080] Variable definition:
[0081] The modified parameter string format is "value + unit" (e.g., "1.8mm / s").
[0082] : The parameter baseline value string stored in MES (e.g., "1.6mm / s");
[0083] MD5 hash function, takes a UTF-8 encoded byte array as input and outputs a 128-bit hexadecimal hash value (e.g., "96e79218965eb72c92a549dd5a330112").
[0084] Output: 1 indicates that consistency has been achieved, and 0 indicates that consistency has failed.
[0085] Only after successful verification can the parameters be saved to the MES parameter standard library to prevent unauthorized tampering and ensure that the parameters are consistent with the process baseline.
[0086] Step 5: The MES system distributes the MES parameter standard library to the corresponding equipment and records the entire process of the equipment's operation. The equipment's operation parameters are then sent back to the MES system and compared with the process standard range in the MES parameter standard library to determine whether they are qualified.
[0087] For example, when the OCV3 equipment is manufacturing products, as shown in Table 3, it will accurately upload detailed information such as key parameters and product QR codes to the MES system.
[0088]
[0089] Table 3
[0090] The uploaded data undergoes preprocessing. The MES system quickly receives various data from the equipment and parses out information such as work order number, process code, and parameter code. Based on the work order number, the system parses the process route within the system and determines the upper and lower limits of the process parameters in the corresponding process route. Then, using hash comparison algorithm models and range matching algorithms, it performs in-depth calculations to accurately determine the quality attributes of the product.
[0091] like Figure 2 As shown, the following data processing algorithm is used;
[0092] Formula 1: Convert data into a fixed-length hash value using a hash function, and then compare whether the hash values are the same.
[0093] Example: import hashlib
[0094] def hash_match(data1, data2):
[0095] hash1 = hashlib.md5(data1.encode()).hexdigest()
[0096] hash2 = hashlib.md5(data2.encode()).hexdigest()
[0097] return hash1 == hash2
[0098] Formula 2: If the value x satisfies min ≤ x ≤ max, then the match is successful.
[0099] Example: def range_match(x, min_value, max_value):
[0100] return min_value <= x <= max_value
[0101] like Figure 3 As shown, the current process equipment intelligently calls the product quality attribute information returned by the MES system API interface, strictly inspects the product quality attributes after production is completed, and displays the MES result as qualified or unqualified on the query interface according to the inspection results. Once an unqualified product is found, the equipment will immediately reject it.
[0102] Before the next process begins production, the equipment scans a code to intelligently retrieve the product quality attribute information determined by the MES system of the previous process. If any unqualified product is found, it is prohibited from being put into production and is directly rejected.
[0103] This invention provides:
[0104] Layered management architecture design: The first three-level architecture of "MES top-level decision-making - host computer intermediate control - terminal device execution" is created, which clarifies the functional boundaries of each level and realizes centralized management and decentralized execution of parameters and permissions.
[0105] Three-tier permission matrix model: Based on role-based permission task management logic, a three-tier permission system of administrators, technicians, and operators is constructed, which accurately defines the parameter categories and operation scope that each role can modify, and prevents unauthorized operations.
[0106] Dual verification algorithm mechanism: It integrates "permission hash verification + parameter dual verification". Permission verification generates a unique identifier to match the permission level through hash mapping, and parameter verification is verified by the consistency of range threshold and baseline value hash to ensure that the modification is compliant.
[0107] MES parameter unification and synchronization: Key welding parameters are centrally stored and uniformly distributed by the MES system, supporting real-time synchronization of parameters from multiple devices and solving the problem of parameter inconsistency caused by decentralized maintenance.
[0108] End-to-end traceability system: Information such as the personnel ID, time, original parameters, new parameters, and verification results of parameter modifications are uploaded to the MES system in real time, forming an immutable traceability log to meet quality audit requirements.
[0109] Modular adaptable design: Supports independent operation of single process and expansion of multiple processes, can be quickly adapted to different equipment such as laser welding and ultrasonic welding, and is compatible with multiple industry scenarios such as lithium battery and automobile manufacturing.
[0110] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
[0111] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of the claims of the present invention pending approval.
Claims
1. A device parameter distribution and control method based on dual verification, characterized in that: Obtain process parameters and input them into the pre-built MES parameter standard library; Obtain personnel permission data and enter the personnel permission data into the pre-built MES permission matrix library; When a person issues a request to modify process parameters, the MES permission matrix library unlocks the corresponding parameter modification permission based on the person's permission data; Personnel modify the corresponding parameters in the MES parameter standard library according to their respective parameter modification permissions, verify the modified parameters, and save the parameters that pass the verification to the MES parameter standard library. The parameters in the MES parameter standard library are sent to the corresponding equipment to execute the corresponding process.
2. The device parameter distribution and control method based on dual verification according to claim 1, characterized in that: The process parameters include: parameter code, parameter name, process standard range, baseline value, required permission level, and MD5 hash baseline value.
3. The device parameter distribution and control method based on dual verification according to claim 1, characterized in that, The personnel permission data includes: permission level, personnel type, modifiable parameters, operation permissions, and system key.
4. The device parameter distribution and control method based on dual verification according to claim 1, characterized in that, The method for unlocking and modifying permissions based on personnel permission data in the MES permission matrix library includes: using the SHA256 algorithm to combine the personnel ID with the system key to generate a unique permission identifier: AuthHash(ID,K)=SUBSTR(SHA256(ID+K),0,8); ID represents a unique identifier for a person; K represents a system key; SHA256 () represents the SHA256 hash function, which takes a string combination as input and outputs a 256-bit hexadecimal hash value. SUBSTR( (,0,8) indicates that the first 8 bits of the hash value are used as the permission identifier; The output is an 8-bit unique permission identifier string.
5. The device parameter distribution and control method based on dual verification according to claim 1, characterized in that, The method for unlocking corresponding parameter modification permissions based on personnel permission data in the MES permission matrix library includes: based on a three-level permission system: Level 1 = Administrator = 3, Level 2 = Technician = 2, Level 3 = Operator = 1; determining whether a person has the permission to modify the target parameter: ; Indicates the actual level of authority of the personnel; Indicates the minimum privilege level required to modify the parameter; Output: 1 indicates that the permission match is successful, and 0 indicates that the permission is insufficient.
6. The device parameter distribution and control method based on dual verification according to claim 1, characterized in that, Methods for validating modified parameters include: The MD5 algorithm is used to calculate the hash value of the parameters, and the consistency between the modified parameters and the preset MES baseline value is compared: ; This indicates the modified parameters. This represents the preset MES baseline value; This represents the MD5 hash function, which takes a UTF-8 encoded byte array as input and outputs a 128-bit hexadecimal hash value. Output: 1 indicates that the consistency check passed, and 0 indicates that the consistency check failed.
7. The device parameter distribution and control method based on dual verification according to claim 1, characterized in that, It also includes comparing the parameters of the equipment's execution process with the corresponding process standard range in the MES parameter standard library. If the parameter is within the range of the corresponding process standard, it is displayed as qualified; if the parameter is not within the range of the corresponding process standard, it is displayed as unqualified.
8. A device parameter distribution and control system based on dual verification, characterized in that, include: MES parameter standard library, used for entering process parameters; MES permission matrix library, used for entering personnel permission data; The permission verification module is used to unlock the corresponding parameter modification permission when a person issues a request to modify process parameters, and calls the MES permission matrix library to unlock the permission to modify the corresponding parameter based on the person's permission data. The parameter verification module is used by personnel to modify the corresponding parameters in the MES parameter standard library according to their corresponding parameter modification permissions, verify the modified parameters, and save the parameters that pass the verification to the MES parameter standard library. The parameter distribution module is used to distribute parameters from the MES parameter standard library to the corresponding devices to execute the corresponding processes.
