A universal testing machine control method and system based on the Internet of Things

Optimize the decision-making logic of the PLC controller of the universal testing machine through the Internet of Things technology, calculate the trigger rate and judgment scale of the decision-making logic, screen the optimized decision-making logic, solve the time-consuming problem caused by the complex loop decision-making logic, and achieve more efficient control .

CN118275232BActive Publication Date: 2024-08-30深圳三思纵横科技股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410690276.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-30
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

In the servo motor control process of the universal testing machine, the loop decision-making logic of the PLC controller is complex, resulting in long logic operations and making it impossible to achieve real-time control.

Method used

Obtain monitoring values ​​and servo motor parameters during material testing through Internet of Things technology, calculate the trigger rate, independent decision factors and judgment scales of each decision logic, optimize the order of decision logic, screen out decision logic with higher priority, and adjust PLC control The decision logic sequence of the processor is reduced to reduce redundant logic.

Benefits of technology

It improves the control efficiency of the universal testing machine, reduces the time-consuming logic operations, and achieves better real-time control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118275232B
    Figure CN118275232B
Patent Text Reader

Abstract

The present invention relates to the technical field of non-electrical variable control, and specifically to a universal testing machine control method and system based on the Internet of Things, including: obtaining a class of materials to be tested; obtaining a number of monitoring values ​​when each material is tested in the universal testing machine; obtaining a number of parameters of the servo motor of the universal testing machine; obtaining the cyclic decision of the universal testing machine when testing; obtaining the independent decision factor of each decision logic when each material is tested in the universal testing machine; obtaining the judgment scale of each decision logic when each material is tested in the universal testing machine; according to the independent decision factor and the judgment scale, an optimized cyclic decision is obtained; and the servo motor parameters of the universal testing machine are adjusted according to the optimized cyclic decision. The present invention reduces the problem that the logic operation is time-consuming and the real-time control of the universal testing machine cannot be well performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of non-electrical variable control, and in particular to a universal testing machine control method and system based on the Internet of Things. Background Art

[0002] Universal testing machine, also known as material testing machine, is a kind of testing equipment used to determine the mechanical properties of materials. It can perform various types of load tests on materials to evaluate various performance indicators such as strength, ductility, hardness, toughness, etc. Connecting the testing machine to the network and using the Internet of Things technology can enable it to have the ability of remote monitoring, data sharing, intelligent analysis and remote operation, which can significantly improve the efficiency and flexibility of the testing machine.

[0003] When controlling the servo motor of the universal testing machine, multiple decision logics in the loop decision of the PLC controller are usually judged during the material testing process, and the PID controller outputs the adjustment amount to adjust the servo motor parameters of the universal testing machine. Due to the multi-source characteristics of IoT data, different decision logics of the PLC controller have different trigger rates, and there are interrelated or independent relationships between different decision logics. The scale of each decision logic when judging is also different, resulting in the problem of complex logic in the decision logic of the PLC controller loop decision. As a result, when controlling the universal testing machine, the logic operation takes a long time, and the universal testing machine cannot be well controlled in real time. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a universal testing machine control method and system based on the Internet of Things.

[0005] The present invention provides a universal testing machine control method and system based on the Internet of Things, which adopts the following technical solutions:

[0006] An embodiment of the present invention provides a universal testing machine control method based on the Internet of Things, the method comprising the following steps:

[0007] Obtain several monitoring values ​​of the universal testing machine when testing each material through the Internet of Things technology and sensors; the materials are all the same material; obtain several parameters of the servo motor of the universal testing machine; obtain the cyclic decision of the universal testing machine when testing, the cyclic decision is the cyclic decision of the PLC controller, the cyclic decision includes several decision logics, each decision logic corresponds to a sensor, and each decision logic outputs a decision value after judgment;

[0008] According to the decision value of the decision logic in the cycle decision when the material is tested in the universal testing machine, the difference between the monitoring value of the sensor corresponding to the decision logic and the preset value, the triggering rate of each decision logic in each cycle decision when each material is tested in the universal testing machine is obtained;

[0009] The adjustment amount of the output parameter of the PID controller after the loop decision is obtained, and the independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained through the correlation between the trigger rates of the decision logic when different materials are tested in the universal testing machine and the correlation between the trigger rate and the adjustment amount;

[0010] According to the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained;

[0011] According to the independent decision factors and the judgment scale, the priority of each decision logic in the loop decision is obtained; the decision logic is screened according to the priority to obtain the optimized loop decision; and the servo motor parameters of the universal testing machine are adjusted according to the optimized loop decision.

[0012] Furthermore, the triggering rate of each decision logic in each cycle decision when each material is tested in the universal testing machine is obtained according to the decision value of the decision logic in the cycle decision when the material is tested in the universal testing machine, the difference between the monitoring value of the sensor corresponding to the decision logic and the preset value, and the specific steps included are as follows:

[0013] Obtain the total number of loop decisions and the decision value of each decision logic in each loop decision when the material is tested in the universal testing machine;

[0014] Any material in the class of materials to be tested is recorded as Materials;

