A parameter control method and system based on multifunctional CNC lathe fixture

By calculating the ultimate response time and target throughput, splitting and optimizing instruction data transmission, the problem of synergistic errors caused by network delay and congestion in remote control of multi-function CNC lathe fixtures is solved, improving response speed and reducing failure rate.

CN119011399BActive Publication Date: 2024-12-20XIAN HONGYING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411496421.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2024-12-20
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

During the remote control of multi-function CNC lathes, network delay and congestion lead to synergistic errors between tooling and fixtures, increasing the probability of failure.

Method used

By receiving parameter control data of tool fixtures, the pre-built congestion control end and remote client calculate the limit response time and target throughput, split the instruction data and prioritize it, adjust the transmission process to reduce failure rate and improve response speed.

Benefits of technology

The tool fixtures respond to instructions is improved, the probability of failure occurs is reduced, and the stability and orderliness of data transmission are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011399B_ABST
    Figure CN119011399B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of network communication technology, a parameter control method and system based on a multifunctional CNC lathe fixture, comprising: receiving parameter control data of the fixture, obtaining multiple instruction data and maximum bandwidth, calculating target throughput using multiple instruction data and limit response time, confirming the latest data based on the target instruction sequence or the update instruction sequence, calculating the comprehensive throughput according to the preset initial delay and the preset initial packet loss rate, obtaining final data using the update throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data, parsing the final data in the instruction receiver using an instruction receiver, obtaining a control instruction, transmitting the control instruction to a parameter controller corresponding to the control instruction, obtaining a target controller, controlling one or more fixtures using the target controller, and completing parameter control of the fixture. The present invention can improve the response speed of the fixture to instructions and reduce the probability of failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a parameter control method, system, electronic equipment and computer-readable storage medium based on a multifunctional CNC lathe tooling fixture. Background Art

[0002] With the rapid development of the manufacturing industry, multifunctional CNC lathes have become an indispensable and important equipment in modern manufacturing, and are widely used in various high-precision mechanical processing tasks. As an important component of multifunctional CNC lathes, fixtures are mainly responsible for fixing and positioning the processing object, ensuring the precise positioning and stability of the workpiece, so as to improve the efficiency and quality of production and processing.

[0003] At present, remote control technology is gradually being applied to the control of multi-functional CNC lathe tooling and fixtures. The technicians in the control center can complete the control and adjustment of CNC lathes in multiple factories on the operation page of the remote client.

[0004] Although the existing remote control technology can realize the parameter control of the fixtures of multifunctional CNC lathes, when remotely controlling the fixtures, due to the limitations of the network environment, delays or command loss often occur. Especially when dealing with complex processing tasks or the coordinated control of multiple fixtures, there is a lot of command data, which is prone to network congestion, resulting in delayed response to the command, affecting the coordination of multiple fixtures, and then causing errors in the coordination between the fixtures, resulting in failures. Therefore, how to regulate the transmission process of the command, deal with network congestion and delays, and improve the response speed of the fixture has become an urgent problem to be solved. Summary of the invention

[0005] The present invention provides a parameter control method for a multifunctional CNC lathe tooling fixture and a computer-readable storage medium, the main purpose of which is to improve the response speed of the tooling fixture to instructions and reduce the probability of failure.

[0006] To achieve the above-mentioned purpose, the present invention provides a parameter control method based on a multifunctional CNC lathe fixture, comprising:

[0007] Receiving parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, the number of the parameter controllers is not greater than the number of the fixtures, and each parameter controller controls at least one fixture;

[0008] Acquire multiple instruction data and maximum bandwidth using parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data corresponds to the parameter controller one by one, and the congestion control terminal includes a history database and an instruction parsing system;

[0009] The congestion control terminal and a plurality of instruction data are used to calculate the limit response time, and the target throughput is calculated using the plurality of instruction data and the limit response time;

[0010] Compare the maximum bandwidth and the target throughput, if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, if the maximum bandwidth is less than the target throughput, obtain an update instruction sequence and an update throughput, wherein the update instruction sequence includes multiple update data;

[0011] Based on the target instruction sequence or the update instruction sequence, the latest data is confirmed, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence, and the latest data is removed from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence;

[0012] The comprehensive throughput is calculated according to the preset initial delay and the preset initial packet loss rate, and the final data is obtained by using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data;

[0013] The congestion control terminal is used to transmit the final data to the instruction receiver, and the average delay and the reference packet loss rate are obtained during the transmission process. When the instruction receiver successfully receives the final data, the average delay is used as the initial delay, the reference packet loss rate is used as the initial packet loss rate, the modified target sequence is used as the target instruction sequence, or the modified update sequence is used as the update instruction sequence, and the step of confirming the latest data based on the target instruction sequence or the update instruction sequence is returned;

[0014] The command receiver is used to parse the final data in the command receiver to obtain the control command, the control command is transmitted to the parameter controller corresponding to the control command, the target controller is obtained, and the target controller is used to control one or more tooling fixtures to complete the parameter control of the tooling fixtures.

[0015] Optionally, the method of obtaining a plurality of instruction data and a maximum bandwidth by using parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver includes:

[0016] Utilize the remote client to convert the parameter control data into multiple instruction data;

[0017] A plurality of command data are transmitted to the congestion control end. When the plurality of command data are successfully transmitted to the congestion control end, the congestion control end is used to connect to the command receiver. When the congestion control end is successfully connected to the command receiver, the congestion control end and the command receiver are used to obtain the maximum bandwidth.

[0018] Optionally, the calculating the limit response time by using the congestion control terminal and the plurality of instruction data includes:

[0019] Calculate the average room temperature by using the history database in the congestion control terminal, wherein the history database includes multiple history data, and the history database includes: recording time, parameter controller number, factory room temperature, response time and control result, wherein the control result includes: failure and normal, and the average room temperature is the average value of the factory room temperature in the multiple history data;

[0020] The following operations are performed on each of the multiple instruction data:

[0021] Retrieving multiple serial number data from a historical database based on a parameter controller corresponding to the instruction data;

[0022] Screening out a plurality of fault data from a plurality of numbered data, wherein the fault data is numbered data of which the control result is a fault;

[0023] Sort multiple fault data in descending order according to the recording time to obtain a fault data sequence, and calculate the historical response time using the fault data sequence and the average room temperature;

[0024] The historical response times are summarized to obtain multiple historical response times, and a limit response time is determined based on the multiple historical response times, wherein the limit response time is the shortest historical response time among the multiple historical response times.

[0025] Optionally, the calculating the historical response time by using the fault data sequence and the average room temperature includes:

[0026] The historical response time is calculated according to the following formula:

[0027] ,

[0028] in, is the historical response time, is the total number of fault data in the fault data sequence, is the average room temperature, is the first The factory room temperature in the failure data, is the first The response time in the fault data.

[0029] Optionally, calculating the target throughput by using the plurality of instruction data and the limit response time includes:

[0030] Use multiple command data to confirm the maximum data and minimum data;

[0031] Eliminate the maximum data and the minimum data from the multiple instruction data to obtain a reference data set;

[0032] The parsing time is calculated using the reference data set. The calculation formula is as follows:

[0033] ,

[0034] in, To analyze the time, is the number of instruction data in the reference data set, The reference data set The storage capacity of instruction data, is the preset parsing speed;

[0035] Subtract the analysis time from the limit response time to get the limit transmission time.

[0036] Calculate the target throughput using the reference data set and the limit transmission time;

[0037] ,

[0038] in, is the target throughput, The maximum transmission time.

[0039] Optionally, the acquiring the target instruction sequence by using a plurality of instruction data includes:

[0040] The following operations are performed on each of the multiple instruction data:

[0041] The parameter controller corresponding to the instruction data obtains the parameter control quantity and working time, wherein the parameter control quantity refers to the quantity of the fixture controlled by the parameter controller;

