Control method and device of labeling system and labeling system
By using an encoder to accurately measure the position in the labeling system and sending labeling instructions before the labeled parts arrive at the labeling machine, the problem of labeling position error is solved and the accuracy of labeling is improved.
Patent Information
- Application Number
- CN202211610146.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-14
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2042-12-14
AI Technical Summary
The existing labeling machine is affected by the conveying speed of the conveyor device and the response speed of the labeling machine, resulting in large labeling position errors and low labeling accuracy.
By using the encoder to accurately measure the position of the part to be labeled, determining the second count of the encoder, and sending the labeling instruction before the part to be labeled reaches the labeling machine, the distance error between the actual labeling position and the target labeling area is eliminated.
The accuracy of labeling is improved, the transmission time and response time of labeling instructions are reduced, and the accuracy of labeling position is ensured.
Smart Images

Figure CN116495319B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of labeling equipment, and in particular relates to a control method and device for a labeling system, and a labeling system. Background Art
[0002] Labeling machines are primarily used in the packaging and inspection industries to attach labels to designated packaging containers, products, or specific locations on products. For example, during the thin film inspection of lithium batteries, if a defect is detected on a product, the labeling machine is controlled to apply a label at that location.
[0003] At present, the labeling efficiency of the labeling machine is improved by placing the products to be labeled on a conveyor. However, due to the influence of many factors such as the conveying speed of the conveyor and the response speed of the labeling machine, the distance between the actual labeling position and the pre-labeling position of the labeling machine is quite different, and the labeling accuracy is low. Summary of the Invention
[0004] The present application aims to solve at least one of the technical problems existing in the prior art. To this end, the present application proposes a control method, device and labeling system for eliminating labeling position errors and improving labeling accuracy.
[0005] In a first aspect, the present application provides a control method for a labeling system, wherein the labeling system includes a detection device, a conveying device, a labeling machine, and an encoder. The conveying device is used to drive the labeling object to be labeled to move in a first direction, where the first direction is the direction from the detection device to the labeling machine, and the distance between the detection device and the labeling machine is a first distance. The count of the encoder is used to represent the distance conveyed by the conveying device. The method includes:
[0006] Determining that the detection device detects the target labeling area of the to-be-labeled part, and obtaining a first count of the encoder;
[0007] Based on the first count and the first distance, determining a second count of the encoder, wherein the encoder runs from the first count to the second count to represent that the conveying device drives the to-be-labeled workpiece to move a second distance, and the second distance is less than the first distance;
[0008] It is determined that the count of the encoder reaches the second count, and a labeling instruction is sent to the labeling machine, where the labeling instruction is used to control the labeling machine to perform a labeling operation on the target labeling area.
[0009] According to the control method of the labeling system of the present application, the position of the workpiece to be labeled is accurately measured by an encoder, and a labeling instruction is sent before the workpiece to be labeled reaches the labeling machine, thereby reducing the transmission time of the labeling instruction and the impact of the response time of the labeling instruction, eliminating the distance error between the actual labeling position and the target labeling area, and improving the labeling accuracy.
[0010] According to one embodiment of the present application, the distance difference between the first distance and the second distance is a target buffer distance, and the target buffer distance is determined based on a conveying speed of the conveying device and a response time of the labeling machine.
[0011] According to one embodiment of the present application, determining a second count of the encoder based on the first count and the first distance includes:
[0012] determining the second distance based on the first distance and the target buffer distance;
[0013] Based on the second distance and the first count, the second count is determined.
[0014] According to an embodiment of the present application, the target buffer distance is equal to the product of the transmission speed and the response time.
[0015] According to one embodiment of the present application, the encoder count is obtained through real-time polling.
[0016] In a second aspect, the present application provides a control device for a labeling system, the labeling system comprising a detection device, a conveying device, a labeling machine, and an encoder, the conveying device being used to drive the labeling workpiece to be labeled in a first direction, the first direction being the direction from the detection device to the labeling machine, the distance between the detection device and the labeling machine being a first distance, the encoder count being used to represent the distance conveyed by the conveying device, the device comprising:
[0017] An acquisition module, configured to determine that the detection device detects a target labeling area of the part to be labeled, and acquire a first count of the encoder;
[0018] A processing module is configured to determine a second count of the encoder based on the first count and the first distance, wherein the encoder runs from the first count to the second count to represent that the conveying device drives the to-be-labeled object to move a second distance, and the second distance is smaller than the first distance;
[0019] The sending module is used to determine that the count of the encoder reaches the second count, and send a labeling instruction to the labeling machine, where the labeling instruction is used to control the labeling machine to perform a labeling operation on the target labeling area.
[0020] According to the control device of the labeling system of the present application, the position of the workpiece to be labeled is accurately measured by an encoder, and a labeling instruction is sent before the workpiece to be labeled reaches the labeling machine, thereby reducing the transmission time of the labeling instruction and the impact of the response time of the labeling instruction, eliminating the distance error between the actual labeling position and the target labeling area, and improving the labeling accuracy.
[0021] In a third aspect, the present application provides a labeling system, comprising:
[0022] A detection device, a conveying device, a labeling machine, and an encoder, wherein the conveying device is used to drive the to-be-labeled parts to move in a first direction, the first direction being the direction from the detection device to the labeling machine, the distance between the detection device and the labeling machine being a first distance, and the count of the encoder being used to represent the distance conveyed by the conveying device;
[0023] A controller is electrically connected to the detection device, the conveying device, the labeling machine and the encoder, and the controller is used to control the labeling machine to perform a labeling operation based on the control method of the labeling system described in the first aspect.
[0024] In a fourth aspect, the present application provides an electronic device, comprising a memory, a processor, and a
[0025] A computer program that can be run on the processor, when the processor executes the computer program, implements the control method of the labeling system as described in the first aspect above.
[0026] In a fifth aspect, the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the labeling system as described in the first aspect above.
[0027] In a sixth aspect, the present application provides a computer program product, comprising a computer program, which, when executed by a processor, implements the control method of the labeling system as described in the first aspect above.
[0028] Additional aspects and advantages of the present application will be given in part in the following description and will become apparent from the following description.
[0029] obvious, or learned through practice of this application. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0031] Figure 1 This is one of the flow charts of the control method of the labeling system provided in the embodiment of the present application;
[0032] Figure 2 This is the second flow chart of the control method of the labeling system provided in the embodiment of the present application;
[0033] Figure 3 This is a schematic diagram of labeling positions of a labeling system provided in an embodiment of the present application;
[0034] Figure 4 Schematic diagram of the structure of the control device of the labeling system provided in an embodiment of the present application;
[0035] Figure 5 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0036] Figure 6 This is a hardware diagram of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] The following will be combined with the accompanying drawings to clearly describe the technical solutions in the embodiments of this application. It is obvious that the described embodiments are only part of the embodiments of this application, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of this application are within the scope of protection of this application.
[0038] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the terms used in this way can be used in appropriate cases.
[0039] interchangeable, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be
[0040] In addition, in the specification and claims, "and / or" means at least one of the connected objects, and the character " / " generally means that the related objects are in an "or" relationship.
[0041] The control method of the labeling system, the control device of the labeling system, the labeling system, the electronic device and the readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0042] The control method of the labeling system can be applied to a terminal, and can be specifically executed by hardware or software in the terminal.
[0043] The terminal includes, but is not limited to, a portable communication device such as a mobile phone or tablet computer having a touch-sensitive surface (e.g., a touch screen display and / or a touch pad). It should also be understood that, in some embodiments, the terminal may not be a portable communication device, but a desktop computer having a touch-sensitive surface (e.g., a touch screen display and / or a touch pad).
[0044] In the following embodiments, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, a mouse, and a joystick.
[0045] The control method of the labeling system provided in the embodiment of the present application can be executed by an electronic device or a functional module or functional entity in the electronic device that can implement the control method of the labeling system. The electronic devices mentioned in the embodiment of the present application include but are not limited to mobile phones, tablet computers, computers, cameras and wearable devices. The control method of the labeling system provided in the embodiment of the present application is described below using an electronic device as an example of the execution subject.
[0046] The labeling system of the embodiment of the present application includes a detection device, a conveying device, a labeling machine and an encoder.
[0047] Among them, the detection equipment is a device used to detect the labeling area that needs to be labeled on the part to be labeled.
[0048] In actual implementation, the inspection equipment may be an image recognition machine used for automatic inspection, workpiece processing and assembly automation, and control and monitoring of production processes.
[0049] For example, the part to be labeled is a lithium battery. During the thin film inspection process of the lithium battery, the inspection equipment is used to detect the defect location on the lithium battery, that is, the labeling area that needs to be labeled.
[0050] The labeling machine is a device used for labeling, which labels the labeling area on the parts to be labeled detected by the detection equipment.
[0051] The conveying device is a device used to convey the parts to be labeled. In actual implementation, the detection device and the labeling machine can be located on the conveying path of the conveying device.
[0052] In this embodiment, the conveying device is used to drive the parts to be labeled to move in a first direction, which is the direction from the detection device to the labeling machine. The parts to be labeled first pass through the detection device and then pass through the labeling machine.
[0053] The detection equipment first detects the labeling area on the part to be labeled, and the labeling machine then performs the corresponding labeling operation based on the detection information of the detection equipment.
[0054] In this embodiment, the distance between the detection device and the labeling machine is a first distance, and the first distance can be adjusted according to the sizes of the detection device and the labeling machine and other parameters.
[0055] An encoder is a device that compiles and converts signals (such as bit streams) or data into a signal form that can be used for communication, transmission, and storage. Encoders convert angular or linear displacement into electrical signals. Encoders can be categorized by readout method as contact or non-contact. Encoders can be divided into incremental and absolute types based on their operating principle.
[0056] Among them, the incremental encoder converts the displacement into a periodic electrical signal, and then converts this electrical signal into a counting pulse, using the number of pulses to represent the size of the displacement; each position of the absolute encoder corresponds to a certain digital code, and the indicated value is only related to the starting and ending positions of the measurement, and has nothing to do with the intermediate process of the measurement.
[0057] In this embodiment, the encoder count is used to represent the distance transported by the transport device. It can be understood that the transport device is used to transport the items to be labeled, and the encoder count can also reflect the distance moved by the items to be labeled.
[0058] In actual implementation, the encoder of the labeling system can be a meter encoder to improve the measurement accuracy of position, running distance, etc.
[0059] like Figure 1 As shown, the control method of the labeling system includes: step 110, step 120 and step 130.
[0060] Step 110: Determine whether the detection device detects the target labeling area of the to-be-labeled part, and obtain a first count of the encoder.
[0061] In this embodiment, the detection device detects the parts to be labeled conveyed by the conveying device in real time. When the detection device detects the target labeling area on the parts to be labeled, the encoder count at the current moment is recorded, that is, the first count of the encoder is obtained.
[0062] It can be understood that when the detection device detects the target labeling area on the piece to be labeled, the first count obtained by the encoder can reflect the current position of the piece to be labeled on the conveying device.
[0063] Step 120 : Determine a second count of the encoder based on the first count and the first distance.
[0064] The encoder runs from the first count to the second count to represent that the conveying device drives the to-be-labeled piece to move a second distance, and the second distance is smaller than the first distance.
[0065] The encoder count may be a cumulative count, and the encoder count from the first count to the second count indicates that the conveying device drives the to-be-labeled piece to move a second distance.
[0066] In this embodiment, when the encoder count reaches the second count, the conveying device drives the piece to be labeled to move the second distance. The first count represents the position of the target labeling area on the piece to be labeled. When the encoder count reaches the second count, the target labeling area also moves the second distance accordingly.
[0067] It is understandable that the second distance is smaller than the first distance, and when the encoder count reaches the second count, the target labeling area on the part to be labeled has not yet moved to the position of the labeling machine.
[0068] Step 130: Determine whether the encoder count reaches the second count, and send a labeling instruction to the labeling machine.
[0069] The labeling instruction is used to control the labeling machine to perform labeling operations in the target labeling area.
[0070] In this embodiment, when the count of the encoder reaches the second count, a labeling instruction is sent to the labeling machine to control the labeling machine to perform a labeling operation on the target labeling area.
[0071] It is understandable that the transmission of the labeling instruction and the labeling machine's response to the labeling instruction require a certain amount of time. When the encoder count reaches the second count, the labeling instruction is sent to the labeling machine, and the transmission of the labeling instruction and the response time of the labeling instruction are provided so that the labeling machine can perform accurate labeling operations on the target labeling area.
[0072] The relevant technology does not take into account the influence of the transmission of the conveying equipment, the response of the labeling machine, and the signal instruction transmission between the devices, resulting in a large error between the actual labeling position and the pre-labeling position of the labeling machine, and inaccurate labeling.
[0073] The embodiment of the present application uses an encoder to accurately measure position distance information, and is set to send a labeling instruction when the encoder reaches the second count, which can eliminate the distance error between the actual labeling position and the target labeling area and adapt to the situation where the conveying equipment operates at high speed.
[0074] Take thin film testing of lithium batteries as an example.
[0075] The detection device detects the defective position of the lithium battery on the conveying device. When the X1 position is detected as the defective position, the position pos is obtained through the encoder, that is, the first count is recorded.
[0076] According to the first distance between the detection device and the labeling machine, a second distance is set, and the labeling position X2 corresponding to the second distance is calculated, that is, the second count is determined.
[0077] In this embodiment, the encoder continuously obtains the position, records the count, and determines whether to label. When the count reaches the second count, the labeling instruction is sent to control the labeling machine to label. After actual testing, the labeling position is accurate, and the distance error between the actual labeling position and the target labeling area is eliminated.
[0078] It can be understood that the control method of the labeling system of the embodiment of the present application is also applicable to multi-channel labeling.
[0079] like Figure 3 As shown, the detection equipment above the figure detects the defect position X1, the distance between the labeling machine and the detection equipment is D1, and the position where the label should be applied is X2 = X1 + D1.
[0080] The inspection equipment in the figure below detects the defect position X3. The distance between the labeling machine and the inspection equipment is D2. The position where the label should be applied is X4 = X3 + D2.
[0081] According to the control method of the labeling system provided in the embodiment of the present application, the position of the workpiece to be labeled is accurately measured by an encoder, and a labeling instruction is sent before the workpiece to be labeled reaches the labeling machine, thereby reducing the transmission time of the labeling instruction and the impact of the response time of the labeling instruction, eliminating the distance error between the actual labeling position and the target labeling area, and improving the labeling accuracy.
[0082] In some embodiments, the distance difference between the first distance and the second distance is a target buffer distance, and the target buffer distance is determined based on a conveying speed of the conveying device and a response time of the labeling machine.
[0083] It can be understood that there is a time difference between issuing a labeling command and the labeling machine receiving the labeling command and executing the labeling operation. The encoder counts from the second count to the count corresponding to the position of the labeling machine in the target labeling area. The corresponding transmission distance of the transmission equipment is the target buffer distance.
[0084] In this embodiment, the setting of the target buffer distance can provide a time consumption for the transmission of the labeling instruction and the response of the labeling machine.
[0085] The time required for the transmission device to transmit the target buffer distance is related to the transmission speed of the transmission device. The greater the transmission speed of the transmission device, the shorter the time required for the transmission device to transmit the target buffer distance; the lower the transmission speed of the transmission device, the longer the time required for the transmission device to transmit the target buffer distance.
[0086] In actual execution, the transmission speed of the labeling instruction is fast and the time required for transmission can be ignored. Depending on the type of labeling machine, the response time of the labeling machine varies. The response time of the labeling machine can be the test response time of the labeling machine provided by the manufacturer at the factory stage, or it can be the actual response time obtained through testing in actual application.
[0087] In this embodiment, the target buffer distance is determined based on the conveying speed of the conveying device and the response time of the labeling machine. When the conveying device is in a uniform speed conveying process, the conveying speed of the conveying device is constant, and the target buffer distance is determined directly according to the conveying speed of the conveying device and the response time of the labeling machine.
[0088] When the conveying device is in the process of accelerating or decelerating the conveying process, the conveying speed of the conveying device is changing. The corresponding target buffer distance is determined based on the conveying speed of the conveying device and the acceleration data corresponding to the conveying speed of the conveying device, combined with the response time of the labeling machine.
[0089] Take thin film testing of lithium batteries as an example.
[0090] The detection device detects the defective position of the lithium battery on the conveying device. When the X1 position is detected as the defective position, the position pos is obtained through the encoder, that is, the first count is recorded.
[0091] Determine the target buffer distance based on the conveying speed of the conveying equipment and the response time of the labeling machine.
[0092] According to the target buffer distance, combined with the first distance between the detection device and the labeling machine, a second distance is determined, and then based on the first count, a second count is calculated according to the second distance.
[0093] In this embodiment, the encoder continuously obtains the position, records the count, determines whether to label, determines the target buffer distance based on the transmission speed of the transmission equipment and the response time of the labeling machine, and then determines the second count. When the count reaches the second count, the labeling instruction is sent to control the labeling machine to label. After actual testing, the labeling position is accurate, and the distance error between the actual labeling position and the target labeling area is eliminated.
[0094] In some embodiments, step 120, determining a second count of the encoder based on the first count and the first distance, may include:
[0095] determining a second distance based on the first distance and the target buffer distance;
[0096] Based on the second distance and the first count, a second count is determined.
[0097] It can be understood that the target buffer distance is the distance information related to sending the labeling instruction. In actual implementation, the labeling instruction needs to be sent before the target labeling area reaches the labeling machine. The target buffer distance is determined according to the response time of the labeling machine and the transmission speed of the transmission equipment, and then the corresponding position of sending the labeling instruction is accurately determined, that is, the encoder reaches the second count.
[0098] In this embodiment, the target buffer distance is determined based on the response time of the labeling machine and the transmission speed of the transmission device, the second distance is determined based on the first distance between the labeling machine and the detection device, and the second count of the encoder is determined based on the second distance and the first count, that is, the time node for sending the labeling instruction is determined.
[0099] For example, the first distance between the labeling machine and the detection device is 50 cm. According to the response time of the labeling machine and the transmission speed of the transmission device, the target buffer distance is determined to be 5 cm.
[0100] According to the first distance and the target buffer distance, the second distance is determined to be 45 cm, that is, when the encoder detects that the conveying equipment runs a distance of 45 cm, it is the time node for sending the labeling instruction.
[0101] Based on the second distance 45 cm and the first count A, the second count B is determined. The encoder count changes from the first count A to the second count B, indicating that the conveying device has run 45 cm. At this time, a labeling instruction is sent to the labeling machine to enable the labeling machine to perform accurate labeling operations on the target labeling area.
[0102] In some embodiments, the target buffer distance is equal to the product of the transmission speed and the response time.
[0103] It should be noted that, in theory, during acceleration or deceleration, the target buffer distance Δs is calculated as v0t+1 / 2at2, where Δs is the target buffer distance, v0 is the starting transmission speed of the transmission equipment, t is the response time of the labeling machine, and a is the acceleration of the transmission equipment. Considering that the interval time for obtaining the transmission speed is short, a uniform speed treatment can be used.
[0104] In actual implementation, after the conveying equipment reaches the set speed, it will maintain the constant speed. The product of the conveying speed and the response time can be calculated as the target buffer distance.
[0105] In some embodiments, the encoder count is obtained through real-time polling.
[0106] Polling is when the first end sends a request to the second end at a specific time interval (such as every 1 second), and then the second end returns the latest data to the first end. Regardless of whether the data on the second end has changed, the first end will initiate a request to obtain the data.
[0107] In related technologies, corresponding time intervals are set to obtain information such as the distance and position of the transmission equipment. For example, polling is performed once per second. For a transmission equipment speed of 120 m / min (i.e., 2 meters per second), the defect position is 92 meters. The current polling is at 91 meters, and the next polling position is at 93 meters. The time interval for polling to obtain the position has a great influence on the accuracy of the position.
[0108] In an embodiment of the present application, time detection is canceled, and the encoder count is obtained through real-time polling, which further improves the accuracy of the encoder in obtaining information such as the distance position transmitted by the transmitting device.
[0109] Take thin film testing of lithium batteries as an example.
[0110] The detection device detects the defective position of the lithium battery on the conveying device. When the X1 position is detected as the defective position, the position pos is obtained through the encoder, that is, the first count of the encoder is recorded.
[0111] In this embodiment, the count of the encoder is obtained through real-time polling, that is, the time interval for obtaining the count of the encoder is canceled, and the count of the encoder is actually obtained.
[0112] The target buffer distance is determined according to the conveying speed of the conveying device and the response time of the labeling machine. Then, the second distance is determined based on the target buffer distance and the first distance between the detection device and the labeling machine. Then, the second count is calculated based on the second distance according to the first count.
[0113] In this embodiment, the encoder count is obtained through real-time polling to determine whether to label. The target buffer distance is determined according to the transmission speed of the transmission equipment and the response time of the labeling machine, and then the second count is determined. When the count reaches the second count, a labeling instruction is sent to control the labeling machine to label. After actual testing, the labeling position is accurate, and the distance error between the actual labeling position and the target labeling area is eliminated.
[0114] The control method of the labeling system provided in the embodiment of the present application can be executed by the control device of the labeling system. In the embodiment of the present application, the control device of the labeling system is used as an example to illustrate the control method of the labeling system provided in the embodiment of the present application.
[0115] An embodiment of the present application also provides a control device for a labeling system.
[0116] The labeling system of the embodiment of the present application includes a detection device, a conveying device, a labeling machine and an encoder.
[0117] Among them, the detection equipment is a device used to detect the labeling area that needs to be labeled on the part to be labeled.
[0118] In actual implementation, the inspection equipment may be an image recognition machine used for automatic inspection, workpiece processing and assembly automation, and control and monitoring of production processes.
[0119] For example, the part to be labeled is a lithium battery. During the thin film inspection process of the lithium battery, the inspection equipment is used to detect the defect location on the lithium battery, that is, the labeling area that needs to be labeled.
[0120] The labeling machine is a device used for labeling, which labels the labeling area on the parts to be labeled detected by the detection equipment.
[0121] The conveying device is a device used to convey the parts to be labeled. In actual implementation, the detection device and the labeling machine can be located on the conveying path of the conveying device.
[0122] In this embodiment, the conveying device is used to drive the parts to be labeled to move in a first direction, which is the direction from the detection device to the labeling machine. The parts to be labeled first pass through the detection device and then pass through the labeling machine.
[0123] The detection equipment first detects the labeling area on the part to be labeled, and the labeling machine then performs the corresponding labeling operation based on the detection information of the detection equipment.
[0124] In this embodiment, the distance between the detection device and the labeling machine is a first distance, and the first distance can be adjusted according to the sizes of the detection device and the labeling machine and other parameters.
[0125] An encoder is a device that compiles and converts signals (such as bit streams) or data into a signal form that can be used for communication, transmission, and storage. Encoders convert angular or linear displacement into electrical signals. Encoders can be categorized by readout method as contact or non-contact. Encoders can be divided into incremental and absolute types based on their operating principle.
[0126] Among them, the incremental encoder converts the displacement into a periodic electrical signal, and then converts this electrical signal into a counting pulse, using the number of pulses to represent the size of the displacement; each position of the absolute encoder corresponds to a certain digital code, and the indicated value is only related to the starting and ending positions of the measurement, and has nothing to do with the intermediate process of the measurement.
[0127] In this embodiment, the encoder count is used to represent the distance transported by the transport device. It can be understood that the transport device is used to transport the items to be labeled, and the encoder count can also reflect the distance moved by the items to be labeled.
[0128] In actual implementation, the encoder of the labeling system can be a meter encoder to improve the measurement accuracy of position, running distance, etc.
[0129] like Figure 4As shown, the control device of the labeling system includes:
[0130] An acquisition module 410 is configured to determine a target labeling area where the detection device detects the object to be labeled and obtain a first count of the encoder;
[0131] The processing module 420 is configured to determine a second count of the encoder based on the first count and the first distance, wherein the encoder runs from the first count to the second count to represent that the conveying device drives the labeling object to move a second distance, and the second distance is less than the first distance;
[0132] The sending module 430 is used to determine that the count of the encoder reaches the second count, and send a labeling instruction to the labeling machine, where the labeling instruction is used to control the labeling machine to perform a labeling operation on the target labeling area.
[0133] According to the control device of the labeling system provided in the embodiment of the present application, the position of the workpiece to be labeled is accurately measured by an encoder, and a labeling instruction is sent before the workpiece to be labeled reaches the labeling machine, thereby reducing the transmission time of the labeling instruction and the impact of the response time of the labeling instruction, eliminating the distance error between the actual labeling position and the target labeling area, and improving the labeling accuracy.
[0134] In some embodiments, the distance difference between the first distance and the second distance is a target buffer distance, and the target buffer distance is determined based on a conveying speed of the conveying device and a response time of the labeling machine.
[0135] In some embodiments, the processing module 420 is configured to determine a second distance based on the first distance and the target buffer distance;
[0136] Based on the second distance and the first count, a second count is determined.
[0137] In some embodiments, the target buffer distance is equal to the product of the transmission speed and the response time.
[0138] In some embodiments, the encoder count is obtained through real-time polling.
[0139] The control device of the labeling system in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not make specific limitations.
[0140] The control device of the labeling system in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0141] The control device of the labeling system provided in the embodiment of the present application can achieve Figures 1 to 3 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0142] The present invention provides a labeling system, including:
[0143] A detection device, a conveying device, a labeling machine, and an encoder. The conveying device is used to drive the to-be-labeled workpiece to move in a first direction, where the first direction is from the detection device to the labeling machine. The distance between the detection device and the labeling machine is the first distance. The encoder count is used to represent the distance conveyed by the conveying device.
[0144] The controller is electrically connected to the detection device, the conveying device, the labeling machine and the encoder. The controller is used in the control method of the above-mentioned labeling system to control the labeling machine to perform the labeling operation.
[0145] Among them, the detection equipment is a device used to detect the labeling area that needs to be labeled on the part to be labeled.
[0146] In actual implementation, the inspection equipment may be an image recognition machine used for automatic inspection, workpiece processing and assembly automation, and control and monitoring of production processes.
[0147] For example, the part to be labeled is a lithium battery. During the thin film inspection process of the lithium battery, the inspection equipment is used to detect the defect location on the lithium battery, that is, the labeling area that needs to be labeled.
[0148] The labeling machine is a device used for labeling, which labels the labeling area on the parts to be labeled detected by the detection equipment.
[0149] The conveying device is a device used to convey the parts to be labeled. In actual implementation, the detection device and the labeling machine can be located on the conveying path of the conveying device.
[0150] In this embodiment, the conveying device is used to drive the parts to be labeled to move in a first direction, which is the direction from the detection device to the labeling machine. The parts to be labeled first pass through the detection device and then pass through the labeling machine.
[0151] The detection equipment first detects the labeling area on the part to be labeled, and the labeling machine then performs the corresponding labeling operation based on the detection information of the detection equipment.
[0152] In this embodiment, the distance between the detection device and the labeling machine is a first distance, and the first distance can be adjusted according to the sizes of the detection device and the labeling machine and other parameters.
[0153] An encoder is a device that compiles and converts signals (such as bit streams) or data into a signal form that can be used for communication, transmission, and storage. Encoders convert angular or linear displacement into electrical signals. Encoders can be categorized by readout method as contact or non-contact. Encoders can be divided into incremental and absolute types based on their operating principle.
[0154] Among them, the incremental encoder converts the displacement into a periodic electrical signal, and then converts this electrical signal into a counting pulse, using the number of pulses to represent the size of the displacement; each position of the absolute encoder corresponds to a certain digital code, and the indicated value is only related to the starting and ending positions of the measurement, and has nothing to do with the intermediate process of the measurement.
[0155] In this embodiment, the encoder count is used to represent the distance transported by the transport device. It can be understood that the transport device is used to transport the items to be labeled, and the encoder count can also reflect the distance moved by the items to be labeled.
[0156] In actual implementation, the encoder of the labeling system can be a meter encoder to improve the measurement accuracy of position, running distance, etc.
[0157] The embodiment of the present application uses an encoder to accurately measure position distance information, and is set to send a labeling instruction when the encoder reaches the second count, which can eliminate the distance error between the actual labeling position and the target labeling area and adapt to the situation where the conveying equipment operates at high speed.
[0158] According to the labeling system provided in the embodiment of the present application, the position of the workpiece to be labeled is accurately measured by an encoder, and a labeling instruction is sent before the workpiece to be labeled reaches the labeling machine, thereby reducing the transmission time of the labeling instruction and the impact of the response time of the labeling instruction, eliminating the distance error between the actual labeling position and the target labeling area, and improving the labeling accuracy.
[0159] In some embodiments, as Figure 5 As shown, an embodiment of the present application further provides an electronic device 500, including a processor 501, a memory 502, and a computer program stored in the memory 502 and executable on the processor 501. When the program is executed by the processor 501, each process of the control method embodiment of the above-mentioned labeling system is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0160] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0161] Figure 6 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
[0162] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609 and a processor 610.
[0163] Those skilled in the art will understand that the electronic device 600 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0164] The labeling system includes a detection device, a conveying device, a labeling machine and an encoder. The conveying device is used to drive the to-be-labeled workpiece to move in a first direction, where the first direction is from the detection device to the labeling machine. The distance between the detection device and the labeling machine is the first distance. The encoder count is used to characterize the distance conveyed by the conveying device.
[0165] The processor 610 is configured to determine that the detection device detects a target labeling area of the part to be labeled, and obtain a first count of the encoder;
[0166] Based on the first count and the first distance, a second count of the encoder is determined, and the encoder runs from the first count to the second count to represent that the conveying device drives the to-be-labeled piece to move a second distance, and the second distance is less than the first distance;
[0167] It is determined that the count of the encoder reaches the second count, and a labeling instruction is sent to the labeling machine, where the labeling instruction is used to control the labeling machine to perform a labeling operation on the target labeling area.
[0168] According to the electronic device provided in the embodiment of the present application, the position of the workpiece to be labeled is accurately measured by an encoder, and a labeling instruction is sent before the workpiece to be labeled reaches the labeling machine, thereby reducing the transmission time of the labeling instruction and the impact of the response time of the labeling instruction, eliminating the distance error between the actual labeling position and the target labeling area, and improving the labeling accuracy.
[0169] In some embodiments, the distance difference between the first distance and the second distance is a target buffer distance, and the target buffer distance is determined based on a conveying speed of the conveying device and a response time of the labeling machine.
[0170] In some embodiments, the processor 610 is further configured to determine a second distance based on the first distance and the target buffer distance;
[0171] Based on the second distance and the first count, a second count is determined.
[0172] In some embodiments, the target buffer distance is equal to the product of the transmission speed and the response time.
[0173] In some embodiments, the encoder count is obtained through real-time polling.
[0174] It should be understood that in an embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0175] The memory 609 can be used to store software programs and various data. The memory 609 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 609 may include a volatile memory or a non-volatile memory, or the memory 609 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 609 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0176] Processor 610 may include one or more processing units. Processor 610 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 610.
[0177] An embodiment of the present application further provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the control method embodiment of the above-mentioned labeling system are implemented, and the same technical effects can be achieved. To avoid repetition, they are not described here.
[0178] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0179] An embodiment of the present application further provides a computer program product, including a computer program, which implements the control method of the above-mentioned labeling system when executed by a processor.
[0180] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0181] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the control method embodiment of the above-mentioned labeling system, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0182] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0183] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0184] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0185] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
[0186] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "illustrative embodiments," "examples," "specific examples," or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0187] Although the embodiments of the present application have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions, and variations may be made to the embodiments without departing from the principles and intent of the present application, and that the scope of the present application is defined by the claims and their equivalents.
Claims
1. A control method for a labeling system, characterized in that: The labeling system includes a detection device, a conveying device, a labeling machine, and an encoder. The conveying device is used to drive the labeling workpiece to be labeled to move in a first direction, where the first direction is from the detection device to the labeling machine. The distance between the detection device and the labeling machine is a first distance. The count of the encoder is used to represent the distance conveyed by the conveying device. The method includes: Determine that the detection device detects the target labeling area of the to-be-labeled part, and obtain a first count of the encoder; the first count reflects the current position of the to-be-labeled part on the conveying device; Based on the first count and the first distance, determining a second count of the encoder, wherein the encoder runs from the first count to the second count to represent that the conveying device drives the to-be-labeled workpiece to move a second distance, and the second distance is less than the first distance; determining that the count of the encoder reaches the second count, and sending a labeling instruction to the labeling machine, wherein the labeling instruction is used to control the labeling machine to perform a labeling operation on the target labeling area; The distance difference between the first distance and the second distance is a target buffer distance, and the target buffer distance is determined based on a conveying speed of the conveying device and a response time of the labeling machine; Determining a second count of the encoder based on the first count and the first distance includes: determining the second distance based on the first distance and the target buffer distance; Based on the second distance and the first count, the second count is determined.
2. The control method of the labeling system according to claim 1, characterized in that: The target buffer distance is equal to the product of the transmission speed and the response time.
3. The control method of the labeling system according to any one of claims 1-2, characterized in that: The encoder count is obtained through real-time polling.
4. A control device for a labeling system, characterized in that: The labeling system includes a detection device, a conveying device, a labeling machine, and an encoder. The conveying device is used to drive the labeling workpiece to be labeled to move in a first direction, where the first direction is from the detection device to the labeling machine. The distance between the detection device and the labeling machine is a first distance. The encoder count is used to represent the distance conveyed by the conveying device. The device includes: An acquisition module, configured to determine that the detection device detects a target labeling area of the part to be labeled, and acquire a first count of the encoder; A processing module is configured to determine a second count of the encoder based on the first count and the first distance, wherein the encoder runs from the first count to the second count to represent that the conveying device drives the labeling object to move a second distance, and the second distance is smaller than the first distance; and the first count reflects the current position of the labeling object on the conveying device; a sending module, configured to determine that the count of the encoder reaches the second count, and send a labeling instruction to the labeling machine, wherein the labeling instruction is used to control the labeling machine to perform a labeling operation on the target labeling area; The distance difference between the first distance and the second distance is a target buffer distance, and the target buffer distance is determined based on a conveying speed of the conveying device and a response time of the labeling machine; The processing module is further configured to determine the second distance based on the first distance and the target buffer distance; Based on the second distance and the first count, the second count is determined.
5. A labeling system, characterized in that: include: A detection device, a conveying device, a labeling machine, and an encoder, wherein the conveying device is used to drive the to-be-labeled parts to move in a first direction, the first direction being the direction from the detection device to the labeling machine, the distance between the detection device and the labeling machine being a first distance, and the count of the encoder being used to represent the distance conveyed by the conveying device; A controller, wherein the controller is electrically connected to the detection device, the conveying device, the labeling machine and the encoder, and the controller is used to control the labeling machine to perform a labeling operation based on the control method of the labeling system according to any one of claims 1 to 3.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the control method of the labeling system according to any one of claims 1 to 3 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the control method of the labeling system according to any one of claims 1 to 3 is implemented.
8. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the control method of the labeling system according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Dynamic labeling method, electronic equipment and storage medium
CN113104334A
Air freight identification device
CN114229164A
Device for improving accuracy of labeling position
CN216333381U