CN114778880A - Parallel speed measuring method for multi-channel spindles and related device - Google Patents

Parallel speed measuring method for multi-channel spindles and related device Download PDF

Info

Publication number
CN114778880A
CN114778880A CN202210461003.XA CN202210461003A CN114778880A CN 114778880 A CN114778880 A CN 114778880A CN 202210461003 A CN202210461003 A CN 202210461003A CN 114778880 A CN114778880 A CN 114778880A
Authority
CN
China
Prior art keywords
timer
spindles
infrared
input channel
channel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210461003.XA
Other languages
Chinese (zh)
Other versions
CN114778880B (en
Inventor
章军辉
王静贤
郭晓满
付宗杰
阙青松
丁羽璇
陈大鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Internet Of Things Innovation Center Co ltd
Original Assignee
Wuxi Internet Of Things Innovation Center Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Internet Of Things Innovation Center Co ltd filed Critical Wuxi Internet Of Things Innovation Center Co ltd
Priority to CN202210461003.XA priority Critical patent/CN114778880B/en
Publication of CN114778880A publication Critical patent/CN114778880A/en
Application granted granted Critical
Publication of CN114778880B publication Critical patent/CN114778880B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/36Devices characterised by the use of optical means, e.g. using infrared, visible, or ultraviolet light
    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01HSPINNING OR TWISTING
    • D01H1/00Spinning or twisting machines in which the product is wound-up continuously
    • D01H1/14Details
    • D01H1/20Driving or stopping arrangements
    • D01H1/32Driving or stopping arrangements for complete machines
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/48Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage
    • G01P3/481Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals
    • G01P3/486Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring frequency of generated current or voltage of pulse signals delivered by photo-electric detectors

Abstract

The application discloses a parallel speed measuring method of a multi-channel spindle, which comprises the following steps: sequentially gating the infrared photoelectric modules according to a preset period, enabling the infrared transmitting tubes of the gated infrared photoelectric modules to emit light beams, and enabling reflected signals received by the photosensitive receiving tubes of the gated infrared photoelectric modules to be input into an input channel of a timer; recording a first count value of the timer when the edge event capture of the input signal of the input channel of the timer is completed for the first time and recording a second count value of the timer when the edge event capture of the input signal of the input channel of the timer is completed for the Nth time; n is an integer greater than 1; and calculating the rotating speed of the spindle according to the recorded first counting value and the second counting value. The method can quickly measure the rotating speed of the multi-channel spindle, and simultaneously reduces the physical resource occupation and the calculation load. The application also discloses a parallel speed measuring device and equipment of the multi-channel spindle and a computer readable storage medium, which have the technical effects.

Description

Parallel speed measuring method for multi-channel spindles and related device
Technical Field
The application relates to the technical field of spinning, in particular to a parallel speed measuring method for a multi-path spindle; the utility model also relates to a parallel speed sensor of multichannel spindle, equipment and computer readable storage medium.
Background
The spinning process is the last process in the spinning process and is used for finishing the operations of drafting, twisting and winding. The spinning process directly affects the quality of the finished yarn and the spinning cost. The end breakage rate is an important and effective index for evaluating the spinning operation link. One of the functions of the spinning frame single spindle online detection system is to find broken ends in time. In addition, the single-spindle online detection system of the spinning frame is also used for monitoring the spindle speed of the spinning frame in real time on line. The single-spindle on-line detection system of the spinning frame detects the running speed of a steel wire ring in ring spinning (a mechanical spinning method for twisting by the spindles, a ring and the steel wire ring and drafting by a roller) by a photoelectric sensor arranged on each spindle, and evaluates the running condition of each spindle of the spinning frame. The rapid measurement of the rotational speed of each spindle has become an increasing focus of attention. In addition, the physical resource occupation and the calculation load are reduced while the spindle rotating speed is rapidly measured, and the development of the spinning industry is undoubtedly facilitated.
Therefore, how to rapidly measure the rotation speed of multiple spindles, and reduce the physical resource occupation and the calculation load has become a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a parallel speed measuring method for multi-channel spindles, which can quickly measure the rotating speed of the multi-channel spindles and reduce physical resource occupation and calculation load. Another object of the present application is to provide a parallel speed measuring device, an apparatus and a computer readable storage medium for multi-spindle, all of which have the above technical effects.
In order to solve the technical problem, the application provides a parallel speed measuring method for a plurality of paths of spindles, which comprises the following steps:
sequentially gating all infrared photoelectric modules according to a preset period, enabling an infrared transmitting tube of the gated infrared photoelectric module to emit a light beam, and enabling a reflected signal received by a photosensitive receiving tube of the gated infrared photoelectric module to be input into an input channel of a timer;
recording a first count value of a timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1;
and calculating the rotating speed of the spindle according to the recorded first counting value and the second counting value.
Optionally, completing one capturing of an edge event of the input signal of the timer input channel includes:
and when the edge events with the preset polarity for the preset times are detected, determining to finish the edge event capture of the input signal of the timer input channel once.
Optionally, before detecting the edge event, the method further includes:
and carrying out effective polarity edge detection on the input signals of the timer input channel, and detecting the edge events after detecting a preset number of effective levels.
Optionally, the calculating the rotation speed of the spindles according to the recorded first count value and the second count value includes:
calculating to obtain a counting increment according to the first counting value and the second counting value;
calculating the rotating speed of the steel wire ring according to the calculation increment;
and calculating the corresponding rotating speed of the spindle according to the rotating speed of the steel wire ring.
Optionally, the method further includes:
and switching the preset period.
Optionally, the method further includes:
sampling an input signal of the timer input channel;
judging whether the emission light intensity of the infrared emission tube is adjusted or not according to the ADC sampling value;
if so, gradually adjusting the emission light intensity of the infrared emission tube by gradually adjusting the PWM duty ratio.
Optionally, the determining whether to adjust the emission light intensity of the infrared emission tube according to the ADC sampling value includes:
judging whether the ADC sampling value is in a preset interval or not;
if yes, keeping the emission light intensity of the infrared emission tube unchanged;
if not, adjusting the emission light intensity of the infrared emission tube.
In order to solve the above technical problem, the present application further provides a parallel speed measuring device for multi-channel spindles, comprising:
the gating module is used for sequentially gating the infrared photoelectric modules according to a preset period, enabling the gated infrared transmitting tubes of the infrared photoelectric modules to emit light beams, and enabling reflection signals received by the gated photosensitive receiving tubes of the infrared photoelectric modules to be input into an input channel of the timer;
the recording module is used for recording a first count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1;
and the calculating module is used for calculating the rotating speed of the spindles according to the recorded first counting value and the second counting value.
In order to solve the above technical problem, the present application further provides a parallel speed measuring device for multiple spindles, including:
a memory for storing a computer program;
a processor for implementing the steps of the parallel speed measuring method for the multi-way spindle as described in any one of the above when the computer program is executed.
In order to solve the above technical problem, the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the parallel speed measurement method for multi-spindle as described in any one of the above.
The application provides a parallel speed measuring method of a multi-channel spindle, which comprises the following steps: sequentially gating all infrared photoelectric modules according to a preset period, enabling an infrared transmitting tube of the gated infrared photoelectric module to emit a light beam, and enabling a reflected signal received by a photosensitive receiving tube of the gated infrared photoelectric module to be input into an input channel of a timer; recording a first count value of a timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1; and calculating the rotating speed of the spindles according to the recorded first counting value and the second counting value.
Therefore, the parallel speed measuring method for the multi-channel spindles, provided by the application, adopts a time division multiplexing strategy, and sequentially gates the infrared photoelectric modules to enable the infrared photoelectric modules to sequentially work to detect the rotating speed of each spindle, so that the rotating speed of each spindle can be measured in unit time. In addition, each infrared photoelectric module is gated in sequence, and only one timer input channel can be occupied, so that physical resource occupation and calculation load can be greatly reduced.
The parallel speed measuring device and the parallel speed measuring equipment for the multi-channel spindles and the computer readable storage medium have the technical effects.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the prior art and the embodiments are briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a parallel speed measuring method for a plurality of spindles according to an embodiment of the present disclosure;
fig. 2 is a schematic view of an infrared photovoltaic module according to an embodiment of the present disclosure;
fig. 3 is a schematic view of a parallel speed measuring frame of a multi-way spindle according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a PWM adaptive control method according to an embodiment of the present application;
fig. 5 is a schematic view of a parallel speed measuring device for multi-way spindles according to an embodiment of the present disclosure;
fig. 6 is a schematic view of a parallel speed measuring device for multi-way spindles according to an embodiment of the present disclosure.
Detailed Description
The core of the application is to provide a parallel speed measuring method for the multi-path spindles, which can quickly measure the rotating speed of the multi-path spindles and reduce physical resource occupation and calculation load. At the other core of the application, the parallel speed measuring device and the parallel speed measuring equipment for the multi-channel spindles and the computer readable storage medium have the technical effects.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a schematic flow chart of a parallel speed measuring method for multiple spindles provided in an embodiment of the present application, and referring to fig. 1, the method mainly includes:
s101: sequentially gating all infrared photoelectric modules according to a preset period, enabling infrared transmitting tubes of the gated infrared photoelectric modules to emit light beams, and enabling reflected signals received by photosensitive receiving tubes of the gated infrared photoelectric modules to be input into an input channel of a timer;
the embodiment adopts a time division multiplexing strategy to measure the rotating speed of each path of spindle in unit time. Each infrared photoelectric module is connected with one-channel one-out-of-multiple controller, the input of the one-out-of-multiple controller is multiple channels, and the output of the one-out-of-multiple controller is one channel. And the one-out-of-multiple controller is responsible for inputting the reflected signal output by the gated infrared photoelectric module to the timer input channel.
The infrared photoelectric module comprises an infrared transmitting tube and a photosensitive receiving tube. An infrared diode can be selected as an infrared emission tube emission light source. The infrared transmitting tube emits light beams to the outer side face of the ring, and the photosensitive receiving tube receives the reflected light beams and converts optical signals into electric signals. After the steel wire ring enters the receiving area, the response curve of the photosensitive receiving tube generates a small section of slight abrupt change due to the reflection action of the surface of the steel wire ring, and the rotating speed of the spindle is finally obtained by further analyzing the frequency of the abrupt change.
In order to reduce power consumption, the working voltage of each infrared photoelectric module can be independently controlled, one path of infrared photoelectric module is gated each time, and only the gated infrared photoelectric module is powered on, so that the gated infrared photoelectric module works.
For example, referring to fig. 2, the infrared photovoltaic module includes 8 channels. The IN1 to IN8 respectively represent the reflected signals input by the 8-channel infrared photoelectric module to the one-out-of-multiple controller, and the one-out-of-multiple controller selects one to input the IN1 to the IN8 to the timer input channel. From top to bottom, according to presetting cycle gating each way infrared photoelectric module in proper order. When the first path of infrared photoelectric module is gated, the first path of infrared photoelectric module works, and the one-out-of-multiple controller inputs the output IN1 of the first path of infrared photoelectric module to the timer input channel. When the second path of infrared photoelectric module is gated, the second path of infrared photoelectric module works, and the one-out-of-multiple controller inputs the output IN2 of the second path of infrared photoelectric module to the timer input channel. And analogizing IN sequence, when the eighth path of infrared photoelectric module is finally gated, the eighth path of infrared photoelectric module works, and the one-out-of-multiple controller inputs the output IN1 of the eighth path of infrared photoelectric module into the input channel of the timer.
In addition, in order to reduce the occupation and the calculation load of physical resources, only one input channel of the timer can be occupied, and no matter which infrared photoelectric module is selected, the multi-selection controller can input the feedback signals output by the selected infrared photoelectric module into the same timer input channel.
The parallel speed measuring method for the multi-path spindles provided by the embodiment can be realized based on microcontrollers such as STM32 and GD 32. As shown in table 1, the STM32 family of microcontrollers has 8 timers, which are divided into a basic timer, a general timer, and an advanced timer.
TABLE 1
Figure BDA0003621668680000051
Figure BDA0003621668680000061
Any one of the advanced timer and the universal timer may be selected for counting and input capture. Firstly, initializing a selected timer, mainly comprising GPIO and corresponding input channel definition, polarity edge definition, interrupt configuration and the like. Wherein interrupt response is triggered only when a polarity edge transition is detected, and interrupt is disabled when the count overflows.
S102: recording a first count value of a timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1;
on the basis of setting an edge triggering mode, after the edge event capture of the timer input channel is completed for the first time, the first count value of the timer is recorded as T1, and the interrupt flag bit is cleared. When the Nth time of the edge event capture of the input channel of the timer is completed, the count value of the timer is recorded as T2. The first captured edge event may be either a rising or falling edge. The nth captured edge event may be a rising edge or a falling edge.
The set edge triggering mode can be a rising edge or a falling edge. When the edge triggered mode is a rising edge, the captured is a rising edge. When the edge triggering mode is a falling edge, a falling edge is captured.
In order to reduce the computation disturbance caused by false triggering and improve the reliability of edge detection, in a specific embodiment, completing the edge event capture of the input signal of the timer input channel once includes: and when the edge events with the preset polarity for the preset times are detected, determining to finish the edge event capture of the input signal of the timer input channel once. Before detecting the edge event, the method further comprises the following steps: and carrying out effective polarity edge detection on the input signals of the timer input channel, and detecting the edge events after detecting a preset number of effective levels.
Specifically, the input signal on the timer input channel may be filtered first. Active polarity edge detection is then performed. When a preset number of effective levels are detected at a certain sampling frequency, the signals are determined to be effective polarity edge signals. And then detecting an edge event, and triggering one edge event capture after detecting the edge event with the preset polarity for a preset number of times, namely completing one edge event capture. And when one-time edge time capture is finished, the counting value of the automatic loading counter of the timer is latched into the corresponding capture/comparison register, the flag bit of the status register is set to be 1, and interrupt response is enabled.
For example, the preset number of times is 3, the preset polarity is a rising edge, when 3 rising edges are detected, it is considered that one edge event capture is completed, and what is completed at this time is the rising edge capture.
S103: and calculating the rotating speed of the spindle according to the recorded first counting value and the second counting value.
The infrared photoelectric modules correspond to the spindles one by one. And the gated infrared photoelectric module emits light beams to the corresponding ring, and the rotating speed of the spindle corresponding to the infrared photoelectric module is finally calculated by executing the steps. The rotating speed of each path of spindle in unit time can be calculated by periodically gating each infrared photoelectric module and executing the steps.
In a specific embodiment, the manner of calculating the rotation speed of the spindle according to the recorded first count value and the second count value is as follows:
calculating to obtain a counting increment according to the first counting value and the second counting value;
calculating the rotating speed of the steel wire ring according to the calculation increment;
and calculating the corresponding rotating speed of the spindle according to the rotating speed of the steel wire ring.
Specifically, assume that the reload value of the automatic reload register is T.
When the counting mode is up counting, the counting increment is calculated according to the following formula:
Figure BDA0003621668680000071
when the counting mode is count-down, the counting increment is calculated according to the following formula:
Figure BDA0003621668680000072
supposing that the system clock frequency of the microcontroller is H, the prescaler divides the frequency of the system clock p times to be used as the clock source of the timer, the counting increment is delta T, and the counting is carried out according to nt=[(H/P/ΔT+0.5)×60]And calculating to obtain the rotating speed of the steel wire ring. In the formula [ ·]Representing a rounding operation, ntThe rotation speed of the traveller is given in revolutions per minute.
Further according to
Figure BDA0003621668680000073
And calculating to obtain the rotating speed of the spindle. In the formula, nsThe rotation speed of the spindle is in revolutions per minute; v. offIs the front roller line speed in inches/minute;dxThe unit is the bobbin winding diameter in millimeters. It can be seen that for a fixed spindle speed, when the bobbin winding diameter is large, the traveler speed is large, otherwise it is small.
In order to better meet the requirements of capturing real-time performance and reliability, in a specific embodiment, the method further comprises the following steps: and switching the preset period.
Specifically, the present embodiment is provided with a plurality of preset periods, which respectively correspond to different frequency intervals of spindle rotation. The preset period can be switched correspondingly according to the frequency interval of the spindle rotation.
For example, three preset periods of fast, middle and low gears are set, which respectively correspond to the spindle rotation frequency interval (f)2,∞)Hz、[f1,f2]Hz、(0,f1) Hz, whereby a dynamic correlation is achieved. Wherein, f1,f2Is a design parameter, and f1<f2
Further, in order to overcome the problem of large dispersion of technical parameters of the photoelectric device and improve the detection accuracy of the photoelectric device, in a specific embodiment, the method further comprises the following steps:
sampling an input signal of the timer input channel;
judging whether the emission light intensity of the infrared emission tube is adjusted or not according to the ADC sampling value;
if yes, gradually adjusting the emission light intensity of the infrared emission tube by gradually adjusting the PWM duty ratio.
Referring to fig. 3, ADC sampling is performed on the input channel of the timer, and it is determined whether the emission intensity of the infrared emission tube needs to be adjusted according to the ADC sampling value. If necessary, the emission light intensity of the infrared emission tube is adjusted. On the contrary, if not required, the emission intensity of the infrared emission tube is kept unchanged. And after a certain path of infrared photoelectric module is selected, the emission light intensity of an infrared emission tube of the path of infrared photoelectric module is independently controlled.
Referring to fig. 4, the manner of adjusting the emission intensity of the infrared emission tube is as follows: and gradually adjusting the duty ratio of the PWM by a certain increment, generating PWM pulses with corresponding duty ratios by a PWM generator, and outputting analog signals after the PWM pulses are subjected to RC filtering so as to control the emission light intensity of the corresponding infrared emission tube. The mode of incrementally and gradually adjusting the emitted light intensity can better avoid the phenomenon that the emitted light intensity of the infrared emission tube is steeply changed due to external disturbance for a certain time or a plurality of times continuously.
For different types of photosensitive receiving tubes, the adjustment mode of the emission light intensity of the infrared emission tube can be as follows:
when a photosensitive receiving tube of the infrared photoelectric module adopts a phototriode, if the ADC sampling value is larger, the PWM duty ratio is increased step by step, and then the emission light intensity of the infrared emission tube is increased step by step; on the contrary, if the sampling value of the ADC is smaller, the PWM duty ratio is gradually reduced, and the emission light intensity of the infrared emission tube is further gradually reduced.
When a photosensitive receiving tube of the infrared photoelectric module adopts a photosensitive diode, if the ADC sampling value is larger, the PWM duty ratio is gradually reduced, and the emission light intensity of the infrared emission tube is further gradually reduced; on the contrary, if the sampling value of the ADC is smaller, the PWM duty ratio is gradually increased, and then the emission light intensity of the infrared emission tube is gradually increased.
In a specific embodiment, the method for determining whether to adjust the emission light intensity of the infrared emission tube according to the ADC sampling value may be:
judging whether the ADC sampling value is positioned in a preset interval or not;
if yes, keeping the emission light intensity of the infrared emission tube unchanged;
if not, the emission light intensity of the infrared emission tube is gradually adjusted.
The preset intervals can be set differently according to actual needs, which is not limited in the present application.
In summary, the parallel speed measuring method for the multi-channel spindles provided by the application adopts a time division multiplexing strategy, and by sequentially gating the infrared photoelectric modules, the infrared photoelectric modules sequentially work to detect the rotating speed of each spindle, so that the rotating speed of each spindle can be measured in unit time. In addition, each infrared photoelectric module is sequentially gated, and only one timer input channel can be occupied, so that the physical resource occupation and the calculation load can be greatly reduced.
The application also provides a parallel speed measuring device for the multi-path spindles, and the device described below can be mutually and correspondingly referred to the method described above. Referring to fig. 5, fig. 5 is a schematic view of a parallel speed measuring device for multi-spindle provided in an embodiment of the present application, and as shown in fig. 5, the device includes:
the gating module 10 is used for sequentially gating the infrared photoelectric modules according to a preset period, enabling the infrared transmitting tubes of the gated infrared photoelectric modules to emit light beams, and enabling reflected signals received by the photosensitive receiving tubes of the gated infrared photoelectric modules to be input into an input channel of the timer;
a recording module 20, configured to record a first count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the first time, and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the nth time; n is an integer greater than 1;
and the calculating module 30 is used for calculating the rotating speed of the spindles according to the recorded first counting value and the second counting value.
On the basis of the above embodiment, as a specific implementation manner, the manner of completing capturing edge events of the input signal of the timer input channel once is as follows:
and when edge events with preset polarity for preset times are detected, determining to finish the edge event capture of the input signal of the timer input channel once.
On the basis of the above embodiment, as a specific implementation manner, the method further includes:
and the effective polarity edge detection module is used for carrying out effective polarity edge detection on the input signal of the timer input channel before detecting the edge event and detecting the edge event after detecting a preset number of effective levels.
On the basis of the foregoing embodiment, as a specific implementation manner, the computing module 30 includes:
the counting increment calculating unit is used for calculating to obtain counting increments according to the first counting value and the second counting value;
the bead ring rotating speed calculating unit is used for calculating the rotating speed of the bead ring according to the calculated increment;
and the spindle rotating speed calculating unit is used for calculating the corresponding rotating speed of the spindle according to the rotating speed of the steel wire ring.
On the basis of the above embodiment, as a specific implementation manner, the method further includes:
and the period switching module is used for switching the preset period.
On the basis of the above embodiment, as a specific implementation manner, the method further includes:
the sampling module is used for sampling an input signal of the timer input channel;
the judgment module is used for judging whether to adjust the emission light intensity of the infrared emission tube according to the ADC sampling value;
and the adjusting module is used for gradually adjusting the emission light intensity of the infrared emission tube by gradually adjusting the PWM duty ratio if the infrared emission tube is in the set state.
On the basis of the foregoing embodiment, as a specific implementation manner, the determining module is specifically configured to:
judging whether the ADC sampling value is in a preset interval or not;
if yes, keeping the emission light intensity of the infrared emission tube unchanged;
if not, adjusting the emission light intensity of the infrared emission tube.
The application provides a parallel speed sensor of multichannel spindle adopts the time division multiplex strategy, through gating each infrared photoelectric module in proper order, makes each infrared photoelectric module work in proper order, detects the rotational speed of each spindle, can realize measuring the rotational speed that obtains each spindle in unit interval. In addition, each infrared photoelectric module is gated in sequence, and only one timer input channel can be occupied, so that physical resource occupation and calculation load can be greatly reduced.
The application also provides a parallel speed measuring device for multi-way spindles, which is shown in reference to fig. 6 and comprises a memory 1 and a processor 2.
A memory 1 for storing a computer program;
a processor 2 for executing the computer program to implement the steps of:
sequentially gating all infrared photoelectric modules according to a preset period, enabling infrared transmitting tubes of the gated infrared photoelectric modules to emit light beams, and enabling reflected signals received by photosensitive receiving tubes of the gated infrared photoelectric modules to be input into an input channel of a timer; recording a first count value of a timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1; and calculating the rotating speed of the spindles according to the recorded first counting value and the second counting value.
For the introduction of the device provided in the present application, please refer to the method embodiments described above, which are not described herein again.
The present application further provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of:
sequentially gating all infrared photoelectric modules according to a preset period, enabling an infrared transmitting tube of the gated infrared photoelectric module to emit a light beam, and enabling a reflected signal received by a photosensitive receiving tube of the gated infrared photoelectric module to be input into an input channel of a timer; recording a first count value of a timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1; and calculating the rotating speed of the spindles according to the recorded first counting value and the second counting value.
The computer-readable storage medium may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
For the introduction of the computer-readable storage medium provided in the present application, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed by the embodiments correspond to the method disclosed by the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The method, the device, the equipment and the computer readable storage medium for the parallel speed measurement of the multi-channel spindles provided by the application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, without departing from the principle of the present application, the present application can also make several improvements and modifications, and those improvements and modifications also fall into the protection scope of the claims of the present application.