[0042] The instruction priority is calculated using instruction data, parameter control quantity and working time. The calculation formula is as follows:

[0043] ,

[0044] in, is the instruction priority, is the parameter control quantity, is the storage capacity of instruction data, For working hours, is the natural logarithm;

[0045] Summarize the instruction priorities to obtain multiple instruction priorities, sort the instruction priorities in the multiple instruction priorities in order from large to small, obtain an instruction priority sequence, and identify a target instruction sequence based on the instruction priority sequence, wherein the instruction data in the target instruction sequence corresponds one-to-one to the instruction priorities in the instruction priority sequence.

[0046] Optionally, obtaining the update instruction sequence and the update throughput includes:

[0047] Calculate the reduction ratio using the target throughput and the maximum bandwidth, where the reduction ratio is a ratio of the maximum bandwidth to the target throughput;

[0048] Using the congestion control terminal to generate a warning instruction, sending the warning instruction to the remote client, and when the remote client receives the warning instruction, using the remote client to generate a warning prompt;

[0049] The update control instruction is obtained by using the warning prompt, multiple update data are obtained based on the update control instruction, and the reorganization ratio is calculated by using the multiple update data and multiple instruction data. The calculation formula is as follows:

[0050] ,

[0051] in, For the re-adjustment ratio, For multiple instruction data The storage capacity of instruction data, For multiple update data Storage capacity for updated data;

[0052] Comparing the reduction ratio with the reorganization ratio, if the reorganization ratio is greater than or equal to the reduction ratio, returning to the step of generating a warning instruction by using the congestion control terminal until the reorganization ratio is less than the reduction ratio;

[0053] If the reorganization ratio is smaller than the reduction ratio, an update throughput is obtained based on the plurality of update data, and an update instruction sequence is obtained based on the plurality of update data.

[0054] Optionally, the calculating the comprehensive throughput according to a preset initial delay and a preset initial packet loss rate includes:

[0055] Obtain the receiving window capacity and the congestion window capacity, compare the receiving window capacity and the congestion window capacity, if the receiving window capacity is greater than the congestion window capacity, use the congestion window capacity as the available window capacity; if the receiving window capacity is less than or equal to the congestion window capacity, use the receiving window capacity as the available window capacity;

[0056] The comprehensive throughput is calculated using the available window capacity and initial delay. The calculation formula is as follows:

[0057] ,

[0058] in, is the comprehensive throughput, is the initial packet loss rate, is the available window capacity, is the initial delay.

[0059] Optionally, the obtaining final data by using the updated throughput or target throughput, the comprehensive throughput, the congestion control end and the latest data includes:

[0060] comparing the composite throughput to the target throughput or the updated throughput;

[0061] If the comprehensive throughput is greater than the target throughput or the update throughput, the latest data is taken as the final data;

[0062] If the comprehensive throughput is less than or equal to the target throughput or the updated throughput, the instruction parsing system in the congestion control end is used to perform parsing and compression operations on the latest data to obtain parsed data, and the comprehensive throughput is calculated using the initial delay, and the comprehensive throughput is compared with the target throughput or the updated throughput. When the comprehensive throughput is greater than the target throughput or the updated throughput, the parsed data is used as the final data.

[0063] To achieve the above object, the present invention also provides a parameter control system based on a multifunctional CNC lathe fixture, comprising:

[0064] An instruction data acquisition module is used to receive parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, wherein the number of parameter controllers is not greater than the number of fixtures, and each parameter controller controls at least one fixture, and a plurality of instruction data and a maximum bandwidth are acquired by using the parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data corresponds to the parameter controller one by one, and the congestion control terminal comprises a history database and an instruction parsing system;

[0065] a response time trade-off module, used to calculate the limit response time using the congestion control terminal and multiple instruction data, calculate the target throughput using the multiple instruction data and the limit response time, compare the maximum bandwidth and the target throughput, and if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, and if the maximum bandwidth is less than the target throughput, obtain the update instruction sequence and the update throughput, wherein the update instruction sequence includes multiple update data;

[0066] A network congestion adjustment module is used to confirm the latest data based on a target instruction sequence or an updated instruction sequence, wherein the latest data is the first instruction data or updated data in the target instruction sequence or the updated instruction sequence, remove the latest data from the target instruction sequence or the updated instruction sequence, obtain a modified target sequence or a modified update sequence, calculate the comprehensive throughput according to a preset initial delay and a preset initial packet loss rate, obtain final data using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data, transmit the final data to the instruction receiver using the congestion control end, and obtain an average delay and a reference packet loss rate during the transmission process, and when the instruction receiver successfully receives the final data, use the average delay as the initial delay, use the reference packet loss rate as the initial packet loss rate, use the modified target sequence as the target instruction sequence or use the modified update sequence as the updated instruction sequence, and return to the step of confirming the latest data based on the target instruction sequence or the updated instruction sequence;

[0067] The final data parsing module is used to use the instruction receiver to parse the final data in the instruction receiver, obtain the control instruction, transmit the control instruction to the parameter controller corresponding to the control instruction, obtain the target controller, use the target controller to control one or more tooling fixtures, and complete the parameter control of the tooling fixture.

[0068] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0069] A memory storing at least one instruction; and a processor executing the instruction stored in the memory to implement the above-mentioned parameter control method based on the multifunctional CNC lathe fixture.

[0070] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the above-mentioned parameter control method based on a multifunctional CNC lathe tooling fixture.

[0071] The present invention is to solve the problem described in the background technology. The present invention receives parameter control data of a tooling fixture, wherein the parameter control data is generated by a remote client, and the tooling fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe also includes: an instruction receiver and multiple parameter controllers, the number of parameter controllers is not greater than the number of tooling fixtures, and each parameter controller controls at least one tooling fixture, and multiple instruction data and maximum bandwidth are obtained by using parameter control data, a pre-built congestion control terminal, a remote client and an instruction receiver, wherein the instruction data corresponds to the parameter controller one-to-one, and the congestion control terminal includes a historical database and an instruction parsing system. It can be seen that the embodiment of the present invention splits the parameter control instruction into multiple instruction data and makes multiple Each instruction data corresponds to multiple parameter controllers one by one, which is convenient for subsequent transmission and processing of the instruction data in sequence, improving the efficiency of instruction data transmission, and at the same time measuring the maximum bandwidth in advance, which is convenient for subsequent comparison with the target throughput, and then using the congestion control end and multiple instruction data to calculate the limit response time, and using multiple instruction data and the limit response time to calculate the target throughput. It can be seen that the embodiment of the present invention calculates the limit response time by analyzing the historical database in the congestion control end, determines the maximum allowable response time of the tooling fixture under the premise of no failure, and then uses the limit response time to calculate the target throughput, thereby inferring the minimum throughput required for transmitting the instruction data under the premise of no failure, which is convenient for the subsequent transmission process of the instruction data according to the throughput. The process is regulated to reduce the failure rate, and the maximum bandwidth and the target throughput are compared. If the maximum bandwidth is greater than or equal to the target throughput, a target instruction sequence is obtained by using multiple instruction data. If the maximum bandwidth is less than the target throughput, an update instruction sequence and an update throughput are obtained, wherein the update instruction sequence includes multiple update data. It can be seen that the embodiment of the present invention determines in advance whether the maximum bandwidth can meet the throughput required for transmitting instruction data by comparing the maximum bandwidth and the target throughput, thereby preventing packet loss or failure caused by insufficient throughput when transmitting instruction data, reducing the failure rate, and then sorting the multiple instruction data to determine the priority of instruction data processing, ensuring that important instructions are processed first, further reducing the failure rate, and based on the target instruction sequence or more The new instruction sequence confirms the latest data, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence. The latest data is removed from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence. It can be seen that the embodiment of the present invention improves the orderliness of processing instructions by sequentially processing the instruction data or update data in the target instruction sequence or the update instruction sequence, thereby improving the transmission efficiency of the instruction data or the update data. The comprehensive throughput is calculated according to the preset initial delay and the preset initial packet loss rate, and the final data is obtained by using the update throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data. It can be seen that the embodiment of the present invention adjusts the transmission process of the latest data by calculating the comprehensive throughput.Then the efficiency of the latest data transmission is improved, the response speed is improved, the final data is transmitted to the instruction receiver by using the congestion control end, and the average delay and reference packet loss rate are obtained during the transmission process. When the instruction receiver successfully receives the final data, the average delay is used as the initial delay, the reference packet loss rate is used as the initial packet loss rate, the target sequence is modified as the target instruction sequence, or the modified update sequence is modified as the update instruction sequence, and the step of confirming the latest data based on the target instruction sequence or the update instruction sequence is returned. It can be seen that the embodiment of the present invention adjusts the next transmission process by obtaining the average delay and reference packet loss rate during this transmission process, thereby improving the stability of data transmission and reducing the probability of failure. The instruction receiver is used to parse the final data in the instruction receiver to obtain the control instruction, and the control instruction is transmitted to the parameter controller corresponding to the control instruction to obtain the target controller. The target controller is used to control one or more fixtures to complete the parameter control of the fixture. It can be seen that the embodiment of the present invention uses the instruction receiver to parse the final data transmitted in real time, so as to quickly use the target controller to control the fixture, thereby improving the response speed of the fixture. Therefore, the present invention can improve the response speed of the fixture to the instruction and reduce the probability of failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 A schematic flow chart of a method for controlling parameters of a multifunctional CNC lathe fixture provided in one embodiment of the present invention;

