Labeling control method and device

By presetting the pre-labeling position points in the server, the processor obtains the encoder signal and matches the points in real time, solving the problem of low labeling accuracy of the labeling equipment and achieving high-precision and high-real-time labeling control.

CN115783450BActive Publication Date: 2025-09-09BEIJING LUSTER LIGHTTECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211687064.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2025-09-09
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

When existing labeling equipment determines whether to perform the labeling operation after obtaining the position signal of the product to be labeled, the labeling operation is prone to lag, resulting in low labeling accuracy.

Method used

By presetting the pre-labeling position points in the server, the processor obtains the encoder's conveying signal in real time, and outputs the labeling signal to the labeling device when the real-time points match the pre-labeling position points, achieving accurate labeling.

Benefits of technology

It improves the labeling accuracy and real-time performance of labeling equipment, reduces the lag of labeling operation, and ensures the accuracy of labeling position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115783450B_ABST
    Figure CN115783450B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of labeling devices, and more specifically, to a labeling control method and device, which can solve the problem of low labeling accuracy to a certain extent. The method is applied to a processor, which is connected to an encoder and a server respectively, and specifically includes: obtaining multiple pre-labeling position points transmitted by the server, wherein the pre-labeling position points are the points corresponding to the encoder when the product to be labeled needs to be labeled; obtaining a conveying signal sent by the encoder, and determining the real-time point count of the encoder based on the conveying signal; when the real-time point count matches one of the pre-labeling position points, transmitting a labeling signal to the labeling device, wherein the labeling signal is used to trigger the labeling device to perform a labeling operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of labeling devices, and in particular to a labeling control method and device. Background Art

[0002] Labels are used to identify a product, distinguishing it from others, making it easier to find and locate specific products. Most labels have adhesive backing, ensuring they adhere securely to the product's exterior. Currently, labeling is typically performed using labeling equipment. The product to be labeled is carried and transported by a conveyor belt or other transport mechanism. When the conveyor belt delivers the product to the labeling equipment, the equipment contacts the exterior of the product and affixes the adhesive-backed label to the surface, completing the labeling process.

[0003] In the process of labeling, in order to achieve accurate labeling, such as Figure 1 As shown, a position sensor is set on the conveying mechanism to record the running position of the product to be coded on the conveying mechanism in real time. The labeling device can receive the position signal transmitted by the position sensor. When the position sensor detects that the product to be coded runs to the labeling device, it transmits a signal to the labeling device. After receiving the signal from the position sensor, the labeling device determines whether labeling is required based on the signal. If it is determined that labeling is required, the labeling device performs the labeling operation.

[0004] However, in the above scheme, after the labeling device obtains the position signal of the product to be labeled when it runs to the labeling device, it needs to determine whether the labeling operation needs to be performed based on the position signal. At this time, it is very easy for the labeling operation to lag, resulting in low labeling accuracy. Summary of the Invention

[0005] In order to solve the problem of low labeling accuracy, the present application provides a labeling control method and device.

[0006] The embodiment of the present application is implemented as follows:

[0007] A first aspect of an embodiment of the present application provides a labeling control method, comprising:

[0008] Acquire a plurality of pre-labeling position points transmitted by the server, wherein the pre-labeling position points are points corresponding to the encoder when labeling is required for the product to be labeled;

[0009] Acquire a transmission signal sent by the encoder, and determine a real-time point number of the encoder based on the transmission signal;

[0010] When the real-time point number matches one of the pre-labeling position points, a labeling signal is transmitted to the labeling device, and the labeling signal is used to trigger the labeling device to perform a labeling operation.

[0011] In some embodiments, after determining the real-time point number of the encoder based on the transmission signal, the method further includes: ignoring the current real-time point number if the current real-time point number is smaller than the previous real-time point number.

[0012] In some embodiments, the plurality of pre-labeling location points form an increasing sequence.

[0013] In some embodiments, the encoder is an incremental encoder.

[0014] In some embodiments, when the incremental encoder is used, the transmission signal includes a first pulse signal and a second pulse signal, the pulse periods of the first pulse signal and the second pulse signal are the same, and the rising edge and the falling edge of the first pulse signal and the rising edge and the falling edge of the second pulse signal respectively correspond to different times;

[0015] The step of determining the real-time number of points of the encoder based on the transmission signal comprises:

