A carton imprinting control method and device, electronic equipment and storage medium

By using sensors to detect the conveyor speed of the carton and adjusting the conveyor belt speed, the problem of inaccurate printing caused by the inconsistent friction coefficient of different brands of carton paper was solved, and accurate printing of the steel stamp on the carton was achieved.

CN116787957BActive Publication Date: 2026-05-12HUBEI CHINA TOBACCO INDUSTRY CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUBEI CHINA TOBACCO INDUSTRY CO LTD
Filing Date
2023-06-28
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Because the coefficient of friction of the paperboard surfaces of different brands is not consistent, different degrees of forward and backward displacement are easily generated when conveying on the conveyor belt. This makes it impossible for the existing fixed time interval control steel stamping method to accurately stamp on specific positions on the carton, thus affecting the packaging quality.

Method used

The conveying speed of the carton is detected by the first and second sensors, the average conveying speed is calculated and the imprinting time is determined, and the accurate imprinting of the steel stamp is achieved by adjusting the conveyor belt speed.

Benefits of technology

Even with uneven distribution of brand and location on the carton, the accuracy of the stamping was ensured, guaranteeing that the stamp could be placed in the correct position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116787957B_ABST
    Figure CN116787957B_ABST
Patent Text Reader

Abstract

The application discloses a kind of strip box imprint control method, device, electronic equipment and storage medium, the method includes the average conveying speed of target strip box based on the first stop signal acquisition interval of first sensor and second sensor, according to average conveying speed determines the imprint time corresponding to target strip box;Determine the current imprint mode of steel seal, when reaching imprint time at current time, control steel seal executes imprint operation, and based on current imprint mode adjusts the transmission speed of conveying belt during imprint operation.The application realizes the average conveying speed of strip box being transported according to sensor, and then determines the imprint time of its reaching specified steel seal imprint position, directly executes imprint operation when reaching imprint time, that is, can complete imprint operation at the correct position of strip box.In the case where the brand of strip box is different and the position distribution on conveying belt is uneven, the accuracy of imprint can still be guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of sensor and control technology, and more specifically, to a method, apparatus, electronic device, and storage medium for controlling bar printing. Background Technology

[0002] To enable product monitoring and traceability, a steel stamp is required to imprint the cigarette cartons during the production process. However, due to the inconsistent coefficients of friction on the surfaces of different brands of carton paper, the carton paper is prone to varying degrees of forward and backward displacement during conveyor belt transport. This prevents the existing method of controlling the steel stamping at fixed time intervals from accurately imprinting at specific locations on the carton, thus affecting the final packaging quality. Summary of the Invention

[0003] To address the aforementioned issues, embodiments of this application provide a method, apparatus, electronic device, and storage medium for controlling bar printing.

[0004] In a first aspect, embodiments of this application provide a method for controlling the imprinting of a bar box, the method comprising:

[0005] The average conveying speed of the target carton is determined based on the first stop signal acquisition interval of the first sensor and the second sensor, and the imprinting time corresponding to the target carton is determined based on the average conveying speed. Both the first sensor and the second sensor are used to detect the carton conveyed on the conveyor belt, and the second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt.

[0006] The current imprinting mode of the steel stamp is determined. When the imprinting time is reached at the current time, the steel stamp is controlled to perform the imprinting operation. During the imprinting operation, the transmission speed of the conveyor belt is adjusted based on the current imprinting mode. The current imprinting mode includes direct imprinting mode and rolling imprinting mode.

[0007] Preferably, determining the average conveying speed of the target strip based on the first stop signal acquisition interval of the first sensor and the second sensor includes:

[0008] Acquire the first stop signal collected by the first sensor and the second stop signal collected by the second sensor;

[0009] Calculate the first stop signal acquisition interval between the second stop signal and the first stop signal, and calculate the average conveying speed of the target strip based on the sensor spacing and the first stop signal acquisition interval.

