A tension detection system and control strategy for rapier looms

By designing a dedicated tension detection system in the rapier loom and using fuzzy PID control strategy and data fitting technology, the problems of adaptability and anti-interference are solved, high-precision and stable control are achieved, and production efficiency and products are improved. quality.

CN114034417BActive Publication Date: 2024-08-27JIANGSU KEREAD INTELLIGENT CONTROL AUTOMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111320769.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-09
Publication Date
2024-08-27
Estimated Expiration
2041-11-09

AI Technical Summary

Technical Problem

The existing rapier loom tension detection system has low adaptability and poor anti-interference ability, and cannot meet the control needs of tension fluctuations in high-speed production. The traditional PID algorithm is difficult to achieve stable control.

Method used

A tension detection system dedicated to rapier looms is designed, which uses fuzzy PID control strategy combined with traditional PID, genetic algorithm and BP neural network for data fitting, and integrates tension sensing, transformation and temperature acquisition, information processing and transmission modules. Achieve high-precision, wide range and strong anti-interference detection.

Benefits of technology

It achieves high-precision, wide-range detection and stable control of rapier loom tension, reduces the design complexity of the loom main control system, and improves production efficiency and product quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114034417B
    Figure CN114034417B
Patent Text Reader

Abstract

The present invention is a tension detection system and control strategy for a rapier loom, including a tension sensing module, a tension information processing and transmission module, a power supply module, and a tension conversion and temperature acquisition module. The tension sensing module includes an elastic body, the material yield strength of the elastic body is not less than 900MPa, and the elastic body is divided into two upper and lower mechanical parts. The tail end of the lower mechanical part is fixed to the fixed rear beam of the loom through bolts and connectors. An opening for clamping a tension roller is provided at the junction of the upper and lower mechanical parts. The tension roller is clamped at the opening position and fixed by bolts. The deformation range of the elastic body is concentrated in the middle area, and blind holes are provided in the middle areas of the front and back sides of the elastic body where the deformation range is concentrated, and strain gauges are glued in the blind holes. The mechanical structure, tension detection and control principle of the rapier loom are studied to achieve high-precision, wide-range and strong anti-interference detection of the tension information of the rapier loom, and to achieve stable control of the warp tension of the loom.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of detection systems, and in particular to a tension detection system and a control strategy dedicated to a rapier loom. Background Art

[0002] As a type of shuttleless loom, rapier loom is the most widely used in the current textile industry. For rapier looms, tension control is an important link in its weaving process. Tension control of the loom is one of the important factors to ensure its stable and reliable operation, and accurate measurement of tension is the premise for the normal operation of the tension control system. Too much or too little tension will have a great impact on the formation of the fabric: if the warp tension is too large, the warp will break easily, causing the loom to stop, and it may also cause the yarn to deform, affecting the performance and structure of the finished product; if the warp tension is too small, the finished fabric will be loose, the shape is not good and the elasticity is missing. Stable tension is the guarantee of tight fabric structure, moderate elasticity and good forming. At present, the degree of mechanical intelligence in the domestic textile field is not high, the work efficiency is low, the production cost is high, and the quality of fabric products is not as good as foreign products. The level of warp tension detection determines the effect of loom tension control, and the stable tension control algorithm determines the quality level of the fabric, so warp tension detection and tension fine control are one of the goals pursued by the development of industrial automation in the textile field.

[0003] At present, the tension detection system of rapier looms is mainly based on system integrated tension control system, which loses the specialization of the detection system and has not been optimized for the loom field. The adaptability to the loom field, especially the rapier loom field, is not very high. Secondly, the anti-interference ability is poor, especially when the inverter is turned on, the tension measurement value will have a large deviation, resulting in detection error. The measurement range of high-precision detection systems is often small, while the detection error of detection systems with larger ranges is often too large. The contradiction between detection range and detection accuracy has not been resolved. At the same time, most of the existing tension detection systems do not consider the influence of temperature factors on tension detection, which affects the precision and accuracy of tension detection. Moreover, most of them are voltage and current output types, output analog signals, and need to transmit the signals to the main control system of the loom for secondary processing, which increases the complexity of the design of the loom main control system. Secondly, the existing loom tension control strategy is still based on the traditional PID algorithm, but due to its limitations, it is difficult to meet the control requirements for tension fluctuations under the current high-speed situation. Therefore, the invention of a loom tension detection system and control strategy that is moderately cost-effective, adapted to the mechanical structure of a rapier loom, simple and easy to use, and has high accuracy, a wide range, strong anti-interference ability, and small tension fluctuation will have a wide application market and significant social demand. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a tension detection system and control strategy dedicated to a rapier loom, studies the mechanical structure and tension detection and control principles of the rapier loom, and develops and designs the system architecture and functions in a targeted manner. A fuzzy PID-based loom warp tension adjustment algorithm is finally implemented, which ultimately achieves high-precision, wide-range and strong anti-interference detection of the rapier loom tension information, and also achieves stable control of the loom warp tension.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] A tension detection system dedicated to a rapier loom, comprising a tension sensing module, a tension information processing and transmission module, and a power supply module, wherein the tension sensing module comprises an elastic body, a strain gauge, a full bridge, and a zeroing circuit, and is characterized in that: the tension detection system further comprises a tension conversion and temperature acquisition module, and the tension conversion and temperature acquisition module, the tension information processing and transmission module, and the power supply module are all integrated on a circuit board;

[0007] The material yield strength of the elastic body is not less than 900MPa. The elastic body adopts a split structure as a whole, which is divided into an upper and a lower mechanical part, and bolt holes are respectively provided. The tail end of the lower mechanical part is fixed to the fixed rear beam of the loom by bolts and connectors. The head end of the lower mechanical part and the upper mechanical part are a card-type structure. An opening for clamping the tension roller is provided at the junction of the upper and lower mechanical parts. The tension roller is clamped at the opening and fixed by bolts.

[0008] When the tension roller in the rapier loom exerts force on the elastic body, the deformation range of the elastic body is concentrated in the middle area, blind holes are opened in the middle areas of the front and back sides of the elastic body where the deformation range is concentrated, and strain gauges are glued in the blind holes on the front and / or back sides;

[0009] The tension conversion and temperature acquisition module includes an anti-aliasing filter circuit, an A / D conversion module, and an ambient temperature detection module. The anti-aliasing filter circuit and the A / D conversion module together constitute a tension conversion circuit. The tension signal is filtered by the anti-aliasing filter circuit, and then the signal is input to the A / D conversion module for A / D conversion. The ambient temperature detection circuit is used to detect the ambient temperature.

[0010] The tension information processing and transmission module includes an information operation and processing core, a communication module and a storage expansion module. The information operation and processing core obtains the tension information and ambient temperature information after A / D conversion. A filtering algorithm and a data fitting module are set in the information operation and processing core to obtain accurate tension digital quantity.

[0011] The filtering algorithm is a filtering method that combines median filtering and limiting filtering, and can filter signals with frequencies below 0.01 Hz. The specific implementation process of median filtering is: first, a certain parameter is sampled N times continuously, N is usually an odd number, and then the numerical results of these N samples are arranged in order from small to large, and then the middle value is selected as the final value of this sampling. After median filtering, the fluctuation range of the sampled value is significantly reduced, and the fluctuation amplitude of more than half of the data is reduced by more than 50%; limiting filtering uses the limiting principle, and the data source of limiting filtering is the data after median filtering. The input signal is judged, and all instantaneous values ​​exceeding the preset threshold value are reduced to a value close to the previously set threshold value, and the threshold value is set to 150.