Claims (10)

1. A parallel speed measuring method for multi-path spindles is characterized by comprising the following steps:
sequentially gating all infrared photoelectric modules according to a preset period, enabling infrared transmitting tubes of the gated infrared photoelectric modules to emit light beams, and enabling reflected signals received by photosensitive receiving tubes of the gated infrared photoelectric modules to be input into an input channel of a timer;
recording a first count value of a timer when the edge event capture of the input signal of the timer input channel is completed for the first time and a second count value of the timer when the edge event capture of the input signal of the timer input channel is completed for the Nth time; n is an integer greater than 1;
and calculating the rotating speed of the spindles according to the recorded first counting value and the second counting value.
2. The method for measuring the speed of the multi-channel spindles in parallel as claimed in claim 1, wherein the performing of the edge event capture of the input signal of the timer input channel once comprises:
and when the edge events with the preset polarity for the preset times are detected, determining to finish the edge event capture of the input signal of the timer input channel once.
3. The method for the parallel speed measurement of multi-way spindles according to claim 2, wherein the step of detecting the edge event further comprises:
and carrying out effective polarity edge detection on the input signals of the timer input channel, and detecting the edge events after detecting a preset number of effective levels.
4. The method for measuring the speed of multiple spindles in parallel according to claim 1, wherein the calculating the rotation speed of the spindles according to the recorded first count value and the second count value comprises:
calculating to obtain a counting increment according to the first counting value and the second counting value;
calculating the rotating speed of the steel wire ring according to the calculation increment;
and calculating the corresponding rotating speed of the spindle according to the rotating speed of the steel wire ring.
5. The method for measuring the speed of the multi-way spindles in parallel as claimed in claim 1, further comprising:
and switching the preset period.
6. The method for the parallel speed measurement of multi-path spindles according to claim 1, further comprising:
sampling an input signal of the timer input channel;
judging whether the emission light intensity of the infrared emission tube is adjusted or not according to the ADC sampling value;
if yes, gradually adjusting the emission light intensity of the infrared emission tube by gradually adjusting the PWM duty ratio.
7. The method for measuring the rotating speeds of the stators in parallel according to claim 6, wherein the step of judging whether to adjust the emission light intensity of the infrared emission tube according to the ADC sampling value comprises the following steps:
judging whether the ADC sampling value is in a preset interval or not;
if so, keeping the emission light intensity of the infrared emission tube unchanged;
if not, the emission light intensity of the infrared emission tube is adjusted.
8. The utility model provides a parallel speed sensor of multichannel spindle which characterized in that includes:
the gating module is used for sequentially gating the infrared photoelectric modules according to a preset period, enabling the infrared transmitting tubes of the gated infrared photoelectric modules to emit light beams, and enabling reflected signals received by the photosensitive receiving tubes of the gated infrared photoelectric modules to be input into the input channel of the timer;
a recording module, configured to record a first count value of a timer when edge event capture of an input signal of the timer input channel is completed for the first time, and a second count value of the timer when edge event capture of an input signal of the timer input channel is completed for the nth time; n is an integer greater than 1;
and the calculating module is used for calculating the rotating speed of the spindle according to the recorded first counting value and the second counting value.
9. A parallel speed measuring device for multi-path spindles is characterized by comprising:
a memory for storing a computer program;
processor for implementing the steps of the method for parallel speed measurement of multi-way spindles according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that it has a computer program stored thereon, which, when executed by a processor, implements the steps of the method for parallel velocimetry of multi-way spindles according to any of claims 1 to 7.
CN202210461003.XA 2022-04-28 2022-04-28 Parallel speed measuring method and related device for multi-path spindles Active CN114778880B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210461003.XA CN114778880B (en) 2022-04-28 2022-04-28 Parallel speed measuring method and related device for multi-path spindles

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210461003.XA CN114778880B (en) 2022-04-28 2022-04-28 Parallel speed measuring method and related device for multi-path spindles