[0015] The first The material is tested in a universal testing machine. All the first The ratio of the accumulated decision value of the decision logic to the total number of loop decisions during the test is recorded as the first ratio. When a material is tested in a universal testing machine The second cycle decision The absolute value of the difference between the set value of the decision logic and the monitoring value of the corresponding sensor is recorded as the first difference. When a material is tested in a universal testing machine The second cycle decision The set value of the decision logic is consistent with the set value of the first decision logic in all sub-cycle decisions. The difference between the minimum values ​​of the monitoring values ​​of the sensors corresponding to the decision logic is recorded as the first difference, the ratio of the first difference to the first difference is recorded as the second ratio, and the product of the first ratio and the second ratio is recorded as the first ratio. When a material is tested in a universal testing machine The second cycle decision The trigger rate of the decision logic.

[0016] Furthermore, the independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained by the correlation between the trigger rates of the decision logics when different materials are tested in the universal testing machine, and the correlation between the trigger rates and the adjustment amounts, and the specific steps included are as follows:

[0017] Obtain the trigger rate sequence of each decision logic when each material is tested in the universal testing machine; obtain the adjustment amount sequence of each parameter when each material is tested in the universal testing machine;

[0018] Any material in the class of materials to be tested is recorded as Materials;

[0019] Record any parameter of the servo motor of the universal testing machine as the target parameter;

[0020] The first When a material is tested in a universal testing machine The trigger rate sequence of the decision logic is The Pearson correlation coefficient of the adjustment sequence of the target parameter when the material is tested in the universal testing machine is recorded as the first Pearson correlation coefficient. When a material is tested in a universal testing machine The average of the Pearson correlation coefficients of the trigger rate sequence of the first decision logic and the trigger rate sequence of other decision logics is recorded as the second Pearson correlation coefficient, and the absolute value of the ratio of the first Pearson correlation coefficient to the second Pearson correlation coefficient is recorded as the first When a material is tested in a universal testing machine An independent decision factor of a decision logic.

[0021] Furthermore, the determination scale of each decision logic when each material is tested in the universal testing machine is obtained according to the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions, and the specific steps include the following:

[0022] Any material in the class of materials to be tested is recorded as Materials;

[0023] According to the fluctuation of the trigger rate of the decision logic within the loop decision, the effective adjustment factor of each loop decision when each material is tested in the universal testing machine is obtained;

[0024] The first When a material is tested in a universal testing machine The decision period of the next cycle ends at The cumulative decision value of the decision logic is The second cycle decision The ratio of the accumulated decision values ​​of the decision logics is used as the When a material is tested in a universal testing machine The second cycle decision The incremental ratio of the decision logic;

[0025] The first When a material is tested in a universal testing machine The second cycle decision The accumulated value of the incremental ratio of the decision logic is recorded as the first accumulated value. , For the The total number of decision cycles when a material is tested in a universal testing machine will be divided by the previous The remaining cycle decisions are outside the first cycle decision The accumulated value of the incremental ratio of the decision logic is recorded as the second accumulated value;

[0026] The absolute value of the difference between the first accumulated value and the second accumulated value is taken as the When a material is tested in a universal testing machine The convergence factor of the decision logic is denoted by ;

[0027] Will The number of loop decisions corresponding to the maximum value is taken as the When a material is tested in a universal testing machine The convergence length of the decision logic;

[0028] According to the convergence length and the effective adjustment factor, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained.

[0029] Furthermore, the effective adjustment factor of each cycle decision when each material is tested in the universal testing machine is obtained according to the fluctuation of the trigger rate of the decision logic in the cycle decision, and the specific steps include the following:

[0030] The first When a material is tested in a universal testing machine The variance of the trigger rate of all decision logics in the decision cycle is used as the When a material is tested in a universal testing machine Effective regulators of sub-cycle decision making.

[0031] Furthermore, the determination scale of each decision logic when each material is tested in the universal testing machine is obtained according to the convergence length and the effective adjustment factor, and the specific steps include the following:

[0032] The first When a material is tested in a universal testing machine The value of the convergence length of the decision logic is denoted by , will When a material is tested in a universal testing machine The mean of the effective adjustment factors of the second cycle decision is recorded as the second mean. The ratio of the second mean is taken as the When a material is tested in a universal testing machine A decision-making logic.

[0033] Furthermore, the priority of each decision logic in the loop decision is obtained according to the independent decision factor and the judgment scale, and the decision logic is screened according to the priority to obtain the optimized loop decision, which includes the following specific steps:

[0034] Get the number of times each material in a class of materials to be tested is tested in a universal testing machine The independent decision factors of a decision logic; obtain the first The judgment scale of a decision logic;

[0035] The first When a material is tested in a universal testing machine The product of the independent decision factor of the decision logic and the judgment scale is recorded as When a material is tested in a universal testing machine The priority factor of the decision logic is to prioritize all materials in a class of materials to be tested when they are tested in the universal testing machine. The average of the priority factors of the decision logic is used as the first The priority of the decision logic;

[0036] If a type of material to be tested is tested in a universal testing machine Decision logic continuous The decision values ​​are all 0. is the preset first value, The decision logic is screened out, otherwise, the The decision logics in the loop decision are retained, and all decision logics in the loop decision are judged to obtain several retained decision logics, and the priority of each retained decision logic is obtained. All retained decision logics are arranged from large to small according to the priority, and an optimized loop decision is obtained.

[0037] Furthermore, the specific method for obtaining the adjustment amount sequence of each parameter when each material is tested in the universal testing machine is as follows:

[0038] Get the The adjustment amount of the target parameter output by the PID controller after all the sub-cycle decisions when the material is tested in the universal testing machine is arranged in order of priority to obtain the adjustment amount of the target parameter output by the PID controller after all the sub-cycle decisions. A sequence of adjustment values ​​for target parameters when a material is tested in a universal testing machine.