[0012] The data fitting module uses a genetic algorithm and a BP neural network to achieve data fitting. The BP neural network architecture adopts a three-layer structure design with two inputs and one output, wherein the two inputs are respectively an actual sampling value and a theoretical sampling value of tension at the same temperature, that is, a data set composed of the actual sampling value and the theoretical sampling value of tension. The activation function of the BP neural network selects a RELU function, removes the linearization of the entire neural network output, and makes the entire neural network model nonlinear. The trainlm function is used as the training function of the input node, the output layer transfer function uses a purelin function, and the hidden layer transfer function uses a tansig function. According to the number of neurons in the input layer, output layer and hidden layer of the BP neural network, the number of weights and thresholds is determined, and then the encoding length of the genetic algorithm population is determined. The initial weights and thresholds of the BP neural network are optimized by the genetic algorithm, and the initial weights and thresholds of the BP neural network are assigned to the optimal individuals obtained. Then, a curve obtained by the fusion fitting of the genetic algorithm and the BP neural network at a specific ambient temperature is obtained through training. The curve integrates the inherent connection between the ambient temperature factor and the actual sampling value and the theoretical sampling value, and shows a linear form, and the fitting error is not greater than 0.0105%.

[0013] The detection accuracy of the tension detection system reaches 0.01% to 0.15% FS, and has a wide range of 0 to 800kg; the dimensions of the lower mechanical parts of the elastomer are 16.5cm long, 3cm wide, and 6cm high, and the hole for fixing the tension roller should be set to a circular hole with a diameter of 3.5cm. The elastomer is made of 42CrMo material.

[0014] The maximum measuring range of the tension detection system is 800kg, the strain in the blind hole area is 0.5-0.6mm / m, the strain gauge model is BF350-3AA, the bridge circuit is a DC bridge, and the full-bridge circuit connection method is adopted. The full-bridge circuit uses the same strain gauge for all four bridge arms. The four strain gauges are installed in the blind hole on one side. The circuit is divided by a combination of potentiometer and resistor to achieve the effect of adjusting the resistance balance of the bridge arm and realizing zeroing of the full-bridge circuit.

[0015] The tension conversion and temperature acquisition module uses the standard dual-channel operational amplifier LM358B to build an anti-aliasing filter circuit to complete the hardware anti-interference function for the noise mixed in the tension sensing process. The AD7730 chip module and its peripheral circuits form an analog-to-digital conversion module to realize the conversion of analog voltage signals to digital discrete signals. The DS18B20 array temperature sensor is selected to realize the detection system for ambient temperature detection. The BP neural network is used to offset the influence of temperature on the output voltage of the bridge circuit, ensure the measurement accuracy, and realize temperature compensation.

[0016] The tension information processing and transmission module uses the STM32 single-chip microcomputer as the calculation and processing core, and is equipped with a CAN communication interface to realize the transmission with the loom main control system. The AT24C512 chip is used to realize the power-off saving function of important tension information to prevent the loss of important data and realize data recovery.

[0017] The power supply module is an independent module that supplies power to the other three modules. The 24V power supply of the loom main control system circuit board is used as input and converted into 5V and 3.3V voltage standards through the power conversion circuit.

[0018] The present invention also protects a tension control strategy dedicated to a rapier loom, which is characterized in that the warp tension of the rapier loom is controlled by combining fuzzy PID with traditional PID control, and a warp tension closed-loop control system based on fuzzy PID is constructed to achieve stable control of the warp tension.

[0019] The tension control strategy is based on the establishment of a mathematical model of the warp tension of the loom. The warp beam is selected as the control object, and the tension is collected in a fixed interval. At the same time, PID control is used as the framework and combined with fuzzy theory to control the output tension. The control parameters can be automatically adjusted according to the set fuzzy rules, thereby achieving stable control of the loom tension.

[0020] The mathematical model of the warp tension of the loom is:

[0021]

[0022] Among them, F tis the total tension of the warp yarn, n is the number of yarns passing around the tension roller, A0 is the cross-sectional area of ​​a single yarn, E is the elastic modulus of the yarn, L0 is the yarn length between the tangent point between the warp beam A and the yarn and the tangent point between the friction roller B and the fabric, △L0 is the yarn deformation after the tension is initialized, △L' is the deformation caused by the speed difference at both ends of the yarn, v A and v B are the linear velocities at the two tangent points respectively;

[0023] Guaranteed line speed difference v B -v A Constant and close to 0, can ensure that the warp tension is constant and the error is kept within a certain range, that is, the purpose of controlling the tension stability can be achieved by simply adjusting the speed of the warp beam and the take-up beam.

[0024] The process of collecting tension in a fixed interval is: the influence of opening, beating and weft insertion actions on the collection effect during the tension collection process is analyzed, and a 10° range of 45° to 55° in each cycle is taken as the angle interval for warp tension sampling.

[0025] By using ANSYS Workbench software to perform finite element analysis on the elastic body structure, the force on the elastic body meets the principle of tension detection of the rapier loom, the concentrated area of ​​stress distribution of the elastic body is determined, the position and shape of the blind hole are set, the strain gauge is installed, and the tension sensing module structure is determined;

[0026] The tension sensing module is fixed at the tension roller and the fixed rear beam.

[0027] A warp tension closed-loop control model based on fuzzy PID is built. The fuzzy controller adopts a two-input and three-output control model. The input is the deviation e(t) between the tension measurement value c(t) and the tension setting value r(t) and the tension error conversion rate e(t). c (t), the output is the correction value △K of the three PID parameters p , △K i , △K d ; Three basic parameters K of PID controller p , K i , K d The output correction value is used for online adjustment, and the adjustment formula is:

[0028]

[0029] Among them, K p0 , K i0 , K d0is the set value when the system is initialized, which is obtained by the traditional PID tuning method; the numerical value in the fuzzy domain is converted into a fuzzy subset {NB, NM, NS, ZO, PS, PM, PB}, and the elements in the subset correspond to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large respectively; when selecting the membership function, the elements NB and PB in the fuzzy subset corresponding to the input and output parameters use Z-type and anti-Z-type membership functions to form the left and right boundaries to achieve smooth transition; the five middle sub-elements use triangular membership functions and are evenly distributed;

[0030] The reasoning process of fuzzy rules should follow the following rules:

[0031] (1) In the initial stage of tension adjustment, the spindle has just started and is not stable yet, and there is a large deviation in the winding and unwinding speed. At this time, the deviation e between the warp tension and the set value is large; in order to improve the response speed, K should be appropriately increased. p , and K i Then take the smaller value or zero;

[0032] (2) When the tension is relatively stable, that is, when the deviation value e is small, the tension deviation change rate e c In order to improve stability and control accuracy, K should be appropriately reduced. p and K i , and K d It should be stable within a small range;

[0033] (3) When the spindle speed is adjusted or other interference is encountered during the adjustment process, the tension fluctuates greatly in a short period of time. At this time, the tension deviation value e and the deviation change rate e c To prevent overshoot and oscillation, K should be appropriately reduced. p , increase K i and K d ;

[0034] The digital filtering algorithm processes the tension data, discards the invalid and interference data mixed in the data, extracts the effective tension data and transmits it to the data fitting module, in which the effective tension data and the theoretical sampling value data at the corresponding ambient temperature are analyzed and integrated through the genetic algorithm and BP neural network, and finally the accurate tension digital quantity is obtained; this digital quantity is processed in two ways, one is stored in the storage reading module, and the other is transmitted to the loom main control system through the communication module, and the collected tension value is compared with the set value using the established warp tension closed-loop control model based on fuzzy PID, and the fuzzy controller is used to adjust the parameters online to control the tension fluctuation within ±1%, so as to achieve stable control of the warp tension.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] 1. Aiming at the current situation that the adaptability of the tension detection system of the rapier loom is not high, the present invention proposes a modular detection system architecture, analyzes the principle of loom detection, independently designs a highly compatible specialized tension sensing module, and uses ANSYS Workbench software to perform finite element analysis on the elastic body structure, and proposes a blind hole design. The strain distribution of the elastic body is constrained by the blind hole structure. The blind hole method can effectively concentrate the stress and strain effects on it, which is conducive to improving the sensitivity of the resistance strain gauge to tension and making it distributed according to a regular pattern. At the same time, the use of a blind hole structure to paste the strain gauge can also prevent the strain gauge and its lead from being exposed to the outside, which plays an effective protective role and avoids the occurrence of accidents in the industrial field and during production and transportation, which may cause the strain gauge measurement accuracy to be damaged. It overcomes the problem that the existing tension detection system lacks specificity and cannot perform system optimization on the rapier loom.