Publications (2)

Publication Number Publication Date
CN114778880A true CN114778880A (en) 2022-07-22
CN114778880B CN114778880B (en) 2023-08-22

Family

ID=82435648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210461003.XA Active CN114778880B (en) 2022-04-28 2022-04-28 Parallel speed measuring method and related device for multi-path spindles

Country Status (1)

Country Link
CN (1) CN114778880B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4549413A (en) * 1983-09-30 1985-10-29 Protechna Herbst Gmbh & Co. Kg Device for the photoelectric supervision of a warp loom
CN2490576Y (en) * 2001-03-16 2002-05-08 王强 Photoelectric yarn industor of cabler
CN101545162A (en) * 2008-03-25 2009-09-30 里特机械公司 Operation method for spinner
CN101788870A (en) * 2009-11-04 2010-07-28 深圳市山鹰科技有限公司 Multi-frequency scanning infrared touch device
CN103984443A (en) * 2013-02-07 2014-08-13 深圳市艾博德科技有限公司 Infrared touch screen and touch point positioning method
CN104115104A (en) * 2013-02-07 2014-10-22 深圳富创通科技有限公司 Method for implementing infrared touch screen based on infrared optical sensor
CN111122897A (en) * 2019-12-23 2020-05-08 无锡物联网创新中心有限公司 Spindle rotating speed capturing method in magnetoelectric single spindle detection system and related device
US20200253479A1 (en) * 2019-02-12 2020-08-13 Brown University High spatiotemporal resolution brain imaging
CN112904042A (en) * 2021-01-20 2021-06-04 浙江理工大学 Spindle speed sensor, Internet of things spindle speed monitoring system and method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4549413A (en) * 1983-09-30 1985-10-29 Protechna Herbst Gmbh & Co. Kg Device for the photoelectric supervision of a warp loom
CN2490576Y (en) * 2001-03-16 2002-05-08 王强 Photoelectric yarn industor of cabler
CN101545162A (en) * 2008-03-25 2009-09-30 里特机械公司 Operation method for spinner
EP2107142A2 (en) * 2008-03-25 2009-10-07 Maschinenfabrik Rieter Ag Method for operating a spinning frame
CN101788870A (en) * 2009-11-04 2010-07-28 深圳市山鹰科技有限公司 Multi-frequency scanning infrared touch device
CN103984443A (en) * 2013-02-07 2014-08-13 深圳市艾博德科技有限公司 Infrared touch screen and touch point positioning method
CN104115104A (en) * 2013-02-07 2014-10-22 深圳富创通科技有限公司 Method for implementing infrared touch screen based on infrared optical sensor
US20200253479A1 (en) * 2019-02-12 2020-08-13 Brown University High spatiotemporal resolution brain imaging
CN111122897A (en) * 2019-12-23 2020-05-08 无锡物联网创新中心有限公司 Spindle rotating speed capturing method in magnetoelectric single spindle detection system and related device
CN112904042A (en) * 2021-01-20 2021-06-04 浙江理工大学 Spindle speed sensor, Internet of things spindle speed monitoring system and method

