Detection method and device of box turnover machine, electronic equipment and storage medium

By calculating the forward and reverse movement offsets of the box thrust motion axis and current position data, the problem of speed change characteristics in the prior art is solved, and the accuracy and production efficiency of box thrust detection are improved.

CN120504030APending Publication Date: 2025-08-19HONGYUN HONGHE TOBACCO (GRP) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510774055.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-11
Publication Date
2025-08-19

AI Technical Summary

Technical Problem

The existing box-flip detection method relies on the static position comparison of the encoder and cannot capture the velocity change characteristics during the motion, resulting in insufficient detection accuracy.

Method used

By obtaining the historical position data of the box-turning machine movement axis and the preset calibration error, the forward and reverse movement offsets are calculated, the position offset relationship and working state are determined based on the current position data, and the comparison is carried out to capture the velocity change characteristics and improve detection accuracy.

Benefits of technology

A more detailed evaluation of the box-turning machine motion axis is achieved, speed change characteristics are captured, detection accuracy is improved, and equipment normal operation and production efficiency is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120504030A_ABST
    Figure CN120504030A_ABST
Patent Text Reader

Abstract

The invention discloses a detection method and device of a box turnover machine, electronic equipment and a storage medium. The method comprises the following steps: acquiring position data of a motion shaft of the box turnover machine at the end of a previous detection period to obtain historical position data; on the basis of the historical position data and a preset verification error, the forward movement offset and the reverse movement offset of the box turnover machine are calculated; acquiring position data of a motion shaft of the turnover machine in the current detection period through a position measurer of the turnover machine to obtain current position data; determining a current position offset relation based on the reverse movement offset, the forward movement offset and the current position data; determining a current working state of the turnover machine, and determining a preset detection relationship corresponding to the current working state to obtain a target detection relationship; and comparing the current position offset relation with the target detection relation to obtain a matching result, and determining a detection result of the motion shaft of the box turnover machine based on the matching result. Through the technical scheme of the embodiment of the invention, the detection accuracy of the box turnover machine is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of engineering machinery, and in particular to a detection method, device, electronic equipment, and storage medium for a box turner. Background Art

[0002] In industries like tobacco processing and foundry, carton turners are key equipment on packaging production lines. The stability of their motion axes (such as the lifting and tilting axes) directly impacts production safety and efficiency. Therefore, monitoring the operating status of carton turners is extremely important.

[0003] Currently, existing inspection methods for carton turners rely primarily on encoders to track and monitor the actual position of the moving axis. For example, by recording the position data fed back by the encoder, it can be used to determine whether the moving axis has reached a preset position. However, this detection method relies solely on static position comparison and cannot capture the speed changes during movement, resulting in insufficient detection accuracy.

[0004] Therefore, it is urgent to propose a new method to solve the above problems. Summary of the Invention

[0005] The present invention provides a detection method, device, electronic equipment and storage medium for a box turning machine, thereby improving the detection accuracy of the box turning machine.

[0006] In a first aspect, an embodiment of the present invention provides a method for detecting a box turning machine, the method comprising:

[0007] Obtaining the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculating the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculating the reverse movement offset of the carton tipper based on the historical position data and the preset calibration error;

[0008] Acquire the position data of the moving axis of the carton turner during the current detection period through the position measuring device of the carton turner to obtain the current position data;

[0009] determining a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data;

[0010] Determine the current working state of the carton turner, and determine a preset detection relationship corresponding to the current working state to obtain a target detection relationship;

[0011] The current position offset relationship is compared with the target detection relationship to obtain a matching result, and the detection result of the movement axis of the box tipper is determined based on the matching result.

[0012] The technical solution of the embodiment of the present invention first obtains the position data of the carton turner's motion axis at the end of the previous inspection cycle to obtain historical position data. Based on the historical position data and a preset calibration error, the carton turner's forward movement offset is calculated. Based on the historical position data and the preset calibration error, the carton turner's reverse movement offset is calculated. This can determine the position deviation of the carton turner's motion axis in different movement directions, facilitating a more detailed assessment of the carton turner's operation. Because position deviation is related to speed variation, it can also help capture the speed variation characteristics of the carton turner during operation, providing data support for subsequent inspections. Furthermore, using the preset calibration error for calculation ensures that the offset calculation meets the system's accuracy requirements and avoids misjudgments caused by improperly set error ranges. Next, the carton turner's position measurement device obtains the position data of the carton turner's motion axis for the current inspection cycle to obtain current position data, providing a data foundation for subsequent inspections. Then, based on the reverse movement offset, the forward movement offset, and the current position data, the current position offset relationship is determined. This helps to more comprehensively understand the carton turner's current operating status, providing data support for subsequent inspections and improving the carton turner's inspection accuracy. Afterwards, the current working state of the carton tipper is determined, and the preset detection relationship corresponding to the current working state is determined to obtain the target detection relationship, which can make the detection process more in line with actual needs, adapt to different working scenarios, and improve the pertinence, effectiveness and accuracy of the detection. Finally, the current position offset relationship is compared with the target detection relationship to obtain a matching result. The detection result of the carton tipper's motion axis is determined based on the matching result. The speed change characteristics in the carton tipper's movement can be captured to improve the detection accuracy, and then the current state of the carton tipper's motion axis can be fed back in time, which is convenient for the operator or the control system to take corresponding measures, such as adjusting the motion axis position, troubleshooting or maintenance, etc., to ensure the normal operation and production efficiency of the carton tipper. Therefore, the technical solution of the present invention solves the problem that the speed change characteristics during the movement process cannot be captured in the prior art, resulting in insufficient detection accuracy.