[0037] 2. Through the measurement and analysis of the mainstream loom structure, in order to improve the applicability of the detection system on the loom, the size of the designed elastic body is 16.5cm long, 3cm wide, and 6cm high, and the hole for fixing the tension roller is set to a diameter of 3.5cm.

[0038] 2. The present invention adopts a four-layer board design, isolates the power supply from the ground, analyzes the interference sources during the operation of the loom, and proposes hardware anti-aliasing filtering and software digital filtering algorithms to achieve high anti-interference and high stability, which can eliminate the interference of the inverter operation. In view of the complex influence of temperature on the output voltage of the bridge circuit, a temperature acquisition circuit is added to collect the ambient temperature in real time to ensure the accuracy of tension detection. At the same time, the present invention has high reliability, can work normally in an environment of -10℃ to 50℃, and ensure the detection effect. At the same time, a high-precision 24-bit converter AD7730 is used to achieve high-precision conversion of tension signals.

[0039] 3. The present invention adopts the fusion of genetic algorithm and BP neural network to replace the traditional least square method for data fitting, which reduces the error caused by temperature factors and improves the detection accuracy. The detection accuracy reaches 0.01% to 0.15% FS. The higher detection accuracy can provide more accurate tension value for loom tension control, thereby achieving better control effect. It solves the contradiction between its range and accuracy, has a wide range of 0 to 800kg, and makes the detection system applicable to more loom tension detection scenarios.

[0040] 4. The detection system of the present invention can directly output digital information, and can be transmitted to the loom master control system through the CAN bus, realizing the power-off storage function of important tension information. It simplifies the complexity of the loom master control system design, improves the intelligence level, and reduces the burden of the loom master control system.

[0041] 5. The present invention adopts a sampling method of fixed intervals to reduce the interference on the warp tension collection, and adopts fuzzy control combined with PID to build a warp tension closed-loop control model based on fuzzy PID. Compared with the traditional PID control strategy, fuzzy PID control can achieve smaller tension fluctuations.

[0042] In summary, this system studies the mechanical structure and tension detection process of the rapier loom, and proposes a modular architecture based on the flow and function of the tension signal, optimizes the design of the tension-sensing elastic body structure, adds a temperature acquisition circuit, and proposes a design that combines hardware anti-aliasing filter circuits and software digital filters. The high-precision fitting of data is achieved by integrating genetic algorithms and BP neural networks, and finally realizes high-precision, wide-range and strong anti-interference detection of the tension information of the rapier loom. On the basis of high-precision detection, a tension closed-loop control strategy with fuzzy PID algorithm as the core is proposed to achieve stable control of the tension of the loom. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the system structure of a tension detection system dedicated to a rapier loom of the present invention;

[0044] Figure 2 It is a schematic diagram of the warp tension force transmission model of the present invention;

[0045] Figure 3 It is a schematic diagram of the overall mechanical structure of the loom of the present invention;

[0046] Figure 4 It is a schematic diagram of a simple model of an elastomer of the present invention;

[0047] Figure 5 This is a schematic diagram of the 3D model of the elastomer optimized by the present invention;

[0048] Figure 6 It is a schematic diagram of the warp tension sampling model;

[0049] Figure 7 1 is a strain comparison cloud diagram of a conventional elastomer and an elastomer of the present invention, wherein (a) is a strain diagram of the conventional elastomer, and (b) is a strain diagram of the elastomer of the present invention;

[0050] Figure 8 Schematic diagram of the blind hole method patch of the present invention, the left side of the figure is a schematic diagram of the conventional patch-type adhesive fixing strain gauge, and the right side is a schematic diagram of the blind hole method of the present invention for sticking the strain gauge;

[0051] Fig. 9 It is a schematic diagram of a simple elastic body model of the anti-aliasing filter circuit structure diagram of the present invention;

[0052] Fig.10 It is a schematic diagram of the connection between the AD7730 and STM32 hardware interfaces of the present invention;

[0053] Fig.11 It is a schematic diagram of the connection between the DS18B20 and STM32 hardware interfaces of the present invention;

[0054] Fig.12 It is a schematic diagram of the workflow of the fusion of the genetic algorithm and the BP neural network of the present invention;

[0055] Fig.13 It is a schematic diagram of the BP neural network model of the present invention;

[0056] Fig.14 It is a schematic diagram of the test results of the fusion of the genetic algorithm and the BP neural network of the present invention;

[0057] Fig.15 A schematic diagram of the overall architecture of the system power supply of the present invention;

[0058] Fig.16 is a schematic diagram of a system power conversion circuit of the present invention;

[0059] Fig.17 It is a schematic diagram of the warp tension sampling interval of the present invention;

[0060] Fig.18 It is a schematic diagram of the structure of the fuzzy PID tension closed-loop control system of the present invention;

[0061] Fig.19 It is the input and output parameter domain corresponding diagram of the present invention;

[0062] Fig. 20 It is the fuzzy rule diagram of △Kp, △Ki and △Kd of the present invention. DETAILED DESCRIPTION

[0063] In order to make the technical solutions and advantages of the present invention clearer, specific embodiments of the present invention are given below in conjunction with the accompanying drawings. The specific embodiments are only used to further illustrate the present invention in detail and do not limit the protection scope of this application.

[0064] The tension detection system of the present invention analyzes the mechanical structure of the rapier loom and the basic working principle of tension detection, and proposes a modular architecture according to the flow direction and function of the tension signal. The overall system architecture is divided into four modules: tension perception, tension conversion and temperature acquisition, tension information processing and transmission, and power supply, which respectively realize the input, conversion, data processing, data output and system power supply functions of tension information. The tension control strategy is to control the warp tension of the rapier loom by combining fuzzy PID and traditional PID control, and construct a warp tension closed-loop control system based on fuzzy PID to achieve stable control of the warp tension.

[0065] The tension sensing module is based on the mechanical structure of the loom and the principle of strain-type tension detection. It is adaptively designed for the mechanical structure and force of the rapier loom. It is a tension sensing module specially developed and designed for the rapier loom. The module is mainly composed of elastomers and resistive strain gauges. It converts the tension of the loom into the pressure on the tension roller, and then converts the pressure on the elastomer into stress. Through the analysis of the structure and stress of the mainstream loom, the elastomer structure is designed in a targeted manner. At the same time, the working environment of the rapier loom is fully considered, and the elastomer is made of 42CrMo material. The selection of elastomer materials needs to consider the following aspects: strength, elasticity, toughness, and antioxidant ability. The strength should be high to ensure that the elastomer can maintain good mechanical properties under high load; it should have better elasticity; the toughness should be sufficient to ensure that the elastomer has a certain impact resistance; because the working environment of the elastomer is not very good, it is also required to have corresponding antioxidant ability. The structure of the elastomer and the sticking position of the strain gauge are optimized to improve the accuracy of tension detection. The strain gauge adopts the blind hole patch mode, and the resistive strain gauge is used to build the bridge circuit and zeroing circuit.

[0066] The tension conversion and temperature acquisition module uses the standard dual-channel operational amplifier LM358B to build an anti-aliasing filter circuit to complete the hardware anti-interference function for the noise mixed in the tension sensing process, and uses the AD7730 chip module and its peripheral circuits to form an analog-to-digital conversion module to realize the conversion of analog voltage signals to digital discrete signals. When the ambient temperature changes, the resistance value of the sensitive grid of the strain gauge will change accordingly, and the elastic body will also change slightly with the temperature change. In addition to the above factors, the zero point of the bridge circuit may drift due to temperature changes, resulting in changes in voltage output. Therefore, the influence of temperature on the output voltage of the bridge circuit is the influence of multiple factors. The relationship between temperature change and bridge voltage output is a pseudo-linear relationship, which makes it very difficult to extract the specific linear relationship and affects the accuracy of tension detection. Therefore, the DS18B20 array temperature sensor is selected to realize the detection of ambient temperature by the detection system, and temperature compensation is realized by integrating genetic algorithm and BP neural network.