Also Published As

Publication number Publication date
CN114778880B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
CN105423499B (en) The monitoring method and device and air purifier of clarifier
CA2056117C (en) Vacuum cleaner
US10352772B2 (en) Digital temperature sensor with integrated timer and burst mode
CN102035455B (en) M/T speed measuring method for frequency converter
US7696741B2 (en) System and method for adaptively determining the transition rate of a quantized signal
CN114778880A (en) Parallel speed measuring method for multi-channel spindles and related device
CN109240173A (en) A kind of method and integrated control device of integrated control
JPH0651937B2 (en) Method of monitoring yarn quality in spinning machines
Li et al. Tool breakage detection using deep learning
CN106567164A (en) Two-for-one twister control system and method based on intelligent network
WO2021128626A1 (en) Spindle rotation speed capturing method for magnetoelectric single-spindle detection system, and related apparatus
CN112433064A (en) Rotating speed detection method, device and equipment
CN109782013A (en) Motor speed measuring method, apparatus, readable storage medium storing program for executing and electrical equipment
CN107727875A (en) A kind of fast sample method for flow cytometer showed instrument
CN114881514A (en) Bobbin yarn fruit weight estimation method and related device
JPS58214219A (en) Random pitch twisted wire and method of producing same
CN114775122B (en) Method for estimating complete machine twist and single spindle twist of spinning frame and related device
CN106685279A (en) Method and device for detecting Hall signals of motor
JP4006820B2 (en) Seismic device
CN212505222U (en) Device and system for improving effective distance measurement capability of single-spindle detection of ring spinning
EP3666943B1 (en) Method of controlling spindle of spinning machine and spindle control device
KR101451831B1 (en) Apparatus for controlling control rod of reactor and method thereof
CN116555953A (en) Balloon form detection device of direct twisting machine and control method of cord thread direct twisting machine
CN211505604U (en) Rotation real-time metering detection system with zero real-time refreshing function
CN103076339B (en) Electronic yarn clearer yarn fault quickly recognizing method based on amplitude limiting and mean filtering

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant