Backflow detection method, device and system of sorting machine and storage medium
By setting up a photoelectric sensor in the reflow channel of the fruit and vegetable sorter, detecting the reflow fruit and controlling the working state of the sorter according to the preset threshold, the problem of the reflow fruit affecting normal operation when the sorter fails, and improving stability and prevention Risk of blocking fruit.
Patent Information
- Application Number
- CN202411446701.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-01-17
AI Technical Summary
The existing fruit and vegetable sorting machines lack effective detection of the reflow process when there is a failure, resulting in a large number of reflow fruits affecting the normal operation of the sorting machine.
The photoelectric sensor is used to detect it in the reflow channel of the sorter, and determine whether the reflow result exists by obtaining the working data, and determine whether the pre-processing process of the sorter or the entire sorter is suspended based on the preset threshold.
It effectively avoids the damage caused by a large number of reflux fruits to the sorting machine, improves the working stability of the sorting machine, and prevents the problem of fruit blocking and positioning caused by reflux fruits.
Smart Images

Figure CN119319089A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sorting machines, and in particular to a reflux detection method, device, system and storage medium of a sorting machine. Background Art
[0002] The basic form of a fruit and vegetable sorting machine usually includes a feeding system, a detection system, a discharging system, a sorting system, and a reflux system. In actual applications, through the control of the host computer, the fruits and vegetables to be inspected enter through the feeding system, and after the corresponding sorting treatment by the sorting system, they are distributed to the appropriate discharging port, and the returned fruits are recovered through the reflux system.
[0003] Existing fruit and vegetable sorting machines may cause a large amount of refluxed fruit at the tail of the sorting machine when there are sorting system failures, IPM failures, SCM failures, wiring failures, etc., which may cause a large amount of fruit to be blocked at the recycling outlet and the long recycling belt to be stuck, thus affecting the normal operation of the sorting machine. Therefore, it is necessary to monitor the reflux process of the sorting machine to avoid the above situation. Summary of the invention
[0004] An object of the present invention is to provide a reflux detection method, device, system and storage medium for a sorting machine, so as to solve the technical problem that when a failure occurs in the current fruit and vegetable sorting machine, there is a lack of effective detection of the reflux process of the sorting machine, so that a large amount of refluxed fruit may affect the normal operation of the sorting machine.
[0005] In a first aspect, an embodiment of the present invention provides a reflux detection method for a sorting machine, which is applied to a control device of the sorting machine, wherein a photoelectric sensor is provided at a reflux channel of the sorting machine, and the control device is communicatively connected to the photoelectric sensor, and the photoelectric sensor is used to detect the reflux channel of the sorting machine, and the method comprises: obtaining working data of the photoelectric sensor detecting the reflux channel; determining whether there is reflux fruit in the reflux channel of the sorting machine according to the working data; when there is reflux fruit in the reflux channel, determining whether to suspend a pre-processing process of the sorting machine according to a preset first threshold value, the first threshold value being used to indicate the maximum number of reflux fruit in the reflux channel within a preset first cycle; after the pre-processing process of the sorting machine is suspended, and\or when there is reflux fruit in the reflux channel, determining whether to stop the sorting machine according to a preset second threshold value, the second threshold value being used to indicate the maximum number of reflux fruit in the reflux channel within a preset second cycle.
[0006] In combination with the first aspect, in a possible implementation method, determining whether to suspend the pre-processing process of the sorting machine according to a preset first threshold value includes: when it is determined that there is reflow fruit in the reflow channel, starting timing to determine a target duration, and the target duration is used to indicate the duration of the presence of reflow fruit in the reflow channel of the sorting machine; determining a target quantity according to the working data, and the target quantity is used to indicate the quantity of reflow fruit in the reflow channel; when the target duration is less than a preset first period, judging whether the target quantity is greater than a preset first threshold value; if so, sending a stop pre-processing signal to the sorting machine, and the sorting machine suspends the pre-processing process after receiving the stop pre-processing signal; when the target duration reaches the first period, if there is reflow fruit in the reflow channel and the pre-processing process is not suspended, restarting the timing to reset the target duration and target quantity.
[0007] In combination with the first aspect, in a possible implementation, the method also includes: after the pre-processing process of the sorting machine is suspended, starting timing to determine a reference time length, the reference time length is used to indicate the duration of the pre-processing process of the sorting machine after being suspended; determining a target quantity based on the working data, the target quantity is used to indicate the quantity of refluxed fruit in the reflux channel; when the reference time length is less than a preset second cycle, determining whether the target quantity is less than a preset second threshold value; if so, sending a pre-processing recovery signal to the sorting machine, so that the sorting machine resumes the pre-processing process after receiving the pre-processing recovery signal; if not, sending a stop signal to the sorting machine, so that the sorting machine stops after receiving the stop signal.
[0008] In combination with the first aspect, in a possible implementation, when there is reflow fruit in the reflow channel, determining whether to stop the sorting machine according to a preset second threshold value includes: when it is determined that there is reflow fruit in the reflow channel, starting timing to determine a target duration, and the target duration is used to indicate the duration of the presence of reflow fruit in the reflow channel of the sorting machine; determining a target quantity according to the working data, and the target quantity is used to indicate the quantity of reflow fruit in the reflow channel; when the target duration is less than a preset second period, determining whether the target quantity is greater than a preset second threshold value; if so, sending a stop signal to the sorting machine so that the sorting machine stops after receiving the stop signal; when the target duration reaches the preset second period, if there is reflow fruit in the reflow channel and the sorting machine is not stopped, restarting the timing to reset the target duration and target quantity.
[0009] In combination with the first aspect, in a possible implementation, the photoelectric sensor includes a transmitter and a receiver, and the method further includes: determining whether the transmitter and the receiver are connected based on working data of the photoelectric sensor; after the transmitter and the receiver are connected, starting timing to determine a first duration, the first duration being used to indicate the connection duration between the transmitter and the receiver; when the first duration is greater than a preset second duration, sending a warning message to a host computer.
[0010] In the second aspect, an embodiment of the present invention further proposes a control device of a sorting machine, the control device comprising a processor and a memory, the memory being connected to the processor, the processor being used to execute one or more computer programs stored in the memory, and when the processor executes the one or more computer programs, the control device enables the control device to implement the reflux detection method of the sorting machine as described in the first aspect.
[0011] In the third aspect, an embodiment of the present invention further proposes a reflux detection system for a sorting machine, which is applied to the sorting machine. The system includes: a photoelectric sensor, which is arranged at the reflux channel of the sorting machine and is used to detect the reflux channel of the sorting machine; and a control device of the sorting machine, which is communicatively connected with the photoelectric sensor and is used to control the sorting machine to implement the reflux detection method of the sorting machine as described in the first aspect.
[0012] In combination with the third aspect, in a possible implementation, the system further includes at least two photoelectric fixed supports, the photoelectric fixed supports are relatively arranged on two sides of the reflux channel, and the photoelectric sensor is adjustably mounted on the photoelectric fixed supports.
[0013] In combination with the third aspect, in a possible implementation, the photoelectric sensor includes a transmitting end and a receiving end, and the transmitting end and the receiving end are relatively arranged on photoelectric fixed brackets on both sides of the reflux channel to detect whether there is reflux fruit in the reflux channel of the sorting machine.
[0014] In a fourth aspect, the present invention further proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the reflux detection method for the sorting machine as described in the first aspect.
[0015] The present invention can achieve the following technical effects: based on the method proposed in the present invention, the control device applied to the sorting machine first obtains the working data of the photoelectric sensor detecting the reflow channel, and determines whether there is reflow fruit in the reflow channel of the sorting machine based on the working data, and then makes a judgment. When there is reflow fruit in the reflow channel, it determines whether to suspend the pre-processing process of the sorting machine according to the preset first threshold value. After the pre-processing process of the sorting machine is suspended, and\or when there is reflow fruit in the reflow channel, it determines whether to stop the sorting machine according to the preset second threshold value, wherein the first threshold value is used to indicate the maximum number of reflow fruits allowed in the reflow channel within the preset first cycle, and the second threshold value is used to indicate the maximum number of reflow fruits allowed in the reflow channel within the preset second cycle.
[0016] When the presence of reflowed fruit in the reflow channel is detected, the present invention measures the amount of reflowed fruit in the reflow channel according to a preset first threshold and a second threshold, determines whether to suspend the pre-processing process of the sorting machine at this time, and determines whether the sorting machine needs to be shut down according to the preset threshold. Alternatively, when the sorting machine falls into a state where the pre-processing process is suspended, further determines whether the sorting machine needs to be shut down, thereby effectively avoiding possible damage to the sorting machine caused by the generation of a large number of reflowed fruits and improving the stability of the sorting machine's operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0018] Figure 1 A schematic diagram of a scenario of backflow detection of a sorting machine provided by an embodiment of the present invention;
[0019] Figure 2 A schematic flow chart of a reflux detection method for a sorting machine provided in an embodiment of the present invention;
[0020] Figure 3 A ladder diagram for pre-processing process control provided by an embodiment of the present invention;
[0021] Figure 4 A ladder diagram for shutdown control of a sorting machine provided in an embodiment of the present invention;
[0022] Figure 5 A ladder diagram of abnormal on-time of a photoelectric sensor provided by an embodiment of the present invention;
[0023] Figure 6A schematic diagram of functional modules of a control device for a sorting machine provided by an embodiment of the present invention;
[0024] Figure 7 A schematic structural diagram of a control device for a sorting machine provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0026] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present invention. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order from the module division in the device or the flow chart. Furthermore, the words "first", "second", "third", etc. used in the present invention do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0027] In order to better explain the present invention, please first refer to Figure 1 , Figure 1 The figure shows a schematic diagram of a scene of sorting machine backflow detection, such as Figure 1 As shown, the scene includes a sorting machine 10, a photoelectric sensor 20 arranged at the reflux channel of the sorting machine 10, and a control device 30 that can communicate with the photoelectric sensor 20 and can further control the sorting machine 10, wherein the sorting machine 10 meets the basic fruit and vegetable sorting function, and a certain number of reflux fruits are generated in its reflux channel during fruit and vegetable sorting, and the photoelectric sensor 20 is used to detect the reflux channel of the sorting machine 10 and send the generated working data to the control device 30. The control device 30 has a certain data processing capability, and can judge the number of reflux fruits in the reflux channel of the sorting machine 10 according to the working data of the photoelectric sensor 20, and thereby control the sorting machine 10 to enter different working states.
[0028] Easy to understand, Figure 1The control device 30 shown is set independently of the sorting machine 10, and can control the working state of the sorting machine 10 by means of communication, etc. Its specific form can be an industrial computer, a mobile terminal or a similar PLC logic controller, etc. In addition, the control device 30 is also a hardware or software module integrated on the sorting machine 10. Based on this understanding, the control device 30 can also be regarded as a part of the sorting machine 10. When it is set as a software module, it should communicate with the photoelectric sensor 20 through the communication module in the sorting machine 10, and send a control signal in real time to control the working state of the sorting machine 10.
[0029] As a preferred embodiment, the above-mentioned photoelectric sensor 20 can specifically be a counter-radiation photoelectric sensor, which should include at least one set of transmitter and receiver, and realize the detection of the reflux channel through the synchronous operation of the transmitter and the receiver, and then the amount of reflux fruit can be determined by the working data generated by it.
[0030] Based on this, the embodiment of the present invention proposes a backflow detection method for a sorting machine. Figure 2 , Figure 2 Shown is a schematic flow diagram of the method, comprising:
[0031] Step S10, obtaining the working data of the photoelectric sensor detecting the reflux channel.
[0032] The execution subject of this embodiment and subsequent embodiments may be the above Figure 1 The control device shown detects the reflux channel in the sorting machine through the above-mentioned photoelectric sensor, and further collects the working data generated by the photoelectric sensor. It is easy to understand that for most sorting machines, the number of reflux channels is not fixed, and may include multiple reflux channels. In this case, the number of photoelectric sensors is not unique. Photoelectric sensors can be set at each reflux channel of the sorting machine as needed (the location of the photoelectric sensor should not affect the normal operation of the reflux channel) to synchronously detect each reflux channel and generate multiple types of working data corresponding to each other on the time axis. This part of the working data will serve as the basis for subsequent detection steps.
[0033] More specifically, when multiple photoelectric sensors are respectively set in different reflux channels for synchronous detection, the control device needs to send time synchronization information to each photoelectric sensor so that different photoelectric sensors can work synchronously. For example, the control device can generate a standard time signal for calibrating the sensor's clock, and send the time signal to each photoelectric sensor via Ethernet or serial communication. After each photoelectric sensor receives the time synchronization signal, it calibrates the internal clock accordingly.
[0034] Step S20, determining whether there is reflow fruit in the reflow channel of the sorting machine according to the working data.
[0035] In this embodiment, the control device determines whether the return fruit appears in the return channel of the sorting machine through the working data of each photoelectric sensor. Specifically, the data collected by each sensor will be converted into an electrical signal, and then sent to the control device for analysis and processing, and then the control device determines whether the return fruit is detected in the multiple return channels of the sorting machine at this time.
[0036] It should be noted that the photoelectric sensor in this embodiment can specifically be a counter-radiation photoelectric sensor, which includes at least a transmitting end and a receiving end. The transmitting end and the receiving end should be symmetrically arranged on both sides of the reflux channel to be detected. The transmitting end transmits a photoelectric signal to the corresponding receiving end, and the receiving end is used to synchronously receive the photoelectric signal sent by the transmitting end, and further judge whether there is reflux fruit in the reflux channel at this time by detecting whether the photoelectric signal is blocked.
[0037] In some embodiments, considering the influence of the external environment, the receiving end further determines whether the object blocking the photoelectric signal is a backflow fruit through a preset threshold when receiving the photoelectric signal. For example, when making a judgment, the receiving end compares whether the received photoelectric signal is less than the preset photoelectric signal threshold. Only when the received photoelectric signal is greater than the preset photoelectric signal threshold, it is considered that there is a backflow fruit in the backflow channel at this time. Otherwise, it is considered that although the photoelectric signal is blocked at this time, the cause of the blocking of the photoelectric signal is not the backflow fruit, that is, the influence of environmental factors on the judgment result is further avoided.
[0038] Step S30, when there are reflowed fruits in the reflow channel, determine whether to suspend the pre-processing process of the sorting machine according to a preset first threshold, wherein the first threshold is used to indicate the maximum number of reflowed fruits in the reflow channel within a preset first cycle.
[0039] In this embodiment, the pre-processing process of the sorting machine works normally before being suspended. At this time, the sorting machine still continues the pre-processing process for the fruits and vegetables to be inspected, and the pre-processed fruits and vegetables enter the sorting machine through the feed port of the sorting machine and wait for processing.
[0040] The preset first threshold refers to a determined value directly related to the number of reflowed fruits. In this embodiment, when there are reflowed fruits in the reflow channel, the determined value is used to determine whether the pre-processing process should be suspended to avoid a large amount of reflowed fruits affecting the normal working state in the subsequent working process of the sorting machine. It is easy to understand that after the pre-processing process is suspended, the pre-processed fruits and vegetables to be inspected will still enter the sorting system of the sorting machine normally, and these fruits and vegetables to be inspected will be processed by the sorting system of the sorting machine, but no additional fruits and vegetables to be inspected will be pre-processed, that is, the number of fruits and vegetables about to enter the sorting machine is limited to a certain extent, thereby avoiding the generation of a large number of reflowed fruits.
[0041] The specific values of the above-mentioned first threshold and the first period can be set by technical personnel in this field according to actual needs. As an example, when the sorting machine has 4 reflux channels, the first period can be set to 60s, and the corresponding first threshold can be set to 60; when the sorting machine has 6 reflux channels, the first period can be set to 60s, and the corresponding first threshold can be set to 100.
[0042] In some embodiments, after the pre-processing process of the sorting machine is suspended, the control device may send a warning message to the outside, and the warning message may be received and processed by the host computer or host system of the sorting machine. The host computer or host system is provided with a corresponding alarm device, such as an indicator light or an alarm that can issue a warning prompt. Through the alarm device, the host computer or the host system issues an alarm to remind the staff that the pre-processing process of the sorting machine has been suspended and whether manual intervention is required.
[0043] Step S40, after the pre-processing process of the sorting machine is suspended, and / or when there is reflow fruit in the reflow channel, determine whether to stop the sorting machine according to a preset second threshold value.
[0044] In this embodiment, after the pre-processing process of the sorting machine is suspended, it is necessary to determine whether it is necessary to further stop all working processes of the entire sorting machine, that is, to determine whether to shut down the sorting machine. It is easy to understand that the main purpose of suspending the pre-processing process of the sorting machine is to limit the number of fruits and vegetables that are about to enter the sorting machine, and it will not affect the current working state of the sorting machine. If the sorting machine is shut down, the entire sorting machine will be shut down, all processes will be stopped immediately, and the impact of the refluxed fruit will be avoided in time.
[0045] Accordingly, after the sorting machine stops, the control device can send a warning message to the outside, and the warning message can be received by the host computer or host system of the sorting machine and an alarm is issued to remind the staff that the sorting machine has stopped and whether manual intervention is required. As a preferred embodiment, after the sorting machine stops, the staff needs to manually reset it before restarting the sorting machine, which further ensures the stability and reliability of the sorting machine.
[0046] The specific values of the above-mentioned second threshold and the second period can be set by technical personnel in this field according to actual needs. As an example, when the sorting machine has 4 reflux channels, the second period can be set to 120s, and the corresponding second threshold can be set to 240; when the sorting machine has 6 reflux channels, the second period can be set to 120s, and the corresponding second threshold can be set to 200.
[0047] Further, in the above embodiment, the determination of whether to suspend the pre-processing process of the sorting machine according to a preset first threshold value includes: when it is determined that there is reflow fruit in the reflow channel, starting timing to determine a target duration, and the target duration is used to indicate the duration of the presence of reflow fruit in the reflow channel of the sorting machine; determining a target quantity according to the working data, and the target quantity is used to indicate the quantity of reflow fruit in the reflow channel; when the target duration is less than the preset pre-stop processing duration, judging whether the target quantity is greater than the preset first threshold value; if so, sending a pre-stop processing signal to the sorting machine, and the sorting machine suspends the pre-processing process after receiving the pre-stop processing signal.
[0048] In this embodiment, the target number of reflux fruit is further determined by the working data of the photoelectric sensor, and the target duration is used to measure the duration of the reflux fruit appearing in the reflux channel. The target number is used to compare with the first threshold, and the target duration is used to compare with the first cycle, so as to periodically judge whether the flow of the reflux fruit in the reflux channel is too large.
[0049] For example, assuming that the target duration is t, the target quantity is x, and the first threshold is X, the pre-processing cycle corresponding to the threshold Y is T, then the timing starts at the moment when the return fruit is detected, and it is continuously determined whether t is less than T. If x is always less than X during the period when t is less than T, it is considered that there is no need to suspend the pre-processing process of the sorting machine within the current target duration. When the timing reaches the time when t is equal to T, and there are still return fruits in the return channel at this time, the timing is restarted, that is, t is set to 0 and x is set to 0 at this time, and the next cycle of detection is performed... until the pre-processing process of the sorting machine is suspended, or there are no return fruits in the return channel.
[0050] Furthermore, in the above embodiment, the method also includes: when the pre-processing process of the sorting machine is suspended, starting timing to determine a first time length, the first time length is used to indicate the duration of time that the sorting machine is in a pre-processing process suspension state; determining a target quantity based on the working data, the target quantity is used to indicate the number of reflux fruits in the reflux channel; when the first time length is less than the preset sorting machine stop time length, judging whether the target quantity is less than a preset second threshold value; if so, sending a stop signal to the sorting machine so that the sorting machine stops after receiving the stop signal; if not, sending a pre-processing recovery signal to the sorting machine so that the sorting machine resumes the pre-processing process after receiving the pre-processing recovery signal.
[0051] It is easy to understand that after the sorting machine enters the state of pre-processing suspension, it is necessary to further determine whether to resume the pre-processing process or shut down the sorting machine. In this embodiment, the above-mentioned second cycle is used as the basis for whether to resume the pre-processing process, that is, within the duration of the above-mentioned second cycle, if there are still return fruits, re-count, if the target number is less than the preset second threshold, then resume the pre-processing process of the sorting machine, if the target number is greater than or equal to the preset second threshold, then it means that there are still a lot of return fruits, and the sorting machine needs to be shut down to avoid risks. Please refer to Figure 3 , Figure 3 The following is a ladder diagram for setting the pre-processing control.
[0052] As a feasible implementation, after determining whether the target quantity is less than a preset second threshold, the pre-processing signal may be set to automatically reset, and the automatic reset time may be 3 seconds.
[0053] Further, in the above embodiment, when there is reflow fruit in the reflow channel, it is determined whether to stop the sorting machine according to a preset second threshold value, including: when it is determined that there is reflow fruit in the reflow channel, starting timing to determine a target duration, and the target duration is used to indicate the duration of the presence of reflow fruit in the reflow channel of the sorting machine; determining a target quantity according to the working data, and the target quantity is used to indicate the quantity of reflow fruit in the reflow channel; when the target duration is less than a preset second period, judging whether the target quantity is greater than a preset second threshold value; if so, sending a stop signal to the sorting machine so that the sorting machine stops after receiving the stop signal; when the target duration reaches the preset second period, if there is reflow fruit in the reflow channel and the sorting machine is not stopped, restarting the timing to reset the target duration and target quantity.
[0054] Referring to the control process of the pre-processing process in the above-mentioned embodiment, in this embodiment, the second threshold value and the second cycle are used to determine whether to stop the sorting machine. Specifically, assuming that the target duration is m, the target quantity is n, and the second threshold value is N, the second cycle corresponding to the threshold value Y is M, then the timing starts at the moment when the appearance of the reflux fruit is detected, and it is continuously determined whether m is less than M. If it is detected that n is always less than N during the time when m is less than M, it is considered that there is no need to stop the sorting machine in the current second cycle. When the timing reaches the time when m is equal to N, it is detected that there is still reflux fruit in the reflux channel at this time, and the sorting machine has not stopped, then the timing is restarted, that is, m is set to 0 and N is set to 0 at this time, and the next cycle of detection is performed... until the sorting machine is stopped, or there is no reflux fruit in the reflux channel. Please refer to Figure 4 , Figure 4 Shown is a ladder diagram for setting the sorting machine stop control.
[0055] Furthermore, in the above-mentioned embodiment, the photoelectric sensor includes a transmitting end and a receiving end, and the method also includes: determining whether the transmitting end and the receiving end are connected according to the working data of the photoelectric sensor; after the transmitting end and the receiving end are connected, starting timing to determine a second time length, and the second time length is used to indicate the connection time length of the transmitting end and the receiving end; when the third time length is greater than the preset fourth time length, sending a warning message to the host computer.
[0056] It is easy to understand that when the transmitting end and the receiving end of the photoelectric sensor are connected for a long time, it indicates that there is a working abnormality between the transmitting end and the receiving end, that is, it is impossible to obtain accurate reflux information through the photoelectric sensor at this time, and it is necessary to issue a warning message and suspend work. Figure 5 , Figure 5 The figure shows a ladder diagram for setting the abnormal on time of the photoelectric sensor.
[0057] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0058] As another aspect of an embodiment of the present invention, an embodiment of the present invention provides a reflux detection system of a sorting machine, which is applied to the sorting machine and includes a photoelectric sensor, wherein the photoelectric sensor is arranged at a reflux channel of the sorting machine and is used to detect the reflux channel of the sorting machine;
[0059] And a control device for the sorting machine, wherein the control device for the sorting machine is connected to the photoelectric sensor and is used to control the sorting machine to implement the method for reflux detection of the sorting machine proposed in all the embodiments.
[0060] The control device of the sorting machine proposed in the above embodiments can be used as part of a software module, which includes several instructions stored in a memory. The processor can access the memory and call the instructions for execution to complete the reflux detection method of the sorting machine described in the above embodiments.
[0061] In some embodiments, the control device of the sorting machine can also be constructed by hardware devices. For example, the control device of the sorting machine can be constructed by one or more chips, and each chip can work in coordination with each other to complete the control method of the sorting machine described in each of the above embodiments. For another example, the control device of the sorting machine can also be constructed by various logic devices, such as a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination of these components.
[0062] For details, please refer to Figure 6 , Figure 6 The figure shows a functional module schematic diagram of a control device of a sorting machine, the control device comprising:
[0063] A data acquisition module 610 is used to acquire the working data of the photoelectric sensor detecting the reflux channel;
[0064] A data processing module 620 is used to determine whether there is a return fruit in the return channel of the sorting machine according to the working data;
[0065] A first detection module 630, used for determining whether to suspend the pre-processing process of the sorting machine according to a preset first threshold value when there are returned fruits in the returned fruit channel, wherein the first threshold value is used to indicate the maximum number of returned fruits in the returned fruit channel within a preset first period;
[0066] The second detection module 640 is used to determine whether to stop the sorting machine according to a preset second threshold value after the pre-processing process of the sorting machine is suspended and / or when there is reflowed fruit in the reflow channel. The second threshold value is used to indicate the maximum number of reflowed fruits in the reflow channel within a preset second period.
[0067] In one possible implementation, the above-mentioned first detection module 630, when used to determine whether to suspend the pre-processing process of the sorting machine according to a preset first threshold, is specifically used to: when it is determined that there is reflow fruit in the reflow channel, start timing to determine a target duration, and the target duration is used to indicate the duration of the presence of reflow fruit in the reflow channel of the sorting machine; determine a target quantity according to the working data, and the target quantity is used to indicate the quantity of reflow fruit in the reflow channel; when the target duration is less than a preset first period, determine whether the target quantity is greater than a preset first threshold; if so, send a stop pre-processing signal to the sorting machine, and the sorting machine suspends the pre-processing process after receiving the stop pre-processing signal; when the target duration reaches the preset first period, if there is reflow fruit in the reflow channel and the pre-processing process is not suspended, restart the timing to reset the target duration and target quantity.
[0068] In a possible implementation, the first detection module 630 is further configured to:
[0069] When the pre-processing process of the sorting machine is suspended, start timing to determine a third time length, wherein the first time length is used to indicate the duration of the pre-processing process suspension state of the sorting machine; determine a target quantity based on the working data, wherein the target quantity is used to indicate the quantity of refluxed fruits in the reflux channel; when the first time length is less than the preset sorting machine stop time length, determine whether the target quantity is less than a preset second threshold value; if so, send a pre-processing recovery signal to the sorting machine, so that the sorting machine resumes the pre-processing process after receiving the pre-processing recovery signal; if not, send a stop signal to the sorting machine, so that the sorting machine stops after receiving the stop signal.
[0070] In one possible implementation, the second detection module 640, when used to determine whether to stop the sorting machine according to a preset second threshold value when there is reflow fruit in the reflow channel, is specifically used to: when it is determined that there is reflow fruit in the reflow channel, start timing to determine a target duration, and the target duration is used to indicate the duration of the presence of reflow fruit in the reflow channel of the sorting machine; determine a target quantity according to the working data, and the target quantity is used to indicate the quantity of reflow fruit in the reflow channel; when the target duration is less than a preset second period, determine whether the target quantity is greater than a preset second threshold value; if so, send a stop signal to the sorting machine so that the sorting machine stops after receiving the stop signal; when the target duration reaches the preset second period, if there is reflow fruit in the reflow channel and the sorting machine is not stopped, restart the timing to reset the target duration and target quantity.
[0071] In a possible implementation, the data processing module 620 is also used to: determine whether the transmitter and the receiver are connected according to the working data of the photoelectric sensor; after the transmitter and the receiver are connected, start timing to determine a first duration, and the first duration is used to indicate the connection duration between the transmitter and the receiver; when the first duration is greater than the preset second duration, send a warning message to the host computer.
[0072] Furthermore, the above system also includes at least two photoelectric fixed brackets, which are relatively arranged on two sides of the reflux channel, and the photoelectric sensor is adjustably mounted on the photoelectric fixed brackets.
[0073] Specifically, the photoelectric sensor includes a transmitter and a receiver, which are relatively mounted on photoelectric fixed brackets on both sides of the reflux channel to detect whether there are refluxed fruits in the reflux channel of the sorting machine. As a preferred embodiment, the height difference between the transmitter and the receiver and the reflux channel should be no less than 20 mm to avoid the generated photoelectric signal from affecting the fruits and vegetables.
[0074] Further, see Figure 7 , Figure 7 7 is a schematic diagram of a control device for a sorting machine provided in an embodiment of the present invention. The control device includes one or more processors 71 and a memory 72. The memory 72 is connected to the one or more processors 71, for example, connected to the processor 71 via a bus.
[0075] The processor 71 is configured to support the control device to perform the corresponding functions in the method in the above method embodiment. The processor 71 can be a central processing unit (CPU), a network processor (NP), a hardware chip or any combination thereof. The above hardware chip can be an application specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0076] The memory 72 is used to store program codes, etc. The memory 72 may include a volatile memory (VM), such as a random access memory (RAM); the memory 72 may also include a non-volatile memory (NVM), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory 72 may also include a combination of the above-mentioned types of memory.
[0077] The memory 72 can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the reflux detection method of the sorting machine in the embodiment of the present invention. The processor 71 executes the various functional applications and data processing of the reflux detection method of the sorting machine and the reflux detection device of the sorting machine by running the non-volatile software programs, instructions and modules stored in the memory 72, that is, realizes the functions of the reflux detection method of the sorting machine and the reflux detection device of the sorting machine provided by the above method embodiment.
[0078] The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. The data storage area may store data created according to the use of the backflow detection device of the sorting machine, etc. In some embodiments, the memory 72 may optionally include a memory remotely arranged relative to the processor 71, and these remote memories may be connected to the backflow detection device of the sorting machine via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0079] One or more modules are stored in the memory 72. When executed by one or more processors 71, the reflux detection method of the sorting machine in any of the above method embodiments is executed, for example, the method steps described in the above method embodiments are executed to realize the functions of the modules described in the above device embodiments.
[0080] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the reflux detection method of the sorting machine as described in the aforementioned embodiment.
[0081] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0082] It should be noted that, in each of the above-mentioned embodiments, there is not necessarily a certain order between the above-mentioned steps. A person skilled in the art can understand, based on the description of the embodiments of the present invention, that in different embodiments, the above-mentioned steps may have different execution orders, that is, they may be executed in parallel, may be executed interchangeably, and so on.
[0083] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A reflux detection method for a sorting machine, characterized in that: A control device applied to a sorting machine, wherein a photoelectric sensor is provided at a reflux channel of the sorting machine, the control device is communicatively connected with the photoelectric sensor, and the photoelectric sensor is used to detect the reflux channel of the sorting machine, and the method comprises: Acquire working data of the photoelectric sensor detecting the reflux channel; Determining whether there is reflow fruit in the reflow channel of the sorting machine according to the working data; When there are reflow fruits in the reflow channel, determining whether to suspend the pre-processing process of the sorting machine according to a preset first threshold, wherein the first threshold is used to indicate the maximum number of reflow fruits in the reflow channel within a preset first period; After the pre-processing process of the sorting machine is suspended, and\or when there is reflow fruit in the reflow channel, it is determined whether to stop the sorting machine according to a preset second threshold value, and the second threshold value is used to indicate the maximum number of reflow fruit in the reflow channel within a preset second cycle.
2. The method according to claim 1, characterized in that The step of determining whether to suspend the pre-processing process of the sorting machine according to a preset first threshold value includes: When it is determined that there are reflow fruits in the reflow channel, start timing to determine a target duration, wherein the target duration is used to indicate the duration of the presence of the reflow fruits in the reflow channel of the sorting machine; Determine a target quantity according to the working data, wherein the target quantity is used to indicate the quantity of reflux fruits in the reflux channel; When the target duration is less than a preset first period, determining whether the target quantity is greater than a preset first threshold; If yes, a pre-processing stop signal is sent to the sorting machine, and the sorting machine suspends the pre-processing process after receiving the pre-processing stop signal; When the target duration reaches a preset first period, if there is reflux fruit in the reflux channel and the pre-processing process is not suspended, the timing is restarted to reset the target duration and the target quantity.
3. The method according to claim 1, characterized in that The method further comprises: After the pre-processing process of the sorting machine is suspended, start timing to determine a reference duration, where the reference duration is used to indicate the duration after the pre-processing process of the sorting machine is suspended; Determine a target quantity according to the working data, wherein the target quantity is used to indicate the quantity of reflux fruits in the reflux channel; When the reference duration is less than a preset second period, determining whether the target quantity is less than a preset second threshold; If yes, a pre-processing recovery signal is sent to the sorting machine, so that the sorting machine recovers the pre-processing process after receiving the pre-processing recovery signal; If not, a stop signal is sent to the sorting machine, so that the sorting machine stops after receiving the stop signal.
4. The method according to claim 1, characterized in that When there is reflow fruit in the reflow channel, determining whether to stop the sorting machine according to a preset second threshold value includes: When it is determined that there are reflow fruits in the reflow channel, start timing to determine a target duration, wherein the target duration is used to indicate the duration of the presence of the reflow fruits in the reflow channel of the sorting machine; Determine a target quantity according to the working data, wherein the target quantity is used to indicate the quantity of reflux fruits in the reflux channel; When the target duration is less than a preset second period, determining whether the target quantity is greater than a preset second threshold; If yes, sending a stop signal to the sorting machine, so that the sorting machine stops after receiving the stop signal; When the target duration reaches the preset second cycle, if there is reflux fruit in the reflux channel and the sorting machine is not shut down, the timing is restarted to reset the target duration and the target quantity.
5. The method according to claim 1, characterized in that The photoelectric sensor includes a transmitting end and a receiving end, and the method further includes: Determining whether the transmitting end and the receiving end are connected according to the working data of the photoelectric sensor; After the transmitting end is connected to the receiving end, start timing to determine a first duration, where the first duration is used to indicate the duration of the connection between the transmitting end and the receiving end; When the first time period is greater than the preset second time period, a warning message is sent to a host computer.
6. A control device for a sorting machine, characterized in that: The control device includes a processor and a memory, the memory is connected to the processor, and the processor is used to execute one or more computer programs stored in the memory. When the processor executes the one or more computer programs, the control device implements the reflux detection method of the sorting machine as described in any one of claims 1 to 5.
7. A reflux detection system for a sorting machine, characterized in that: Applied to a sorting machine, the system comprises: A photoelectric sensor, the photoelectric sensor is arranged at the reflux channel of the sorting machine, and is used to detect the reflux channel of the sorting machine; And a control device of the sorting machine, the control device is communicatively connected with the photoelectric sensor, and the control device is used to control the sorting machine to implement the reflux detection method of the sorting machine as described in any one of claims 1-5.
8. The backflow detection system of the sorting machine according to claim 7, characterized in that: The system further comprises at least two photoelectric fixing brackets, wherein the photoelectric fixing brackets are arranged on two sides of the reflux channel opposite to each other, and the photoelectric sensor is adjustably mounted on the photoelectric fixing brackets.
9. The backflow detection system of the sorting machine according to claim 7, characterized in that: The photoelectric sensor comprises a transmitting end and a receiving end, and the transmitting end and the receiving end are arranged on the photoelectric fixing brackets on both sides of the reflow channel to detect whether there is reflow fruit in the reflow channel of the sorting machine.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the backflow detection method for a sorting machine according to any one of claims 1 to 5.