[0016] Counting when the first pulse signal and the second pulse signal meet a first condition;

[0017] The quotient obtained by dividing the counted value by the preset value is determined to be the real-time point number.

[0018] In some embodiments, the first condition is that the waveform of the first pulse signal is at a trough, and the second pulse signal is at a falling edge.

[0019] A second aspect of an embodiment of the present application provides a labeling control device, comprising:

[0020] A processor, the processor being signal-connected to the encoder and the server;

[0021] a memory for storing instructions executable by the processor;

[0022] The processor is configured to read the executable instructions from the memory and execute the instructions to implement any labeling control method described in the first aspect.

[0023] In some embodiments, the processor includes:

[0024] A point receiving module connected to the server signal is used to obtain a plurality of pre-labeling position points transmitted by the server, wherein the pre-labeling position points are points corresponding to the encoder when labeling is required for the product to be labeled;

[0025] An encoder counting module connected to the encoder signal, for obtaining a conveying signal sent by the encoder and determining a real-time point count of the encoder based on the conveying signal;

[0026] The signal output module is connected to the labeling device signal, and is used to output a labeling signal to the labeling device when the real-time point number matches the point number of one of the pre-labeling positions, and the labeling signal is used to trigger the labeling device to perform a labeling operation.

[0027] In some embodiments, the signal output module is further configured to:

[0028] After determining the real-time point number of the encoder based on the transport signal, if the current real-time point number is smaller than the previous real-time point number, the current real-time point number is ignored.

[0029] In some embodiments, when the incremental encoder is used, the transmission signal includes a first pulse signal and a second pulse signal, the pulse periods of the first pulse signal and the second pulse signal are the same, and the rising edge and the falling edge of the first pulse signal and the rising edge and the falling edge of the second pulse signal respectively correspond to different times;

[0030] When determining the real-time point count of the encoder based on the conveying signal, the encoder counting module includes a counting unit, which is used to:

[0031] Counting when the first pulse signal and the second pulse signal meet a first condition;

[0032] The quotient obtained by dividing the counted value by the preset value is determined to be the real-time point number.

[0033] The beneficial effects of the present application are as follows: by allowing the processor to obtain multiple pre-labeling position points in the server and then obtain the conveying signal sent by the encoder in real time, and read the real-time point number of the encoder based on the conveying signal, at this time, it is only necessary to satisfy that when the real-time point number is the same as one of the pre-labeling position points, the processor can output a labeling signal to the labeling device, and the labeling signal enables the labeling device to label the product to be coded. Since the above process is not prone to the situation where the output labeling signal action lags, the labeling control method has good real-time performance and can make the labeling accuracy of the labeling device high. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0035] Figure 1 This is an application scenario diagram of the labeling process of the labeling equipment in the background technology of this application;

[0036] Figure 2 is a flow chart of a labeling control method according to one or more embodiments of the present application;

[0037] Figure 3 This is a diagram of an application scenario of a labeling control method according to one or more embodiments of the present application;

[0038] Figure 4 Schematic diagram of the encoder point counting principle in the labeling control method according to one or more embodiments of the present application;

[0039] Figure 5 A specific flowchart highlighting the step of determining the real-time point count of the encoder based on the conveying signal by the processor in the labeling control method according to one or more embodiments of the present application;

[0040] Figure 6 A schematic structural diagram of a labeling control device in a labeling device according to one or more embodiments of the present application;

[0041] Figure 7 A schematic structural diagram of a highlighting server in a labeling device according to one or more embodiments of the present application. DETAILED DESCRIPTION

[0042] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0043] It should be noted that the brief descriptions of terms in this application are only for the purpose of facilitating the understanding of the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and usual meanings.

[0044] In the specification and claims of this application and the accompanying drawings, the terms "first," "second," "third," etc. are used to distinguish similar or similar objects or entities, and are not necessarily intended to limit a particular order or sequence, unless otherwise noted. It should be understood that the terms used in this manner are interchangeable under appropriate circumstances.

[0045] The terms "comprise," "comprises," and "having," and any variations thereof, are intended to cover but not exclude inclusion; for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0046] In order to distinguish each product, it is generally necessary to label the product through labeling equipment. Attaching the label to the appropriate position of the product to be labeled helps to improve the aesthetics of the labeled product. Therefore, it is very important to accurately control the labeling equipment to accurately label the product at the appropriate position to improve the labeling accuracy of the labeling equipment. Figure 1 As shown in the schematic diagram of the scenario, the current labeling control method is to detect the position of the product to be labeled in real time through position sensors such as infrared detectors. When the product to be labeled is within the detection range of the position sensor, the position sensor transmits a signal to the labeling equipment. After the labeling equipment receives the signal from the position sensor, it needs to first determine whether labeling is required based on the signal. When it is determined that labeling is required, a signal is transmitted to the labeling equipment to trigger the labeling equipment to perform labeling operations on the product to be labeled that is transported to the labeling equipment.

[0047] However, in the above-mentioned method of obtaining the position of the product to be labeled by using a position sensor, when the product to be labeled runs to the labeling equipment, the position sensor converts the position information of the product to be labeled into an electrical signal and transmits it to the labeling equipment. The labeling equipment also needs to judge whether the labeling operation needs to be performed based on the signal. This process is very likely to cause a lag in the labeling operation, which in turn makes the labeling position of the labeling equipment on the product to be labeled inaccurate, resulting in low labeling accuracy.

[0048] In view of the above-mentioned problems, the present application provides a labeling control method and device. This method no longer uses position sensors to transmit signals. Instead, it pre-sets pre-labeling position points in a server. A processor then first acquires multiple pre-labeling position points from the server. The processor then acquires a transmission signal sent by an encoder in real time and reads the encoder's real-time point count based on the transmission signal. When the real-time point count acquired by the server matches one of the pre-labeling position points, the processor outputs a labeling signal to the labeling device, which instructs the labeling device to label the product to be coded. This process is not prone to lag in the output of the labeling signal, so the labeling control method has excellent real-time performance and can achieve high labeling accuracy for the labeling device.

[0049] Next, the labeling control method and device in this application are described in detail.

[0050] Figure 2 It is a flow chart of the labeling control method, such as Figure 2 As shown, in the first aspect, the present application discloses a labeling control method, such as Figure 3 As shown, the labeling control method is applied to the processor, the processor is connected to the encoder and the server respectively, the encoder is connected to the conveying mechanism on the production line, and the Figure 2 and Figure 3 As shown, the specific steps include:

[0051] In step 100, a plurality of pre-labeling position points transmitted by the server are obtained. The pre-labeling position points are points corresponding to the encoder when labeling is required for the product to be labeled.

[0052] It should be noted that after the encoder is connected to the conveying mechanism of the production line, it can compile and convert signals (such as bit streams) or data into signal forms that can be used for communication, transmission and storage. For example, the encoder can convert angular displacement or linear displacement into electrical signals, that is, the encoder can convert the operating status information of the conveying mechanism into electrical signals. Generally, the electrical signals of the encoder are processed to form points that can represent the conveying distance of the conveying mechanism. Since the products to be labeled are conveyed on the conveying mechanism, the operator can know the operating status of the conveying mechanism corresponding to each product to be labeled in advance based on the conveying speed of the conveying mechanism on the production line and the labeling position of the product to be labeled, and then convert it into the points corresponding to the corresponding encoder signal. Then set multiple pre-labeling position points, and manually input the multiple pre-labeling position points into the server. The processor reads the multiple pre-labeling position points in the server at one time. After that, the processor only needs to receive the real-time operating status of the product to be labeled in real time.

[0053] In some embodiments, the number of pre-labeling position points forms an increasing sequence, for example, the number of pre-labeling position points is 100, 200, 300, ...; for another example, the number of pre-labeling position points is 20, 50, 80, 110, ...; for another example, the number of pre-labeling position points is 1, 2, 3, 4, .... It is understood that the starting point of the pre-labeling position points is set according to the actual application scenario. For example, when the labeling device and the conveying mechanism are running simultaneously, the point corresponding to the encoder can be the starting point.

[0054] It should be noted that among the multiple pre-labeling position points, the distance between adjacent pre-labeling position points represents the distance. Therefore, the distance between the pre-labeling position points can be adjusted by debugging the transmission speed of the conveying mechanism. For example: after debugging the transmission speed of the conveying mechanism, the distance between adjacent pre-labeling position points is set to 1 meter, then the distance between the 1st pre-labeling position point to the 100th pre-labeling position point is 99 meters.

[0055] In some embodiments, in order to minimize the possibility of processor errors, the number of pre-labeling position points does not exceed 6000. It should be noted that when the number of pre-labeling position points in a single batch exceeds 6000, the processor will store and process a large number of points, which is prone to errors and is not conducive to the accurate labeling of the labeling equipment. Therefore, the number of pre-labeling position points should generally not exceed 6000.

[0056] In step 200 , a transmission signal sent by an encoder is acquired, and a real-time point number of the encoder is determined based on the transmission signal.

[0057] It should be noted that encoders include incremental encoders and absolute encoders. Incremental encoders convert displacement into a periodic electrical signal, which is then converted into counting pulses. Since the product to be labeled is transported on a conveyor, the number of pulses can be used to represent the displacement of the product to be labeled. However, with an absolute encoder, since the product to be labeled is transported on a conveyor, its position corresponds to a specific digital code. Therefore, the encoder's indication is only related to the starting and ending positions of the measurement, and is not related to the intermediate measurement process.

[0058] During operation, the incremental encoder generates phase_A and phase_B signals in real time. Phase_A and phase_B signals are signals of the encoder's A and B phase channels, respectively. Phase_A and phase_B signals are generally orthogonal (i.e., the phase difference between phase A and phase B is 90°) pulse signals.

[0059] In some embodiments, an incremental encoder may be used. Based on the working principle of the incremental encoder, it can be seen that Figure 4 As shown, when an incremental encoder is used, the transmission signal includes a first pulse signal and a second pulse signal, that is, the first pulse signal is a phaseA signal, and the second pulse signal is a phaseB signal. The pulse periods of the first pulse signal and the second pulse signal are the same, and the rising edge and falling edge of the first pulse signal and the rising edge and falling edge of the second pulse signal correspond to different times.

[0060] In some embodiments, after the processor obtains the transmission signal sent by the encoder, Figure 4 and Figure 5 As shown, the steps of determining the real-time point count of the encoder based on the transmission signal specifically include:

[0061] In step 510 , counting is performed when the first pulse signal and the second pulse signal meet a first condition.

[0062] Among them, when one end of the length direction of the product to be labeled starts to run on the production line, the encoder starts to output the conveying signal. As long as the conveying signal has a rising edge or a falling edge, the processor accumulates the points. That is, when the conveying signal has a rising edge or a falling edge for the first time, the counting value is 1. When the conveying signal has a rising edge or a falling edge for the tenth time, the counting value is 10, and so on.

[0063] When determining the first condition of each cycle in the transmission signal, it can be determined according to actual conditions. For example, in some embodiments, the first condition is that the waveform of the first pulse signal is a trough, and the second pulse signal is at a falling edge, such as Figure 4 As shown, the cycle of the first condition at this time is four, so the processor counts every four counting points, that is, as the processor continues to obtain the conveying signal sent by the encoder, the processor can read the counting point values ​​4, 8, 12... in sequence until the other end of the product to be labeled in the length direction has completed running on the production line. At this time, the distance between each four counting points is determined according to the distance between the adjacent pre-labeling position points, and the distance between each four counting points is less than or equal to the distance between the adjacent pre-labeling position points.

[0064] In step 520, a quotient obtained by dividing the counted value by a preset value is determined as the real-time point number.

[0065] Among them, since the real-time points are obtained every four counting points, in order to facilitate the subsequent comparison process, the preset value is the same as the number of cycles in which the first condition occurs. For example, when the processor counts every four counting points, the preset value is four. At this time, the real-time points are the quotient obtained by dividing the value obtained by the processor by the preset value of four. That is, when the values ​​obtained by the counting points read by the processor are 4, 8, 12 and 16 in sequence, the real-time points obtained by the processor are 1, 2, 3 and 4 in sequence.

[0066] Step 300: When the real-time points match the points at one of the pre-labeling positions, a labeling signal is transmitted to the labeling device, and the labeling signal is used to trigger the labeling device to perform a labeling operation.

[0067] It should be noted that the processor is provided with a pre-labeling position queue corresponding to the received multiple pre-labeling position points in sequence, and the pre-labeling position queue can trigger the processor to output a labeling signal. Taking multiple pre-labeling position points as 10, 20, 30, 40... in sequence, and the real-time points obtained by the processor as 1, 2, 3, 4... in sequence as an example, when the processor reads the first real-time point, it compares the real-time point with the pre-labeling position point minimum value 10. If the two are different, the next real-time point is compared with the pre-labeling position point 10. The processor continues to compare the subsequent real-time points read with the pre-labeling position point 10 until they are the same, and then outputs the first labeling signal. At this time, the labeling signal triggers the labeling device to complete the first labeling action. At the same time, the pre-labeling position point 10 will be discarded, and the next pre-labeling position point value 20 will be added. The processor again compares the subsequent real-time points obtained with the new pre-labeling position point minimum value 20 until the real-time points are the same as the pre-labeling position point 20, and then outputs the labeling signal again, and so on.

[0068] In the above process, in some embodiments, in order to reduce the error of the processor, after determining the real-time point number of the encoder based on the conveying signal, it also includes: the real-time point number obtained by the processor again will be compared with the real-time point number obtained last time. If the current real-time point number obtained again is less than the real-time point number obtained last time, the current real-time point number will be ignored, and the subsequent real-time point number will continue to be obtained until the current real-time point number obtained is equal to the corresponding pre-labeling position point number, and the labeling signal will be output again.

[0069] Through the above method, by presetting the pre-labeling position points in the server, the processor obtains all the pre-labeling position points in the server, the processor obtains the conveying signal sent by the encoder, and determines the real-time point of the encoder based on the conveying signal. When the real-time point matches one of the pre-labeling position points, the processor transmits a labeling signal to the labeling device, and the labeling signal triggers the labeling device to accurately label. At this time, there is no delay in the entire process of controlling the labeling device to label, which helps to make the labeling device accurately label. It is worth mentioning that the above method is compared with the method in which the processor receives the encoder signal and transmits the count value of the encoder point based on the encoder signal to the server, and the server compares the current real-time point with the pre-labeling position point preset by the local machine, and when the current real-time point is the same as one of the preset labeling position points, the server outputs the labeling signal. In the labeling control method of this application, the process of outputting the labeling signal is more synchronized with the process of obtaining the real-time point, thereby making the labeling accuracy of the labeling device higher.

[0070] like Figure 6As shown, in a second aspect, the present application discloses a labeling control device, comprising a processor, a memory, and a communication interface connected via a communication bus. The memory is used to store processor-executable instructions, and the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the labeling control device is used to store labeling control data. The processor is signal-connected to the encoder and the server, and the processor and the server are connected via a PCI-E interface. The processor and the labeling device are connected via an asynchronous receiver / transmitter (UART). The processor is used to read executable instructions from the memory and execute the instructions to implement any of the labeling control methods described in the first aspect.

[0071] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the labeling control device to which the present application scheme is applied. The specific labeling control device may include Figure 6 More or fewer components may be shown, or some components may be combined, or the components may be arranged differently.

[0072] In some embodiments, as Figure 7 As shown, the processor includes a point receiving module connected to the server signal, an encoder counting module connected to the encoder signal, and a signal output module connected to the labeling device signal, wherein:

[0073] The point receiving module is used to obtain multiple pre-labeling position points transmitted by the server. The pre-labeling position points are the points corresponding to the encoder when labeling is required for the product to be labeled.

[0074] The encoder counting module is used to obtain the transmission signal sent by the encoder and determine the real-time point count of the encoder based on the transmission signal.

[0075] The signal output module is used to output a labeling signal to the labeling device when the real-time point number matches the point number of one of the pre-labeling positions. The labeling signal is used to trigger the labeling device to perform a labeling operation.

[0076] Among them, in some embodiments, the processor adopts a field-programmable gate array (FPGA) chip. FPGA is a semi-custom circuit developed based on traditional logic circuits and gate arrays such as PAL (programmable logic array), GAL (general array logic), and CPLD (complex programmable logic device). The connection and logic layout of the underlying logic operation unit of FPGA are not solidified. Users can program the logic unit and switch array through EDA software to perform functional configuration, thereby realizing an integrated circuit chip with specific functions.

[0077] In some embodiments, when the point receiving module obtains the multiple pre-labeling position points transmitted by the server, the multiple pre-labeling position points form an increasing sequence.

[0078] In some embodiments, when the point receiving module obtains multiple pre-labeling position points transmitted by the server, the number of pre-labeling position points does not exceed 6,000.

[0079] In some embodiments, after determining the real-time point number of the encoder based on the transmission signal, the signal output module is further configured to: ignore the current real-time point number if the current real-time point number is less than the previous real-time point number.

[0080] In some embodiments, the transmission signal includes a first pulse signal and a second pulse signal, the first pulse signal and the second pulse signal have the same pulse period, and the rising edge and falling edge of the first pulse signal and the rising edge and falling edge of the second pulse signal correspond to different times. When determining the real-time point count of the encoder based on the transmission signal, the encoder counting module includes a counting unit, which is used to:

[0081] Counting is performed when the first pulse signal and the second pulse signal meet a first condition;

[0082] The quotient obtained by dividing the counted value by the preset value is determined to be the real-time point number.

[0083] In some embodiments, when the encoder counting module determines the real-time point count of the encoder based on the transmission signal, the first condition is that the waveform of the first pulse signal is a trough and the second pulse signal is at a falling edge.

[0084] In the above technical solution, the various modules in the server cooperate with each other to achieve the purpose of controlling the labeling equipment to accurately label.

[0085] The specific definition of the processor can be found in the definition of the labeling control method above and will not be repeated here. Each module in the above-mentioned processor can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0086] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0087] The beneficial effect of the embodiments of this part is that, by allowing the processor to obtain multiple pre-labeling position points in the server and then obtain the conveying signal sent by the encoder in real time, and read the real-time point number of the encoder based on the conveying signal, at this time, it is only necessary to satisfy that when the real-time point number is the same as one of the pre-labeling position points, the processor can output a labeling signal to the labeling device, and the labeling signal enables the labeling device to accurately label the product to be coded. Since the above process is not prone to the situation where the processor outputs the labeling signal with a lag, the labeling control method has good real-time performance and can make the labeling accuracy of the labeling device high.

[0088] Furthermore, by making the transmission signal include a first pulse signal and a second pulse signal, and counting when the first pulse signal and the second pulse signal meet a first condition, it helps to conveniently obtain real-time points.

[0089] Further, by ignoring the current real-time point when the current real-time point is less than the previous real-time point, it helps to make the entire labeling process less error-prone.

[0090] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0091] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0092] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A labeling control method, characterized in that: Applied to a processor, the processor being connected to an encoder and a server respectively, including: Acquire a plurality of pre-labeling position points transmitted by the server, wherein the pre-labeling position points are points corresponding to the encoder when labeling is required for the product to be labeled; Acquire a transmission signal sent by the encoder, and determine a real-time point number of the encoder based on the transmission signal; When the real-time points match one of the pre-labeling position points, a labeling signal is transmitted to the labeling device, wherein the labeling signal is used to trigger the labeling device to perform a labeling operation; After determining the real-time point number of the encoder based on the transport signal, the method further includes: If the current real-time point is less than the previous real-time point, the current real-time point is ignored; The plurality of pre-labeling position points form an increasing sequence; The encoder adopts an incremental encoder; When the incremental encoder is used, the transmission signal includes a first pulse signal and a second pulse signal, the pulse periods of the first pulse signal and the second pulse signal are the same, and the rising edge and the falling edge of the first pulse signal and the rising edge and the falling edge of the second pulse signal respectively correspond to different times; The step of determining the real-time number of points of the encoder based on the transmission signal comprises: Counting when the first pulse signal and the second pulse signal meet a first condition; Determine that a quotient obtained by dividing a counted value by a preset value is the real-time point number; The first condition is that the waveform of the first pulse signal is at a trough, and the second pulse signal is at a falling edge.

2. A labeling control device, characterized in that: include: A processor, the processor being signal-connected to the encoder and the server; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the labeling control method according to claim 1; The processor includes: A signal output module connected to the labeling device signal, used for outputting a labeling signal to the labeling device when the real-time point number matches the point number of one of the pre-labeling positions, wherein the labeling signal is used to trigger the labeling device to perform a labeling operation; The signal output module is also used for: After determining the real-time point number of the encoder based on the transport signal, if the current real-time point number is smaller than the previous real-time point number, the current real-time point number is ignored.

Citation Information

Patent Citations

  • Control circuit of feeder

    CN109533537A

  • Automatic regulator for label position of labelling machine

    CN2457042Y