[0013] In a second aspect, an embodiment of the present invention further provides a detection device for a carton turner, the device comprising:

[0014] a calculation module, configured to obtain position data of a motion axis of a carton tipper at the end of a previous detection cycle to obtain historical position data; calculate a forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculate a reverse movement offset of the carton tipper based on the historical position data and the preset calibration error;

[0015] An acquisition module, configured to acquire position data of a motion axis of the carton turner during a current detection period through a position measuring device of the carton turner, thereby obtaining current position data;

[0016] a first determining module, configured to determine a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data;

[0017] A second determination module is configured to determine the current working state of the carton turner and determine a preset detection relationship corresponding to the current working state to obtain a target detection relationship;

[0018] The detection module is used to compare the current position offset relationship with the target detection relationship to obtain a matching result, and determine the detection result of the movement axis of the box turner based on the matching result.

[0019] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0020] at least one processor; and a memory communicatively coupled to the at least one processor;

[0021] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the detection method of the box turning machine described in any one of the first aspects.

[0022] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, implement the detection method of the box turning machine described in any one of the first aspects.

[0023] It should be noted that the above-mentioned computer instructions may be stored in whole or in part on a computer-readable storage medium. The computer-readable storage medium may be packaged together with the processor of the detection device of the carton turner, or may be packaged separately from the processor of the detection device of the carton turner, and this application does not limit this.

[0024] The description of the second, third and fourth aspects in this application can refer to the detailed description of the first aspect; and the beneficial effects of the description of the second, third and fourth aspects can refer to the analysis of the beneficial effects of the first aspect, which will not be repeated here.

[0025] In this application, the name of the above-mentioned detection device for the carton flipping machine does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they are within the scope of the claims of this application and their equivalents.

[0026] These and other aspects of the present application will become more readily apparent from the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A flow chart of a detection method for a box turning machine provided by an embodiment of the present invention;

[0029] Figure 2 A flow chart of another detection method for a box turning machine provided by an embodiment of the present invention;

[0030] Figure 3 A schematic structural diagram of a detection device for a carton turner provided by an embodiment of the present invention;

[0031] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0032] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0033] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0034] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0035] Furthermore, the terms "including," "having," and any variations thereof, as used in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or units is not limited to the listed steps or units but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to the process, method, product, or apparatus.

[0036] It should be mentioned before discussing exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although flow charts describe various operations (or steps) as sequential processes, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of various operations can be rearranged. When its operation is completed, the process can be terminated, but can also have additional steps not included in the accompanying drawings. The process can correspond to methods, functions, procedures, subroutines, subprograms, etc. In addition, the features in the embodiments of the present invention and the embodiments can be combined with each other without conflict.

[0037] It should be noted that in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being more preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0038] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0039] Figure 1 This is a flow chart of a method for detecting a carton turner provided by an embodiment of the present invention. This embodiment is applicable to situations where a carton turner needs to be detected. The method can be executed by a detection device of the carton turner, which can be implemented in software and / or hardware. For example, the device can be integrated into an electronic device. Figure 1 The detection method of the box turning machine of this embodiment specifically includes the following steps:

[0040] Step 110: Obtain the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculate the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculate the reverse movement offset of the carton tipper based on the historical position data and a preset calibration error.

[0041] Specifically, a carton turner refers to a mechanical device used to automatically flip, move, or adjust the position of objects (such as containers and material boxes). It is commonly used in logistics, warehousing, and manufacturing. The carton turner's axis refers to the main component or axis in the carton turner responsible for turning the carton. The detection cycle refers to the time interval or period of time for detecting the carton turner's axis, which is pre-set based on actual conditions or needs. For example, the detection cycle can be 10 milliseconds. For example, the detection cycle can be the scan cycle of the carton turner's programmable logic controller (PLC) program, which is the time it takes for the PLC program to execute one instruction. Historical position data refers to the position data of the carton turner's axis recorded at the end of the previous detection cycle, reflecting the device's reference position at the time of the most recent detection. The preset calibration error refers to an error threshold set in advance based on actual conditions or needs. For example, the preset calibration error can be 2 mm. The forward movement offset refers to the offset of the carton turner's axis in the forward direction, calculated based on the historical position data and the preset calibration error. The reverse movement offset refers to the offset of the carton turner's axis in the reverse direction, calculated based on the historical position data and the preset calibration error. In addition, the positive movement offset is greater than the negative movement offset.

[0042] In a specific implementation, the position data of the carton tipper's motion axis at the end of the previous detection cycle can be obtained from a database storing the position data of the carton tipper's motion axis to obtain historical position data. Then, based on the historical position data and a preset calibration error, the forward and reverse movement offsets of the carton tipper can be calculated. Specifically, the forward movement offset can be calculated by summing the historical position data and the preset calibration error, and the reverse movement offset can be calculated by subtracting the historical position data from the preset calibration error.

