Automatic test run method based on transmission test bench

By setting and storing the test run steps in the automatic test run system of the transmission test bench and building an automatic test run program in the lower-level mechanism, the problems of low and inflexible test efficiency of the existing automatic test run method are solved, and an efficient and flexible automatic test run process is achieved.

CN119574103APending Publication Date: 2025-03-07NO 703 RES INST OF CHINA SHIPBUILDING IND CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411739851.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

The existing automatic test drive method has low test efficiency and is not flexible, so it cannot adapt to temporary changes in the test steps.

Method used

By setting up the test run steps in the automatic test run entry software installed by the upper computer, and storing these steps into the database software, the lower computer downloads the test run steps from the database and constructs an automatic test run program to achieve automatic test run.

Benefits of technology

The test runners can respond to changes in the automatic test run process without changing the background program code, which improves the operability and efficiency of the test and has good portability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119574103A_ABST
    Figure CN119574103A_ABST
Patent Text Reader

Abstract

The invention belongs to the field of software programming, particularly relates to an automatic test run method based on a transmission test bed, and aims to solve the problems of low operability and the like caused by the fact that bottom program codes need to be modified when test run steps of an automatic test run function of an existing transmission test bed are changed. The system comprises a hardware part and a software part, the hardware layer comprises a system host, an industrial personal computer and other basic frameworks, the software layer comprises an upper computer automatic test run step setting interface and a lower computer program execution process, and lower computer programs comprise an automatic test run program, a timing starting point determining program and a target value writing program. Write-in and read-out of any automatic test run process are completed through interconnection of an upper computer and a database, and automatic test run operation is completed in combination with a lower computer program. Compared with a traditional method, the method is more flexible and universal, labor cost is saved, and meanwhile operability and production efficiency of a test run test of a transmission test product are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of software programming, and in particular relates to an automatic test method based on a transmission test bench. Background Art

[0002] With the continuous development of social economy, the transmission test industry has flourished in many fields in China. Including the automotive industry, aerospace, shipbuilding, wind power industry, industrial and agricultural machinery and many other fields closely related to transmission testing, in order to ensure the safety and reliability of the later assembly and application of the product, the product or its related parts will be tested for reliability, stability and other functional tests. Usually, the relevant testing units implement product testing by building a transmission test bench, which includes mechanical equipment and its software control system that matches the product under test.

[0003] The mechanical equipment includes motor and gear transmission systems, lubrication systems, hydraulic or electric loading systems, etc.; the software control system includes start and stop control and speed or torque control of frequency conversion systems such as drag or loading motors and fans or oil pumps, opening and closing control of electric regulating valves and hydraulic loading valves, start and stop control and temperature control of heaters, etc. In addition, it also includes monitoring of temperature, pressure, flow, speed, torque, liquid level and other quantities of important parts of the mechanical system.

[0004] The test process of the transmission test bench is usually completed by the test driver. With the continuous improvement of the precision of the tested products and the continuous increase and deepening of the test requirements, the test steps have become extremely cumbersome.

[0005] During the test run, the test driver often has to consider the start and stop sequence of each device and whether important parameters exceed the limit. The cumbersome test process undoubtedly increases the workload of the test driver, and also greatly increases the possibility of operating errors, which buries safety hazards in production. In addition, the rapid growth of test demand has also put forward higher requirements on the service efficiency of relevant test units, and the number of test drivers directly limits the progress of transmission test product testing. Therefore, the relevant test procedures are also constantly updated to adapt to the characteristics of different transmission test products and corresponding production needs.

[0006] In order to solve the contradiction between the complexity of manual operation process of transmission test bench testers and rapid production, the workload of operators is often reduced by optimizing the test software program.

[0007] For example, according to the test requirements, the corresponding program is designed to start and stop specific equipment at specific time nodes. The test operator does not need to pay too much attention to the specific operation sequence of each test step. Only one key is needed to start the automatic test program to automatically complete all test steps in sequence according to the set process. However, some automatic test programs are usually only for specific test processes. If the test steps are temporarily increased or decreased, the underlying program needs to be modified again. Obviously, this automatic test method has complex procedures and lacks flexibility. Therefore, the existing automatic test method has low test efficiency. Summary of the invention