[0039] Furthermore, the specific method for obtaining the trigger rate sequence of each decision logic when each material is tested in the universal testing machine is as follows:

[0040] Get the When a material is tested in a universal testing machine, all the cycles within the decision The trigger rate of the decision logic When a material is tested in a universal testing machine, all the cycles within the decision The trigger rates of the decision logics are arranged in order, and the When a material is tested in a universal testing machine A trigger rate sequence of decision logic.

[0041] The present invention also proposes a universal testing machine control system based on the Internet of Things, including a memory and a processor, wherein the processor executes a computer program stored in the memory to implement the steps of the aforementioned method.

[0042] The beneficial effect of the technical solution of the present invention is as follows: the present invention obtains the trigger rate of each decision logic in each cycle decision when the material is tested in the universal testing machine, and the trigger rate more accurately judges the triggering situation of the decision logic. The independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained through the correlation between the trigger rate sequence and the adjustment amount sequence and the correlation between different trigger rate sequences. The determination scale of each decision logic when each material is tested in the universal testing machine is obtained through the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision value of the same decision logic in the adjacent cycle decisions. Therefore, the priority of each decision logic in the cycle decision is more accurately obtained by combining the independent decision factor and the determination scale. The decision logic order of the PLC controller is adjusted by using the priority of the decision logic, and a large number of redundant decision logics are eliminated, thereby saving a lot of computing power in the cycle decision, reducing the problem that the logic operation is time-consuming and the universal testing machine cannot be well controlled in real time. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 A flowchart of a universal testing machine control method based on the Internet of Things provided by one embodiment of the present invention;

[0045] Figure 2 A flow chart for adjusting the servo motor parameters of a universal testing machine provided by one embodiment of the present invention;

[0046] Figure 3 A schematic diagram of a logical decision tree provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a universal testing machine control method and system based on the Internet of Things proposed by the present invention in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0048] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0049] The specific scheme of a universal testing machine control method and system based on the Internet of Things provided by the present invention is described in detail below with reference to the accompanying drawings.

[0050] See also Figure 1 and Figure 2 , which shows a flowchart of a method for controlling a universal testing machine based on the Internet of Things and a flowchart for adjusting the servo motor parameters of the universal testing machine provided by an embodiment of the present invention, the method comprising the following steps:

[0051] Step S001, obtaining a type of material to be tested; obtaining a number of monitoring values ​​when each material is tested in a universal testing machine; obtaining a number of parameters of a servo motor of the universal testing machine; and obtaining a cyclic decision of the universal testing machine when testing.

[0052] It should be noted that the PLC controller can be based on the test object and the user manually inputs a number of control logics. The PLC will intelligently control the operation of the test machine and the test process based on these control logics and the monitoring data of the Internet of Things, including system self-check, calibration, abnormal shutdown, startup, test procedures, parameter adjustment and other control instructions.

[0053] It should be noted that the main logic of this embodiment is: collect monitoring data through Internet of Things technology and sensors, input the monitoring data into the PLC controller, make judgments through the PLC internal loop decision (there are multiple decision logics in the loop decision), and output a control quantity through PID (PID is part of the PLC program) to control the parameters of the servo motor of the universal testing machine, thereby realizing the control of the universal testing machine. By optimizing the loop decision of the PLC controller, saving logical operations and loop consumption, the real-time performance of the system is improved.

[0054] Specifically, a type of material to be tested is obtained; it should be noted that the type of material to be tested includes several materials, which belong to the same type of materials, for example, all are metal materials.

[0055] Through the Internet of Things technology and sensors, several monitoring values ​​of the universal testing machine when testing each material are obtained, and the several monitoring values ​​include the force, displacement, speed, power, pressure, temperature, etc. of the testing machine.

[0056] Get several parameters of the servo motor of the universal testing machine, such as the speed, angle, torque, etc. of the servo motor.

[0057] The cyclic decision of the universal testing machine during the test is obtained. The cyclic decision is the cyclic decision of the PLC controller. The cyclic decision includes several decision logics, each decision logic corresponds to a sensor, and each decision logic outputs a decision value after judgment. It should be noted that the decision logic in the cyclic decision of the PLC controller is preset manually, and this embodiment will not be described in detail.

[0058] It should be noted that all decision logics of the PLC correspond to the sensors of the Internet of Things. The Internet of Things sends the sensor's monitoring data on the testing machine to the PLC controller. The PLC controller makes a decision and the PID controller outputs an adjustment amount of a target parameter. After adjusting the target parameters of the testing machine, new monitoring data is collected again and sent to the PLC controller to repeat the decision and output the adjustment amount.

[0059] Step S002, obtaining the triggering rate of each decision logic in each cycle decision when each material is tested in the universal testing machine; obtaining the independent decision factor of each decision logic when each material is tested in the universal testing machine through the correlation between the triggering rates of the decision logics when different materials are tested in the universal testing machine and the correlation between the triggering rates and the adjustment amounts.

[0060] It should be noted that the purpose of PLC is to ensure that the system runs stably according to the predetermined program. For simple control logic, PLC may only output a specific control quantity through PID. For complex control logic, PLC needs to continuously adjust the output until the conditions of several set decision logics are met and the control is stopped. In traditional PLC controllers, PID is part of the PLC program. The PLC controller determines the control direction, and the specific control quantity is obtained with the help of the PID controller.