[0043] In this embodiment, the above steps can determine the positional deviation of the carton tipper's motion axis in different directions of motion, facilitating a more detailed assessment of the carton tipper's operation. Because positional deviation is correlated with speed variation, this can also help capture the characteristics of speed variations during the carton tipper's operation, providing data support for subsequent testing. Furthermore, by using a pre-set calibration error for calculation, the offset calculation can be ensured to meet the system's accuracy requirements, avoiding misjudgments caused by improperly set error ranges.

[0044] Step 120 : Obtain the position data of the motion axis of the carton turner during the current detection period through the position measuring device of the carton turner to obtain the current position data.

[0045] Specifically, a position measuring device refers to a device used to measure the position of the carton tipper's motion axis. For example, a position measuring device can be an encoder, a grating scale, a magnetic scale, a linear potentiometer, etc. Current position data refers to the real-time position data of the carton tipper's motion axis obtained by the position measuring device during the current detection cycle.

[0046] In a specific implementation, the position data of the moving shaft of the carton turner in the current detection period can be obtained by a position measuring device installed on the moving shaft of the carton turner to obtain the current position data.

[0047] In this embodiment, the above steps provide a data basis for subsequent detection.

[0048] Step 130: Determine the current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data.

[0049] Specifically, the current position offset relationship refers to a mathematical association model for detecting the box turning machine, which is established based on the numerical logic relationship between the reverse movement offset, the forward movement offset and the current position data.

[0050] In a specific implementation, the current position offset relationship can be determined based on the numerical relationship between the current position data and the reverse movement offset and the forward movement offset. Specifically, if the current position data is greater than the reverse movement offset and less than the forward movement offset, it can be determined that the current position offset relationship is in a centered normal state; if the current position data is less than the reverse movement offset, it can be determined that the current position offset relationship is in a reverse offset state; if the current position data is greater than the forward movement offset, it can be determined that the current position offset relationship is in a forward offset state. If the current position data is equal to the forward movement offset, it can be determined that the current position offset relationship is in a forward boundary critical state. If the current position data is equal to the reverse movement offset, it can be determined that the current position offset relationship is in a reverse boundary critical state.

[0051] In this embodiment, the above steps help to more comprehensively understand the current operating status of the carton tipper, provide data support for subsequent detection, and improve the detection accuracy of the carton tipper.

[0052] Step 140: Determine the current working state of the carton turner, and determine the preset detection relationship corresponding to the current working state to obtain the target detection relationship.

[0053] Specifically, the current operating state refers to the current operating state of the carton tipper. For example, the current operating state includes the stopped state and the running state. A preset detection relationship refers to a relationship or condition pre-set for evaluating the carton tipper's state based on actual conditions or requirements, depending on the carton tipper's operating state. A target detection relationship refers to a preset detection relationship determined based on the carton tipper's current operating state and used for comparison with the current position offset relationship.

[0054] In the specific implementation, the current operating data of the carton tipper can be obtained first, and then the current working state of the carton tipper can be determined based on the current operating data. For example: when the current operating data is the current motor current, if the current motor current is equal to the no-load current, it can be determined that the current working state is the stop state.

[0055] Then, based on the current working state, a query is performed in the state-detection relationship table to obtain the target detection relationship. For example, if the current working state is stopped, the target detection relationship may be the centered normal state. If the current working state is running, the target detection relationship may be the reverse offset state or the forward offset state.

[0056] It should be noted that the correspondence table between states and detection relationships is determined in advance based on actual conditions or needs.

[0057] In this embodiment, through the above steps, the detection process can be made more in line with actual needs, adapt to different work scenarios, and improve the pertinence, effectiveness and accuracy of the detection.

[0058] Step 150: Compare the current position offset relationship with the target detection relationship to obtain a matching result, and determine the detection result of the carton tipper motion axis based on the matching result.

[0059] Specifically, the matching result refers to the consistency conclusion obtained by comparing the current position offset relationship with the target detection relationship. For example, the matching result can be a match or a mismatch. The detection result refers to the state of the carton tipper's motion axis, which is determined based on the matching result and is used to determine whether the equipment needs adjustment, maintenance, or continued operation.

[0060] In a specific implementation, after obtaining the target detection relationship, the current position offset relationship can be compared with the target detection relationship to determine a match. Specifically, if the current position offset relationship falls within the target detection relationship, the match result is determined to be a match; if the current position offset relationship does not fall within the target detection relationship, the match result is determined to be a mismatch. Next, based on the match result, the detection result of the carton tipper's motion axis is determined. Specifically, if the match result is a match, the detection result can be determined to be normal; if the match result is a mismatch, the detection result can be determined to be abnormal.

[0061] For example, if the current position offset relationship is in a normal state of being centered, and the target detection relationship is in a normal state of being centered, then the matching result is a match, and the detection result of the box tipper's motion axis is normal.

[0062] For example, if the current position offset relationship is in a reverse offset state and the target detection relationship is in a reverse offset state or a forward offset state, the matching result is a match, and the detection result of the box tipper motion axis is normal.