[0008] The invention aims to solve the problem of low test efficiency of the existing automatic test method in the prior art.

[0009] Step 1: The test personnel set the test steps in the automatic test input software installed on the host computer according to the test requirements;

[0010] Step 2: The automatic test run entry software stores the set test run steps in the database software installed on the host computer.

[0011] Step 3: The lower computer downloads the test steps from the database software of the upper computer to the motion control software of the lower computer, and constructs an automatic test program according to the downloaded test steps;

[0012] Step 4: The lower computer runs the motion control software to control the external test mechanism to complete the automatic test.

[0013] It should be noted that the transmission test bench digital acquisition and control system often also includes bus substations, industrial field actuators or equipment, where the bus substations include PLC digital and analog input and output modules, inverter slave stations, etc.; external test mechanisms, industrial field actuators or equipment include pump motors, valves, loading resistor boxes, various sensors, variable frequency drive motors, etc. The above composition is not static, and the specific matching method varies according to the different test bench test requirements. The specific assembly method can be adapted to local conditions according to different test platforms, so the hardware basic architecture of the method described in the present invention only gives a rough description of this part.

[0014] The beneficial effects of the present invention are:

[0015] The test personnel can deal with any changes in the automatic test process without changing the background program code, saving the time and money cost of manually modifying the background program. The automatic test method has good portability to different test benches. The method combines the convenience and safety brought by the automatic test function to the test personnel with the versatility and flexibility of the automatic test program. Furthermore, the method can improve the operability of the transmission test bench product test and the product test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Schematic diagram of the hardware architecture and software division of the automatic test method based on the transmission test bench of the present invention

[0017] Figure 2 This is an example of the upper computer step input interface of the automatic test method based on the transmission test bench described in the present invention.

[0018] Figure 3 The automatic test control program flow chart of the automatic test method based on the transmission test bench of the present invention is

[0019] Figure 4 The flowchart of the timing starting point determination program of the automatic test method based on the transmission test bench of the present invention is

[0020] Figure 5 The present invention discloses a target value writing program flow chart of the automatic test method based on the transmission test bench. DETAILED DESCRIPTION

[0021] Specific implementation method 1: Combination Figure 1-Figure 5 The invention is described, comprising:

[0022] Step 1: The test personnel set the test steps in the automatic test input software installed on the host computer according to the test requirements;

[0023] Step 2: The automatic test run entry software stores the set test run steps in the database software installed on the host computer.

[0024] Step 3: The lower computer downloads the test steps from the database software of the upper computer to the motion control software of the lower computer, and constructs an automatic test program according to the downloaded test steps;

[0025] Step 4: The lower computer runs the motion control software to control the external test mechanism to complete the automatic test.

[0026] It should be noted that the transmission test bench digital acquisition and control system often also includes bus substations, industrial field actuators or equipment, where the bus substations include PLC digital and analog input and output modules, inverter slave stations, etc.; external test mechanisms, industrial field actuators or equipment include pump motors, valves, loading resistor boxes, various sensors, variable frequency drive motors, etc. The above composition is not static, and the specific matching method varies according to the different test bench test requirements. The specific assembly method can be adapted to local conditions according to different test platforms, so the hardware basic architecture of the method described in the present invention only gives a rough description of this part.

[0027] Specific implementation method 2: The difference between this implementation method and specific implementation method 1 is that:

[0028] In step 1, the host computer is a desktop computer; the development environment of the automatic test input software is Visual Studio, and the programming language is C#; the database software is a SQL Server database;

[0029] The automatic test run entry software also includes: human-machine interface, parameter setting, manual test run, automatic test run, data storage / reproduction, automatic test run step setting, sensor alarm limit setting, remote monitoring, etc.

[0030] The other steps and parameters are the same as those in the first specific implementation.

[0031] Specific implementation method three: This implementation method is different from the specific implementation method one in that:

[0032] In step 1, the test run personnel set the test run steps in the automatic test run entry software installed on the host computer according to the test run test requirements; the specific process is:

[0033] Step 1.1: Construct array variables, and construct an automatic test step setting table based on the array variables;

[0034] Step 1.2: The test personnel enter the test steps in the automatic test step setting table according to the test requirements.

[0035] Step 1.3: If the test run personnel find an error when setting the test run steps or cancel the test run experiment, click the "Cancel" button of the automatic test run input software to return to step 1.2;

[0036] If the test run personnel completes the test run setup and input steps, click the "Confirm" button of the automatic test run input software to complete the test run setup steps;

[0037] The other steps and parameters are the same as those in the first to second embodiments.

[0038] Specific implementation method 4: This implementation method is different from specific implementation methods 1 to 4 in that:

[0039] The array variables in step 1.1 include: "step number", "enable status bit", "target value", and "running time";

[0040] The “step number” is a positive integer;

[0041] The "enable status bit" includes 1 and 0; each "step number" array variable corresponds to an "enable status bit" array variable, where 0 indicates shielding and 1 indicates not shielding;

[0042] The "target value" array variable includes all the controlled object given value variables under the test requirements;

[0043] For example (motor speed given value, torque given value, etc., determine which controlled objects are based on actual test requirements, and further limit the given values ​​of the controlled objects)

[0044] The function of setting the "enable status bit" variable is: when a certain automatic test step is not needed, the operator can enter 0 into the "enable status bit" variable corresponding to the "step number" to shield the step without affecting the normal operation of other steps, thus avoiding a large number of modifications to the test steps, thereby simplifying the operation;

[0045] The test run steps in step 1.2 include: step number, enable status bit, controlled object target value, and running time;

[0046] The other steps and parameters are the same as those in the first to third embodiments.

[0047] Specific implementation method 5: This implementation method is different from specific implementation methods 1 to 4 in that:

[0048] The “step number” is a positive integer;

[0049] The "enable status bit" includes 1 and 0; each "step number" array variable corresponds to an "enable status bit" array variable, where 0 indicates shielding and 1 indicates not shielding;

[0050] The "target value" array variable includes all the controlled object given value variables under the test requirements;

[0051] For example (motor speed given value, torque given value, etc., determine which controlled objects are based on actual test requirements, and further limit the given values ​​of the controlled objects)

[0052] The function of setting the "enable status bit" variable is: when a certain automatic test step is not needed, the operator can enter 0 into the "enable status bit" variable corresponding to the "step number" to shield the step without affecting the normal operation of other steps, thus avoiding a large number of modifications to the test steps, thereby simplifying the operation;

[0053] The test run steps in step 1.2 include: step number, enable status bit, controlled object target value, and running time;

[0054] The other steps and parameters are the same as those in Specific Embodiments 1 to 4.

[0055] Specific implementation method 6: This implementation method is different from specific implementation methods 1 to 5 in that:

[0056] The test steps stored in the database software in step 2 are saved in the form of an array

[0057] ; Other steps and parameters are the same as those in Specific Implementation Methods 1 to 5.

[0058] Specific implementation method 7: This implementation method is different from specific implementation methods 1 to 6 in that:

[0059] The lower computer in step 3 is Beckhoff C6930 series PLC; the motion control software is TwinCAT;

[0060] The communication protocol between the lower computer and the upper computer is the ADS protocol.

[0061] The functions of the lower computer also include: data acquisition, fault diagnosis and processing, speed control, loading control, clutch control, pump control, regulating valve control, fan control, lubrication / hydraulic system temperature control, torque pulsation calculation, etc.

[0062] The other steps and parameters are the same as those in Specific Embodiments 1 to 6.

[0063] Specific implementation eight: This implementation differs from specific implementations one to seven in that:

[0064] The processing flow of the automatic test run program in step 3 is as follows:

[0065] Step 3.1: Enter the automatic test program to determine whether the current state is emergency stop;

[0066] If yes, then end the automatic test procedure; if no, proceed to step 3.2;