[0010] Preferably, determining the imprinting time corresponding to the target strip based on the average conveying speed includes:

[0011] The imprinting waiting time is calculated based on the average conveying speed and the first distance, where the first distance is the distance between the second sensor and the steel stamp.

[0012] The imprinting time corresponding to the target strip is determined based on the acquisition time of the second stop signal and the imprinting waiting time.

[0013] Preferably, the method further includes:

[0014] Determine the duration of continuous acquisition of the second stop signal;

[0015] When the continuous data collection duration exceeds the first preset duration, the conveyor belt is stopped and a warning message is sent to the preset terminal.

[0016] Preferably, adjusting the conveyor belt speed based on the current imprinting mode during the imprinting operation includes:

[0017] For the direct imprinting mode, the conveyor belt speed is adjusted to 0 during the imprinting operation;

[0018] For the rolling embossing mode, the conveyor belt speed is adjusted to a preset speed during the embossing operation.

[0019] Preferably, the method further includes:

[0020] Determine the detection waiting time for the first sensor to detect the next bar passing by;

[0021] When the detection waiting time is less than the preset waiting time, after the imprinting operation corresponding to the target bar box is completed, the conveyor belt speed is kept at 0 for a second preset duration.

[0022] Preferably, the method further includes:

[0023] The offset angle of the target strip is determined based on the second stop signal acquisition interval of the first sensor and the third sensor, and the initial stamping angle of the steel stamp is adjusted according to the offset angle. The connection line between the third sensor and the first sensor is perpendicular to the conveying direction of the conveyor belt.

[0024] Secondly, embodiments of this application provide a bar box imprinting control device, the device comprising:

[0025] The first determining module is used to determine the average conveying speed of the target carton based on the first stop signal acquisition interval of the first sensor and the second sensor, and to determine the imprinting time corresponding to the target carton according to the average conveying speed. Both the first sensor and the second sensor are used to detect the carton conveyed on the conveyor belt. The second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt.

[0026] The second determining module is used to determine the current imprinting mode of the steel stamp. When the imprinting time is reached at the current time, it controls the steel stamp to perform the imprinting operation and adjusts the transmission speed of the conveyor belt based on the current imprinting mode during the imprinting operation. The current imprinting mode includes direct imprinting mode and rolling imprinting mode.

[0027] Thirdly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the method provided as in the first aspect or any possible implementation of the first aspect.

[0028] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method provided as in the first aspect or any possible implementation thereof.

[0029] The beneficial effects of this invention are as follows: The average conveying speed of the transported carton is determined by sensors, thereby determining the imprinting time when it reaches the designated stamping position. The imprinting operation is then performed directly upon arrival at the designated imprinting time, ensuring that the imprinting operation is completed at the correct position on the carton. This maintains imprinting accuracy even when carton brands differ or the positions on the conveyor belt are uneven. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 A schematic flowchart illustrating a bar box embossing control method provided in an embodiment of this application;

[0032] Figure 2 This is a schematic diagram of the structure of a bar box embossing control device provided in an embodiment of this application;

[0033] Figure 3This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0034] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0035] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The following description provides multiple embodiments of this application, which can be substituted or combined with each other. Therefore, this application can also be considered to include all possible combinations of the same and / or different embodiments described. Thus, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then this application should also be considered to include embodiments containing one or more other possible combinations of A, B, C, and D, even if such embodiments are not explicitly described in the following text.

[0036] The following description provides examples and does not limit the scope, applicability, or examples set forth in the claims. Changes may be made to the function and arrangement of the described elements without departing from the scope of this application. Various processes or components may be appropriately omitted, substituted, or added to the examples. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Furthermore, features described with respect to some examples may be combined into other examples.

[0037] See Figure 1 , Figure 1 This is a flowchart illustrating a strip box imprinting control method provided in an embodiment of this application. In this embodiment, the method includes:

[0038] S101. The average conveying speed of the target carton is determined based on the first stop signal acquisition interval of the first sensor and the second sensor. The imprinting time corresponding to the target carton is determined according to the average conveying speed. Both the first sensor and the second sensor are used to detect the carton conveyed on the conveyor belt. The second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt.

[0039] The entity executing this application may be the cloud server corresponding to the carton embossing system.

[0040] In one embodiment of this application, a first sensor and a second sensor are provided on the conveyor belt. The first and second sensors can be infrared sensors, photoelectric sensors, etc. Because different brands of cartons have different coefficients of friction, the cartons will shift back and forth to varying degrees during transport on the conveyor belt. Therefore, the conveyor belt's own transmission speed cannot represent the carton's conveying speed on the conveyor belt. Therefore, the time interval between the stop signals collected when the target carton passes the first and second sensors is used to determine the time it takes for the target carton to move from the first sensor to the second sensor, thereby determining the average conveying speed of the target carton. Then, based on the average conveying speed, the imprinting time when the target carton moves to the imprinting position of the stamp can be determined. The target carton is the next carton to be imprinted, currently monitored by the cloud server.

[0041] In one possible implementation, determining the average conveying speed of the target strip based on the first stop signal acquisition interval of the first sensor and the second sensor includes:

[0042] Acquire the first stop signal collected by the first sensor and the second stop signal collected by the second sensor;

[0043] Calculate the first stop signal acquisition interval between the second stop signal and the first stop signal, and calculate the average conveying speed of the target strip based on the sensor spacing and the first stop signal acquisition interval.

[0044] In one embodiment of this application, when the carton passes the first sensor, the first sensor collects a first stop signal; similarly, the second sensor collects a second stop signal. The signal data of the stop signals includes the time of signal collection; therefore, the first stop signal collection interval between the two stop signals can be determined based on the first and second stop signals. Furthermore, since the sensor distance between the first and second sensors is known, the average conveying speed of the target carton can be obtained by dividing the sensor distance by the first stop signal collection interval.

[0045] In one possible implementation, determining the imprinting time corresponding to the target strip based on the average conveying speed includes:

[0046] The imprinting waiting time is calculated based on the average conveying speed and the first distance, where the first distance is the distance between the second sensor and the steel stamp.

[0047] The imprinting time corresponding to the target strip is determined based on the acquisition time of the second stop signal and the imprinting waiting time.

[0048] In one embodiment of this application, the distance between the second sensor and the stamping position, i.e., the first distance, is also known. Therefore, based on the first distance and the previously calculated average conveying speed, the stamping waiting time, which is the time it takes for the target carton to move from the second sensor to the stamping position, can be calculated. By adding the stamping waiting time to the acquisition time of the second stop information, the stamping time of the target carton can be determined.

[0049] In one possible implementation, the method further includes:

[0050] Determine the duration of continuous acquisition of the second stop signal;

[0051] When the continuous data collection duration exceeds the first preset duration, the conveyor belt is stopped and a warning message is sent to the preset terminal.

[0052] In one embodiment of this application, the carton has a certain width, so the stop signal collected by the sensor will last for a period of time, i.e., the continuous collection duration. Although the cartons have different friction coefficients due to their own brand, resulting in different conveying speeds, the speed difference will not be particularly large. Therefore, the range of the continuous collection duration generated by the sensor for a carton passing through it can be determined, and a maximum value will be preset based on this range, which is the first preset duration. If the continuous collection duration corresponding to the second stop signal is longer than the first preset duration, it is very likely that two cartons are stuck together during transportation, and are thus identified as one carton by the sensor. This situation can easily lead to incorrect stamping position or that some cartons are not stamped. Therefore, the cloud server will temporarily stop the conveyor belt and send a warning message to the preset terminals (such as mobile terminals, computer terminals, tablet terminals, etc.) corresponding to the relevant management personnel to remind them to handle the abnormality.