[0063] In this embodiment, through the above steps, the speed variation characteristics of the carton tipper during movement can be captured to determine whether the carton tipper's moving axis is operating normally, thereby improving detection accuracy. For example, if the current working state is the running state, the current position offset relationship is the centered normal state, and the target detection relationship is the reverse offset state or the forward offset state, then the actual change of the position measuring device is less than the calculated set value, indicating that the actual speed of the moving axis is too low, posing a safety hazard, and the detection result is therefore determined to be abnormal. If the current working state is the running state, the current position offset relationship is the reverse offset state, and the target detection relationship is the reverse offset state or the forward offset state, then the actual change of the position measuring device is greater than the calculated set value, indicating that the actual speed of the moving axis meets the requirements and can continue to operate safely, and the detection result is therefore determined to be normal. If the current working state is the running state, the current position offset relationship is the reverse boundary critical state, and the target detection relationship is the reverse offset state or the forward offset state, then the actual change of the position measuring device is equal to the calculated set value, indicating that the actual speed of the moving axis has a rigid matching abnormality or potential risk characteristics, and the detection result is therefore determined to be abnormal.

[0064] At the same time, the above steps can provide timely feedback on the current status of the carton tipper's motion axis, making it easier for the operator or control system to take corresponding measures, such as adjusting the motion axis position, performing troubleshooting or maintenance, etc., to ensure the normal operation and production efficiency of the carton tipper.

[0065] The inspection method for a carton turner provided by an embodiment of the present invention first obtains the position data of the carton turner's motion axis at the end of the previous inspection cycle to obtain historical position data. Based on the historical position data and a preset calibration error, the forward offset of the carton turner is calculated. Based on the historical position data and a preset calibration error, the reverse offset of the carton turner is calculated. This method can determine the position deviation of the carton turner's motion axis in different motion directions, facilitating a more detailed assessment of the carton turner's operation. Because position deviation is associated with speed variation, it can also help capture the speed variation characteristics of the carton turner during operation, providing data support for subsequent inspections. Furthermore, using the preset calibration error for calculation ensures that the offset calculation meets the system's accuracy requirements and avoids misjudgments caused by improperly set error ranges. Next, the carton turner's position measurement device obtains the position data of the carton turner's motion axis for the current inspection cycle to obtain current position data, providing a data foundation for subsequent inspections. Finally, the current position offset relationship is determined based on the reverse offset, forward offset, and current position data. This provides a more comprehensive understanding of the carton turner's current operating status, provides data support for subsequent inspections, and improves the accuracy of carton turner inspections. Afterwards, the current working state of the carton tipper is determined, and the preset detection relationship corresponding to the current working state is determined to obtain the target detection relationship, which can make the detection process more in line with actual needs, adapt to different working scenarios, and improve the pertinence, effectiveness and accuracy of the detection. Finally, the current position offset relationship is compared with the target detection relationship to obtain a matching result. The detection result of the carton tipper's motion axis is determined based on the matching result. The speed change characteristics in the carton tipper's movement can be captured to improve the detection accuracy, and then the current state of the carton tipper's motion axis can be fed back in time, which is convenient for the operator or the control system to take corresponding measures, such as adjusting the motion axis position, troubleshooting or maintenance, etc., to ensure the normal operation and production efficiency of the carton tipper. Therefore, the technical solution of the present invention solves the problem that the speed change characteristics during the movement process cannot be captured in the prior art, resulting in insufficient detection accuracy.

[0066] Figure 2 This is a flow chart of another method for detecting a box turning machine provided by an embodiment of the present invention. This embodiment is a specific embodiment based on the above embodiment. In this embodiment, the method may further include:

[0067] Step 210: Obtain the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculate the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculate the reverse movement offset of the carton tipper based on the historical position data and a preset calibration error.

[0068] Furthermore, based on the historical position data and the preset verification error, the forward movement offset of the carton tipper is calculated, including: calculating the sum of the historical position data and the preset verification error to obtain the forward movement offset; correspondingly, based on the historical position data and the preset verification error, the reverse movement offset of the carton tipper is calculated, including: calculating the difference between the historical position data and the preset verification error to obtain the reverse movement offset.

[0069] In a specific implementation, the forward movement offset = historical position data + preset calibration error. The reverse movement offset = historical position data - preset calibration error.

[0070] In this embodiment, through the above steps, the implementation complexity is reduced and the accuracy of the determined movement offset is improved.

[0071] Step 211: Obtain the position data of the motion axis of the carton turner during the current detection period through the position measuring device of the carton turner to obtain the current position data.

[0072] Step 212: Determine the current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data.

[0073] Step 213: Determine the current working status based on the status flag of the carton turner.

[0074] Specifically, the status flag refers to a logical identifier used to identify the current working status of the carton turnover machine.

[0075] In a specific implementation, the current status flag of the carton turner can be obtained first, and then compared with the preset flags representing different working states to determine the current working state of the carton turner. For example, if the preset status flag is 1, it represents the moving state, and 0, it represents the stopped state. If the currently obtained status flag is 0, it means that the current working state of the carton turner is the stopped state.

[0076] In this embodiment, through the above steps, the current working status of the carton turner can be quickly and accurately determined, providing a basis for subsequent detection and treatment measures based on different working statuses, ensuring that the detection process matches the actual operation of the carton turner.

[0077] Step 214: Determine the preset detection relationship corresponding to the current working state to obtain the target detection relationship.

[0078] Step 215: Compare the current position offset relationship with the target detection relationship to obtain a matching result, and determine the detection result of the carton tipper motion axis based on the matching result.