[0067] Step 3.2: Determine whether the automatic test run command issued by the host computer is received;

[0068] If yes, execute step 3.3; if no, end the automatic test procedure;

[0069] Step 3.3: Create variables "step number" and "execution flag", "target value intermediate variable", "automatic test write", "timing flag 1", and "timing flag 2";

[0070] The variable "target value intermediate variable" corresponds one to one with the array variable "target value";

[0071] For example, if the array variable "target value" is the motor speed given value, then create an intermediate variable for the target value of the motor speed given value

[0072] Set the value of the variable "step number" to 1, and set the variable "execution flag" to TRUE;

[0073] Step 3.4: Determine whether the value of the "enable status bit" corresponding to the current "step number" is 1.

[0074] If yes, go to step 3.5; if no, go to step 3.12;

[0075] Step 3.5: Determine whether the variable "execution flag" is TRUE;

[0076] If yes, execute step 3.6; if no, end the automatic test procedure;

[0077] Step 3.6: Assign the value of the "target value" corresponding to the variable "step number" (such as motor speed, torque and other given values) to the variable "target value intermediate variable";

[0078] Step 3.7: Set the variable "Automatic test write" to TRUE, the variable "Execution flag" to FALSE, and the variable "Timing flag 1" to TRUE;

[0079] The purpose of setting the "execution flag" variable is to prevent the "target value intermediate variable" corresponding to the same "step number" from being repeatedly assigned in different PLC task cycles. In addition, the "target value intermediate variable" corresponding to the same "step number" is only assigned once, which is also convenient for monitoring the variables that need to record the changes in the operations of the two steps before and after. For example, in some occasions where it is necessary to determine whether a certain variable has changed to decide whether to execute a certain operation, a special variable can be defined to record the comparison results of two steps of a certain variable. The comparison method of a certain variable under two steps can use "greater than", "less than", "equal to" or "and", "or", "exclusive or" and other logic according to the actual situation;

[0080] Step 3.8: Execute the procedure to determine the timing starting point;

[0081] Step 3.9: Determine whether the variable "timing flag 2" is TRUE. If so, execute step 3.10; if not, execute step 3.8;

[0082] Step 3.10: Assign the value of the "running time" corresponding to the current "step number" to the timer, and the timer starts timing;

[0083] Step 3.11: The timer determines whether the timing time has been reached. If yes, execute step 3.12; if no, repeat step 3.11;

[0084] Step 3.12: Set the variable "timing flag 2" to FALSE, and the variable "execution flag" to TRUE; add 1 to the value of the variable "step number" and proceed to step 3.13;

[0085] Step 3.13: Determine whether the value of the variable "step number" is greater than the total number of steps. If so, end the current automatic test program execution cycle; if not, execute step 3.4;

[0086] The purpose of setting the "timing flag bit 1" variable is to serve as the basis for entering the timing starting point determination procedure;

[0087] The purpose of setting the "timing flag 2" variable is to serve as the basis for starting the timer, and to self-lock with the "timing flag 1" variable in step 3.8.3 of the timing starting point determination program, thus avoiding the problem of repeated restarts of the timer caused by possible fluctuations in the actual value.

[0088] The other steps and parameters are the same as those in Specific Embodiments 1 to 7.

[0089] Specific implementation method 9: This implementation method is different from specific implementation methods 1 to 8 in that:

[0090] The procedure flow for determining the timing starting point in step 3.8 includes the following steps:

[0091] Step 3.8.1: Set the timing starting point threshold and determine whether the variable "timing flag 1" is TRUE. If so, execute step 3.8.2; if not, end the timing starting point determination procedure;

[0092] Step 3.8.2: Read the actual value of the actuator in the motion control software, and determine whether the absolute value of the difference between the actual value of the actuator and the value of the corresponding array variable "target value" is less than the set timing starting point threshold; if so, execute step 3.8.3; if not, end the timing starting point determination procedure;

[0093] Step 3.8.3: Set the variable "timing flag bit 2" to TRUE and the variable "timing flag bit 1" to FALSE, ending the execution cycle of the timing starting point determination program;