[0061] It should be noted that all control logics in the PLC controller can be regarded as several judgment conditions, and any judgment condition can be converted into a binary form. The PLC controller can be analogized as a binary decision tree composed of several decision logics. However, in different material tests, some decision logics may not need to be judged and looped. Therefore, it is necessary to optimize the decision sequence of the PLC controller to save the cost of logical operations and loops and improve the real-time performance of the system.

[0062] It should be noted that when each type of material is tested in the testing machine, the PLC and PID controller will be used to adjust the parameters of the testing machine to achieve a good testing environment. The control process goes through several cycles. Each cycle is the process of re-decision-making after the testing machine parameters are adjusted. Each cycle can obtain a complete decision-making process.

[0063] It should be noted that, in order to facilitate understanding of the decision-making process of the PLC in this embodiment, this embodiment is illustrated by a logical decision tree. Figure 3 , Figure 3 is a schematic diagram of a logical decision tree of this embodiment, Figure 3 There are three decision logics, namely P1, P2, and P3. Each decision logic contains two decision nodes. Figure 3 1 represents that the decision logic is met, and 0 represents that the decision logic is not met. The decision value of P1 is 1 or 0. After obtaining one of the decision results, the second decision logic is determined backward, and the third decision logic is determined backward, and so on.

[0064] It should be noted that PLC needs to handle not only simple binary decisions, but also multiple inputs, outputs, and analog control signals. In addition, PLC programs often need to process multiple parallel processes at the same time, which may be independent of each other or interact with each other. Therefore, the trigger rate of each node in each loop decision in each test record is calculated.

[0065] Specifically, according to the decision value of the decision logic in the loop decision when the material is tested in the universal testing machine, the difference between the monitoring value of the sensor corresponding to the decision logic and the preset value, the trigger rate of each decision logic in each loop decision when each material is tested in the universal testing machine is obtained. As an embodiment, the specific calculation method is as follows:

[0066] Obtain the total number of loop decisions when the material is tested in the universal testing machine and the decision value of each decision logic in each loop decision. It should be noted that the decision logic in the loop decision of the PLC controller is preset manually. When the material is tested in the universal testing machine, it will go through multiple loop decisions. Each loop decision must go through several decision logics, and after each loop decision, the PID controller outputs an adjustment amount of the target parameter.

[0067] Any material in the class of materials to be tested is recorded as Materials.

[0068] The first The material is tested in a universal testing machine. All the first The ratio of the accumulated decision value of the decision logic to the total number of loop decisions during the test is recorded as the first ratio. When a material is tested in a universal testing machine The second cycle decision The absolute value of the difference between the set value of the decision logic and the monitoring value of the corresponding sensor is recorded as the first difference. When a material is tested in a universal testing machine The second cycle decision The set value of the decision logic is consistent with the set value of the first decision logic in all sub-cycle decisions. The difference between the minimum values ​​of the monitoring values ​​of the sensors corresponding to the decision logic is recorded as the first difference, the ratio of the first difference to the first difference is recorded as the second ratio, and the product of the first ratio and the second ratio is recorded as the first ratio. When a material is tested in a universal testing machine The second cycle decision The trigger rate of the decision logic.

[0069] It should be noted that, in order to better understand the trigger rate, this embodiment is explained in detail through the following formula:

[0070] ;

[0071] In the formula, For the The total number of loop decisions when a material is tested in a universal testing machine. It should be noted that each adjustment corresponds to a loop decision; For the The material is tested in a universal testing machine. The number of decision cycles, ; For the When a material is tested in a universal testing machine The second cycle decision The decision value of a decision logic. It should be noted that the decision value is 1 or 0. A decision value of 1 indicates that the decision logic is satisfied, and a decision value of 0 indicates that the decision logic is satisfied. For the When a material is tested in a universal testing machine The second cycle decision The set value of a decision logic. It should be noted that the set value is a preset value and this implementation does not impose a fixed limit; For the When a material is tested in a universal testing machine The second cycle decision The decision logic corresponds to the monitoring value of the sensor. For the When a material is tested in a universal testing machine, all the cycles within the decision The decision logic corresponds to the minimum value of the monitoring value of the sensor; is the first preset hyperparameter, the purpose of which is to prevent the denominator from being 0. to give a narrative; For the When a material is tested in a universal testing machine The second cycle decision The trigger rate of the decision logic, To take the absolute value.

[0072] It should be noted that Indicates The material is tested in a universal testing machine After the second cycle decision The ratio of the cumulative value of all decision values ​​of a decision logic to the total number of loop decisions, The larger the value, the better the decision logic of the i-th decision. The higher the trigger rate during the secondary cycle; Indicates the difference between the set value and the actual monitored value. Indicates the difference between the set value and the actual minimum value monitored, through right Normalize it, It is used to evaluate whether the decision logic is reliable in each cycle. The larger the The second cycle The greater the difference between the actual monitoring value and the set value of the sensor corresponding to the decision logic, the higher the credibility of the judgment. Get the first When a material is tested in a universal testing machine The second cycle decision The trigger rate of the decision logic.

[0073] Specifically, the adjustment amount of the output parameter of the PID controller after the cyclic decision is obtained, and the independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained through the correlation between the trigger rates of the decision logic when different materials are tested in the universal testing machine and the correlation between the trigger rate and the adjustment amount. The steps include:

[0074] Firstly, a trigger rate sequence of each decision logic when each material is tested in the universal testing machine is obtained; and an adjustment amount sequence of each parameter when each material is tested in the universal testing machine is obtained.

