A battery automatic testing method
Automatically acquiring and parsing battery barcodes through PLC, combined with OPC services and measuring point limit value monitoring, solves the problems of scanning errors and safety hazards in traditional battery testing methods, and significantly improves the efficiency and safety of battery testing.
Patent Information
- Application Number
- CN202210937085.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-08-05
AI Technical Summary
Traditional battery testing methods have scanning errors, low efficiency and safety hazards, and cannot effectively improve the efficiency, quality and safety of battery testing.
Use PLC to automatically obtain and analyze the battery barcode, release the test flag bit through the OPC service, match the program parameters to execute the test, set limits in the measurement point information table for safety monitoring, and calculate the battery pass rate.
It reduces manual intervention errors, ensures that test equipment is ready for testing, and improves the efficiency, quality and safety of battery testing.
Smart Images

Figure CN115453365B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of battery testing, and in particular to an automatic battery testing method. Background Art
[0002] Battery electric vehicles (BEV) refer to vehicles that use onboard power as a power source, use motors to drive wheels, and comply with various requirements of road traffic and safety regulations. Because they have less impact on the environment than traditional vehicles, their prospects are widely optimistic. With the rapid development of electric vehicles, the demand for batteries is also increasing day by day. In order to ensure the safety of battery use, relevant tests need to be carried out after the battery is produced.
[0003] For battery testing, the barcode of the battery to be tested must first be identified to obtain the battery information, and then the battery test is performed. The traditional method is to use a barcode scanner to scan the barcode attached to the battery and manually operate the physical button to start the test. This method has the following disadvantages: scanning the barcode with a barcode scanner is prone to errors, such as unclear barcode display or scanning the wrong battery, and is inefficient. When manually operating the physical button for testing, the test equipment may not be ready, resulting in safety hazards.
[0004] Therefore, how to provide a battery automatic testing method to improve the efficiency, quality and safety of battery testing has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a battery automatic testing method to improve the efficiency, quality and safety of battery testing.
[0006] The present invention is implemented as follows: a battery automatic testing method, comprising the following steps:
[0007] Step S10, creating a scheme information table, a scheme parameter table, a test record table, a measuring point information table and a measuring point record table and storing them in a database;
[0008] Step S20, the PLC obtains the barcode of the battery and parses it, and updates the battery pack type, traceability code and part number obtained by parsing to the test record table;
[0009] Step S30: PLC updates the test flag and publishes the test flag through the OPC service;
[0010] Step S40, the PLC performs a battery test based on the battery pack type matching solution parameters;
[0011] Step S50: During the battery test, the test value of each test point is recorded and the test point record table is updated, and each test value is safety monitored based on the test point information table;
[0012] Step S60: After the test is completed, the test flag of the PLC is updated through the OPC service;
[0013] Step S70: Calculate the pass rate of the battery based on the test values.
[0014] Further, in the step S10, the scheme information table includes at least a sequence number, a scheme name, a battery pack type, and an update time;
[0015] The scheme parameter table at least includes a sequence number, a scheme name, scheme parameters and an update time;
[0016] The test record sheet includes at least the serial number, scheme name, battery pack type, test number, traceability code, part number, test result, test time and tester;
[0017] The measuring point information table at least includes a sequence number, a scheme name, a measuring point name, a first-level maximum limit value, a first-level minimum limit value, a second-level maximum limit value, a second-level minimum limit value, a third-level maximum limit value, and a third-level minimum limit value;
[0018] The measuring point record table at least includes a sequence number, a measuring point information table ID, a measuring point name, a test value and a test time.
[0019] Furthermore, the step S20 is specifically as follows: after the PLC controls the test equipment to perform self-test, the barcode of the battery is obtained and parsed, and the battery pack type, traceability code and part number obtained by the parsing are updated in real time to the test record table through the API interface and ODBC function.
[0020] Furthermore, the step S30 is specifically as follows: the PLC updates the test flag from 0 to 1, and the OPC service periodically scans the test flag and maps it to the label of the KEPServerEX service to complete the release of the test flag.
[0021] Further, the step S40 is specifically as follows: the PLC matches a scheme name from a scheme information table based on the battery pack type, matches scheme parameters from a scheme parameter table based on the scheme name, and performs a battery test based on the scheme parameters.
[0022] Furthermore, in step S50, the security monitoring is specifically:
[0023] The test value is safely monitored based on the first-level minimum limit value, the first-level maximum limit value, the second-level minimum limit value, the second-level maximum limit value, the third-level minimum limit value and the third-level maximum limit value of the measuring point information table to continue the test, trigger a first-level alarm, trigger a second-level alarm or trigger a third-level alarm.
[0024] Furthermore, the step S60 is specifically as follows:
[0025] After the test is completed, the PLC test flag is updated from 1 to 0 through the OPC service and KEPServerEX service.
[0026] Furthermore, the step S70 is specifically as follows:
[0027] Based on each of the test values, a test value lower limit and a test value upper limit are calculated using a 6sigma algorithm, and a pass rate of the battery is calculated based on the test value lower limit and the test value upper limit.
[0028] The advantages of the present invention are:
[0029] The PLC automatically obtains and parses the barcode of the battery, avoiding mistakes caused by traditional manual scanning of the barcode scanner and reducing human intervention. Before the test, the PLC controls the test equipment to perform self-check to avoid starting the test before the test equipment is ready. A measurement point information table including the first-level minimum limit, the first-level maximum limit, the second-level minimum limit, the second-level maximum limit, the third-level minimum limit and the third-level maximum limit is set to safely monitor the test values, ultimately greatly improving the efficiency, quality and safety of battery testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The present invention will be further described below in conjunction with embodiments with reference to the accompanying drawings.
[0031] Figure 1 The present invention is a flow chart of a battery automatic testing method. DETAILED DESCRIPTION
[0032] Please refer to Figure 1 As shown, a preferred embodiment of a battery automatic testing method of the present invention includes the following steps:
[0033] Step S10, creating a scheme information table, a scheme parameter table, a test record table, a measuring point information table and a measuring point record table and storing them in a database;
[0034] Step S20, PLC automatically obtains the barcode of the battery and parses it, and updates the battery pack type, traceability code and part number obtained by the parsing to the test record table; PLC is a programmable logic controller (Programmable Logic Controller), which is a digital computing controller with a microprocessor for automatic control; the barcode is transmitted by PLC to reduce the probability of error in scanning the code;
[0035] Step S30, PLC updates the test flag, and publishes the test flag through OPC service; OPC (OLE in Process Control) defines a set of standard interfaces based on Microsoft's OLE / COM and DCOM technologies, thereby providing automation and control applications, device management, and software application interoperability and device interchangeability between devices. Developers can focus a lot of manpower and funds for developing driver service programs on the development of a single OPC interface, and only need to develop a highly optimized, reusable OPC server to access the underlying hardware; the application of OPC service can be compatible with most PLCs, and even if the PLC is replaced, there is no need to change the code, which reduces the workload of software version development and improves development efficiency;
[0036] Step S40, the PLC performs a battery test based on the battery pack type matching solution parameters;
[0037] Step S50: During the battery test, the test value of each test point is recorded and the test point record table is updated, and each test value is safety monitored based on the test point information table;
[0038] Step S60: After the test is completed, the test flag of the PLC is updated through the OPC service;
[0039] Step S70: Calculate the pass rate of the battery based on the test values.
[0040] In the step S10, the scheme information table includes at least a sequence number, a scheme name, a battery pack type, and an update time;
[0041] The scheme parameter table at least includes a sequence number, a scheme name, scheme parameters and an update time;
[0042] The test record sheet includes at least the serial number, scheme name, battery pack type, test number, traceability code, part number, test result, test time and tester;
[0043] The measuring point information table at least includes a sequence number, a scheme name, a measuring point name, a first-level maximum limit value, a first-level minimum limit value, a second-level maximum limit value, a second-level minimum limit value, a third-level maximum limit value, and a third-level minimum limit value;
[0044] The measuring point record table at least includes a sequence number, a measuring point information table ID, a measuring point name, a test value and a test time.
[0045] An example of the scheme information table is as follows:
[0046] Column Name type Is the promise empty? illustrate id int(11) Auto-increment ID Serial number projectname varchar(100) NO Solution Name packtype varchar(100) NO Battery Pack Type operated varchar(100) NO Update time
[0047] An example of the scheme parameter table is as follows:
[0048] Column Name type Is the promise empty? illustrate id int(11) Auto-increment ID Serial number projectname varchar(100) NO Solution Name parameters varchar(100) NO Solution parameters (Json format) operated varchar(100) NO Update time
[0049] The test record table is exemplified as follows:
[0050] Column Name type Is the promise empty? illustrate id int(11) Auto-increment ID Serial number projectname varchar(100) NO Solution Name packtype varchar(100) NO Battery Pack Type testid varchar(100) NO Test No. Barcode varchar(100) NO Traceability Code partnum varchar(100) NO Part Number testresult varchar(100) NO Test Results operated varchar(100) NO Testing time operateuser varchar(100) NO Tester
[0051] The measurement point information table is exemplified as follows:
[0052] Column Name type Is the promise empty? illustrate id int(11) Auto-increment ID Serial number projectname varchar(100) NO Solution Name testpointname varchar(100) NO Measuring point name FirstMaxLimit varchar(100) NO Maximum limit of the first gear FirstMinLimit varchar(100) NO Minimum limit of one gear SecondMaxLimit varchar(100) NO Second gear maximum limit SecondMinLimit varchar(100) NO Second gear minimum limit ThirdMaxLimit varchar(100) NO Three-level maximum limit ThirdMinLimit varchar(100) NO Three minimum limits
[0053] The measuring point record table is exemplified as follows:
[0054] Column Name type Is the promise empty? illustrate id int(11) Auto-increment ID Serial number testpointsid int(11) NO Measurement point information table ID testpointname varchar(100) NO Measuring point name testvalue varchar(100) NO Test value testdate varchar(100) NO Testing time
[0055] The step S20 is specifically as follows: after the PLC controls the test equipment to perform self-test, the barcode of the battery is obtained and parsed, and the parsed battery pack type, traceability code and part number are updated to the test record table in real time through the API interface and ODBC function. ODBC (Open Database Connectivity) provides a common interface for accessing different databases, uses SQL as the standard for accessing databases, and provides maximum interoperability. An application can access different databases through the same code.
[0056] The step S30 is specifically as follows: the PLC updates the test flag from 0 to 1, and the OPC service periodically scans the test flag and maps it to the label of the KEPServerEX service to complete the release of the test flag. KEPServerEX is a third-party OPC service used for communication between the lower PLC and the upper computer of various devices from different manufacturers.
[0057] Before testing, the address bits of the PLC need to be defined:
[0058]
[0059]
[0060] The step S40 is specifically as follows: the PLC matches the scheme name from the scheme information table based on the battery pack type, matches the scheme parameters from the scheme parameter table based on the scheme name, and performs the battery test based on the scheme parameters. The scheme parameters include page (running interface), Scripts (scripts), parameter1, parameter2, etc., that is, Scripts runs in the page based on parameter1 and parameter2 to perform the battery test.
[0061] In step S50, the security monitoring is specifically:
[0062] Based on the minimum limit of the first gear, the maximum limit of the first gear, the minimum limit of the second gear, the maximum limit of the second gear, the minimum limit of the third gear, and the maximum limit of the third gear in the measuring point information table, conduct safety monitoring on the test value to continue the test, trigger a first-level alarm, trigger a second-level alarm, or trigger a third-level alarm.
[0063] The safety monitoring is exemplified as follows. Assume A is the test value:
[0064] If FirstMinLimit < A < FirstMaxLimit, the test is normal, and continue to execute the next test;
[0065] If A < FirstMinLimit and A > SecondMinLimit, trigger a first-level alarm and pop up a reminder;
[0066] If A < FirstMinLimit and A < SecondMinLimit and A > ThirdMinLimit, trigger a second-level alarm and pop up an alarm;
[0067] If A < FirstMinLimit and A < SecondMinLimit and A < ThirdMinLimit, then trigger a third-level alarm, directly stop the test, and disconnect all test circuits;
[0068] If A > FirstMaxLimit and A < SecondMaxLimit, trigger a first-level alarm and pop up a reminder;
[0069] If A > FirstMaxLimit and A > SecondMaxLimit and A < ThirdMaxLimit, then trigger a second-level alarm and pop up an alarm;
[0070] If A < FirstMinLimit and A > SecondMinLimit and A > ThirdMinLimit, then trigger a third-level alarm, directly stop the test, and disconnect all test circuits;
[0071] All data is saved to the database through the API interface for subsequent analysis.
[0072] The specific content of step S60 is as follows:
[0073] When the test is over, update the test flag bit of the PLC from 1 to 0 through the OPC service and the KepServerEX service.
[0074] The specific content of step S70 is as follows:
[0075] Based on each of the test values, a test value lower limit (FirstMinLimit) and a test value upper limit (FirstMaxLimit) are calculated by a 6sigma algorithm, and a pass rate of the battery is calculated based on the test value lower limit and the test value upper limit;
[0076] Set a pass rate alarm lower limit P1 and a pass rate lower limit P2 and save them in the local configuration file. When the pass rate is lower than P1, a pop-up window prompts that the test equipment needs to be repaired; when the pass rate is lower than P2, a pop-up window prompts that the test equipment is faulty and testing is not allowed.
[0077] In summary, the advantages of the present invention are:
[0078] The PLC automatically obtains and parses the barcode of the battery, avoiding mistakes caused by traditional manual scanning of the barcode scanner and reducing human intervention. Before the test, the PLC controls the test equipment to perform self-check to avoid starting the test before the test equipment is ready. A measurement point information table including the first-level minimum limit, the first-level maximum limit, the second-level minimum limit, the second-level maximum limit, the third-level minimum limit and the third-level maximum limit is set to safely monitor the test values, ultimately greatly improving the efficiency, quality and safety of battery testing.
[0079] Although the specific implementation modes of the present invention are described above, those skilled in the art should understand that the specific implementation modes described are only illustrative and are not intended to limit the scope of the present invention. Equivalent modifications and changes made by those skilled in the art in accordance with the spirit of the present invention should be included in the scope of protection of the claims of the present invention.
Claims
1. A battery automatic testing method, characterized in that: The steps include: Step S10, creating a scheme information table, a scheme parameter table, a test record table, a measuring point information table and a measuring point record table and storing them in a database; Step S20, the PLC obtains and parses the barcode of the battery, and updates the battery pack type, traceability code, and part number obtained by the analysis to the test record table; Step S30: PLC updates the test flag and publishes the test flag through the OPC service; Step S40, the PLC performs a battery test based on the battery pack type matching solution parameters; Step S50: During the battery test, the test value of each test point is recorded and the test point record table is updated, and each test value is safety monitored based on the test point information table; Step S60: After the test is completed, the test flag of the PLC is updated through the OPC service; Step S70: Calculate the pass rate of the battery based on the test values.
2. A battery automatic testing method as claimed in claim 1, characterized in that: In the step S10, the scheme information table includes at least a sequence number, a scheme name, a battery pack type, and an update time; The scheme parameter table at least includes a sequence number, a scheme name, scheme parameters and an update time; The test record sheet includes at least the serial number, scheme name, battery pack type, test number, traceability code, part number, test result, test time and tester; The measuring point information table at least includes a sequence number, a scheme name, a measuring point name, a first-level maximum limit value, a first-level minimum limit value, a second-level maximum limit value, a second-level minimum limit value, a third-level maximum limit value, and a third-level minimum limit value; The measuring point record table at least includes a sequence number, a measuring point information table ID, a measuring point name, a test value and a test time.
3. A battery automatic testing method as claimed in claim 1, characterized in that: The step S20 is specifically as follows: after the PLC controls the test equipment to perform self-test, the barcode of the battery is obtained and parsed, and the battery pack type, traceability code and part number obtained by the parsing are updated in real time to the test record table through the API interface and ODBC function.
4. A battery automatic testing method as claimed in claim 1, characterized in that: The step S30 is specifically as follows: the PLC updates the test flag from 0 to 1, and the OPC service periodically scans the test flag and maps it to the label of the KEPServerEX service to complete the release of the test flag.
5. A battery automatic testing method as claimed in claim 1, characterized in that: The step S40 is specifically as follows: the PLC matches a scheme name from a scheme information table based on the battery pack type, matches scheme parameters from a scheme parameter table based on the scheme name, and performs a battery test based on the scheme parameters.
6. A battery automatic testing method as claimed in claim 1, characterized in that: In step S50, the security monitoring is specifically: The test value is safely monitored based on the first-level minimum limit value, the first-level maximum limit value, the second-level minimum limit value, the second-level maximum limit value, the third-level minimum limit value and the third-level maximum limit value of the measuring point information table to continue the test, trigger a first-level alarm, trigger a second-level alarm or trigger a third-level alarm.
7. A battery automatic testing method as claimed in claim 1, characterized in that: The step S60 is specifically as follows: After the test is completed, the PLC test flag is updated from 1 to 0 through the OPC service and KEPServerEX service.
8. A battery automatic testing method as claimed in claim 1, characterized in that: The step S70 is specifically as follows: Based on each of the test values, a test value lower limit and a test value upper limit are calculated using a 6sigma algorithm, and a pass rate of the battery is calculated based on the test value lower limit and the test value upper limit.