[0053] S102. Determine the current imprinting mode of the steel stamp. When the imprinting time is reached at the current time, control the steel stamp to perform the imprinting operation. During the imprinting operation, adjust the transmission speed of the conveyor belt based on the current imprinting mode. The current imprinting mode includes direct imprinting mode and rolling imprinting mode.

[0054] In one embodiment of this application, when the actual current time reaches the imprinting time, the cloud server considers that the target cartridge has moved to the imprinting position of the stamp and imprinting can begin. Therefore, it controls the stamp to perform the imprinting operation, that is, it controls the stamp to move along a preset working path through the connecting rod of the stamp to complete the imprinting process. Before this, the cloud server also determines the current imprinting mode of the stamp, which is generally divided into two types: direct imprinting mode and rolling imprinting mode. Direct imprinting mode is to directly imprint the stamp onto the cartridge, while rolling imprinting mode is to roll the stamp after imprinting it onto the cartridge so that the content on the stamp can be completely imprinted onto the cartridge. Obviously, for direct imprinting mode, in order to ensure the accuracy of the imprinting position, the position of the cartridge should remain stationary during imprinting. For rolling imprinting mode, the position of the cartridge needs to be kept moving during the imprinting process to avoid the content on the stamp being completely overlapped and imprinted in one position on the cartridge. Therefore, the cloud server will adjust the conveyor belt speed according to the current stamping mode to ensure that the stamp can accurately stamp on the carton under the current stamping mode.

[0055] In one possible implementation, adjusting the conveyor belt speed based on the current imprinting mode during the imprinting operation includes:

[0056] For the direct imprinting mode, the conveyor belt speed is adjusted to 0 during the imprinting operation;

[0057] For the rolling embossing mode, the conveyor belt speed is adjusted to a preset speed during the embossing operation.

[0058] In one embodiment of this application, if the current imprinting mode is direct imprinting, to ensure the accuracy of the imprinting position, the cloud server will adjust the conveyor belt speed during the imprinting operation, keeping the conveyor belt speed constant at 0. If the current imprinting mode is rolling imprinting, the conveyor belt needs to remain in motion to ensure the stamped mark is properly imprinted on the carton. In this case, after the stamp is pressed onto the carton, the pressure applied by the stamp is generally quite high, and the difference in friction coefficients between different brands will not cause the stamp to slip during the imprinting process. Therefore, the conveyor belt only needs to move in coordination with the rotation of the stamp; that is, regardless of the friction coefficient, the conveyor belt speed is a fixed value. This fixed value, i.e., the specific value of the preset conveyor speed, can be set according to the type and model of the stamp.

[0059] In one possible implementation, the method further includes:

[0060] Determine the detection waiting time for the first sensor to detect the next bar cartridge passing by;

[0061] When the detection waiting time is less than the preset waiting time, after the imprinting operation corresponding to the target bar box is completed, the conveyor belt speed is kept at 0 for a second preset duration.

[0062] In one embodiment of this application, the detection waiting time from the detection of the target carton to the detection of the next carton by the first sensor is also determined. With the average conveyor speed already determined, the length of the detection waiting time indicates the distance between the next carton and the target carton. After the stamping operation is completed, there is a connecting rod controlling the stamp's retraction. If the two cartons are too close, the stamp might still be retracting while the next carton has already moved to the stamping position. In this case, since the stamping operation has not yet been performed, the cloud server has not yet adjusted the conveyor belt speed, easily causing the next carton to continue moving along the conveyor belt and miss the correct stamping position. To avoid this situation, when the detection waiting time is less than a preset waiting time, it is considered that the next carton is relatively close to the target carton, posing a risk of missing the stamping position. In this case, after the stamping operation corresponding to the target carton is completed, the cloud server will control the conveyor belt to remain stationary for a certain period to ensure that the stamp retraction process is completed.

[0063] In one possible implementation, the method further includes:

[0064] The offset angle of the target strip is determined based on the second stop signal acquisition interval of the first sensor and the third sensor, and the initial stamping angle of the steel stamp is adjusted according to the offset angle. The connection line between the third sensor and the first sensor is perpendicular to the conveying direction of the conveyor belt.