[0079] Step 216: Determine whether the detection result is abnormal.

[0080] If the detection result is abnormal, step 220 is executed; if the detection result is not abnormal, step 217 is executed.

[0081] In a specific implementation, after obtaining the test results, a determination is made as to whether the test results are abnormal. If abnormal, this indicates that the carton tipper's motion axis is operating abnormally. In this case, the detection flag of the carton tipper's motion axis can be set to a preset abnormal flag value, and the test results are sent to the corresponding terminal of the staff member, triggering an alarm operation to prompt the staff member to promptly troubleshoot the fault and avoid safety accidents or production stoppages caused by abnormal equipment operation. If normal, this indicates that the carton tipper's motion axis is operating normally. At this time, it is necessary to determine whether the current working state is stopped to decide whether to maintain the current state or switch to the moving state.

[0082] In this embodiment, the above steps provide a basis for determining different treatment measures to be taken subsequently.

[0083] Step 217: Determine whether the current working state is the stop state.

[0084] If the current working state is the stop state, execute step 219; if the current working state is not the stop state, execute step 218.

[0085] Specifically, the stop state refers to a working state in which the motion axis of the carton tipper is stationary and no motion instructions are executed.

[0086] In a specific implementation, after determining that the detection result is not abnormal, it can be determined whether the current working state is a stopped state. If it is a stopped state, it indicates that the carton tipper motion axis currently meets the startup conditions. At this time, the detection flag of the carton tipper motion axis can be set to the preset normal flag value, and the current working state is switched to the moving state to execute the next stage of motion tasks (such as flipping, translation, and other production operations). If it is not a stopped state, it indicates that the carton tipper motion axis is in motion and operating normally. At this time, the detection flag of the carton tipper motion axis is set to the preset normal flag value, and the current working state will be maintained to continuously monitor the motion process and ensure the continuity of the production process.

[0087] In this embodiment, the above steps provide a basis for determining different treatment measures to be taken subsequently.

[0088] Step 218: Set the detection flag of the carton tipper's motion axis to a preset normal flag value, and maintain the current working state.

[0089] Specifically, the detection flag refers to a parameter used to identify the detection result of the carton turner's motion axis. The preset normal flag value refers to a preset flag value used to identify that the detection result of the carton turner's motion axis is normal.

[0090] In a specific implementation, after determining that the current operating state is not a stopped state (i.e., determined to be in motion), the detection flag of the carton tipper's motion axis can be set to a preset normal flag value, and the current operating state can be maintained to maintain the carton tipper's safe operation and execute corresponding production operations (such as flipping and translation). This ensures continuous monitoring of the motion process and timely captures parameter changes and potential anomalies during operation. The process then returns to step 210 to enter the next cycle of the detection process based on the latest position data, achieving real-time closed-loop tracking of the motion axis status.

[0091] In this embodiment, through the above steps, a clear identification can be provided for subsequent operations, while ensuring that the carton tipper continues to operate according to the established operating mode, avoiding the impact of unnecessary state switching on production efficiency and stability.

[0092] Step 219: Set the detection flag of the carton tipper's motion axis to a preset normal flag value, and switch the current working state to a motion state.

[0093] Specifically, the motion state refers to a working state in which the motion axis of the carton tipper is moving according to control instructions.

[0094] In the specific implementation, after determining that the detection result is normal and the current working state is the stopped state, it indicates that the start-up conditions of the carton tipper are currently met. At this time, the detection flag of the carton tipper's motion axis can be set to the preset normal flag value, and the current working state can be actively switched from the stopped state to the moving state to trigger the carton tipper to perform the next stage of the motion task. At the same time, based on the new historical position data, it enters the dynamic detection process to ensure the safety of the motion process and the process accuracy.

[0095] In this embodiment, through the above steps, a clear mark can be provided for subsequent operations, and the carton tipper can be resumed to continue to complete the production task, ensuring the continuity of the production process and maximizing the equipment utilization.

[0096] Furthermore, after step 219, it also includes: calculating the forward movement boundary of the carton tipper based on the target position data of the carton tipper's motion axis and a preset movement error, and calculating the reverse movement boundary of the carton tipper based on the target position data and the preset movement error; when the current position data is less than the reverse movement boundary, determining that the movement direction of the carton tipper is forward; when the current position data is greater than the forward movement boundary, determining that the movement direction of the carton tipper is reverse.

[0097] Specifically, the preset motion error refers to an error parameter pre-set based on actual conditions or requirements for calculating the forward and reverse motion boundaries. The forward motion boundary refers to the boundary position of the carton tipper's motion axis in the forward motion direction, calculated based on the target position data and the preset motion error. The reverse motion boundary refers to the boundary position of the carton tipper's motion axis in the reverse motion direction, calculated based on the target position data and the preset motion error. The target position data refers to the position data that the carton tipper's motion axis is expected to reach, pre-set based on actual conditions or requirements.