[0075] Secondly, according to the correlation between the trigger rate sequence and the adjustment amount sequence, and the correlation between different trigger rate sequences, the independent decision factors of each decision logic when each material is tested in the universal testing machine are obtained.

[0076] Specifically, the trigger rate sequence of each decision logic when each material is tested in the universal testing machine is obtained; the adjustment amount sequence of each parameter when each material is tested in the universal testing machine is obtained, as follows:

[0077] Get the When a material is tested in a universal testing machine, all the cycles within the decision The trigger rate of the decision logic When a material is tested in a universal testing machine, all the cycles within the decision The trigger rates of the decision logics are arranged in order, and the When a material is tested in a universal testing machine A trigger rate sequence of decision logic.

[0078] Any parameter of the servo motor of the universal testing machine is recorded as the target parameter.

[0079] Get the The adjustment amount of the target parameter output by the PID controller after all the sub-cycle decisions when the material is tested in the universal testing machine is arranged in order of priority to obtain the adjustment amount of the target parameter output by the PID controller after all the sub-cycle decisions. A sequence of adjustment values ​​for target parameters when a material is tested in a universal testing machine.

[0080] Furthermore, according to the correlation between the trigger rate sequence and the adjustment amount sequence and the correlation between different trigger rate sequences, an independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained. As an embodiment, the specific calculation method is as follows:

[0081] The first When a material is tested in a universal testing machine The trigger rate sequence of the decision logic is The Pearson correlation coefficient of the adjustment sequence of the target parameter when the material is tested in the universal testing machine is recorded as the first Pearson correlation coefficient. When a material is tested in a universal testing machine The average of the Pearson correlation coefficients of the trigger rate sequence of the first decision logic and the trigger rate sequence of other decision logics is recorded as the second Pearson correlation coefficient, and the absolute value of the ratio of the first Pearson correlation coefficient to the second Pearson correlation coefficient is recorded as the first When a material is tested in a universal testing machine An independent decision factor of a decision logic.

[0082] It should be noted that, in order to facilitate a better understanding of the independent decision factor, this embodiment is explained in detail through the following formula:

[0083] ;

[0084] In the formula, For the When a material is tested in a universal testing machine The trigger rate sequence of the decision logic, For the The adjustment sequence of the target parameters when a material is tested in a universal testing machine, A function for obtaining a Pearson correlation coefficient is used to obtain the Pearson correlation coefficient of two sequences. It should be noted that obtaining the Pearson correlation coefficient of two sequences is an existing method and will not be described in detail in this embodiment. For the When a material is tested in a universal testing machine The trigger rate sequence of the decision logic, is the number of decision logics in the loop decision, To take the absolute value, For the When a material is tested in a universal testing machine An independent decision factor of a decision logic.

[0085] It should be noted that Indicates The average value of the Pearson correlation coefficient of the trigger rate sequence of a decision logic and the trigger rate sequence of other decision logics. When the trigger rate of a decision logic is more correlated with the target parameter adjustment amount and less correlated with the trigger rate of other decision logics, the decision logic is more independent; when the trigger rate of a decision logic is less correlated with the target parameter adjustment amount but more correlated with the trigger rate of other decision logics, the decision logic is more redundant; therefore The bigger, the The larger the independent decision factor of a decision logic.

[0086] It should be noted that Represents the correlation between the triggering rates of the decision logic when different materials are tested in the universal testing machine, Indicates the correlation between the trigger rate and the adjustment amount.

[0087] It should be noted that when PLC processes parallel or related decision logics, a lot of computing power is wasted. Therefore, the independent decision factor of each decision logic is calculated to improve the processing priority of the specific independent decision logic.

[0088] So far, the independent decision factors of each decision logic when each material is tested in the universal testing machine are obtained.

[0089] Step S003, according to the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained.

[0090] It should be noted that, in addition to independent decision factors, the judgment scale of the decision logic also directly determines its priority, that is, whether the condition is easy to meet and converge.

[0091] It should be noted that the adjustment of the target parameters of the servo motor of the testing machine gradually approaches the optimal value, but not every adjustment is effective during the adjustment process. Therefore, in order to obtain an accurate judgment scale for the decision logic, it is necessary to calculate the effective adjustment factor for each cycle. In each cycle, the better the adjustment amount, the more consistent the trigger rate of all decision logics in the logical decision tree.

[0092] Specifically, according to the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained, including the following steps:

[0093] Firstly, according to the fluctuation of the triggering rate of the decision logic within the loop decision, the effective adjustment factor of each loop decision is obtained when each material is tested in the universal testing machine.

[0094] Secondly, according to the accumulated decision values ​​ending at the same decision logic in adjacent decision cycles, the convergence length of each decision logic when each material is tested in the universal testing machine is obtained.

[0095] Finally, according to the convergence length and the effective adjustment factor, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained.

[0096] Specifically, according to the fluctuation of the trigger rate of the decision logic in the loop decision, the effective adjustment factor of each loop decision when each material is tested in the universal testing machine is obtained. As an embodiment, the specific calculation method is as follows:

[0097] The first When a material is tested in a universal testing machine The variance of the trigger rate of all decision logics in the decision cycle is used as the When a material is tested in a universal testing machine Effective regulators of sub-cycle decision making.