[0073] Figure 2 A functional module diagram of a multifunctional CNC lathe fixture parameter control system provided by an embodiment of the present invention;

[0074] Figure 3 A schematic diagram of the structure of an electronic device for implementing the parameter control method based on a multifunctional CNC lathe fixture provided in one embodiment of the present invention.

[0075] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0076] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0077] The embodiment of the present application provides a method for parameter control based on a multifunctional CNC lathe fixture. The execution subject of the method for parameter control based on a multifunctional CNC lathe fixture includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for parameter control based on a multifunctional CNC lathe fixture can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0078] Reference Figure 1 FIG. 1 is a flow chart of a method for adjusting parameters of a multifunctional CNC lathe fixture provided by an embodiment of the present invention. In this embodiment, the method for adjusting parameters of a multifunctional CNC lathe fixture includes:

[0079] S1. Receive parameter control data of a tooling fixture, wherein the parameter control data is generated by a remote client, and the tooling fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe also includes: a command receiver and multiple parameter controllers, the number of parameter controllers is not greater than the number of tooling fixtures, and each parameter controller controls at least one tooling fixture.

[0080] It should be understood that some factories where multifunctional CNC lathes are located are located in relatively remote places, and multiple factories are far apart. Therefore, it is necessary to set up a control center between multiple factories and use the remote client of the control center to remotely control the multifunctional CNC lathes in each factory.

[0081] For example, Xiao Zhang is an operator of a multifunctional CNC lathe control center. He now needs to control the multifunctional CNC lathe in a factory in the control center. So Xiao Zhang sets the parameters of the tooling fixture on the operation interface of the remote client. The remote client generates multiple instructions for controlling the tooling fixture based on the set parameters of the tooling fixture, and integrates and compresses these instructions into a data file, which is temporarily stored in the remote client. The data file is the parameter control data.

[0082] It should be understood that the technology of the remote client generating multiple instructions for controlling the jig based on setting the parameters of the jig and integrating these instructions into one piece of data is a prior art and will not be described in detail here.

[0083] It should be explained that the instruction receiver is a computer that can parse instruction data, and the instruction receiver is connected to multiple parameter controllers. The parameter controller is a PLC system that can control one or more fixtures.

[0084] It should be understood that since the instruction data corresponding to the parameter control data is compressed and integrated when it is generated, it cannot directly act on the parameter controller. Therefore, the parameter controller is connected to the instruction receiver, and the instruction data is parsed by the instruction receiver and the parsed result is transmitted to the parameter controller, and then the tooling fixture is controlled by the parameter controller. For the specific application of the instruction data, please refer to the subsequent embodiments.

[0085] S2. Utilize parameter control data, a pre-built congestion control terminal, a remote client, and a command receiver to obtain a plurality of command data and a maximum bandwidth, wherein the command data corresponds to the parameter controller one by one, and the congestion control terminal includes a historical database and a command parsing system.

[0086] In detail, the method of using parameter control data, a pre-built congestion control terminal, a remote client, and a command receiver to obtain a plurality of command data and a maximum bandwidth includes:

[0087] Utilize the remote client to convert the parameter control data into multiple instruction data;

[0088] A plurality of command data are transmitted to the congestion control end. When the plurality of command data are successfully transmitted to the congestion control end, the congestion control end is used to connect to the command receiver. When the congestion control end is successfully connected to the command receiver, the congestion control end and the command receiver are used to obtain the maximum bandwidth.

[0089] It should be explained that the instruction data is a data file containing one or more instructions for controlling the tooling fixture.

[0090] Exemplarily, the instructions in the parameter control data include: an instruction to set the clamping force of the first fixture to 10 Newtons, an instruction to set the clamping force of the second fixture to 20 Newtons, and an instruction to set the vertical downward movement angle of the third fixture to 10 degrees. If the first fixture and the second fixture are both controlled by the first parameter controller, and the third fixture is controlled by the second parameter controller, the parameter control data is split into two instruction data using the remote client. The first instruction data is used to control the first parameter controller after being parsed by the instruction receiver, and the second instruction data is used to control the second parameter controller after being parsed by the instruction receiver.

[0091] It should be explained that the congestion control terminal is a server with a command parsing system and a history database built in. For the specific application of the command parsing system and the history database, please refer to the subsequent embodiments.

[0092] It should be understood that the maximum bandwidth refers to the maximum bandwidth when the congestion control end and the instruction receiver transmit data. Optionally, iPerf is used to test the maximum bandwidth between the congestion control end and the instruction receiver, and the technology of using iPerf to test the maximum bandwidth between the congestion control end and the instruction receiver is existing technology and will not be repeated here.

[0093] S3. Calculate the limit response time using the congestion control terminal and the plurality of instruction data, and calculate the target throughput using the plurality of instruction data and the limit response time.

[0094] In detail, the calculation of the limit response time using the congestion control terminal and multiple instruction data includes:

[0095] Calculate the average room temperature by using the history database in the congestion control terminal, wherein the history database includes multiple history data, and the history database includes: recording time, parameter controller number, factory room temperature, response time and control result, wherein the control result includes: failure and normal, and the average room temperature is the average value of the factory room temperature in the multiple history data;

[0096] The following operations are performed on each of the multiple instruction data:

[0097] Retrieving multiple serial number data from a historical database based on a parameter controller corresponding to the instruction data;

[0098] Screening out a plurality of fault data from a plurality of numbered data, wherein the fault data is numbered data of which the control result is a fault;

[0099] Sort multiple fault data in order of recording time from earliest to latest to obtain a fault data sequence;

[0100] Calculate historical response time using fault data series and average room temperature;

[0101] The historical response times are summarized to obtain multiple historical response times, and a limit response time is determined based on the multiple historical response times, wherein the limit response time is the shortest historical response time among the multiple historical response times.

[0102] It should be explained that the historical database is a database that counts the control records of the fixtures in the past period of time. The parameter controller number is the number of the parameter controller. The response time refers to the time from the time when the instruction data is sent from the congestion control end to the time when the corresponding fixture starts to work, and the end point is the time obtained by subtracting the starting point from the end point.