[0094] The other steps and parameters are the same as those in Specific Embodiments 1 to 8.

[0095] Specific implementation method 10: This implementation method is different from specific implementation methods 1 to 9 in that:

[0096] In step 4, the lower computer runs the motion control software to control the external test mechanism to complete the automatic test. The specific process is:

[0097] Step 4.1: The lower computer runs the automatic test program in the motion control software.

[0098] Step 4.2: The lower computer motion control software executes the target value writing program according to the scanning cycle;

[0099] The target value writing procedure in step 4.2 includes the following steps:

[0100] Step 4.2.1: Determine whether the variable "Automatic test write" is TRUE. If so, execute step 4.2.2; if not, end the target value writing procedure;

[0101] Step 4.2.2: Assign the variable "target value intermediate variable" to the corresponding actuator control variable in the motion control software (for example, the target value intermediate variable is the motor speed input variable of the inverter, and assign the value of this target value intermediate variable to the actuator control variable that controls the motor speed in the motion control software), set the variable "automatic test write" to FALSE, and end the target value write program execution cycle;

[0102] Step 4.3: The lower computer motion control software controls the external test mechanism to complete the automatic test according to the actuator control variables;

[0103] The scanning cycle is manually set according to needs;

[0104] The other steps and parameters are the same as those in Specific Implementations 1 to 9.

[0105] Combining the simulation analysis of specific implementation methods one to ten

[0106] The above only describes the preferred embodiments of the present invention. It should be understood that the present invention is not limited to the above specific implementation methods. Although the present invention has been disclosed as above in the preferred embodiments, it is not used to limit the present invention. Any technician familiar with the profession can make some changes or modify the technical contents disclosed above into equivalent embodiments with equivalent changes without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent replacement and improvement made to the above embodiments without departing from the content of the technical solution of the present invention, based on the technical essence of the present invention, within the spirit and principles of the present invention, still fall within the protection scope of the technical solution of the present invention.

Claims

1. An automatic test method based on a transmission test bench, characterized in that: The following steps are involved: Step 1: The test personnel set the test steps in the automatic test input software installed on the host computer according to the test requirements; Step 2: Store the set test steps in the database software installed on the host computer. Step 3: The lower computer downloads the test run steps from the database software of the upper computer to the motion control software of the lower computer, and constructs an automatic test run program in the motion control software according to the downloaded test run steps; Step 4: The lower computer runs the automatic test program and target value writing program of the motion control software, and controls the external test mechanism to complete the automatic test.

2. The automatic test method based on the transmission test bench according to claim 1 is characterized in that: In step 1, the host computer is a desktop computer; the development environment of the automatic test run entry software is Visual Studio, and the programming language is C#; the database software is a SQL Server database.

3. The automatic test method based on the transmission test bench according to claim 2 is characterized in that: In step 1, the test run personnel set the test run steps in the automatic test run entry software installed on the host computer according to the test run test requirements; the specific process is: Step 1.1: Construct array variables, and construct an automatic test step setting table based on the array variables; Step 1.2: The test personnel enter the test steps in the automatic test step setting table according to the test requirements. Step 1.3: If the test run personnel find an error when setting the test run steps or cancel the test run experiment, click the "Cancel" button of the automatic test run input software to return to step 1.2; If the test run personnel completes the test run setup and entry steps, they click the "Confirm" button of the automatic test run entry software to complete the test run setup steps.

4. The automatic test method based on the transmission test bench according to claim 3 is characterized in that: The array variables in step 1.1 include: "step number", "enable status bit", "target value", and "running time".

5. The automatic test method based on the transmission test bench according to claim 4 is characterized in that: The "step number" is a positive integer; The "enable status bit" includes 1 and 0; each "step number" array variable corresponds to an "enable status bit" array variable, where 0 represents shielding and 1 represents unshielding; The "target value" array variable includes the control variables of all controlled actuators under the test requirements.

6. The automatic test method based on the transmission test bench according to claim 5, characterized in that: In step 2, the set test run steps are stored in the database software installed in the host computer in the form of an array.

7. The automatic test method based on the transmission test bench according to claim 6 is characterized in that: The lower computer in step 3 is Beckhoff C6930 series PLC; the motion control software is TwinCAT; The communication protocol between the lower computer and the upper computer is the ADS protocol.

8. The automatic test method based on the transmission test bench according to claim 7 is characterized in that: The processing flow of the automatic test run program in step 3 is as follows: Step 3.1: Enter the automatic test program to determine whether the current state is emergency stop; If yes, then end the automatic test procedure; if no, proceed to step 3.2; Step 3.2: Determine whether the automatic test run command issued by the host computer is received; If yes, execute step 3.3; if no, end the automatic test procedure; Step 3.3: Create variables "Step Number" and "Execution Flag", "Target Value Intermediate Variable", "Automatic Test Write", "Timing Flag 1", and "Timing Flag 2"; The variable "target value intermediate variable" corresponds one-to-one with the array variable "target value"; Set the value of the variable "step number" to 1, and set the variable "execution flag" to TRUE; Step 3.4: Determine whether the value of the "enable status bit" corresponding to the current "step number" is 1; If yes, go to step 3.5; if no, go to step 3.12; Step 3.5: Determine whether the variable "execution flag" is TRUE; If yes, execute step 3.6; if no, end the automatic test procedure; Step 3.6: Assign the value of "target value" corresponding to the variable "step number" to the variable "target value intermediate variable"; Step 3.7: Set the variable "Automatic test write" to TRUE, the variable "Execution flag" to FALSE, and the variable "Timing flag 1" to TRUE; Step 3.8: Execute the procedure to determine the timing starting point; Step 3.9: Determine whether the variable "timing flag 2" is TRUE; if so, execute step 3.10; if not, execute step 3.8; Step 3.10: Assign the value of "running time" corresponding to the current "step number" to the timer, and the timer starts timing; Step 3.11: The timer determines whether the timing time has been reached; if so, execute step 3.12; if not, repeat step 3.11; Step 3.12: Set the variable "timing flag 2" to FALSE, and the variable "execution flag" to TRUE; add 1 to the value of the variable "step number" and proceed to step 3.13; Step 3.13: Determine whether the value of the variable "step number" is greater than the total number of steps; if so, end the current automatic test program execution cycle; if not, execute step 3.

4.

9. The automatic test method based on the transmission test bench according to claim 8, characterized in that: The procedure flow for determining the timing starting point in step 3.8 includes the following steps: Step 3.8.1: Set the timing starting point threshold and determine whether the variable "timing flag 1" is TRUE; if so, execute step 3.8.2; if not, end the timing starting point determination procedure; Step 3.8.2: Read the actual value of the actuator in the motion control software, and determine whether the absolute value of the difference between the actual value of the actuator and the value of the corresponding array variable "target value" is less than the set timing starting point threshold; if so, execute step 3.8.3; if not, end the timing starting point determination procedure; Step 3.8.3: Set the variable "timing flag 2" to TRUE and the variable "timing flag 1" to FALSE, ending the execution cycle of the timing starting point determination program.

10. The automatic test method based on the transmission test bench according to claim 9, characterized in that: In step 4, the lower computer runs the automatic test program and the target value writing program of the motion control software, and controls the external test mechanism to complete the specific process of automatic test: Step 4.1: The lower computer runs the automatic test program in the motion control software. Step 4.2: The lower computer motion control software executes the target value writing program according to the scanning cycle; The target value writing procedure in step 4.2 includes the following steps: Step 4.2.1: Determine whether the variable "Automatic test write" is TRUE; if so, execute step 4.2.2; if not, end the target value writing program; Step 4.2.2: Assign the variable "target value intermediate variable" to the corresponding actuator control variable in the motion control software, set the variable "automatic test write" to FALSE, and end the target value write program execution cycle; Step 4.3: The lower computer motion control software controls the external test mechanism to complete the automatic test according to the actuator control variables.