[0098] In a specific implementation, after switching the current working state to the motion state, the forward and reverse motion boundaries of the carton tipper can be calculated based on the target position data of the carton tipper's motion axis and the preset motion error. Specifically, the forward motion boundary = target position data + preset motion error, and the reverse motion boundary = target position data - preset motion error. The current position data is then compared with the aforementioned boundary values to determine the direction of motion. If the current position data is less than the reverse motion boundary, it indicates that the motion axis has not yet reached the minimum allowable value for the target position and needs to move forward to approach the target, thus determining that the carton tipper's motion direction is forward. If the current position data is greater than the forward motion boundary, it indicates that the motion axis has exceeded the maximum allowable value for the target position and needs to move backward to correct the position, thus determining that the carton tipper's motion direction is reverse.

[0099] In addition, if the current position data is between the forward movement boundary and the reverse movement boundary (i.e., reverse movement boundary ≤ current position data ≤ forward movement boundary), it indicates that the actual position of the carton tipper's motion axis is within the allowable error range of the target position. At this time, there is no need to adjust the movement direction, and the current movement state (i.e., running state) can be maintained or enter the stable operation stage.

[0100] In this embodiment, through the above steps, dynamic calibration of the movement direction of the carton tipper is achieved, ensuring that it runs accurately along the preset trajectory, thereby improving the accuracy and safety of the movement.

[0101] Step 220: Set the detection flag of the carton tipper's motion axis to a preset abnormal flag value, send the detection result to the corresponding terminal of the staff, and trigger an alarm operation.

[0102] Specifically, the preset abnormal flag value refers to a pre-set flag value used to identify abnormal detection results of the moving axis of the box turning machine. The terminal refers to the equipment used by the staff, such as a computer, mobile phone, etc.

[0103] In the specific implementation, after determining that the detection result is abnormal, the detection flag of the box tipper's motion axis can be set to a preset abnormal flag value to trigger the system's fault response logic chain, send the detection result to the staff's corresponding terminal and trigger the alarm operation to ensure that the abnormal information can be conveyed to the staff in a timely manner, thereby minimizing the equipment operation risk.

[0104] In this embodiment, the above steps can quickly identify the abnormal detection results of the carton tipper's motion axis, facilitating subsequent identification and processing. Furthermore, relevant personnel can be promptly notified of the abnormality, enabling them to take prompt action to address it, preventing the fault from escalating and minimizing production losses. Furthermore, the alarm operation can also draw the attention of personnel, increasing the priority of fault handling.

[0105] After step 220, the method further includes: when the current working state is a moving state, switching the current working state to a stopped state.

[0106] In the specific implementation, after sending the detection results to the corresponding terminal of the staff and triggering the alarm, it can be determined whether the current working state is a moving state. If it is a moving state, the current working state is switched to a stopped state to avoid secondary accidents such as casualties, equipment collision or workpiece damage due to loss of control of moving parts, while creating safety conditions for subsequent troubleshooting.

[0107] In this embodiment, through the above steps, the operation of the carton tipping machine can be stopped in time to avoid equipment damage or production accidents caused by abnormal conditions. At the same time, it can help staff to inspect and repair the carton tipping machine more safely, ensure that the equipment is restored to normal before restarting, and improve the safety and reliability of the equipment.

[0108] The inspection method for a carton turner provided by an embodiment of the present invention first obtains the position data of the carton turner's motion axis at the end of the previous inspection cycle to obtain historical position data. Based on the historical position data and a preset calibration error, the forward offset of the carton turner is calculated. Based on the historical position data and a preset calibration error, the reverse offset of the carton turner is calculated. This method can determine the position deviation of the carton turner's motion axis in different motion directions, facilitating a more detailed assessment of the carton turner's operation. Because position deviation is associated with speed variation, it can also help capture the speed variation characteristics of the carton turner during operation, providing data support for subsequent inspections. Furthermore, using the preset calibration error for calculation ensures that the offset calculation meets the system's accuracy requirements and avoids misjudgments caused by improperly set error ranges. Next, the carton turner's position measurement device obtains the position data of the carton turner's motion axis for the current inspection cycle to obtain current position data, providing a data foundation for subsequent inspections. Finally, the current position offset relationship is determined based on the reverse offset, forward offset, and current position data. This provides a more comprehensive understanding of the carton turner's current operating status, provides data support for subsequent inspections, and improves the accuracy of carton turner inspections. Afterwards, the current working state is determined based on the status flag of the carton tipper. This allows for quick and accurate determination of the carton tipper's current working state, providing a basis for subsequent detection and treatment measures based on different working states, ensuring that the detection process matches the actual operating conditions of the carton tipper. Determining the preset detection relationship corresponding to the current working state and obtaining the target detection relationship can make the detection process more in line with actual needs, adapt to different working scenarios, and improve the pertinence, effectiveness, and accuracy of the detection. The current position offset relationship is then compared with the target detection relationship to obtain a matching result. Based on the matching result, the detection result of the carton tipper's motion axis is determined. The speed change characteristics of the carton tipper's movement can be captured to improve detection accuracy. The current state of the carton tipper's motion axis can then be fed back in a timely manner, allowing the operator or control system to take appropriate measures, such as adjusting the motion axis position, performing troubleshooting or maintenance, etc., to ensure the normal operation and production efficiency of the carton tipper. Subsequently, it can be determined whether the detection result is abnormal. If the detection result is abnormal, the detection flag of the carton tipper's motion axis is set to a preset abnormality value, and the detection result is sent to the corresponding terminal of the staff member, triggering an alarm operation. This quickly identifies the detection result of the carton tipper's motion axis as abnormal, facilitating subsequent identification and processing. At the same time, it can promptly notify the relevant personnel of the carton tipper abnormality, allowing them to take prompt measures to prevent the fault from escalating and reduce production losses. In addition, the alarm operation can also attract the attention of the staff and increase the priority of fault handling.If the detection result is not abnormal, it is determined whether the current working state is a stop state; if it is a stop state, the detection flag of the carton tipper's motion axis is set to a preset normal flag value, and the current working state is switched to a moving state, providing a clear identifier for subsequent operations, and allowing the carton tipper to resume operation and continue to complete production tasks, ensuring the continuity of the production process and maximizing equipment utilization; if it is not a stop state, the detection flag of the carton tipper's motion axis is set to a preset normal flag value, and the current working state is maintained, ensuring that the carton tipper continues to operate according to the established operating mode, avoiding the impact of unnecessary state switching on production efficiency and stability. Therefore, the technical solution of the present invention solves the problem that the existing technology cannot capture the speed change characteristics during the motion process, resulting in insufficient detection accuracy.