[0103] For example, at 10:02:01 on January 1, the recording time is 10:02:01 on January 1. A certain instruction data is sent from the congestion control end, and is transmitted to the parameter controller numbered 002 after analysis. The displacement sensor on the multifunctional CNC lathe detects that the corresponding tooling fixture starts to move at 10:02:07, that is, the response time is 6 seconds. The temperature sensor on the multifunctional CNC lathe records that the temperature at this time is 30 degrees Celsius, that is, the factory room temperature is 30 degrees Celsius. During the operation of the multifunctional CNC lathe, if the tooling fixture fails (such as detecting that the temperature is too high or the clamping fails), the historical data corresponding to this regulation process is (January 1 10:02:01, 002, 30 degrees Celsius, 6 seconds, failure). The congestion control end counts all historical data within 7 days and stores it to obtain a historical database.

[0104] It should be understood that the multiple tooling fixtures on a multifunctional CNC lathe cooperate and interact with each other. Therefore, the adjustment of multiple tooling fixture parameters needs to be completed simultaneously in a short period of time. When the response time is too long, there may be a large time difference in the coordination between multiple tooling fixtures, thus causing failures.

[0105] Exemplarily, if the number of the parameter controller corresponding to a certain instruction data is 003, the historical data of the parameter controller numbered 003 is extracted from the historical database and used as the numbered data.

[0106] It needs to be explained that the historical response time reflects the relationship between the response time and the control result, that is, when the response time reaches the historical response time, the tooling fixture is likely to fail.

[0107] In detail, the method of calculating the historical response time using the fault data sequence and the average room temperature includes:

[0108] The historical response time is calculated according to the following formula:

[0109] ,

[0110] in, is the historical response time, is the total number of fault data in the fault data sequence, is the average room temperature, is the first The factory room temperature in the failure data, is the first The response time in the fault data.

[0111] It is understandable that the later the historical data is recorded in the historical database, the closer it is to the current situation of the multifunctional CNC lathe. Therefore, the later the fault data is recorded, the higher the weight is when calculating the historical response time.

[0112] In detail, the calculation of the target throughput using a plurality of instruction data and a limit response time includes:

[0113] Use multiple command data to confirm the maximum data and minimum data;

[0114] Eliminate the maximum data and the minimum data from the multiple instruction data to obtain a reference data set;

[0115] The parsing time is calculated using the reference data set. The calculation formula is as follows:

[0116] ,

[0117] in, To analyze the time, is the number of instruction data in the reference data set, The reference data set The storage capacity of instruction data, is the preset parsing speed;

[0118] Subtract the analysis time from the limit response time to get the limit transmission time.

[0119] Calculate the target throughput using the reference data set and the limit transmission time;

[0120] ,

[0121] in, is the target throughput, The maximum transmission time.

[0122] It should be understood that using a plurality of command data to identify the maximum data and the minimum data means that the command data with the largest storage capacity is used as the maximum data, and the command data with the smallest storage capacity is used as the minimum data.

[0123] It should be explained that the parsing time represents the average time required for the instruction parser to parse multiple instruction data in the reference data set in the historical data. The parsing speed is related to the model and computing power of the instruction parser.

[0124] It is understandable that in order to ensure that there are no failures in the operation of the tooling and fixture, the maximum time consumed for data transmission between the congestion control end and the instruction receiver is the limit transmission time, and the minimum throughput required for data transmission between the congestion control end and the instruction receiver is the target throughput.

[0125] S4. Compare the maximum bandwidth and the target throughput. If the maximum bandwidth is greater than or equal to the target throughput, use multiple instruction data to obtain a target instruction sequence. If the maximum bandwidth is less than the target throughput, obtain an update instruction sequence and an update throughput, wherein the update instruction sequence includes multiple update data.

[0126] It should be understood that since the maximum bandwidth is the maximum bandwidth between the congestion control end and the instruction receiver, if the target throughput is greater than the maximum bandwidth, it means that even if the entire bandwidth is used, the throughput required to ensure that the tooling fixture operation process does not fail cannot be achieved, and it is necessary to obtain an updated instruction sequence before transmission.

[0127] In detail, the method of acquiring a target instruction sequence by using a plurality of instruction data includes:

[0128] The following operations are performed on each of the multiple instruction data:

[0129] The parameter controller corresponding to the instruction data obtains the parameter control quantity and working time, wherein the parameter control quantity refers to the quantity of the fixture controlled by the parameter controller;

[0130] The instruction priority is calculated using instruction data, parameter control quantity and working time. The calculation formula is as follows:

[0131] ,

[0132] in, is the instruction priority, is the parameter control quantity, is the storage capacity of instruction data, For working hours, is the natural logarithm;

[0133] Summarize the instruction priorities to obtain multiple instruction priorities, sort the instruction priorities in the multiple instruction priorities in order from large to small, obtain an instruction priority sequence, and identify a target instruction sequence based on the instruction priority sequence, wherein the instruction data in the target instruction sequence corresponds one-to-one to the instruction priorities in the instruction priority sequence.

[0134] For example, the storage capacity of a certain instruction data is 0.1 megabytes, and the corresponding parameter controller is parameter controller numbered 023. By querying the manual of the CNC lathe, it is known that parameter controller No. 023 controls 7 tooling fixtures, so the number of parameter controls is 7. It is also known that parameter controller No. 023 was put into use on the multifunctional CNC lathe on October 10, and today is October 19, so the working time is 10 days.

[0135] It should be understood that the instruction priority reflects the priority with which instruction data is transmitted and parsed. The greater the instruction priority, the more priority the instruction data corresponding to the instruction priority will have in being transmitted between the congestion control end and the instruction receiver. Similarly, the instruction data corresponding to the instruction priority will have in being parsed by the instruction receiver.

[0136] It is understandable that the longer the parameter controller works, the more likely it is to fail. The more fixtures the parameter controller controls, the greater the impact of the parameter controller on the multifunctional CNC lathe. Therefore, the instruction data corresponding to the parameter controller should be transmitted and parsed with priority. The larger the storage capacity of the instruction data, the longer the instruction data takes to be transmitted and parsed, so the instruction data will not be transmitted and parsed with priority. For example, the storage capacity of the first instruction data is 10kb, and the number of parameter controls is 3. The storage capacity of the second instruction data is 20kb, and the number of parameter controls is 4. That is, the first instruction data uses 10kb of storage capacity to control 3 parameter controllers, and the second instruction data is equivalent to using 10kb of storage capacity to control 2 parameter controllers. Therefore, the first instruction data is more important and is transmitted with priority.

[0137] For example, the instruction priority sequence is {2.3, 2.1, 1.7}, if the instruction data corresponding to 2.3, 2.1 and 1.7 are , and , then the target instruction sequence is { , , }.

[0138] In detail, the obtaining of update instruction sequence and update throughput includes:

[0139] Calculate the reduction ratio using the target throughput and the maximum bandwidth, where the reduction ratio is the ratio of the maximum bandwidth to the target throughput;

[0140] Using the congestion control terminal to generate a warning instruction, sending the warning instruction to the remote client, and when the remote client receives the warning instruction, using the remote client to generate a warning prompt;

[0141] The update control instruction is obtained by using the warning prompt, multiple update data are obtained based on the update control instruction, and the reorganization ratio is calculated by using the multiple update data and multiple instruction data. The calculation formula is as follows:

[0142] ,

[0143] in, For the re-adjustment ratio, For multiple instruction data The storage capacity of instruction data, For multiple update data Storage capacity for updated data;

[0144] Comparing the reduction ratio with the reorganization ratio, if the reorganization ratio is greater than or equal to the reduction ratio, returning to the step of generating a warning instruction by using the congestion control terminal until the reorganization ratio is less than the reduction ratio;

[0145] If the reorganization ratio is smaller than the reduction ratio, an update throughput is obtained based on the plurality of update data, and an update instruction sequence is obtained based on the plurality of update data.

[0146] For example, the reason why the maximum bandwidth is less than the target throughput may be that an operator of a multifunctional CNC lathe control center sets too many parameters at one time to save energy when setting the parameters of the tooling fixture on the operation interface of the remote client. Therefore, when the congestion control end detects that the maximum bandwidth is less than the target throughput, it will send a warning instruction to the remote client. When the remote client receives the warning instruction, a window marked "Excessive parameters" will be generated on the operation interface. This window is a warning prompt. After the operator notices the warning prompt, he resets the parameters, and the remote client generates an update control instruction based on the reset parameters.

[0147] It should be understood that the method of obtaining multiple update data based on update control instructions is the same as the method of generating multiple instruction data based on parameter control data, the method of obtaining update throughput based on multiple update data is the same as the method of calculating target throughput using multiple instruction data and extreme response time, and the method of obtaining update instruction sequence based on multiple update data is the same as the method of obtaining target instruction sequence using multiple instruction data, which will not be repeated here.

[0148] S5. Confirm the latest data based on the target instruction sequence or the update instruction sequence, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence, and remove the latest data from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence.

[0149] Exemplarily, the target instruction sequence or update instruction sequence is { , , }, then This command data or update data is taken as the latest data, and then Remove from the target instruction sequence to obtain a modified target sequence or a modified update sequence, wherein the modified target sequence or the modified update sequence is { , }.

[0150] S6. Calculate the comprehensive throughput according to the preset initial delay and the preset initial packet loss rate, and obtain final data using the updated throughput or target throughput, the comprehensive throughput, the congestion control end and the latest data.

[0151] In detail, the calculating of the comprehensive throughput according to the preset initial delay and the preset initial packet loss rate includes:

[0152] Obtain the receiving window capacity and the congestion window capacity, compare the receiving window capacity and the congestion window capacity, if the receiving window capacity is greater than the congestion window capacity, use the congestion window capacity as the available window capacity; if the receiving window capacity is less than or equal to the congestion window capacity, use the receiving window capacity as the available window capacity;

[0153] The comprehensive throughput is calculated using the available window capacity and initial delay. The calculation formula is as follows:

[0154] ,

[0155] in, is the comprehensive throughput, is the initial packet loss rate, is the available window capacity, is the initial delay.

[0156] Optionally, the Socket Statistics command on the Linux system is used to monitor the size of the receive window and the size of the congestion window. The technology of using the Socket Statistics command on the Linux system to monitor the size of the receive window and the size of the congestion window is existing technology and will not be repeated here.

[0157] It should be explained that the receiving window capacity refers to the size of the receiving window, and the congestion window capacity refers to the size of the congestion window, and the units of the receiving window capacity and the congestion window capacity are bytes. The receiving window is the window value set by the instruction receiver according to its own cache size in the TCP protocol, reflecting the ability of the instruction receiver to receive data. The congestion window is the window value set by the sender based on the congestion situation of the network in the TCP protocol, reflecting the capacity of the current network, and during the data transmission process, the size of the receiving window and the size of the congestion window will change dynamically with the data transmission situation. The specific change process has been specified in the TCP protocol. The smaller capacity of the receiving window capacity and the congestion window capacity is taken as the available window capacity.

[0158] Optionally, the initial packet loss rate and initial delay are set by reading the log of the last data transmission of the congestion control end.

[0159] Exemplarily, the congestion control end supports accessing logs through SNMP or other protocols. By accessing the logs, it is learned that the last time data was transmitted, a total of 100 data packets were transmitted, and 2 data packets were retransmitted, so the initial packet loss rate is set to 2%, and the round-trip delay of the last data packet transmission was 0.8 milliseconds, so the initial delay is set to 0.8 milliseconds.

[0160] It should be understood that the comprehensive throughput reflects the throughput of the congestion control end and the instruction receiving end when performing data transmission. The larger the comprehensive throughput, the larger the throughput of the congestion control end and the instruction receiving end when performing data transmission.

[0161] In detail, the method of obtaining final data by using the updated throughput or target throughput, the comprehensive throughput, the congestion control end and the latest data includes:

[0162] comparing the composite throughput to the target throughput or the updated throughput;

[0163] If the comprehensive throughput is greater than the target throughput or the update throughput, the latest data is taken as the final data;

[0164] If the comprehensive throughput is less than or equal to the target throughput or the updated throughput, the instruction parsing system in the congestion control end is used to perform parsing and compression operations on the latest data to obtain parsed data, and the comprehensive throughput is calculated using the initial delay, and the comprehensive throughput is compared with the target throughput or the updated throughput. When the comprehensive throughput is greater than the target throughput or the updated throughput, the parsed data is used as the final data.

[0165] It should be explained that the instruction parsing system is a software built into the congestion control terminal that can parse and compress the latest data. The final data is the latest data when the comprehensive throughput is greater than the target throughput or the updated throughput, or the parsed data when the comprehensive throughput is less than or equal to the target throughput or the updated throughput.

[0166] It is understandable that the method of calculating the comprehensive throughput using the initial delay is the same as the method of calculating the comprehensive throughput according to the preset initial delay and the preset initial packet loss rate, and will not be repeated here.

[0167] It should be understood that when the comprehensive throughput is less than or equal to the target throughput or the update throughput, it means that the data transmission path is congested and it is not suitable to transmit the latest data at this time. The receiving window capacity or the congestion window capacity should be waited for to change until the comprehensive throughput is greater than the target throughput or the update throughput, and then the latest data can be transmitted. In order not to waste this waiting time, the parsing process that should be carried out in the instruction receiver is advanced to the instruction parsing system in the congestion control end, thereby shortening the response time and improving the response speed of the tooling fixture.

[0168] S7. Use the congestion control end to transmit the final data to the instruction receiver, and obtain the average delay and reference packet loss rate during the transmission process. When the instruction receiver successfully receives the final data, use the average delay as the initial delay, the reference packet loss rate as the initial packet loss rate, modify the target sequence as the target instruction sequence, or modify the update sequence as the update instruction sequence, and return to the step of confirming the latest data based on the target instruction sequence or the update instruction sequence.

[0169] In detail, obtaining the average delay and reference packet loss rate during the transmission process includes:

[0170] Start a pre-built data analyzer on the congestion control end, and use the started data analyzer to record the number of data packets transmitted and the number of retransmitted data packets during the transmission process, so as to obtain the total number of data packets and the number of retransmitted data packets;

[0171] Use the data analyzer after startup to obtain multiple round-trip delays during the transmission process;

[0172] The reference packet loss rate is calculated using the number of retransmitted data packets and the total number of data packets, wherein the reference packet loss rate is the ratio of the number of retransmitted data packets to the total number of data packets;

[0173] The average delay is calculated using multiple round-trip delays, where the average delay is the average of the multiple round-trip delays.

[0174] For example, when the final data is transmitted based on the TCP protocol, the final data will be split into multiple data packets. The time when a data packet is sent from the congestion control end is taken as the starting point. When the instruction receiver receives the data packet, it will return a confirmation response message to the congestion control end. The end point is the time when the congestion control end receives the confirmation response message. The period of time obtained by subtracting the starting point from the end point is the round-trip delay.

[0175] Optionally, Wireshark is used as a data analyzer, and the technology of using the started data analyzer to respectively record the number of data packets transmitted and the number of retransmitted data packets during the transmission process and the technology of using the started data analyzer to obtain multiple round-trip delays during the transmission process are both existing technologies and will not be repeated here.

[0176] S8. Utilize the instruction receiver to parse the final data in the instruction receiver to obtain the control instruction, transmit the control instruction to the parameter controller corresponding to the control instruction, obtain the target controller, utilize the target controller to control one or more fixtures, and complete the parameter control of the fixtures.

[0177] It should be explained that the control instructions are obtained by parsing the final data and can directly control the instructions of the PLC system.

[0178] It should be understood that when the instruction receiver successfully receives the final data and returns to the step of confirming the latest data based on the target instruction sequence or the updated instruction sequence, the instruction receiver is used to decompress and detect the final data, that is, the instruction receiver parses the final data that has been transmitted and the congestion control end transmits the next final data to the instruction receiver simultaneously, thereby saving time and improving response speed.

[0179] Exemplarily, when the instruction receiver receives the final data, the final data is immediately decompressed and detected. If the final data is detected to be parsed data, the data is sent to the parameter controller as a control instruction. If the final data is detected to be unparsed data, the final data is parsed into a control instruction, and the control instruction is sent to the corresponding parameter controller. The parameter controller that receives the control instruction is used as the target controller, and the target controller is used to execute the control instruction to control the one or more tooling fixtures.

[0180] It should be understood that the technology of using the instruction receiver to parse the final data in the instruction receiver is a prior art and will not be described in detail here.

[0181] The present invention is to solve the problem described in the background technology. The present invention receives parameter control data of a tooling fixture, wherein the parameter control data is generated by a remote client, and the tooling fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe also includes: an instruction receiver and multiple parameter controllers, the number of parameter controllers is not greater than the number of tooling fixtures, and each parameter controller controls at least one tooling fixture, and multiple instruction data and maximum bandwidth are obtained by using parameter control data, a pre-built congestion control terminal, a remote client and an instruction receiver, wherein the instruction data corresponds to the parameter controller one-to-one, and the congestion control terminal includes a historical database and an instruction parsing system. It can be seen that the embodiment of the present invention splits the parameter control instruction into multiple instruction data and makes multiple Each instruction data corresponds to multiple parameter controllers one by one, which is convenient for subsequent transmission and processing of the instruction data in sequence, improving the efficiency of instruction data transmission, and at the same time measuring the maximum bandwidth in advance, which is convenient for subsequent comparison with the target throughput, and then using the congestion control end and multiple instruction data to calculate the limit response time, and using multiple instruction data and the limit response time to calculate the target throughput. It can be seen that the embodiment of the present invention calculates the limit response time by analyzing the historical database in the congestion control end, determines the maximum allowable response time of the tooling fixture under the premise of no failure, and then uses the limit response time to calculate the target throughput, thereby inferring the minimum throughput required for transmitting the instruction data under the premise of no failure, which is convenient for the subsequent transmission process of the instruction data according to the throughput. The process is regulated to reduce the failure rate, and the maximum bandwidth and the target throughput are compared. If the maximum bandwidth is greater than or equal to the target throughput, a target instruction sequence is obtained by using multiple instruction data. If the maximum bandwidth is less than the target throughput, an update instruction sequence and an update throughput are obtained, wherein the update instruction sequence includes multiple update data. It can be seen that the embodiment of the present invention determines in advance whether the maximum bandwidth can meet the throughput required for transmitting instruction data by comparing the maximum bandwidth and the target throughput, thereby preventing packet loss or failure caused by insufficient throughput when transmitting instruction data, reducing the failure rate, and then sorting the multiple instruction data to determine the priority of instruction data processing, ensuring that important instructions are processed first, further reducing the failure rate, and based on the target instruction sequence or more The new instruction sequence confirms the latest data, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence. The latest data is removed from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence. It can be seen that the embodiment of the present invention improves the orderliness of processing instructions by sequentially processing the instruction data or update data in the target instruction sequence or the update instruction sequence, thereby improving the transmission efficiency of the instruction data or the update data. The comprehensive throughput is calculated according to the preset initial delay and the preset initial packet loss rate, and the final data is obtained by using the update throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data. It can be seen that the embodiment of the present invention adjusts the transmission process of the latest data by calculating the comprehensive throughput.Then the efficiency of the latest data transmission is improved, the response speed is improved, the final data is transmitted to the instruction receiver by using the congestion control end, and the average delay and reference packet loss rate are obtained during the transmission process. When the instruction receiver successfully receives the final data, the average delay is used as the initial delay, the reference packet loss rate is used as the initial packet loss rate, the target sequence is modified as the target instruction sequence, or the modified update sequence is modified as the update instruction sequence, and the step of confirming the latest data based on the target instruction sequence or the update instruction sequence is returned. It can be seen that the embodiment of the present invention adjusts the next transmission process by obtaining the average delay and reference packet loss rate during this transmission process, thereby improving the stability of data transmission and reducing the probability of failure. The instruction receiver is used to parse the final data in the instruction receiver to obtain the control instruction, and the control instruction is transmitted to the parameter controller corresponding to the control instruction to obtain the target controller. The target controller is used to control one or more fixtures to complete the parameter control of the fixture. It can be seen that the embodiment of the present invention uses the instruction receiver to parse the final data transmitted in real time, so as to quickly use the target controller to control the fixture, thereby improving the response speed of the fixture. Therefore, the present invention can improve the response speed of the fixture to the instruction and reduce the probability of failure.

[0182] like Figure 2 , which is a functional module diagram of a parameter control system for a multifunctional CNC lathe fixture provided by an embodiment of the present invention.

[0183] The multifunctional CNC lathe fixture parameter control system 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the multifunctional CNC lathe fixture parameter control system 100 can include an instruction data acquisition module 101, a response time trade-off module 102, a network congestion adjustment module 103 and a final data analysis module 104. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0184] The instruction data acquisition module 101 is used to receive parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, wherein the number of parameter controllers is not greater than the number of fixtures, and each parameter controller controls at least one fixture, and the plurality of instruction data and the maximum bandwidth are acquired by using the parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data and the parameter controller correspond one to one, and the congestion control terminal comprises a history database and an instruction parsing system;

[0185] The response time trade-off module 102 is used to calculate the limit response time using the congestion control terminal and the multiple instruction data, calculate the target throughput using the multiple instruction data and the limit response time, compare the maximum bandwidth and the target throughput, and if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, and if the maximum bandwidth is less than the target throughput, obtain the update instruction sequence and the update throughput, wherein the update instruction sequence includes multiple update data;

[0186] The network congestion adjustment module 103 is used to confirm the latest data based on the target instruction sequence or the update instruction sequence, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence, remove the latest data from the target instruction sequence or the update instruction sequence, obtain a modified target sequence or a modified update sequence, calculate the comprehensive throughput according to the preset initial delay and the preset initial packet loss rate, obtain the final data using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data, transmit the final data to the instruction receiver using the congestion control end, and obtain the average delay and the reference packet loss rate during the transmission process, when the instruction receiver successfully receives the final data, take the average delay as the initial delay, take the reference packet loss rate as the initial packet loss rate, take the modified target sequence as the target instruction sequence or take the modified update sequence as the update instruction sequence, and return to the step of confirming the latest data based on the target instruction sequence or the update instruction sequence;

[0187] The final data analysis module 104 is used to use the instruction receiver to parse the final data in the instruction receiver to obtain the control instruction, transmit the control instruction to the parameter controller corresponding to the control instruction, obtain the target controller, and use the target controller to control one or more tooling fixtures to complete the parameter control of the tooling fixture.

[0188] In detail, the modules in the multifunctional CNC lathe fixture parameter control system 100 described in the embodiment of the present invention are used in the same manner as described above. Figure 1 The technical means described in the method for parameter control of multifunctional CNC lathe fixture are the same and can produce the same technical effects, so they will not be repeated here.

[0189] like Figure 3 , which is a schematic diagram of the structure of an electronic device for implementing a parameter control method for a multifunctional CNC lathe fixture provided by an embodiment of the present invention.

[0190] The electronic device 1 may include a processor 10, a memory 11 and a bus 12, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a program for a parameter control method for a multifunctional CNC lathe fixture.

[0191] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 also includes an internal storage unit of the electronic device 1 and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device 1, such as the code of the program based on the parameter control method of the multifunctional CNC lathe fixture, but also can be used to temporarily store data that has been output or is to be output.

[0192] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, a program based on a parameter control method for a multifunctional CNC lathe fixture, etc.), and calls data stored in the memory 11, so as to execute various functions of the electronic device 1 and process data.

[0193] The bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus 12 may be divided into an address bus, a data bus, a control bus, etc. The bus 12 is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0194] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0195] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0196] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0197] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0198] The program based on the parameter control method of the multifunctional CNC lathe fixture stored in the memory 11 in the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:

[0199] Receiving parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, the number of the parameter controllers is not greater than the number of the fixtures, and each parameter controller controls at least one fixture;

[0200] Acquire multiple instruction data and maximum bandwidth using parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data corresponds to the parameter controller one by one, and the congestion control terminal includes a history database and an instruction parsing system;

[0201] The congestion control terminal and a plurality of instruction data are used to calculate the limit response time, and the target throughput is calculated using the plurality of instruction data and the limit response time;

[0202] Compare the maximum bandwidth and the target throughput, if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, if the maximum bandwidth is less than the target throughput, obtain an update instruction sequence and an update throughput, wherein the update instruction sequence includes multiple update data;

[0203] Based on the target instruction sequence or the update instruction sequence, the latest data is confirmed, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence, and the latest data is removed from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence;

[0204] The comprehensive throughput is calculated according to the preset initial delay and the preset initial packet loss rate, and the final data is obtained by using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data;

[0205] The congestion control terminal is used to transmit the final data to the instruction receiver, and the average delay and the reference packet loss rate are obtained during the transmission process. When the instruction receiver successfully receives the final data, the average delay is used as the initial delay, the reference packet loss rate is used as the initial packet loss rate, the modified target sequence is used as the target instruction sequence, or the modified update sequence is used as the update instruction sequence, and the step of confirming the latest data based on the target instruction sequence or the update instruction sequence is returned;

[0206] The command receiver is used to parse the final data in the command receiver to obtain the control command, the control command is transmitted to the parameter controller corresponding to the control command, the target controller is obtained, and the target controller is used to control one or more tooling fixtures to complete the parameter control of the tooling fixtures.

[0207] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figures 1 to 3 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0208] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0209] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:

[0210] Receiving parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, the number of the parameter controllers is not greater than the number of the fixtures, and each parameter controller controls at least one fixture;

[0211] Acquire multiple instruction data and maximum bandwidth using parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data corresponds to the parameter controller one by one, and the congestion control terminal includes a history database and an instruction parsing system;

[0212] The congestion control terminal and a plurality of instruction data are used to calculate the limit response time, and the target throughput is calculated using the plurality of instruction data and the limit response time;

[0213] Compare the maximum bandwidth and the target throughput, if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, if the maximum bandwidth is less than the target throughput, obtain an update instruction sequence and an update throughput, wherein the update instruction sequence includes multiple update data;

[0214] Based on the target instruction sequence or the update instruction sequence, the latest data is confirmed, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence, and the latest data is removed from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence;

[0215] The comprehensive throughput is calculated according to the preset initial delay and the preset initial packet loss rate, and the final data is obtained by using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data;

[0216] The congestion control terminal is used to transmit the final data to the instruction receiver, and the average delay and the reference packet loss rate are obtained during the transmission process. When the instruction receiver successfully receives the final data, the average delay is used as the initial delay, the reference packet loss rate is used as the initial packet loss rate, the modified target sequence is used as the target instruction sequence, or the modified update sequence is used as the update instruction sequence, and the step of confirming the latest data based on the target instruction sequence or the update instruction sequence is returned;

[0217] The command receiver is used to parse the final data in the command receiver to obtain the control command, the control command is transmitted to the parameter controller corresponding to the control command, the target controller is obtained, and the target controller is used to control one or more tooling fixtures to complete the parameter control of the tooling fixtures.

[0218] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only illustrative, and actual implementation may have other division methods.

[0219] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0220] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0221] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0222] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A parameter control method based on a multifunctional CNC lathe fixture, characterized in that: The method comprises: Receiving parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, the number of the parameter controllers is not greater than the number of the fixtures, and each parameter controller controls at least one fixture; Acquire multiple instruction data and maximum bandwidth using parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data corresponds to the parameter controller one by one, and the congestion control terminal includes a history database and an instruction parsing system; Calculate the limit response time using the congestion control terminal and multiple command data; The method of calculating the limit response time by using the congestion control terminal and the plurality of instruction data includes: Calculate the average room temperature by using the history database in the congestion control terminal, wherein the history database includes multiple history data, and the history database includes: recording time, parameter controller number, factory room temperature, response time and control result, wherein the control result includes: failure and normal, and the average room temperature is the average value of the factory room temperature in the multiple history data; The following operations are performed on each of the multiple instruction data: Retrieving multiple serial number data from a historical database based on a parameter controller corresponding to the instruction data; Screening out a plurality of fault data from a plurality of numbered data, wherein the fault data is numbered data of which the control result is a fault; Sort multiple fault data in descending order according to the recording time to obtain a fault data sequence, and calculate the historical response time using the fault data sequence and the average room temperature; Summarize the historical response times to obtain multiple historical response times, and determine the limit response time based on the multiple historical response times, wherein the limit response time is the shortest historical response time among the multiple historical response times; Calculate target throughput using multiple instruction data and critical response time; Compare the maximum bandwidth and the target throughput, if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, if the maximum bandwidth is less than the target throughput, obtain an update instruction sequence and an update throughput, wherein the update instruction sequence includes multiple update data; Based on the target instruction sequence or the update instruction sequence, the latest data is confirmed, wherein the latest data is the first instruction data or update data in the target instruction sequence or the update instruction sequence, and the latest data is removed from the target instruction sequence or the update instruction sequence to obtain a modified target sequence or a modified update sequence; The comprehensive throughput is calculated according to the preset initial delay and the preset initial packet loss rate, and the final data is obtained by using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data; The congestion control terminal is used to transmit the final data to the instruction receiver, and the average delay and the reference packet loss rate are obtained during the transmission process. When the instruction receiver successfully receives the final data, the average delay is used as the initial delay, the reference packet loss rate is used as the initial packet loss rate, the modified target sequence is used as the target instruction sequence, or the modified update sequence is used as the update instruction sequence, and the step of confirming the latest data based on the target instruction sequence or the update instruction sequence is returned; The command receiver is used to parse the final data in the command receiver to obtain the control command, the control command is transmitted to the parameter controller corresponding to the control command, the target controller is obtained, and the target controller is used to control one or more tooling fixtures to complete the parameter control of the tooling fixtures.

2. The parameter control method based on the multifunctional CNC lathe fixture according to claim 1 is characterized in that: The method of using parameter control data, a pre-built congestion control terminal, a remote client, and a command receiver to obtain a plurality of command data and a maximum bandwidth includes: Utilize the remote client to convert the parameter control data into multiple instruction data; A plurality of command data are transmitted to the congestion control end. When the plurality of command data are successfully transmitted to the congestion control end, the congestion control end is used to connect to the command receiver. When the congestion control end is successfully connected to the command receiver, the congestion control end and the command receiver are used to obtain the maximum bandwidth.

3. The parameter control method based on the multifunctional CNC lathe fixture according to claim 2 is characterized in that: The method of calculating the historical response time by using the fault data sequence and the average room temperature includes: The historical response time is calculated according to the following formula: , in, is the historical response time, is the total number of fault data in the fault data sequence, is the average room temperature, is the first The factory room temperature in the failure data, is the first The response time in the fault data.

4. The parameter control method based on the multifunctional CNC lathe fixture as claimed in claim 3 is characterized in that: The method of calculating the target throughput by using a plurality of instruction data and a limit response time includes: Use multiple command data to confirm the maximum data and minimum data; Eliminate the maximum data and the minimum data from the multiple instruction data to obtain a reference data set; The parsing time is calculated using the reference data set. The calculation formula is as follows: , in, To analyze the time, is the number of instruction data in the reference data set, The reference data set The storage capacity of instruction data, is the preset parsing speed; Subtract the analysis time from the limit response time to get the limit transmission time. Calculate the target throughput using the reference data set and the limit transmission time; , in, is the target throughput, The maximum transmission time.

5. The parameter control method based on the multifunctional CNC lathe fixture as claimed in claim 4 is characterized in that: The method of obtaining a target instruction sequence by using a plurality of instruction data includes: The following operations are performed on each of the multiple instruction data: The parameter controller corresponding to the instruction data obtains the parameter control quantity and working time, wherein the parameter control quantity refers to the quantity of the fixture controlled by the parameter controller; The instruction priority is calculated using instruction data, parameter control quantity and working time. The calculation formula is as follows: , in, is the instruction priority, is the parameter control quantity, is the storage capacity of instruction data, For working hours, is the natural logarithm; Summarize the instruction priorities to obtain multiple instruction priorities, sort the instruction priorities in the multiple instruction priorities in order from large to small, obtain an instruction priority sequence, and identify a target instruction sequence based on the instruction priority sequence, wherein the instruction data in the target instruction sequence corresponds one-to-one to the instruction priorities in the instruction priority sequence.

6. The parameter control method based on the multifunctional CNC lathe fixture according to claim 5 is characterized in that: The obtaining of the update instruction sequence and the update throughput includes: Calculate the reduction ratio using the target throughput and the maximum bandwidth, where the reduction ratio is a ratio of the maximum bandwidth to the target throughput; Using the congestion control terminal to generate a warning instruction, sending the warning instruction to the remote client, and when the remote client receives the warning instruction, using the remote client to generate a warning prompt; Use the warning prompt to obtain the update control instruction, obtain multiple update data based on the update control instruction, and use the multiple update data and multiple instruction data to calculate the reorganization ratio. The calculation formula is as follows: , in, For the re-adjustment ratio, For multiple instruction data The storage capacity of instruction data, For multiple update data Storage capacity for updated data; Comparing the reduction ratio with the reorganization ratio, if the reorganization ratio is greater than or equal to the reduction ratio, returning to the step of generating a warning instruction by using the congestion control terminal until the reorganization ratio is less than the reduction ratio; If the reorganization ratio is smaller than the reduction ratio, an update throughput is obtained based on the plurality of update data, and an update instruction sequence is obtained based on the plurality of update data.

7. The parameter control method based on the multifunctional CNC lathe fixture according to claim 6 is characterized in that: The calculating of the comprehensive throughput according to the preset initial delay and the preset initial packet loss rate includes: Obtain the receiving window capacity and the congestion window capacity, compare the receiving window capacity and the congestion window capacity, if the receiving window capacity is greater than the congestion window capacity, use the congestion window capacity as the available window capacity; if the receiving window capacity is less than or equal to the congestion window capacity, use the receiving window capacity as the available window capacity; The comprehensive throughput is calculated using the available window capacity and initial delay. The calculation formula is as follows: , in, is the comprehensive throughput, is the initial packet loss rate, is the available window capacity, is the initial delay.

8. The parameter control method based on the multifunctional CNC lathe fixture according to claim 7 is characterized in that: The method of obtaining final data by using the updated throughput or target throughput, the comprehensive throughput, the congestion control end and the latest data includes: comparing the composite throughput to the target throughput or the update throughput; If the comprehensive throughput is greater than the target throughput or the update throughput, the latest data is taken as the final data; If the comprehensive throughput is less than or equal to the target throughput or the updated throughput, the instruction parsing system in the congestion control end is used to perform parsing and compression operations on the latest data to obtain parsed data, and the comprehensive throughput is calculated using the initial delay, and the comprehensive throughput is compared with the target throughput or the updated throughput. When the comprehensive throughput is greater than the target throughput or the updated throughput, the parsed data is used as the final data.

9. A parameter control system based on a multifunctional CNC lathe fixture, characterized in that: The system comprises: An instruction data acquisition module is used to receive parameter control data of a fixture, wherein the parameter control data is generated by a remote client, and the fixture is a component unit of a multifunctional CNC lathe, and the multifunctional CNC lathe further comprises: an instruction receiver and a plurality of parameter controllers, wherein the number of parameter controllers is not greater than the number of fixtures, and each parameter controller controls at least one fixture, and a plurality of instruction data and a maximum bandwidth are acquired by using the parameter control data, a pre-built congestion control terminal, a remote client, and an instruction receiver, wherein the instruction data corresponds to the parameter controller one by one, and the congestion control terminal comprises a history database and an instruction parsing system; A response time trade-off module is used to calculate the limit response time using the congestion control terminal and multiple instruction data; The method of calculating the limit response time by using the congestion control terminal and the plurality of instruction data includes: Calculate the average room temperature by using the history database in the congestion control terminal, wherein the history database includes multiple history data, and the history database includes: recording time, parameter controller number, factory room temperature, response time and control result, wherein the control result includes: failure and normal, and the average room temperature is the average value of the factory room temperature in the multiple history data; The following operations are performed on each of the multiple instruction data: Retrieving multiple serial number data from a historical database based on a parameter controller corresponding to the instruction data; Screening out a plurality of fault data from a plurality of numbered data, wherein the fault data is numbered data of which the control result is a fault; Sort multiple fault data in descending order according to the recording time to obtain a fault data sequence, and calculate the historical response time using the fault data sequence and the average room temperature; Summarize the historical response times to obtain multiple historical response times, and determine the limit response time based on the multiple historical response times, wherein the limit response time is the shortest historical response time among the multiple historical response times; Calculate the target throughput using multiple instruction data and the limit response time, compare the maximum bandwidth and the target throughput, if the maximum bandwidth is greater than or equal to the target throughput, obtain the target instruction sequence using the multiple instruction data, if the maximum bandwidth is less than the target throughput, obtain the update instruction sequence and the update throughput, wherein the update instruction sequence includes multiple update data; A network congestion adjustment module is used to confirm the latest data based on a target instruction sequence or an updated instruction sequence, wherein the latest data is the first instruction data or updated data in the target instruction sequence or the updated instruction sequence, remove the latest data from the target instruction sequence or the updated instruction sequence, obtain a modified target sequence or a modified update sequence, calculate the comprehensive throughput according to a preset initial delay and a preset initial packet loss rate, obtain final data using the updated throughput or the target throughput, the comprehensive throughput, the congestion control end and the latest data, transmit the final data to the instruction receiver using the congestion control end, and obtain an average delay and a reference packet loss rate during the transmission process, and when the instruction receiver successfully receives the final data, use the average delay as the initial delay, use the reference packet loss rate as the initial packet loss rate, use the modified target sequence as the target instruction sequence or use the modified update sequence as the updated instruction sequence, and return to the step of confirming the latest data based on the target instruction sequence or the updated instruction sequence; The final data parsing module is used to use the instruction receiver to parse the final data in the instruction receiver, obtain the control instruction, transmit the control instruction to the parameter controller corresponding to the control instruction, obtain the target controller, use the target controller to control one or more tooling fixtures, and complete the parameter control of the tooling fixture.

Citation Information

Patent Citations

  • M / M / 1 queuing model scheduling method based on congestion control

    CN113452618A

  • Multi-robot system data distribution throughput adaptive adjustment method in SLAM scene

    CN116389374A