[0098] It should be noted that, as the decision logic is cycled and the target parameters are continuously adjusted, all decision logics will be gradually satisfied. Therefore, the judgment scale of each decision logic is obtained by combining the convergence times of each decision logic in each cycle.

[0099] Specifically, according to the accumulated decision values ​​ending at the same decision logic in adjacent decision cycles, the convergence length of each decision logic when each material is tested in the universal testing machine is obtained. As an embodiment, the specific calculation method is as follows:

[0100] The first When a material is tested in a universal testing machine The decision period of the next cycle ends at The cumulative decision value of the decision logic is The second cycle decision The ratio of the accumulated decision values ​​of the decision logics is used as the When a material is tested in a universal testing machine The second cycle decision The incremental ratio of the decision logic.

[0101] The first When a material is tested in a universal testing machine The second cycle decision The accumulated value of the incremental ratio of the decision logic is recorded as the first accumulated value. , For the The total number of decision cycles when a material is tested in a universal testing machine will be divided by the previous The remaining cycle decisions are outside the first cycle decision The accumulated value of the incremental ratio of each decision logic is recorded as the second accumulated value.

[0102] The absolute value of the difference between the first accumulated value and the second accumulated value is taken as the When a material is tested in a universal testing machine The convergence factor of the decision logic.

[0103] It should be noted that, in order to facilitate a better understanding of the convergence factor, this embodiment is explained in detail through the following formula:

[0104] ;

[0105] In the formula, For the The material is tested in a universal testing machine. The number of decision cycles, , For the When a material is tested in a universal testing machine The decision period of the next cycle ends at The cumulative decision value of the decision logic, For the When a material is tested in a universal testing machine The second cycle decision The cumulative decision value of the decision logic, For the The total number of decision cycles when a material is tested in a universal testing machine, For the When a material is tested in a universal testing machine The decision period of the next cycle ends at The cumulative decision value of the decision logic, For the When a material is tested in a universal testing machine The decision period of the next cycle ends at The cumulative decision value of the decision logic, is the second preset hyperparameter, the purpose of which is to prevent the denominator from being 0. To narrate, To take the absolute value, For the When a material is tested in a universal testing machine The convergence factor of the decision logic.

[0106] Will The number of loop decisions corresponding to the maximum value is taken as the When a material is tested in a universal testing machine The convergence length of the decision logic. It should be noted that The number of loop decisions corresponding to the maximum value is , It is a variable.

[0107] It should be noted that Indicates The decision logic is The cumulative decision value of the second cycle decision is equal to the The ratio of the accumulated decision values ​​during the decision cycle, which represents the The decision logic is The incremental ratio of the decision results in the next cycle decision, Representatives will The sum of all increment ratios of the sub-cycle decision, Represents before When the absolute value of the difference between the sum of all increment ratios of the remaining loop decisions is the largest, it represents the The decision of the next cycle is When a material is tested in a universal testing machine A decision logic is a convergence node in the cyclic decision process.

[0108] Furthermore, according to the convergence length and the effective adjustment factor, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained. As an embodiment, the specific calculation method is as follows:

[0109] ;

[0110] In the formula, For the When a material is tested in a universal testing machine The convergence length of the decision logic, For the When a material is tested in a universal testing machine The effective regulatory factor of the sub-cycle decision, For the When a material is tested in a universal testing machine A decision-making logic.

[0111] It should be noted that The larger the The larger the convergence length of a decision logic, The smaller it is, the better the regulation effect of the cycle process is. The larger the value, the better the adjustment effect of the loop decision and the better the system status. The longer the convergence length of a decision logic, the more cycles of adjustment are needed to meet its set conditions. The larger the judgment scale of a decision logic.

[0112] So far, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained.

[0113] Step S004, obtaining the priority of each decision logic in the loop decision according to the independent decision factor and the judgment scale; filtering the decision logic according to the priority to obtain an optimized loop decision; and adjusting the servo motor parameters of the universal testing machine according to the optimized loop decision.

[0114] Specifically, the priority of each decision logic in the loop decision is obtained according to the independent decision factor and the judgment scale. As an embodiment, the specific calculation method is as follows:

[0115] Get the number of times each material in a class of materials to be tested is tested in a universal testing machine An independent decision factor of a decision logic.

[0116] Get the number of times each material in a class of materials to be tested is tested in a universal testing machine A decision-making logic.

[0117] ;

[0118] In the formula, is the number of materials in a class of materials to be tested, For the When a material is tested in a universal testing machine An independent decision factor of a decision logic, For the When a material is tested in a universal testing machine The judgment scale of a decision logic, For the loop decision The priority of the decision logic.

[0119] It should be noted that the larger the independent decision factor and the larger the judgment scale of the decision logic, the higher the loop priority.

[0120] Furthermore, the optimized loop decision is obtained according to the priority screening decision logic, as follows:

[0121] If a type of material to be tested is tested in a universal testing machine Decision logic continuous The decision values ​​are all 0. is the preset first value. In this embodiment, the first value is 3. The decision logic is screened out, otherwise, the The decision logic is retained, all decision logics in the loop decision are judged, several retained decision logics are obtained, the priority of each retained decision logic is obtained, and all retained decision logics are arranged from large to small according to the priority to obtain an optimized loop decision. It should be noted that the optimized loop decision contains several decision logics, and they are arranged from large to small according to the priority to save the PLC cycle consumption and improve the response speed of the PLC.

[0122] It should be noted that when different types of materials are tested in a testing machine, this embodiment can eliminate a large amount of redundant decision logic by adjusting the decision logic sequence of the PLC controller, thereby saving a large amount of computing power in the cyclic decision-making, and thereby obtaining the control results more efficiently and in real time.

[0123] Specifically, the servo motor parameters of the universal testing machine are adjusted according to the optimized loop decision. It should be noted that the servo motor parameters of the universal testing machine are adjusted according to the optimized loop decision, and the optimized loop decision in the PLC controller uses the PID controller to obtain the adjustment amount of the parameters, and then controls and adjusts the servo motor parameters of the universal testing machine. The specific control and adjustment is an existing method, which will not be repeated in this embodiment.

[0124] Through the above steps, the universal testing machine control method based on the Internet of Things is completed.

[0125] Another embodiment of the present invention provides a universal testing machine control system based on the Internet of Things, the system comprising a memory and a processor, and when the processor executes a computer program stored in the memory, the following operations are performed:

[0126] Through the Internet of Things technology and sensors, several monitoring values ​​are obtained when each material is tested in the universal testing machine; the materials are all the same material; several parameters of the servo motor of the universal testing machine are obtained; the cyclic decision of the universal testing machine during the test is obtained, and the cyclic decision is the cyclic decision of the PLC controller, and the cyclic decision includes several decision logics, each decision logic corresponds to a sensor, and each decision logic outputs a decision value after judgment; according to the decision value of the decision logic in the cyclic decision when the material is tested in the universal testing machine, the difference between the monitoring value of the sensor corresponding to the decision logic and the preset value, the trigger rate of each decision logic in each cyclic decision when each material is tested in the universal testing machine is obtained; after obtaining the cyclic decision, P The adjustment amount of the output parameter of the ID controller is obtained by the correlation between the triggering rates of the decision logics when different materials are tested in the universal testing machine and the correlation between the triggering rates and the adjustment amounts, so as to obtain the independent decision factors of each decision logic when each material is tested in the universal testing machine; according to the fluctuation of the triggering rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained; according to the independent decision factors and the judgment scale, the priority of each decision logic in the cycle decision is obtained; according to the priority, the decision logic is screened to obtain the optimized cycle decision; according to the optimized cycle decision, the servo motor parameters of the universal testing machine are adjusted.

[0127] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A universal testing machine control method based on the Internet of Things, characterized in that: The method comprises the following steps: Obtain several monitoring values ​​of the universal testing machine when testing each material through the Internet of Things technology and sensors; the materials are all the same material; obtain several parameters of the servo motor of the universal testing machine; obtain the cyclic decision of the universal testing machine when testing, the cyclic decision is the cyclic decision of the PLC controller, the cyclic decision includes several decision logics, each decision logic corresponds to a sensor, and each decision logic outputs a decision value after judgment; According to the decision value of the decision logic in the cycle decision when the material is tested in the universal testing machine, the difference between the monitoring value of the sensor corresponding to the decision logic and the preset value, the triggering rate of each decision logic in each cycle decision when each material is tested in the universal testing machine is obtained; The triggering rate of each decision logic in each cycle decision when each material is tested in the universal testing machine is obtained according to the decision value of the decision logic in the cycle decision when the material is tested in the universal testing machine, and the difference between the monitoring value of the sensor corresponding to the decision logic and the preset value. The specific steps include the following: Obtain the total number of loop decisions and the decision value of each decision logic in each loop decision when the material is tested in the universal testing machine; Any material in the class of materials to be tested is recorded as Materials; The first The material is tested in a universal testing machine. All the first The ratio of the accumulated decision value of the decision logic to the total number of loop decisions during the test is recorded as the first ratio. When a material is tested in a universal testing machine The second cycle decision The absolute value of the difference between the set value of the decision logic and the monitoring value of the corresponding sensor is recorded as the first difference. When a material is tested in a universal testing machine The second cycle decision The set value of the decision logic is consistent with the set value of the first decision logic in all sub-cycle decisions. The difference between the minimum values ​​of the monitoring values ​​of the sensors corresponding to the decision logic is recorded as the first difference, the ratio of the first difference to the first difference is recorded as the second ratio, and the product of the first ratio and the second ratio is recorded as the first ratio. When a material is tested in a universal testing machine The second cycle decision The trigger rate of the decision logic; The adjustment amount of the output parameter of the PID controller after the loop decision is obtained, and the independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained through the correlation between the trigger rates of the decision logic when different materials are tested in the universal testing machine and the correlation between the trigger rate and the adjustment amount; The independent decision factor of each decision logic when each material is tested in the universal testing machine is obtained by the correlation between the trigger rates of the decision logic when different materials are tested in the universal testing machine, and the correlation between the trigger rate and the adjustment amount. The specific steps include the following: Obtain the trigger rate sequence of each decision logic when each material is tested in the universal testing machine; obtain the adjustment amount sequence of each parameter when each material is tested in the universal testing machine; Any material in the class of materials to be tested is recorded as Materials; Record any parameter of the servo motor of the universal testing machine as the target parameter; The first When a material is tested in a universal testing machine The trigger rate sequence of the decision logic is The Pearson correlation coefficient of the adjustment sequence of the target parameter when the material is tested in the universal testing machine is recorded as the first Pearson correlation coefficient. When a material is tested in a universal testing machine The average of the Pearson correlation coefficients of the trigger rate sequence of the first decision logic and the trigger rate sequence of other decision logics is recorded as the second Pearson correlation coefficient, and the absolute value of the ratio of the first Pearson correlation coefficient to the second Pearson correlation coefficient is recorded as the first When a material is tested in a universal testing machine An independent decision factor of a decision logic; According to the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained; The method of obtaining the judgment scale of each decision logic when each material is tested in the universal testing machine according to the fluctuation of the trigger rate of the decision logic in the cycle decision and the accumulated decision values ​​ending at the same decision logic in the adjacent cycle decisions includes the following specific steps: Any material in the class of materials to be tested is recorded as Materials; According to the fluctuation of the trigger rate of the decision logic within the loop decision, the effective adjustment factor of each loop decision when each material is tested in the universal testing machine is obtained; The first When a material is tested in a universal testing machine The decision period of the next cycle ends at The cumulative decision value of the decision logic is The second cycle decision The ratio of the accumulated decision values ​​of the decision logics is used as the When a material is tested in a universal testing machine The second cycle decision The incremental ratio of the decision logic; The first When a material is tested in a universal testing machine The second cycle decision The accumulated value of the incremental ratio of the decision logic is recorded as the first accumulated value. , For the The total number of decision cycles when a material is tested in a universal testing machine will be divided by the previous The remaining cycle decisions are outside the first cycle decision The accumulated value of the incremental ratio of the decision logic is recorded as the second accumulated value; The absolute value of the difference between the first accumulated value and the second accumulated value is taken as the When a material is tested in a universal testing machine The convergence factor of the decision logic is denoted by ; Will The number of loop decisions corresponding to the maximum value is taken as the When a material is tested in a universal testing machine The convergence length of the decision logic; According to the convergence length and the effective adjustment factor, the judgment scale of each decision logic when each material is tested in the universal testing machine is obtained; According to the independent decision factors and the judgment scale, the priority of each decision logic in the loop decision is obtained; the decision logic is screened according to the priority to obtain the optimized loop decision; and the servo motor parameters of the universal testing machine are adjusted according to the optimized loop decision.

2. According to the universal testing machine control method based on the Internet of Things as described in claim 1, it is characterized in that: The specific steps of obtaining the effective adjustment factor of each cycle decision when each material is tested in the universal testing machine according to the fluctuation of the trigger rate of the decision logic in the cycle decision are as follows: The first When a material is tested in a universal testing machine The variance of the trigger rate of all decision logics in the decision cycle is used as the When a material is tested in a universal testing machine Effective regulators of sub-cycle decision making.

3. According to the universal testing machine control method based on the Internet of Things as claimed in claim 1, it is characterized in that: The specific steps of obtaining the judgment scale of each decision logic when each material is tested in the universal testing machine according to the convergence length and the effective adjustment factor are as follows: The first When a material is tested in a universal testing machine The value of the convergence length of the decision logic is denoted by , will When a material is tested in a universal testing machine The mean of the effective adjustment factors of the second cycle decision is recorded as the second mean. The ratio of the second mean is taken as the When a material is tested in a universal testing machine A decision-making logic.

4. According to the universal testing machine control method based on the Internet of Things as claimed in claim 1, it is characterized in that: The above method obtains the priority of each decision logic in the loop decision according to the independent decision factor and the judgment scale, and selects the decision logic according to the priority to obtain the optimized loop decision, including the following specific steps: Get the number of times each material in a class of materials to be tested is tested in a universal testing machine The independent decision factors of a decision logic; obtain the first The judgment scale of a decision logic; The first When a material is tested in a universal testing machine The product of the independent decision factor of the decision logic and the judgment scale is recorded as When a material is tested in a universal testing machine The priority factor of the decision logic is to prioritize all materials in a class of materials to be tested when they are tested in the universal testing machine. The average of the priority factors of the decision logic is used as the first The priority of the decision logic; If a type of material to be tested is tested in a universal testing machine Decision logic continuous The decision values ​​are all 0. is the preset first value, The decision logic is screened out, otherwise, the The decision logics in the loop decision are retained, and all decision logics in the loop decision are judged to obtain several retained decision logics, and the priority of each retained decision logic is obtained. All retained decision logics are arranged from large to small according to the priority, and an optimized loop decision is obtained.

5. According to the universal testing machine control method based on the Internet of Things as claimed in claim 1, it is characterized in that: The specific method for obtaining the adjustment amount sequence of each parameter when each material is tested in the universal testing machine is as follows: Get the The adjustment amount of the target parameter output by the PID controller after all the sub-cycle decisions when the material is tested in the universal testing machine is arranged in order of priority to obtain the adjustment amount of the target parameter output by the PID controller after all the sub-cycle decisions. A sequence of adjustment values ​​for target parameters when a material is tested in a universal testing machine.

6. According to the universal testing machine control method based on the Internet of Things as claimed in claim 1, it is characterized in that: The specific method for obtaining the trigger rate sequence of each decision logic when each material is tested in the universal testing machine is as follows: Get the When a material is tested in a universal testing machine, all the cycles within the decision The trigger rate of the decision logic When a material is tested in a universal testing machine, all the cycles within the decision The trigger rates of the decision logics are arranged in order, and the When a material is tested in a universal testing machine A trigger rate sequence of decision logic.

7. A universal testing machine control system based on the Internet of Things, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the computer program is executed by the processor, the steps of the universal testing machine control method based on the Internet of Things as described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Control system for universal material testing machine

    CN109634204A

  • PLC-based automatic control decision optimization method and system

    CN116203891A