[0109] Figure 3 This is a schematic structural diagram of a detection device for a carton turner provided in an embodiment of the present invention. The device and the detection methods for carton turners in the aforementioned embodiments belong to the same inventive concept. For details not fully described in the embodiments of the detection device for carton turners, reference can be made to the embodiments of the detection methods for carton turners described above.

[0110] like Figure 3 As shown, the device includes:

[0111] The calculation module 310 is configured to obtain the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculate the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculate the reverse movement offset of the carton tipper based on the historical position data and the preset calibration error;

[0112] An acquisition module 320 is configured to acquire position data of a moving axis of the carton turner during a current detection period through a position measuring device of the carton turner to obtain current position data;

[0113] A first determining module 330 is configured to determine a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data;

[0114] The second determination module 340 is used to determine the current working state of the carton turner and determine the preset detection relationship corresponding to the current working state to obtain a target detection relationship;

[0115] The detection module 350 is configured to compare the current position offset relationship with the target detection relationship to obtain a matching result, and determine a detection result of the carton tipper motion axis based on the matching result.

[0116] Based on the above embodiment, the device further includes:

[0117] The first switching module is used to, after determining the detection result of the moving axis of the carton turner based on the matching result, set the detection flag of the moving axis of the carton turner to a preset normal flag value and switch the current working state to the moving state if the detection result is normal and the current working state is a stopped state.

[0118] Based on the above embodiment, the device further includes:

[0119] The third determination module is used to calculate the forward movement boundary of the carton turner based on the target position data of the carton turner's movement axis and the preset movement error after switching the current working state to the movement state, and calculate the reverse movement boundary of the carton turner based on the target position data and the preset movement error; when the current position data is less than the reverse movement boundary, determine that the movement direction of the carton turner is forward; when the current position data is greater than the forward movement boundary, determine that the movement direction of the carton turner is reverse.

[0120] Based on the above embodiment, the device further includes:

[0121] The alarm module is used to set the detection flag of the moving axis of the box tipper to a preset abnormal flag value after determining the detection result of the moving axis of the box tipper based on the matching result, and send the detection result to the corresponding terminal of the staff and trigger an alarm operation if the detection result is abnormal.

[0122] Based on the above embodiment, the device further includes:

[0123] The second switching module is used to switch the current working state to the stopped state when the current working state is the moving state after sending the detection result to the terminal corresponding to the staff and triggering the alarm operation.

[0124] On the basis of the above embodiment, the calculation module 310 calculates the forward movement offset of the carton turner based on the historical position data and the preset verification error, including: calculating the sum of the historical position data and the preset verification error to obtain the forward movement offset; correspondingly, the calculation module 310 calculates the reverse movement offset of the carton turner based on the historical position data and the preset verification error, including: calculating the difference between the historical position data and the preset verification error to obtain the reverse movement offset.

[0125] On the basis of the above embodiment, the second determining module 340 determines the current working state of the carton turner, including: determining the current working state based on the state flag of the carton turner.

[0126] The detection device for a carton turner provided in an embodiment of the present invention can execute the detection method for a carton turner provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

[0127] It is worth noting that in the embodiment of the detection device of the above-mentioned box turning machine, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the various functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0128] Figure 4 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. Figure 4 A block diagram of an exemplary electronic device 4 suitable for implementing embodiments of the present invention is shown. Figure 4 The electronic device 4 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0129] like Figure 4 As shown, electronic device 4 is in the form of a general-purpose computing electronic device. Components of electronic device 4 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 connecting various system components (including system memory 28 and processing unit 16).

[0130] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0131] The electronic device 4 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 4, including volatile and non-volatile media, removable and non-removable media.

[0132] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 4 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 4 Not shown, often called a "hard drive"). Although Figure 4Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0133] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0134] The electronic device 4 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the electronic device 4, and / or any device that enables the electronic device 4 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 4 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. Figure 4 As shown, the network adapter 20 communicates with other modules of the electronic device 4 via the bus 18. Figure 4 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 4, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0135] The processing unit 16 executes various functional applications and page displays by running programs stored in the system memory 28, for example, implementing the detection method of the box turning machine provided in an embodiment of the present invention, which includes:

[0136] Obtaining the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculating the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculating the reverse movement offset of the carton tipper based on the historical position data and the preset calibration error;

[0137] Acquire the position data of the moving axis of the carton turner during the current detection period through the position measuring device of the carton turner to obtain the current position data;

[0138] determining a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data;

[0139] Determine the current working state of the carton turner, and determine a preset detection relationship corresponding to the current working state to obtain a target detection relationship;

[0140] The current position offset relationship is compared with the target detection relationship to obtain a matching result, and the detection result of the movement axis of the box tipper is determined based on the matching result.

[0141] Of course, those skilled in the art will appreciate that the processor may also implement the technical solution of the detection method of the box turning machine provided in any embodiment of the present invention.

[0142] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the method for detecting a box turning machine provided in an embodiment of the present invention is implemented. The method includes:

[0143] Obtaining the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculating the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculating the reverse movement offset of the carton tipper based on the historical position data and the preset calibration error;

[0144] Acquire the position data of the moving axis of the carton turner during the current detection period through the position measuring device of the carton turner to obtain the current position data;

[0145] determining a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data;

[0146] Determine the current working state of the carton turner, and determine a preset detection relationship corresponding to the current working state to obtain a target detection relationship;

[0147] The current position offset relationship is compared with the target detection relationship to obtain a matching result, and the detection result of the movement axis of the box tipper is determined based on the matching result.

[0148] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0149] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0150] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0151] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0152] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computer device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.

[0153] In addition, the acquisition, storage, use, and processing of data in the technical solution of the present invention comply with relevant provisions of laws and regulations.

[0154] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments, and substitutions are possible for those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the scope of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. A detection method for a carton turning machine, characterized in that: The method comprises: Obtaining the position data of the carton tipper's motion axis at the end of the previous detection cycle to obtain historical position data; calculating the forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculating the reverse movement offset of the carton tipper based on the historical position data and the preset calibration error; Acquire the position data of the moving axis of the carton turner during the current detection period through the position measuring device of the carton turner to obtain the current position data; determining a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data; Determine the current working state of the carton turner, and determine a preset detection relationship corresponding to the current working state to obtain a target detection relationship; The current position offset relationship is compared with the target detection relationship to obtain a matching result, and the detection result of the movement axis of the box tipper is determined based on the matching result.

2. The detection method of the box turning machine according to claim 1, characterized in that: After determining the detection result of the box turning machine motion axis based on the matching result, the method further includes: When the detection result is normal and the current working state is the stopped state, the detection flag of the moving axis of the carton turner is set to a preset normal flag value, and the current working state is switched to the moving state.

3. The detection method of the box turning machine according to claim 2, characterized in that: After switching the current working state to the motion state, the method further includes: Calculating a forward movement boundary of the carton tipper based on the target position data of the carton tipper's motion axis and a preset movement error, and calculating a reverse movement boundary of the carton tipper based on the target position data and the preset movement error; When the current position data is smaller than the reverse movement boundary, determining that the movement direction of the carton tipper is forward; When the current position data is greater than the forward movement boundary, it is determined that the movement direction of the carton turner is reverse.

4. The detection method of the box turning machine according to claim 1, characterized in that: After determining the detection result of the box turning machine motion axis based on the matching result, the method further includes: In the case where the detection result is abnormal, the detection flag of the moving axis of the box tipper is set to a preset abnormal flag value, and the detection result is sent to the corresponding terminal of the staff and an alarm operation is triggered.

5. The detection method of the box turning machine according to claim 4, characterized in that: After sending the detection result to the terminal corresponding to the staff and triggering the alarm operation, the method further includes: When the current working state is a moving state, the current working state is switched to a stopped state.

6. The detection method of a carton turning machine according to claim 1, characterized in that: Calculating the forward movement offset of the carton tipper based on the historical position data and a preset calibration error includes: Calculating the sum of the historical position data and the preset calibration error to obtain the forward movement offset; Accordingly, the reverse movement offset of the carton tipper is calculated based on the historical position data and the preset calibration error, including: The difference between the historical position data and the preset calibration error is calculated to obtain the reverse movement offset.

7. The detection method of a carton turning machine according to claim 1, characterized in that: Determining the current working status of the carton turner includes: The current working state is determined based on the state flag of the carton turner.

8. A detection device for a carton turning machine, characterized in that: The device comprises: a calculation module, configured to obtain position data of a motion axis of a carton tipper at the end of a previous detection cycle to obtain historical position data; calculate a forward movement offset of the carton tipper based on the historical position data and a preset calibration error; and calculate a reverse movement offset of the carton tipper based on the historical position data and the preset calibration error; An acquisition module, configured to acquire position data of a motion axis of the carton turner during a current detection period through a position measuring device of the carton turner, thereby obtaining current position data; a first determining module, configured to determine a current position offset relationship based on the reverse movement offset, the forward movement offset, and the current position data; A second determination module is configured to determine the current working state of the carton turner and determine a preset detection relationship corresponding to the current working state to obtain a target detection relationship; The detection module is used to compare the current position offset relationship with the target detection relationship to obtain a matching result, and determine the detection result of the movement axis of the box turner based on the matching result.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the detection method for the box turning machine according to any one of claims 1 to 7.

10. A storage medium containing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the detection method of the box turning machine according to any one of claims 1 to 7 when executed by a computer processor.