A control method for preventing mis-rejection by using a thumbwheel to reject waste

Through the two-stage range assignment, range limiting and interval filtering technology, the problem of accidental interval pulse error triggering caused by encoder numerical fallback is solved, and the accuracy and stability of counting and scrapping are improved.

CN114993370BActive Publication Date: 2025-03-21TRUKING TECH LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210769843.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-03-21
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

The accidental interval pulse error triggering caused by the encoder numerical fallback affects the accuracy and stability of counting and scrapping.

Method used

Through two-stage range assignment, the station encoder value is converted into station identification, the initial station pulse is generated, and the initial station pulse is range-limited and interval filtered to eliminate useless station pulse signals.

Benefits of technology

Effectively eliminate clutter caused by encoder numerical fallback, and improve the accuracy and stability of counting and scrapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114993370B_ABST
    Figure CN114993370B_ABST
Patent Text Reader

Abstract

The present invention is a control method for preventing false rejection for a thumbwheel for rejecting waste, comprising: converting the station encoder value into a station mark through range assignment, and then generating the corresponding initial station pulses according to the station mark; removing useless station pulse signals through range limitation and interval filtering of the initial station pulses to obtain optimized station pulses; the range limitation means that only the pulse signal of the initial station pulse when the corresponding station encoder value is within the limit range is retained, and the interval filtering means that only the first pulse signal of the current station in the initial station pulse is retained; and logical control is performed according to the optimized station pulse. The present invention can effectively solve the problem of occasional interval pulse false triggering caused by encoder value fallback.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of encoders, and in particular to a control method for preventing mistaken rejection of waste by a thumbwheel. Background Art

[0002] The external encoder of the capping machine is installed on the dial wheel shaft and moves with the shaft. During the movement, a station pulse signal is generated according to the encoder feedback value, and the jumping edge of the station pulse signal is counted. It is set to 1 when the set station interval is met, otherwise it is set to 0; however, when the asynchronous motor starts and stops, the rotor will rotate back due to inertia, resulting in jitter, causing the external encoder value to fall back, thereby causing repeated counting and incorrect rejection of waste by the encoder, affecting the accuracy and stability of counting and rejection, especially since the external encoder is installed externally through a bracket and cannot be completely kept horizontal. When the motor shakes, the external encoder is more affected by the jitter; although there is no jitter problem in CN103240613A, a more precisely controlled encoder is used, and the hardware cost is higher. Summary of the invention

[0003] 1. Technical issues to be resolved

[0004] Based on the above problems, the present invention provides a control method for preventing false rejection of waste by a thumbwheel, which solves the problem of occasional false triggering of interval pulses caused by encoder value fallback, thereby improving the accuracy and stability of counting and waste rejection.

[0005] (II) Technical solution

[0006] Based on the above technical problems, the present invention provides a control method for preventing mistaken rejection of waste by a thumbwheel, comprising the following steps:

[0007] S1. Convert the station encoder value into a station identification through range assignment, and then generate corresponding initial station pulses according to the station identification; the range assignment includes assigning a value when the station encoder value belongs to the station start interval, generating a rising edge of the station pulse for waste rejection control of the corresponding station, and assigning a value when the station encoder value belongs to the station end interval, generating a falling edge of the station pulse;

[0008] S2. The useless station pulse signals are eliminated by range limiting and interval filtering of the initial station pulse to obtain the optimized station pulse; the range limiting means that only the pulse signals of the initial station pulse when the corresponding station encoder value is within the limit range are retained, and the interval filtering means that only the first pulse signal of the current station in the initial station pulse is retained;

[0009] S3. Perform logic control according to the optimized workstation pulse.

[0010] Furthermore, before step S1, the method further includes step S0:

[0011] S0. The encoder is installed on the shaft and rotates with the shaft. The encoder value is output as feedback during the movement. The encoder value of each station control is obtained by amplifying and taking the remainder of the encoder value of a single turn.

[0012] Furthermore, the workstation control includes a single-interval workstation, a front rejection workstation one, a front rejection workstation two, a front rejection workstation three, a front rejection workstation four, a rear rejection workstation odd-numbered number ...

[0013] Furthermore, the method also includes setting an origin signal to reset the encoder value once per revolution.

[0014] Furthermore, in step S1, the method of converting the station encoder value into the station identification through range assignment includes:

[0015] S11, determine whether the station encoder value belongs to the station starting interval, if so, set the station mark = 1, generate the rising edge of the station pulse, and the station mark keeps the value = 1; otherwise, no output;

[0016] S12. Determine whether the single-interval station encoder value belongs to the station end interval. If so, set the station identifier = 0 and generate the falling edge of the station pulse; otherwise, no output.

[0017] Furthermore, the workstation starting interval is [workstation starting value, workstation starting value+A), and the workstation ending interval is [workstation ending value, workstation ending value+A), where A is a multiple of the number of workstations and is determined based on experience.

[0018] Furthermore, the step S2 comprises:

[0019] S21, determine whether the initial station pulse satisfies the current station identification = 1, and the station encoder value is within the limit range, if so, proceed to step S22, otherwise, the current station identification of the optimized station pulse = 0; proceed to step S23;

[0020] S22, determine whether the current station identification holding signal = 1 is satisfied, if so, the current station identification of the optimized station pulse = 1, otherwise, the current station identification of the optimized station pulse = 0, and enter step S23;

[0021] S23, set the station identification holding signal = 0, enter the next station, return to step S21, and loop to obtain the optimized station pulse.

[0022] Furthermore, the limiting range at the falling edge of the pulse is [station end value - B, station end value + C), and the limiting range at the rising edge of the pulse is [station starting value - B, station starting value + C), where B and C are multiples of the number of stations per circle, and are taken based on experience.

[0023] Furthermore, the number of workstations per circle is 16.

[0024] Furthermore, A is 192, B is 192, and C is 256.

[0025] (III) Beneficial effects

[0026] The above technical solution of the present invention has the following advantages:

[0027] (1) The present invention converts the station encoder value into a station identifier through a two-stage range assignment to obtain an initial station pulse, which is conducive to eliminating the situation where the station encoder value repeatedly changes the assignment when the assignment critical point jumps due to the encoder value fallback, thereby helping to reduce the noise caused by the encoder value fallback in the initial station pulse;

[0028] (2) The present invention further performs range limitation and interval filtering on the generated initial station pulse, and only retains the pulse signal when the corresponding station encoder value in the initial station pulse is within the limit range, and only retains the first pulse signal of the current station in the initial station pulse, thereby eliminating invalid and repeated pulse signals caused by encoder value setback, further reducing the noise caused by encoder value setback in the initial station pulse, and achieving double protection with the range assignment, thereby improving the accuracy and stability of counting and rejection based on the station pulse. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:

[0030] Figure 1 It is a flow chart of a control method for preventing mistaken rejection for rejecting waste using a thumbwheel according to an embodiment of the present invention;

[0031] Figure 2 A control method for preventing mis-rejection by using a thumbwheel for rejecting waste according to an embodiment of the present invention uses a front and rear station pulse comparison diagram;

[0032] Figure 3 This is an output effect diagram of the control method for preventing mistaken rejection of the thumbwheel for rejecting waste according to an embodiment of the present invention;

[0033] In the figure: 1: single-interval workstation encoder value; 2: encoder original value; 3: front rejection station one to four encoder values; 4: initial single-interval workstation pulse; 5: single-interval workstation identification hold signal; 6: intermediate single-interval workstation pulse; 7: optimized single-interval workstation pulse; 8: optimized front rejection station one pulse; 9: optimized front rejection station two pulse; 10: optimized front rejection station three pulse; 11: optimized front rejection station four pulse; 12: origin signal. DETAILED DESCRIPTION

[0034] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0035] The embodiment of the present invention is a control method for preventing mistaken rejection of waste by a thumbwheel. Figure 1 As shown, the following steps are included:

[0036] S0. The encoder is installed on the shaft and rotates with the shaft. The encoder value is output as feedback during the movement. The encoder value of each station control is obtained by amplifying and taking the remainder of the encoder value of a single turn.

[0037] In this embodiment, there are 16 bottles per revolution of the transmission wheel, that is, there are 16 workstations per revolution; the encoder accumulates a value of 1024 per revolution, and the encoder value is reset once per revolution using the origin signal 12, so that the encoder value 0-1024 cycles;

[0038] The workstation control includes single-interval workstations, front waste rejection workstation 1, front waste rejection workstation 2, front waste rejection workstation 3, front waste rejection workstation 4, rear waste rejection odd workstations and rear waste rejection even workstations, and the workstation control is performed according to needs; since there are 16 workstations per circle, including 16 single-interval workstations, 4 front waste rejection workstation 1, 4 front waste rejection workstation 2, 4 front waste rejection workstation 3, 4 front waste rejection workstation 4, 8 rear waste rejection odd workstations and 8 rear waste rejection even workstations.

[0039] To improve the calculation accuracy, the encoder single-turn value is magnified by 16 times to obtain the encoder original value 2, which is between 0-16384. Figure 2 As shown in the second curve, by taking the remainder by 1024, we can get the station encoder value of each station control; Figure 2 The first curve shown is the single-interval encoder value 1, such as Figure 2 The third curve shown is the encoder value 3 for the front rejection position one to four.

[0040] The station encoder value is not limited to being obtained from one encoder.

[0041] S1. Convert the station encoder value into a station identification through range assignment, and then generate corresponding initial station pulses according to the station identification; the range assignment includes assigning a value when the station encoder value belongs to the station start interval, generating a rising edge of the station pulse for waste rejection control of the corresponding station, and assigning a value when the station encoder value belongs to the station end interval, generating a falling edge of the station pulse;

[0042] Among them, the station encoder value includes single-interval station encoder value 1, front rejection station encoder value 1, front rejection station encoder value 2, front rejection station encoder value 3, front rejection station encoder value 4, rear rejection station encoder value odd and rear rejection station encoder value even. The method of converting each station encoder value into the corresponding station identification is the same, and the range assignment method is adopted. Take the single-interval station encoder value 1 as an example:

[0043] S11, determine whether the single-interval station encoder value 1 belongs to the station starting interval, if so, set the station mark = 1, generate the rising edge of the single-interval station pulse, which is used for the waste rejection control of the corresponding station, and the station mark keeps the value = 1; otherwise, no output;

[0044] S12, determine whether the single-interval station encoder value 1 belongs to the station end interval, if so, set the station identifier = 0, and generate the falling edge of the station pulse; otherwise, no output;

[0045] The workstation starting interval is [workstation starting value, workstation starting value+A), and the workstation ending interval is [workstation ending value, workstation ending value+A). When the workstation encoder value jumps within the workstation starting interval, the workstation identifier is always set to 1, and when the workstation encoder value jumps within the workstation ending interval, the workstation identifier is always set to 0, thereby eliminating the situation where the workstation identifier always jumps between 1 and 0 when the workstation encoder value jumps at the critical point. The original value 2 of the encoder is between 0-16384, with 16 single-interval stations, and the encoding value of the single-interval station is between 0-1024. A is determined based on experience, which is a multiple of the number of stations per circle, that is, a multiple of 16. In this embodiment, A is 192, the starting value of the station is 40, and the ending value of the station is 960. It is set to 1 when it belongs to [40, 232), and it is set to 0 when it belongs to [960, 1152); for example, when the station encoder value is 50, it is set to 1, because the encoder value falls back to 48, it is still set to 1, and when the station encoder value is 1000, it is set to 0, because the encoder value falls back to 995, it is still set to 0;

[0046] The corresponding initial single-interval workstation pulse 4 is generated by combining the single-interval workstation identifiers. Figure 2 The fourth curve shown is a square wave. Therefore, range assignment can effectively reduce the noise caused by the encoder value fallback in the initial position pulse; the single interval position identification holding signal 5 is as follows Figure 2 The fifth curve shown is the same as the initial single-interval workstation pulse 4 when the initial single-interval workstation pulse 4 has no noise.

[0047] S2. The useless station pulse signals are eliminated by range limiting and interval filtering of the initial station pulse to obtain the optimized station pulse; the range limiting means that only the pulse signals of the initial station pulse when the corresponding station encoder value is within the limit range are retained, and the interval filtering means that only the first pulse signal of the current station in the initial station pulse is retained;

[0048] S21, determine whether the initial single-interval station pulse 4 satisfies the current station identification = 1, and the corresponding single-interval station encoder value 1 is within the limit range, if so, proceed to step S22, otherwise the current station identification of the optimized single-interval station pulse 7 = 0; proceed to step S23;

[0049] The limiting range at the falling edge of the pulse is [station end value - B, station end value + C), and the limiting range at the rising edge of the pulse is [station starting value - B, station starting value + C). B and C are both multiples of the number of stations, that is, multiples of 16. According to experience, B is 192 and C is 256.

[0050] Step S21 obtains the following information by using the current station identification = 1 in the initial single-interval station pulse 4 and the corresponding single-interval station encoder value 1 being within the limit range: Figure 2 The sixth intermediate single-interval station pulse 6 is obtained based on the single-interval station encoder value 1 and the initial single-interval station pulse 4, that is, only the pulse signal when the corresponding station encoder value in the initial station pulse is within the limit range is retained.

[0051] S22, determine whether the current station identification holding signal = 1 is satisfied, if so, the current station identification of the optimized single-interval station pulse 7 = 1, otherwise, the current station identification of the optimized single-interval station pulse 7 = 0, and enter step S23;

[0052] S23, set the station identification holding signal = 0, enter the next station of the initial single-interval station pulse 4, and return to step S21; loop to obtain the optimized single-interval station pulse 7;

[0053] When performing range assignment in step S1, the station identification holding signal is set to 1. Therefore, when the first station identification of the current station of the initial single-interval station pulse 4 is reached, the judgment of the current station identification holding signal in step S22 must be yes. The current station identification output of the optimized single-interval station pulse 7 is 1, which is the same as the intermediate pulse. Through step S23, starting from the second station identification of the current station, the current station identification holding signal always remains zero, and the repeated pulse signals in the intermediate pulse are eliminated, that is, only the first pulse signal of the current station in the initial station pulse is retained. When entering the next station of the initial single-interval station pulse 4, the current station identification holding signal is 1 again. This cycle is repeated to obtain the optimized single-interval station pulse 7, as shown in FIG. Figure 2 The seventh curve is shown.

[0054] S3. Perform logical control of shifting or counting according to the optimized single-interval workstation pulse 7.

[0055] Similarly, the optimized front rejection position pulse 8, the optimized front rejection position pulse 9, the optimized front rejection position pulse 10, the optimized front rejection position pulse 11, the optimized rear rejection position pulse odd and the optimized rear rejection position pulse even are obtained, as shown in FIG. Figure 2 As shown, the corresponding rejection logic control is performed.

[0056] According to the relationship between the control of each station, the optimized pulses of the first station of the front waste rejection, the second station of the front waste rejection, the third station of the front waste rejection and the fourth station of the front waste rejection are combined to obtain the optimized single-interval station pulse 7, and the optimized pulses of the odd station of the rear waste rejection and the even station of the rear waste rejection are combined to obtain the optimized single-interval station pulse 7. The comparison of the station pulses before and after optimization is shown in FIG. Figure 3 shown.

[0057] In summary, the above-mentioned control method for preventing mis-rejection by using a thumbwheel to reject waste has the following advantages:

[0058] (1) The present invention converts the station encoder value into a station identifier through a two-stage range assignment to obtain an initial station pulse, which is conducive to eliminating the situation where the station encoder value repeatedly changes the assignment when the assignment critical point jumps due to the encoder value fallback, thereby helping to reduce the noise caused by the encoder value fallback in the initial station pulse;

[0059] (2) The present invention further performs range limitation and interval filtering on the generated initial station pulse, and only retains the pulse signal when the corresponding station encoder value in the initial station pulse is within the limit range, and only retains the first pulse signal of the current station in the initial station pulse, thereby eliminating invalid and repeated pulse signals caused by encoder value setback, further reducing the noise caused by encoder value setback in the initial station pulse, and achieving double protection with the range assignment to avoid occasional interval pulse false triggering, thereby improving the accuracy and stability of counting and rejection based on the station pulse.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the embodiments of the present invention are described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations shall fall within the scope defined by the appended claims.

Claims

1. A control method for preventing mis-rejection for a thumbwheel reject, characterized in that: The following steps are involved: S1. Convert the station encoder value into a station identification through range assignment, and then generate corresponding initial station pulses according to the station identification; the range assignment includes assigning a value when the station encoder value belongs to the station start interval, generating a rising edge of the station pulse for waste rejection control of the corresponding station, and assigning a value when the station encoder value belongs to the station end interval, generating a falling edge of the station pulse; S2. The useless station pulse signals are eliminated by range limiting and interval filtering of the initial station pulse to obtain the optimized station pulse; the range limiting means that only the pulse signals of the initial station pulse when the corresponding station encoder value is within the limit range are retained, and the interval filtering means that only the first pulse signal of the current station in the initial station pulse is retained; S3. Perform logic control according to the optimized workstation pulse.

2. The control method for preventing wrong rejection of the thumbwheel for rejecting waste according to claim 1, characterized in that: Before step S1, the method further includes step S0: S0. The encoder is installed on the shaft and rotates with the shaft. The encoder value is output as feedback during the movement. The encoder value of each station control is obtained by amplifying and taking the remainder of the encoder value of a single turn.

3. The control method for preventing wrong rejection of the thumbwheel for rejecting waste according to claim 2, characterized in that: The workstation control includes a single-interval workstation, a front rejection workstation one, a front rejection workstation two, a front rejection workstation three, a front rejection workstation four, a rear rejection workstation odd-numbered number ...

4. The control method for preventing wrong rejection of waste by a thumbwheel according to claim 3, characterized in that: The method further comprises setting a home signal to reset the encoder value once per revolution.

5. The control method for preventing wrong rejection of waste by a thumbwheel according to claim 4, characterized in that: In step S1, the method of converting the station encoder value into the station identification through range assignment includes: S11, determine whether the station encoder value belongs to the station starting interval, if so, set the station mark = 1, generate the rising edge of the station pulse, and the station mark keeps the value = 1; otherwise, no output; S12. Determine whether the single-interval station encoder value belongs to the station end interval. If so, set the station identifier = 0 and generate the falling edge of the station pulse; otherwise, no output.

6. The control method for preventing wrong rejection of waste by a thumbwheel according to claim 5, characterized in that: The workstation starting interval is [workstation starting value, workstation starting value+A), and the workstation ending interval is [workstation ending value, workstation ending value+A), where A is a multiple of the number of workstations and is determined based on experience.

7. The control method for preventing wrong rejection of waste by a thumbwheel according to claim 6, characterized in that: The step S2 comprises: S21, determine whether the initial station pulse satisfies the current station identification = 1, and the station encoder value is within the limit range, if so, proceed to step S22, otherwise, the current station identification of the optimized station pulse = 0; proceed to step S23; S22, determine whether the current station identification holding signal = 1 is satisfied, if so, the current station identification of the optimized station pulse = 1, otherwise, the current station identification of the optimized station pulse = 0, and enter step S23; S23, set the station identification holding signal = 0, enter the next station, return to step S21, and loop to obtain the optimized station pulse.

8. The control method for preventing wrong rejection of waste by a thumbwheel according to claim 7, characterized in that: The limit range at the falling edge of the pulse is [station end value - B, station end value + C), and the limit range at the rising edge of the pulse is [station starting value - B, station starting value + C). B and C are multiples of the number of stations per circle, and are determined based on experience.

9. The control method for preventing wrong rejection of waste by a thumbwheel according to claim 8, characterized in that: There are 16 workstations per circle.

10. The control method for preventing wrong rejection of the thumbwheel for rejecting waste according to claim 9, characterized in that: A is 192, B is 192, and C is 256.

Citation Information

Patent Citations

  • Machine tool table movement control method

    CN103240613A

  • Speed measuring method and system based on increment type photoelectric encoder

    CN102495226A

  • Lamp inspection machine bottle removing validation method and lamp inspection machine

    CN103752526A