[0067] The tension information processing and transmission module uses the STM32 single-chip microcomputer as the calculation processing core, and is equipped with a CAN communication interface to achieve transmission with the loom main control system. The AT24C512 chip is used to realize the power-off saving function of important tension information to prevent the loss of important data and realize data recovery. In order to extract effective discrete digital information of tension, a digital filtering method combining median filtering and limiting filtering is used, and a genetic algorithm and BP neural network fusion are used as the algorithm for data fitting of the tension detection system.

[0068] The power supply module is an independent module that supplies power to the other three modules. It adopts a high-precision and low-noise power supply design to improve the detection accuracy of the tension detection system. The 24V power supply of the loom main control system circuit board is used as input and converted into two voltage standards of 5V and 3.3V through the power conversion circuit.

[0069] The tension control strategy is based on the establishment of a mathematical model of the warp tension of the loom. The warp beam is selected as the control object. In order to improve the tension control accuracy, a fixed-interval tension acquisition method is adopted. At the same time, PID control is used as the framework and combined with fuzzy theory to control the output tension. The control parameters can be automatically adjusted according to the set fuzzy rules, thereby achieving stable control of the loom tension.

[0070] The mathematical model of warp tension of loom is as follows Figure 6 As shown,

[0071] According to Hooke's law, the tension F on the warp yarn is t Should be:

[0072]

[0073] Among them, F t is the total tension of the warp yarn, n is the number of yarns passing around the tension roller, A0 is the cross-sectional area of ​​a single yarn, E is the elastic modulus of the yarn, L0 is the yarn length between the tangent point between the warp beam A and the yarn and the tangent point between the friction roller B and the fabric, △L0 is the yarn deformation after the tension is initialized, △L' is the deformation caused by the speed difference at both ends of the yarn, v A and v B are the linear speeds at the two tangent points respectively. It can be seen from the formula that to ensure that the tension of the warp yarn is constant and the error is kept within a certain range, it is only necessary to ensure that the linear speed difference v B -v A Constant and close to 0, that is, only the speed of the warp beam and the winding beam needs to be adjusted to achieve the purpose of controlling the tension stability. Only one axis needs to be controlled, the warp beam or the winding beam. In this embodiment, the warp beam is controlled according to the mathematical model, and the winding beam has a fixed speed.

[0074] The present invention is a tension detection system dedicated to a rapier loom. The detection system structure is as follows: Figure 1As shown. It includes hardware structure and software architecture, which cooperate with each other to form a complete tension detection system. The entire system includes a tension sensing module, a tension conversion and temperature acquisition module, a tension information processing and transmission module, a power supply module and a software architecture. The tension conversion and temperature acquisition module, the tension information processing and transmission module, and the power supply module are all integrated on a circuit board. The tension sensing module is composed of an elastomer, a strain gauge, a full bridge, and a zeroing circuit. The elastomer is installed on the loom to transmit the tension of the loom, and the strain gauge is attached to the elastomer to convert the change in tension into a change in resistance, so that the tension information of the loom can be collected. When the loom is weaving normally, the warp yarn on the warp feed beam passes around the fixed back beam and then forms a finished fabric wound on the take-up shaft through the action of the intermediate structure (see Figure 3 ), in this process, the warp yarn will continuously exert a continuously changing force on the tension roller, so the mechanical structures directly related to the tension detection of the loom are the tension roller and the fixed back beam, among which the fixed back beam plays the role of fixing the position of the tension sensing module. The tension of the warp yarn to be sensed by the tension sensing module can actually be converted into the pressure exerted on the tension roller, and then converted into stress.

[0075] The force transmission model of warp tension is as follows: Figure 2 As shown in the figure, T is the warp tension, and F is the pressure exerted by the warp on the tension roller. The tension sensing module detects the pressure exerted on the tension roller. Figure 3 The mechanical structure of the rapier loom is designed for the structure of the tension roller and the fixed back beam. The elastic body is required to be fixed on the fixed back beam at one end and to sense the force transmitted from the tension roller at the other end. A simple model of the elastic body is obtained, such as Figure 4 One end of the elastic body is fixed to the fixed back beam of the loom through bolts and connectors, and the other end should adopt a perforated structure to wrap the tension roller and sense the pressure of the tension roller, where F is the force applied by the tension roller to the elastic body.

[0076] In this embodiment, through the measurement and analysis of the mainstream rapier loom structure, in order to improve the applicability of the detection system in the loom, the size of the elastic body is designed to be 16.5cm long, 3cm wide, and 6cm high, wherein the hole for fixing the tension roller should be set as a circular hole with a diameter of 3.5cm. The mechanical structure of the elastic body is established by SolidWorks in a 3D model. The elastic body adopts a split structure as a whole, which is divided into two parts, upper and lower, and bolt holes are set respectively. The tail end can be fixed on the fixed rear beam by bolts to provide a force support. The head end is a card structure. The upper and lower mechanical parts clamp the tension roller and fix it by bolts. While ensuring the integrity of the force of the tension roller on the elastic body, it is also convenient for production and on-site installation and use. The force direction of the elastic body is analyzed. When the tension roller acts on the elastic body, the deformation range of the elastic body should be concentrated in the middle area, which is also the most suitable area for sticking metal resistance strain gauges.

[0077] In order to make the strain area more concentrated, the 3D model of the elastic body is further optimized, and a blind hole structure is designed specifically, that is, a blind hole is punched in the middle area of ​​the front and back sides of the elastic body. The circular blind hole design has a better force collection effect than other structures, and compared with the through hole structure, the blind hole structure is more conducive to the adhesion of the strain gauge. The specific design scheme is as follows Figure 5 Then it is transferred into the finite element simulation platform ANSYS Workbench, and the material is set to 42CrMo. Figure 2 The tension transmission model of the model, after on-site measurement, the value of the tension angle α is about 15°, the maximum range of the tension detection system is 800kg, and the downward pressure F can be calculated to be about 4060N. The bolt position at the tail end of the model is set as a fixed constraint, and a downward pressure of 4060N is applied to the tension roller. The stress cloud diagram is obtained, as shown in Figure 7 As shown in (b). Figure 7 In (b), it can be seen that the strain of the elastic body is mainly concentrated in the middle area. At the maximum load, the maximum strain is about 170MPa, which is much smaller than the yield strength of the material of 950Mpa. This means that the overall structural design and material selection can meet the maximum range of 800kg required by the tension detection system. The elastic body of this system adopts a blind hole structure, which theoretically has a good concentration effect on the stress and strain of the force. ANSYS Workbench is used to perform strain analysis on the elastic body and compare it with the ordinary structure without blind holes (traditional structure). The elastic body strain comparison cloud chart is shown as follows: Figure 7As shown in the figure, the strain in the blind hole area can reach 0.5-0.6 mm / m, while the strain in the corresponding area of ​​the traditional structure is 0.15-0.2 mm / m. The strain in the blind hole area of ​​the elastomer with blind hole structure is about three times the strain of the elastomer without blind hole structure, which reflects the superiority of the blind hole structure. The strain gauge is pasted on the part of the elastomer where the strain effect is most prominent. The blind hole method is used to paste the strain gauge. The strain gauge is pasted on the blind hole position, such as Figure 8 As shown. Compared with the traditional patch method, the blind hole method can fully concentrate the stress on the elastomer and actively feed it back to the strain gauge, while protecting the bridge circuit and its wires. The perforated structure can also concentrate stress, but its inherent structure is not suitable for pasting strain gauges. The strain gauge model may be BF350-3AA, which is installed in the blind hole according to the principle of stress concentration. The bridge circuit is specifically a DC bridge, which adopts the connection method of a full-bridge circuit. The full-bridge circuit uses the same strain gauge for all four bridge arms. In this embodiment, the four strain gauges are installed in a blind hole on one side. A combination of potentiometers and resistors is used to divide the circuit voltage, so as to achieve the effect of adjusting the resistance balance of the bridge arm and realize zeroing of the full-bridge circuit.

[0078] The tension conversion and temperature acquisition module includes an anti-aliasing filter circuit, an A / D conversion module, and an ambient temperature detection module. The anti-aliasing filter circuit and the A / D conversion module together constitute a tension conversion circuit. The tension signal is filtered by the anti-aliasing filter circuit, and then the signal is input into the A / D conversion circuit for A / D conversion. The ambient temperature detection circuit is used to detect the ambient temperature. The chip used by the A / D conversion module in this embodiment is the AD7730 chip. The ring temperature detection module is added to realize the detection of temperature. Considering the influence of temperature on tension, the accuracy of tension detection is improved.

[0079] Anti-aliasing filter circuit such as Fig. 9As shown in the figure, its function is to filter out the high-frequency interference signal mixed in during the process of collecting tension information. By analyzing the interference source of the loom, the interference signal frequency is concentrated in 5k~90MHz. The op amp selects the standard dual-channel operational amplifier LM358B. The LM358B chip works at +5V voltage. The IN1+ and IN1- pins are the input ends of the first channel. The IN1+ and IN1- pins are connected to capacitors C9 and C6 with capacitance values ​​of 120nF and 220nF respectively. The IN2+ and IN2- pins are the input ends of the second channel. The IN2+ and IN2- pins are connected to capacitors C10 and C8 with capacitance values ​​of 120nF and 220nF respectively. The two channels receive tension signals VI1 and VI2 from the tension sensing module respectively. The processed tension analog signals are transmitted to the AIN1(+) and AIN2(-) pins of the AD7730 chip in the A / D conversion module through the filtering processing of the operational amplifier chip through the OUT1 and OUT2 pins for subsequent signal processing.

[0080] The A / D conversion module uses the AD7730 chip, which works under a 5V unipolar voltage supply and has a high resolution of 230,000. Its hardware connection with the STM32 is as follows Fig.10As shown. The AD7730 module chip works under the action of +5V power supply and reference voltage. The reset signal _RESET of the chip is connected to the IO pin PA5 of the STM32 microcontroller and is controlled by the software switch quantity, while the status register variable _RDY is connected to the PA6 pin of the STM32 microcontroller. The PA6 pin is set to the input state in the software so as to track and read the working state of AD7730 at any time. After the tension analog signal is filtered by the anti-aliasing filter circuit, it is transmitted to the AIN1(+) and AIN1(-) pins of AD7730, which serve as the input end of the tension analog signal, namely AIN1(+) and AIN1(-), for A / D conversion processing. Because the control and communication of AD7730 mainly adopt SPI, the four signal quantities: SCLK, _CS, DIN and DOUT are respectively connected to the SPI interface of the STM32 microcontroller: PB13, PB12, PB15 and PB14. Among them, the PB13 pin outputs SPI_SCK to provide clock pulses. The PB12 pin outputs the SPI_NSS chip select to select the working chip. The PB15 pin outputs the SPI_MOSI signal, indicating that it is the output of the master module and the input mode of the controlled module. The PB14 pin outputs the SPI_MISO signal, indicating that it is the input of the master module and the output mode of the controlled module. At the same time, the software design of AD7730 is carried out, and the program is written to set the A / D conversion parameters. The reference and power supply voltage of the AD7730 analog-to-digital conversion module are 5V, the resolution is 230,000, the power supply voltage of the bridge circuit is 5V, and the range of the tension detection system is 800kg. As the ambient temperature changes, the voltage output of the strain gauge bridge circuit will also change, and this change cannot be ignored. The ambient temperature detection module detects the ambient temperature, performs temperature compensation on the tension information, and uses the DS18B20 single-wire digital temperature sensor to complete the tracking of the ambient temperature. The ambient temperature detection module includes a digital temperature sensor, a resistor R9 and a capacitor C17. The NC and GND pins of the digital temperature sensor are grounded, the DQ pin is connected to the STM32 computing core, the VCC pin is connected to the +3.3V voltage and one end of the resistor R9 and one end of the capacitor C17. The other end of the resistor R9 is also connected to the STM32 computing core, and the other end of the capacitor C17 is connected to DGND. The resistance value of the resistor R9 is 4.7KΩ, and the capacitance value of the capacitor C17 is 100nF. The DS18B20 single-wire digital temperature sensor operates in a rated voltage of 3 to 5.5V, and saves the preset alarm temperature in the EEPROM to achieve the purpose of storage after power failure. The hardware connection diagram of the DS18B20 single-wire digital temperature sensor and the computing and processing core STM32 is shown in the figure below. Fig.11As shown in the figure, DS18B20 is powered by 3.3V converted by the power conversion module, and the DQ pin is connected to the PA1 pin of the operation and processing core STM32 to communicate with the microcontroller. The operation and processing core STM32 reads the ambient temperature detected by DS18B20 through the PA1 pin. The data read are all digital quantities, which is convenient for the operation and processing core to directly perform related processing.

[0081] The tension information processing and transmission module includes an information operation and processing core, a communication module and a storage expansion module. The operation and processing core uses the ARM core microcontroller STM32F103C8T6 launched by STMicroelectronics. The minimum system is powered by +3.3V DC voltage, and is externally connected to 32.768K and 8M clock crystals. SWD1 is a serial port, which can write programs and read parameters for the STM32 microcontroller, facilitating program debugging and system function verification. The communication module communicates with the loom master control system through CAN bus technology, and uses the JTA1050CAN communication transceiver chip to realize the CAN communication function. The TXD and TXD pins of the TJA1050 chip are connected to the CAN communication interface of the STM32 operation core, and data communication is realized through the control of the STM32 microcontroller. The EEPROM memory chip used in the storage expansion module is AT24C512, with a capacity of 512KB, which is used to store the tension data of key time nodes to prevent power loss and realize the power-off data preservation function. The pins A0~A2 of the AT24C512 chip are all grounded, that is, the address is set to 0. I2C1_SCL is connected to PB6 of the STM32 microcontroller MCU, and I2C1_SCL is connected to PB7 of the STM32 microcontroller MCU, and connected to the 3.3V pull-up voltage. The data of the tension digital signal obtained by the A / D conversion module has obvious random changes in the signal, accompanied by the interference of the frequency converter. It is planned to adopt a filtering method that combines median filtering and limiting filtering in STM32 to reduce the proportion of the frequency converter interference signal and achieve the purpose of anti-interference. This filtering method can filter signals with very low frequencies, such as 0.01Hz signals, which makes up for the shortcomings of traditional analog filters. The specific implementation process of the median filter algorithm is as follows: first, a certain parameter is sampled N times continuously, N is usually an odd number, and then the numerical results of the N samples are arranged in order from small to large, and then the middle value is selected as the final value of this sampling. After median filtering, the fluctuation range of the sampled value is significantly reduced, and the fluctuation amplitude of more than half of the data is reduced by more than 50%. The limiting filter algorithm uses the limiting principle to judge the input signal, and reduces all instantaneous values ​​exceeding the preset threshold value to a value close to the previously set threshold value. In this way, all other instantaneous values ​​are retained, and the limiting filter algorithm is used to limit the fluctuation amplitude of the sample, and the threshold value is set to 150. The data source of the limiting filter is the data after the median filter. The sampled value after the limiting tends to be stable. Compared with the total range, the error is 0.056%, which is excellent and can meet the design requirements. The present invention needs to detect the tension of the loom in real time, and process the digital signal quantity converted by A / D, and obtain the specific tension value through reverse conversion of mathematical equations. The matching process of this input and output requires data fitting to complete.

[0082] The present invention uses a fusion of genetic algorithm and BP neural network to realize data fitting, and stores it in STM32. The learning convergence speed of the traditional BP neural network algorithm is too slow and it is easy to fall into the global minimum. Genetic algorithm is an algorithm developed from the idea of ​​simulating evolution in nature. It is essentially a search algorithm that can be used to optimize the solution of global problems. Genetic algorithm is similar to natural evolution. It solves problems by acting on genes on chromosomes to find the best chromosome. In genetic algorithms, a number of digital codes of the problems to be solved, i.e. chromosomes, are generated in a random manner to form an initial population; a numerical evaluation is given to each individual through the fitness function, and individuals with low fitness are eliminated, and individuals with high fitness are selected to participate in genetic operations. After genetic operations, the individuals are gathered into the next generation of new populations, and the new population undergoes the next round of evolution. Genetic algorithm optimizes the BP neural network workflow as follows Fig.12 As shown in the figure, it is divided into a BP neural network part and a genetic algorithm part. After the data information is input, the topological structure of the neural network must be determined first and the relevant parameter values ​​must be initialized. Then the coding length of the genetic algorithm population must be determined and calculated, and then the weights and thresholds are optimized through the genetic algorithm. Then the BP neural network uses the optimal individual obtained by the genetic algorithm to assign the initial weights and thresholds of the BP network, and enters the actual training work. The actual output is obtained through calculation, and then it is determined whether the error meets the relevant conditions. If it does, it is output; if it does not, it is necessary to continuously adjust and update the weight threshold through back propagation. Through this multiple training and learning, the objective function value is more and more in line with the requirements, so as to obtain the final BP neural network for solving related problems.

[0083] The BP neural network architecture of this embodiment adopts a three-layer structure design. Fig.13 The figure shows an input layer, a hidden layer and an output layer. In this embodiment, there are two inputs and one output. The input layer is 2 neurons, the output layer is 1 neuron, and the hidden layer is 9 neurons. The two inputs are the actual sampled values ​​and theoretical sampled values ​​of tension at the same temperature, that is, the actual sampled values ​​of tension and the theoretical sampled values ​​(theoretically calculated) constitute a data set. The input matrix is ​​expressed as X = [X1, X2]. The model needs to augment the input matrix X and then multiply it by the parameter θ j, which is equivalent to the bias term in the neural network, so no additional augmentation is required in the algorithm design. The activation function of the BP neural network in this system selects the RELU function, that is, f(x) = max(0,x). The purpose is to remove the linearization of the entire neural network output, making the entire neural network model nonlinear. The trainlm function is used as the training function of the input node, the output layer transfer function uses the purelin function, and the hidden layer transfer function uses the tansig function. According to the number of neurons in the input layer, output layer, and hidden layer of the neural network, 27 weights and 10 thresholds can be obtained, so the genetic algorithm encoding length is 37, and binary encoding is used. The selection operator uses the roulette selection method, and the crossover operator selects monomer crossover. The crossover probability and mutation probability use an adaptive adjustment method. The crossover probability and mutation probability with fixed values ​​in the traditional genetic algorithm are set to a method that can adaptively change according to the individual fitness. This can achieve a certain balance between the randomness of the selection and the convergence speed. The crossover probability (P c ) and mutation probability (P m ) is as follows:

[0084]

[0085]

[0086] Among them, f' is the fitness of the current individual, f max is the maximum fitness, f avgis the average fitness, k1, k2, k3, and k4 are constants, which are determined according to the actual situation. The data set is divided into a training set and a test set. The training set is used for training the BP neural network. The sample data in the training set is input into the BP neural network to train the BP neural network. The test set samples are used to input the trained BP neural network, and the corresponding prediction results are output. The prediction results are subtracted from the actual values ​​to obtain the absolute value of the error. The sum of the absolute values ​​of the prediction errors of the test set sample data after prediction by the BP neural network is used as the individual fitness value. According to the individual fitness situation, the selection operation is performed, and the corresponding crossover probability and mutation probability are obtained by combining the above-mentioned crossover probability and mutation probability formulas. The new population after the mutation operation is used as the new weight and threshold, and the weight and threshold of the BP neural network are updated. The training set data is used to train the BP neural network after the updated weight and threshold again. After training, the test set samples are used to predict the corresponding individual fitness value, which is input into the BP neural network again to obtain the prediction result, and the fitness value is calculated again to determine whether the end condition is met. If not, the selection operation is continued, and the above process is repeated. If the end condition is met, the optimal weight and threshold are obtained, and the final BP neural network structure is obtained. The smaller the individual fitness value, the better the individual is. In this embodiment, the termination condition of the genetic algorithm is that the number of iterations is 20. The fitness function is as follows:

[0087]

[0088] Among them, N e Indicates the number of output nodes, where N e =1. No indicates the number of samples in the test set. represents the i-th prediction output obtained by the neural network for the k-th test sample, Indicates the corresponding actual output. Under the condition of slight fluctuation of ambient temperature of 15℃, 100 groups of data from 10kg to 50kg tension sampling data are fitted and analyzed. The theoretical sampling value range corresponding to the response range is 2875 to 14375. The theoretical sampling value and the actual sampling value constitute the data set. The genetic algorithm and BP neural network are used for data fitting, and the test results are plotted to obtain Fig.14 . Fig.14 The horizontal axis is the actual sampling value, and the vertical axis is the theoretical sampling value. It can be seen that the curve fitted by genetic algorithm and BP neural network at an ambient temperature of 15°C combines the intrinsic relationship between ambient temperature factors and actual sampling values ​​and theoretical sampling values, showing a linear form. By tracking the training effect, that is, the fitting error and loss amount through the software, it can be found that the final fitting error can reach up to 0.0105%, and the fitting effect is excellent.

[0089] The above power supply module provides power for the detection system. The overall power supply architecture of the system power supply is as follows: Fig.15 As shown. The input of the power supply module of the tension detection system dedicated to the rapier loom mainly comes from the 24V power output of the loom main control system circuit board. The power supply module includes a power conversion circuit, which converts the 24V power supply into two voltage standards of 5V and 3.3V through the power conversion circuit. Among them, 5V is mainly used to power the strain bridge circuit, anti-aliasing filter circuit, A / D conversion module and communication module; while 3.3V is mainly used to power the information calculation and processing core, storage expansion module and ambient temperature detection module. The power conversion circuit is shown in Fig.16 As shown in the figure, this system uses the LM2596S-5 switching power supply conversion chip to complete the power conversion from 24V to 5V, and then realizes the voltage conversion from 5V to 3.3V through the ASM1117-3.3 low-voltage dropout regulator. The two different voltages obtained are introduced into the power layer of the four-layer board for isolation. The role of the four layers is to make the power layer and the ground layer independent, increase the shielding of the hardware system, reduce the interference between the power supply and the ground, and also improve the corresponding anti-interference ability of the system. The 24V power supply provided by the loom main control system is realized by the LM2586S-5 switching power supply conversion chip and the relevant peripheral conversion circuit to realize the voltage conversion from 24V to 5V. Among them, the electrolytic capacitors C2 and C5 use the charging, discharging and energy storage characteristics of the capacitor to realize the voltage stabilization of the circuit, and cooperate with the non-polar capacitor C7 to realize the filtering effect of low-frequency noise interference. The inductor L1 realizes the role of preventing the AC signal from passing. In order to prevent the accidental short circuit, the LM2586S-5 switching power supply conversion chip and the inductor L1 are directly connected to one end of the Schottky diode D1, and the other end of the Schottky diode D1 is grounded to AGND and the negative electrode of the electrolytic capacitor C5. The Schottky diode D1 is used to limit the current protection. After obtaining the 5V voltage, it is transmitted to the ASM1117-3.3 low-dropout voltage regulator to achieve the conversion between 5V and 3.3V. The output of the ASM1117-3.3 low-dropout voltage regulator is connected to one end of the electrolytic capacitor C3 and the non-polarity C4, and the +3.3V power supply. The other end of the electrolytic capacitor C3 and the non-polarity C4 is grounded to AGND. The electrolytic capacitor C3 and the non-polarity C4 achieve the effect of filtering and obtain a relatively clean power signal.

[0090] The tension control strategy is based on the traditional PID control algorithm and combines fuzzy control theory to control the output tension. First, the influence of the opening, beating and weft insertion actions on the collection effect during the tension collection process is analyzed, and then a fixed-interval tension collection is proposed to replace the traditional real-time sampling strategy. When the main shaft angle is between 45° and 57°, it is in the maximum opening state and the opening remains static. At this time, the weft insertion action has just begun but the beating has not yet begun, and the weft yarn has not yet entered the shed, which has no effect on the warp tension. Therefore, the 10° range of 45° to 55° in each cycle can be taken as the angle interval for warp tension sampling, such as Fig.17As shown. The warp tension of the rapier loom is controlled by combining fuzzy PID control with traditional PID control. To this end, a closed-loop control model of the warp tension based on fuzzy PID is constructed as shown in Fig.18 shown. Fig.18 The fuzzy controller shown in the figure adopts a two-input and three-output control model. The input is the deviation e(t) between the tension measurement value c(t) and the tension setting value r(t) and the tension error conversion rate ec(t). The output is the correction value △K of the three PID parameters. p , △K i , △K d . Three basic parameters of PID controller K p , K i , K d The output correction value is used for online adjustment, and the adjustment formula is:

[0091]

[0092] Among them, K p0 , K i0 , K d0 is the set value when the system is initialized, which can be obtained through the traditional PID tuning method. Taking the setting tension as 110Kg and the tension fluctuation range within ±1% as an example, combined with the actual variation range of other parameters, the basic domain of input and output parameters is set, and a certain quantization factor is selected. The fuzzy domain corresponding to each parameter is as follows Fig.19 As shown. Fig.19 The values ​​in the fuzzy domain are converted into fuzzy subsets {NB, NM, NS, ZO, PS, PM, PB}, and the elements in the subsets correspond to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large. When selecting the membership function, the elements NB and PB in the fuzzy subsets corresponding to the input and output parameters use Z-type and anti-Z-type membership functions to form the left and right boundaries to achieve smooth transition; the five middle sub-elements use triangular membership functions with higher sensitivity and are evenly distributed.

[0093] The control effect of the fuzzy PID controller depends largely on the K p , K i , K d The selection of K p , K i , K d The key to online self-tuning lies in the reasoning of fuzzy rules. Fuzzy rules are the core of fuzzy control. After the membership functions of input and output variables are determined, how to establish fuzzy rules is a key issue that needs to be solved. In the process of establishing fuzzy rules, the completeness, intersection and consistency of control rules need to be considered. Considering the increase of proportionality coefficient K pThe response speed of the system can be accelerated, the steady-state error of the system can be eliminated by adjusting the integral coefficient, and the dynamic performance of the system can be improved by adjusting the differential coefficient. Based on the actual debugging experience and the requirements of the weaving process, the reasoning process of this system should follow the following rules:

[0094] (1) In the initial stage of tension adjustment, the spindle has just started and is not stable yet, and there is a large deviation in the winding and unwinding speed. At this time, the deviation e between the warp tension and the set value is large; in order to improve the response speed, K should be appropriately increased. p , and K i Then take the smaller value or zero;

[0095] (2) When the tension is relatively stable, that is, when the deviation value e is small, the tension deviation change rate e c In order to improve stability and control accuracy, K should be appropriately reduced. p and K i , and K d It should be stable within a small range;

[0096] (3) When the spindle speed is adjusted or other interference is encountered during the adjustment process, the tension fluctuates greatly in a short period of time. At this time, the tension deviation value e and the deviation change rate e c To prevent overshoot and oscillation, K should be appropriately reduced. p , increase K i and K d .

[0097] According to the above control rules, the fuzzy rules are established in the form of if-then. Fig. 20 As shown. In order to obtain accurate control quantity, that is, clear quantity, it is also necessary to defuzzify the fuzzy quantity in the above fuzzy rule table. The present invention uses the centroid method and calculates the clear quantity through the membership function. Fig.19 The fuzzy domain U = {u1,u2,u3…u n} is discrete, n is 7, then the clarity u cen The calculation formula is: tension fluctuation is within ±1%.

[0098]

[0099] Among them, A(u i ) is the blur amount u i The corresponding membership function is, the numerator is the sum of the products of the values ​​in the fuzzy domain to which the control quantity belongs obtained through the fuzzy rule table and their corresponding membership functions, and the denominator is the sum of the membership functions.

[0100] The fuzzy PID control experiment was carried out when the main shaft speed of the loom was 50rpm, and the PID parameters were adjusted online through the fuzzy PID control algorithm. At this time, the tension setting value was 110Kg, and the PID proportional gain KP The error range between the effective value and the set value of the tension after fuzzy PID control is about [-0.8, +1.0], achieving a good control effect.

[0101] The working principle and process of the present invention are as follows: in the tension detection system, the elastic body of the tension sensing module converts the warp tension of the loom into its own stress, transmits the force to the resistance strain gauge and its bridge circuit, and then converts the stress change into the change of the electrical signal according to the strain effect. The generated electrical signal change is transmitted to the tension conversion and temperature acquisition module, the anti-aliasing filter circuit processes the electrical signal, and at the same time, the A / D conversion module is used to operate the chip to set the relevant parameters of the A / D conversion to complete the conversion work. At the same time, the ambient temperature detection module collects the ambient temperature parameters, and the data obtained by the tension A / D conversion are transmitted to the tension information processing and transmission module together. The difference is that the tension data needs digital filtering, while the ambient temperature data is directly used for data fitting. The digital filtering algorithm further processes the tension data, discards the invalid and interference data mixed in the data, extracts the effective tension data and transmits it to the data fitting module, in which the effective tension data (actual sampling value) and the theoretical sampling value data at the corresponding ambient temperature are analyzed and integrated by the genetic algorithm and the BP neural network, and finally the accurate tension digital quantity is obtained. This digital quantity is processed in two ways, one is stored in the storage and reading module, and the other is transmitted to the loom main control system through the communication module. The collected tension value is compared with the set value using the established warp tension closed-loop control model based on fuzzy PID, and the parameters are adjusted online using the fuzzy controller. The tension fluctuation is within ±1%, achieving stable control of the warp tension.

[0102] Any matters not described in the present invention are applicable to the prior art.

Claims

1. A tension detection system for a rapier loom, comprising a tension sensing module, a tension information processing and transmission module, and a power supply module, wherein the tension sensing module comprises an elastic body, a strain gauge, a full bridge, and a zeroing circuit, and is characterized in that: The tension detection system also includes a tension conversion and temperature acquisition module, wherein the tension conversion and temperature acquisition module, the tension information processing and transmission module, and the power supply module are all integrated on a circuit board; The material yield strength of the elastic body is not less than 900MPa. The elastic body adopts a split structure as a whole, which is divided into an upper and a lower mechanical part, and bolt holes are respectively provided. The tail end of the lower mechanical part is fixed to the fixed rear beam of the loom by bolts and connectors. The head end of the lower mechanical part and the upper mechanical part are a card-type structure. An opening for clamping the tension roller is provided at the junction of the upper and lower mechanical parts. The tension roller is clamped at the opening and fixed by bolts. When the tension roller in the rapier loom exerts force on the elastic body, the deformation range of the elastic body is concentrated in the middle area, blind holes are opened in the middle areas of the front and back sides of the elastic body where the deformation range is concentrated, and strain gauges are glued in the blind holes on the front and / or back sides; The tension conversion and temperature acquisition module includes an anti-aliasing filter circuit, an A / D conversion module, and an ambient temperature detection module. The anti-aliasing filter circuit and the A / D conversion module together constitute a tension conversion circuit. The tension signal is filtered by the anti-aliasing filter circuit, and then the signal is input to the A / D conversion module for A / D conversion. The ambient temperature detection circuit is used to detect the ambient temperature. The tension information processing and transmission module includes an information operation and processing core, a communication module and a storage expansion module. The information operation and processing core obtains the tension information and ambient temperature information after A / D conversion. A filtering algorithm and a data fitting module are set in the information operation and processing core to obtain an accurate tension digital value. The warp tension of the rapier loom is controlled by combining fuzzy PID with traditional PID control, and a warp tension closed-loop control system based on fuzzy PID is constructed to achieve stable control of the warp tension. The tension control strategy is based on the establishment of a mathematical model of the warp tension of the loom. The warp beam is selected as the control object, and the tension is collected in a fixed interval. At the same time, the PID control is used as the framework, and the output tension is controlled in combination with fuzzy theory. The control parameters can be automatically adjusted according to the set fuzzy rules, thus achieving stable control of the tension of the loom. The mathematical model of the warp tension of the loom is: Among them, F t is the total tension of the warp yarn, n is the number of yarns passing around the tension roller, A0 is the cross-sectional area of ​​a single yarn, E is the elastic modulus of the yarn, L0 is the yarn length between the tangent point between the warp beam A and the yarn and the tangent point between the friction roller B and the fabric, △L0 is the yarn deformation after the tension is initialized, △L ’ is the deformation caused by the speed difference at both ends of the yarn, v A and v B are the linear velocities at the two tangent points respectively; Guaranteed line speed difference v B -v A Constant and close to 0, which can ensure that the warp tension is constant and the error is kept within a certain range, that is, the purpose of controlling the tension stability can be achieved by simply adjusting the speed of the warp beam and the take-up beam; The process of collecting tension in a fixed interval is as follows: the influence of opening, beating and weft insertion on the collection effect during the tension collection process is analyzed, and a 10° range of 45° to 55° in each cycle is taken as the angle interval for warp tension sampling; By using ANSYS Workbench software to perform finite element analysis on the elastic body structure, the force on the elastic body meets the principle of tension detection of the rapier loom, the concentrated area of ​​stress distribution of the elastic body is determined, the position and shape of the blind hole are set, the strain gauge is installed, and the tension sensing module structure is determined; The tension sensing module is fixed at the tension roller and the fixed rear beam. A warp tension closed-loop control model based on fuzzy PID is built. The fuzzy controller adopts a two-input and three-output control model. The input is the deviation e(t) between the tension measurement value c(t) and the tension setting value r(t) and the tension error conversion rate e(t). c (t), the output is the correction value △K of the three PID parameters p , △K i , △K d ; Three basic parameters K of PID controller p , K i , K d The output correction value is used for online adjustment, and the adjustment formula is: Among them, K p0 , K i0 , K d0 is the set value when the system is initialized, which is obtained by the traditional PID tuning method; the numerical value in the fuzzy domain is converted into a fuzzy subset {NB, NM, NS, ZO, PS, PM, PB}, and the elements in the subset correspond to negative large, negative medium, negative small, zero, positive small, positive medium, and positive large respectively; when selecting the membership function, the elements NB and PB in the fuzzy subset corresponding to the input and output parameters use Z-type and anti-Z-type membership functions to form the left and right boundaries to achieve smooth transition; the five middle sub-elements use triangular membership functions and are evenly distributed; The reasoning process of fuzzy rules should follow the following rules: (1) In the initial stage of tension adjustment, the spindle has just started and is not stable yet, and there is a large deviation in the winding and unwinding speed. At this time, the deviation e between the warp tension and the set value is large; in order to improve the response speed, K should be appropriately increased. p , and K i Then take the smaller value or zero; (2) When the tension is relatively stable, that is, when the deviation value e is small, the tension deviation change rate e c In order to improve stability and control accuracy, K should be appropriately reduced. p and K i , and K d It should be stable within a small range; (3) When the spindle speed is adjusted or other interference is encountered during the adjustment process, the tension fluctuates greatly in a short period of time. At this time, the tension deviation value e and the deviation change rate e c To prevent overshoot and oscillation, K should be appropriately reduced. p , increase K i and K d ; The digital filtering algorithm processes the tension data, discards the invalid and interfering data mixed in the data, extracts the effective tension data and transmits it to the data fitting module, in which the effective tension data and the theoretical sampling value data at the corresponding ambient temperature are analyzed and integrated through the BP neural network, and finally the accurate tension digital quantity is obtained; this digital quantity is processed in two ways, one is stored in the storage reading module, and the other is transmitted to the loom main control system through the communication module, and the collected tension value is compared with the set value using the established warp tension closed-loop control model based on fuzzy PID, and the fuzzy controller is used to adjust the parameters online to control the tension fluctuation within ±1%, so as to achieve stable control of the warp tension; The tension detection system has a detection accuracy of 0.01% to 0.15% FS and a wide measuring range of 0 to 800 kg.

2. The tension detection system according to claim 1, characterized in that: The filtering algorithm is a filtering method that combines median filtering and limiting filtering, and can filter signals with frequencies below 0.01 Hz. The specific implementation process of median filtering is: first, a certain parameter is sampled N times continuously, N is usually an odd number, and then the numerical results of these N samples are arranged in order from small to large, and then the middle value is selected as the final value of this sampling. After median filtering, the fluctuation range of the sampled value is significantly reduced, and the fluctuation amplitude of more than half of the data is reduced by more than 50%; limiting filtering uses the limiting principle, and the data source of limiting filtering is the data after median filtering. The input signal is judged, and all instantaneous values ​​exceeding the preset threshold value are reduced to a value close to the previously set threshold value, and the threshold value is set to 150.

3. The tension detection system according to claim 1, characterized in that: The data fitting module uses a genetic algorithm and a BP neural network to achieve data fitting. The BP neural network architecture adopts a three-layer structure design with two inputs and one output, wherein the two inputs are respectively an actual sampling value and a theoretical sampling value of tension at the same temperature, that is, a data set composed of the actual sampling value and the theoretical sampling value of tension. The activation function of the BP neural network selects a RELU function, removes the linearization of the entire neural network output, and makes the entire neural network model nonlinear. The trainlm function is used as the training function of the input node, the output layer transfer function uses a purelin function, and the hidden layer transfer function uses a tansig function. According to the number of neurons in the input layer, output layer and hidden layer of the BP neural network, the number of weights and thresholds is determined, and then the encoding length of the genetic algorithm population is determined. The initial weights and thresholds of the BP neural network are optimized by the genetic algorithm, and the initial weights and thresholds of the BP neural network are assigned to the optimal individuals obtained. Then, a curve obtained by the fusion fitting of the genetic algorithm and the BP neural network at a specific ambient temperature is obtained through training. The curve integrates the inherent connection between the ambient temperature factor and the actual sampling value and the theoretical sampling value, and shows a linear form, and the fitting error is not greater than 0.0105%.

4. The tension detection system according to claim 1, characterized in that: The size of the lower mechanical part of the elastic body is 16.5 cm in length, 3 cm in width and 6 cm in height, wherein the hole for fixing the tension roller should be set as a circular hole with a diameter of 3.5 cm, and the elastic body is made of 42CrMo material.

5. The tension detection system according to claim 1, characterized in that: The maximum measuring range of the tension detection system is 800kg, the strain in the blind hole area is 0.5-0.6mm / m, the strain gauge model is BF350-3AA, the bridge circuit is a DC bridge, and the full-bridge circuit connection method is adopted. The full-bridge circuit uses the same strain gauge for all four bridge arms. The four strain gauges are installed in the blind hole on one side. The circuit is divided by a combination of potentiometer and resistor to achieve the effect of adjusting the resistance balance of the bridge arm and realizing zeroing of the full-bridge circuit.

6. The tension detection system according to claim 1, characterized in that: The tension conversion and temperature acquisition module uses the standard dual-channel operational amplifier LM358B to build an anti-aliasing filter circuit to complete the hardware anti-interference function for the noise mixed in the tension sensing process. The AD7730 chip module and its peripheral circuits form an analog-to-digital conversion module to realize the conversion of analog voltage signals to digital discrete signals. The DS18B20 array temperature sensor is selected to realize the detection system for ambient temperature detection. The BP neural network is used to offset the influence of temperature on the output voltage of the bridge circuit, ensure the measurement accuracy, and realize temperature compensation. The tension information processing and transmission module uses the STM32 single-chip microcomputer as the calculation and processing core, and is equipped with a CAN communication interface to realize the transmission with the loom main control system. The AT24C512 chip is used to realize the power-off saving function of important tension information to prevent the loss of important data and realize data recovery. The power supply module is an independent module that supplies power to the other three modules. The 24V power supply of the loom main control system circuit board is used as input and converted into 5V and 3.3V voltage standards through the power conversion circuit.