[0065] In one embodiment of this application, a third sensor is additionally provided on the opposite side of the conveyor belt from the first sensor. When the carton is in the correct orientation, both the first and third sensors should simultaneously detect the stop signal. If they do not detect the stop signal simultaneously, it indicates that the carton's orientation is incorrect, possibly due to a slight deflection during transport. In this case, the stamping angle needs to be adjusted to ensure the stamp is in the correct position. Specifically, the interval between the second stop signal acquisitions of the first and third sensors is calculated. If this interval is not zero, the carton is considered to have deflected. Based on the time interval between the two sensors detecting the stop signal and the average conveying speed of the carton, the distance difference caused by the deflection can be determined. Based on this distance difference and the distance between the two sensors, a triangle can be constructed to determine the carton's offset angle. Finally, the initial stamping angle is adjusted based on this offset angle, ensuring the accuracy of the stamping.

[0066] The following will be combined with the appendix Figure 2 This application provides a detailed description of the bar box imprinting control device provided in the embodiments. It should be noted that the appendix... Figure 2 The illustrated carton stamping control device is used to perform the functions described in this application. Figure 1 The methods shown in the embodiments are for illustrative purposes only, illustrating the parts relevant to the embodiments of this application. For specific technical details not disclosed, please refer to this application. Figure 1 The example shown.

[0067] Please see Figure 2 , Figure 2 This is a schematic diagram of the structure of a bar box stamping control device provided in an embodiment of this application. Figure 2 As shown, the device includes:

[0068] The first determining module 201 is used to determine the average conveying speed of the target carton based on the first stop signal acquisition interval of the first sensor and the second sensor, and to determine the imprinting time corresponding to the target carton according to the average conveying speed. The first sensor and the second sensor are both used to detect the carton conveyed on the conveyor belt. The second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt.

[0069] The second determining module 202 is used to determine the current imprinting mode of the steel stamp. When the imprinting time is reached at the current time, it controls the steel stamp to perform the imprinting operation and adjusts the transmission speed of the conveyor belt based on the current imprinting mode during the imprinting operation. The current imprinting mode includes direct imprinting mode and rolling imprinting mode.

[0070] In one possible implementation, the first determining module 201 includes:

[0071] The first acquisition unit is used to acquire the first stop signal collected by the first sensor and the second stop signal collected by the second sensor.

[0072] The first calculation unit is used to calculate the first stop signal acquisition interval between the second stop signal and the first stop signal, and to calculate the average conveying speed of the target bar based on the sensor spacing and the first stop signal acquisition interval.

[0073] In one possible implementation, the first determining module 201 further includes:

[0074] The second calculation unit is used to calculate the imprinting waiting time based on the average conveying speed and the first distance, where the first distance is the distance between the second sensor and the steel stamp.

[0075] The first determining unit is used to determine the imprinting time corresponding to the target strip based on the acquisition time of the second stop signal and the imprinting waiting time.

[0076] In one possible implementation, the device further includes:

[0077] The third determining module is used to determine the continuous acquisition duration of the second stop signal;

[0078] The stop module is used to stop the conveyor belt and send a warning message to a preset terminal when the continuous acquisition time exceeds a first preset duration.

[0079] In one possible implementation, the second determining module 202 includes:

[0080] The first adjustment unit is used to adjust the conveyor belt speed to 0 during the imprinting operation for the direct imprinting mode.

[0081] The second adjustment unit is used to adjust the conveyor belt speed to a preset speed during the rolling imprinting operation in the rolling imprinting mode.

[0082] In one possible implementation, the device further includes:

[0083] The fourth determining module is used to determine the detection waiting time after the first sensor detects the next bar passing by;

[0084] The holding module is used to maintain the conveyor belt speed at 0 for a second preset duration after the imprinting operation corresponding to the target bar box is completed when the detection waiting time is less than the preset waiting time.

[0085] In one possible implementation, the device further includes:

[0086] The fifth determining module is used to determine the offset angle of the target strip based on the second stop signal acquisition interval of the first sensor and the third sensor, and adjust the initial stamping angle of the steel stamp according to the offset angle. The connection line between the third sensor and the first sensor is perpendicular to the conveying direction of the conveyor belt.

[0087] Those skilled in the art will clearly understand that the technical solutions of the embodiments of this application can be implemented by means of software and / or hardware. In this specification, "unit" and "module" refer to software and / or hardware that can independently complete or cooperate with other components to complete a specific function, wherein the hardware may be, for example, a field-programmable gate array (FPGA), an integrated circuit (IC), etc.

[0088] Each processing unit and / or module in the embodiments of this application can be implemented by an analog circuit that implements the functions described in the embodiments of this application, or by software that executes the functions described in the embodiments of this application.

[0089] See Figure 3 It shows a schematic diagram of the structure of an electronic device according to an embodiment of this application, which can be used to implement... Figure 1 The method in the illustrated embodiment. (As shown) Figure 3 As shown, the electronic device 300 may include: at least one central processing unit 301, at least one network interface 304, user interface 303, memory 305, and at least one communication bus 302.

[0090] The communication bus 302 is used to enable communication between these components.

[0091] The user interface 303 may include a display screen and a camera. Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0092] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).

[0093] The central processing unit 301 may include one or more processing cores. The central processing unit 301 connects to various parts within the electronic device 300 using various interfaces and lines. It executes various functions of the terminal 300 and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 305, and by calling data stored in the memory 305. Optionally, the central processing unit 301 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The central processing unit 301 may integrate one or a combination of several of the following: a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), and a modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display on the screen; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the central processing unit 301 and may be implemented as a separate chip.

[0094] The memory 305 may include random access memory (RAM) or read-only memory. Optionally, the memory 305 may include a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory 305 may also be at least one storage device located remotely from the aforementioned central processing unit 301. Figure 3 As shown, the memory 305, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and program instructions.

[0095] exist Figure 3 In the illustrated electronic device 300, the user interface 303 is mainly used to provide an input interface for the user and to acquire user input data; while the central processing unit 301 can be used to call the cassette imprinting control application stored in the memory 305 and specifically perform the following operations:

[0096] The average conveying speed of the target carton is determined based on the first stop signal acquisition interval of the first sensor and the second sensor, and the imprinting time corresponding to the target carton is determined based on the average conveying speed. Both the first sensor and the second sensor are used to detect the carton conveyed on the conveyor belt, and the second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt.

[0097] The current imprinting mode of the steel stamp is determined. When the imprinting time is reached at the current time, the steel stamp is controlled to perform the imprinting operation. During the imprinting operation, the transmission speed of the conveyor belt is adjusted based on the current imprinting mode. The current imprinting mode includes direct imprinting mode and rolling imprinting mode.

[0098] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, microdrives, as well as magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic cards or optical cards, nanosystems (including molecular memory ICs), or any type of medium or device suitable for storing instructions and / or data.

[0099] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0100] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some service interface; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0102] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0103] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0104] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0105] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0106] The foregoing description is merely an exemplary embodiment of this disclosure and should not be construed as limiting the scope of this disclosure. Any equivalent changes and modifications made in accordance with the teachings of this disclosure shall still fall within the scope of this disclosure. Those skilled in the art will readily conceive of embodiments of this disclosure upon considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not described herein. The specification and embodiments are to be considered exemplary only, and the scope and spirit of this disclosure are defined by the claims.

Claims

1. A method for controlling the printing of carton embossing, characterized in that, The method includes: The average conveying speed of the target carton is determined based on the first stop signal acquisition interval of the first sensor and the second sensor, and the imprinting time corresponding to the target carton is determined based on the average conveying speed. Both the first sensor and the second sensor are used to detect the carton conveyed on the conveyor belt, and the second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt. The current imprinting mode of the steel stamp is determined. When the imprinting time is reached at the current time, the steel stamp is controlled to perform the imprinting operation. During the imprinting operation, the transmission speed of the conveyor belt is adjusted based on the current imprinting mode. The current imprinting mode includes direct imprinting mode and rolling imprinting mode. The determination of the average conveying speed of the target carton based on the first stop signal acquisition interval of the first sensor and the second sensor includes: Acquire the first stop signal collected by the first sensor and the second stop signal collected by the second sensor; Calculate the first stop signal acquisition interval between the second stop signal and the first stop signal, and calculate the average conveying speed of the target strip based on the sensor spacing and the first stop signal acquisition interval; Determining the imprinting time corresponding to the target strip based on the average conveying speed includes: The imprinting waiting time is calculated based on the average conveying speed and the first distance, where the first distance is the distance between the second sensor and the steel stamp. The imprinting time corresponding to the target strip box is determined based on the acquisition time of the second stop signal and the imprinting waiting time. Adjusting the conveyor belt speed based on the current imprinting mode during the imprinting operation includes: For the direct imprinting mode, the conveyor belt speed is adjusted to 0 during the imprinting operation; For the rolling embossing mode, the conveyor belt speed is adjusted to a preset speed during the embossing operation.

2. The method according to claim 1, characterized in that, The method further includes: Determine the duration of continuous acquisition of the second stop signal; When the continuous data collection duration exceeds the first preset duration, the conveyor belt is stopped and a warning message is sent to the preset terminal.

3. The method according to claim 1, characterized in that, The method further includes: Determine the detection waiting time for the first sensor to detect the next bar cartridge passing by; When the detection waiting time is less than the preset waiting time, after the imprinting operation corresponding to the target bar box is completed, the conveyor belt speed is kept at 0 for a second preset duration.

4. The method according to claim 1, characterized in that, The method further includes: The offset angle of the target strip is determined based on the second stop signal acquisition interval of the first sensor and the third sensor, and the initial stamping angle of the steel stamp is adjusted according to the offset angle. The connection line between the third sensor and the first sensor is perpendicular to the conveying direction of the conveyor belt.

5. A strip box stamping control device, characterized in that, The device includes: The first determining module is used to determine the average conveying speed of the target carton based on the first stop signal acquisition interval of the first sensor and the second sensor, and to determine the imprinting time corresponding to the target carton according to the average conveying speed. Both the first sensor and the second sensor are used to detect the carton conveyed on the conveyor belt. The second sensor is set at a preset distance from the first sensor along the conveying direction of the conveyor belt. The second determining module is used to determine the current imprinting mode of the steel stamp. When the imprinting time is reached at the current time, it controls the steel stamp to perform the imprinting operation and adjusts the transmission speed of the conveyor belt based on the current imprinting mode during the imprinting operation. The current imprinting mode includes direct imprinting mode and rolling imprinting mode. The first determination module includes: The first acquisition unit is used to acquire the first stop signal collected by the first sensor and the second stop signal collected by the second sensor. The first calculation unit is used to calculate the first stop signal acquisition interval between the second stop signal and the first stop signal, and to calculate the average conveying speed of the target bar based on the sensor spacing and the first stop signal acquisition interval; The first determination module also includes: The second calculation unit is used to calculate the imprinting waiting time based on the average conveying speed and the first distance, where the first distance is the distance between the second sensor and the steel stamp. The first determining unit is used to determine the imprinting time corresponding to the target strip based on the acquisition time of the second stop signal and the imprinting waiting time. The second determining module includes: The first adjustment unit is used to adjust the conveyor belt speed to 0 during the imprinting operation for the direct imprinting mode. The second adjustment unit is used to adjust the conveyor belt speed to a preset speed during the rolling imprinting operation in the rolling imprinting mode.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method as described in any one of claims 1-4.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-4.