Method, terminal device, system and storage medium for transmitting product identification

文档序号:134885 发布日期:2021-10-22 浏览:31次 中文

阅读说明:本技术 产品标识的传输方法、终端设备、系统及存储介质 (Method, terminal device, system and storage medium for transmitting product identification ) 是由 马文芹 赵祥军 潘东波 姜孝龙 王良朋 于 2021-07-05 设计创作,主要内容包括:本发明公开了一种产品标识的传输方法、终端设备、系统及存储介质,所述产品标识的传输方法包括:获取第一存储区域存储的产品标识并发送;在接收到返回的产品标识接收成功的信息时,删除所述第一存储区域的所述产品标识,将第二存储区域的所述产品标识移动至所述第一存储区域,并返回执行所述获取第一存储区域存储的产品标识并发送的步骤,直至所述第一存储区域存储的产品标识为空。本发明能够避免连续扫描产品标识时产品标识丢失。(The invention discloses a transmission method, terminal equipment, a system and a storage medium of a product identifier, wherein the transmission method of the product identifier comprises the following steps: acquiring and sending a product identifier stored in a first storage area; and when receiving the returned information that the product identification is successfully received, deleting the product identification of the first storage area, moving the product identification of the second storage area to the first storage area, and returning to execute the steps of acquiring and sending the product identification stored in the first storage area until the product identification stored in the first storage area is empty. The invention can avoid the loss of the product identification when the product identification is continuously scanned.)

1. A method for transmitting a product identifier, comprising:

acquiring and sending a product identifier stored in a first storage area;

and when receiving the returned information that the product identification is successfully received, deleting the product identification of the first storage area, moving the product identification of the second storage area to the first storage area, and returning to execute the steps of acquiring and sending the product identification stored in the first storage area until the product identification stored in the first storage area is empty.

2. The method for transmitting a product identifier of claim 1, further comprising:

acquiring the product identification;

when the first storage area stores the product identification, storing the product identification to the second storage area;

when the first storage area does not store the product identification, the product identification is stored in the first storage area.

3. The method for transmitting the product identifier according to claim 2, wherein the step of storing the product identifier in the first storage area when the product identifier is not stored in the first storage area comprises:

when the first storage area does not store the product identification, detecting whether the second storage area stores the product identification;

when the second storage area does not store the product identification, storing the product identification to the first storage area;

and when the second storage area stores the product identification, moving the product identification in the second storage area to the first storage area.

4. The method for transmitting the product identifier according to claim 2, wherein the step of storing the product identifier in the second storage area when the product identifier is stored in the first storage area comprises:

when the first storage area stores the product identification, the product identification is stored in the second storage area which does not store the product identification.

5. The method for transmitting a product identifier according to any of claims 1 to 4, wherein the step of moving the product identifier of the second storage area to the first storage area comprises:

acquiring a storage sequence corresponding to the second storage areas, wherein the product identifiers are sequentially stored in the second storage areas according to the storage sequence, and the number of the second storage areas is at least two;

and moving the product identifier in the second storage area region to the second storage area one bit before the storage sequence according to the storage sequence, wherein the product identifier in the first second storage area is stored in the first storage area.

6. The method for transmitting a product identifier according to claim 5, further comprising:

acquiring input configuration information;

and configuring the number of the second storage areas and the storage sequence of the second storage areas according to the configuration information.

7. A terminal device, characterized in that the terminal device comprises a memory, a processor and a transmission program of a product identifier stored on the memory and executable on the processor, the transmission program of the product identifier implementing the steps of the transmission method of the product identifier according to any one of claims 1 to 6 when executed by the processor.

8. The product detection system is characterized by comprising a terminal device, a scanning device, a programmable logic controller and a product detection device, wherein the terminal device is respectively in communication connection with the scanning device and the programmable logic controller, the programmable logic controller is connected with the product detection device, and the product detection device comprises:

the terminal device is the terminal device according to claim 7;

the scanning device is used for scanning the product identification;

the programmable logic controller is used for forwarding the product identifier sent by the terminal device to the product detection device;

the product detection device is used for receiving the product identifier forwarded by the programmable logic controller, and after the product identifier is successfully received, the product detection device returns information that the product identifier is successfully received to the terminal device through the programmable logic controller.

9. The product detection system of claim 8, wherein the terminal device is a display device.

10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a transmission program of a product identification, which when executed by a processor implements the steps of the transmission method of a product identification according to any one of claims 1 to 6.

Technical Field

The invention relates to the technical field of automatic production and manufacturing, in particular to a method, a terminal device, a system and a storage medium for transmitting a product identifier.

Background

In a production line, products are often required to be detected, when the products are detected, product identifications of the products are required to be scanned through a scanning gun, after the product identifications are scanned through the scanning gun, the product identifications are sent to a display device, the display device sends the product identifications to a terminal device, the terminal device detects the products based on the product identifications, wherein after the display device sends one product identification to the terminal device for detection, if the terminal device is not detected, an operator scans a new product identification through the scanning gun, and when the terminal device is not detected for an existing product, the new product identification cannot be detected, but the new product identification is directly discarded, so that the product identification is lost, and therefore, the invention at least solves the following problems: the product identification is lost while continuously scanning the product identification.

Disclosure of Invention

The invention mainly aims to provide a method, a terminal device, a system and a storage medium for transmitting product identification, and aims to solve the technical problem that the product identification is lost when the product identification is continuously scanned.

In order to achieve the above object, the present invention provides a method for transmitting a product identifier, including:

acquiring and sending a product identifier stored in a first storage area;

and when receiving the returned information that the product identification is successfully received, deleting the product identification of the first storage area, moving the product identification of the second storage area to the first storage area, and returning to execute the steps of acquiring and sending the product identification stored in the first storage area until the product identification stored in the first storage area is empty.

Optionally, the method for transmitting the product identifier further includes:

acquiring the product identification;

when the first storage area stores the product identification, storing the product identification to the second storage area;

when the first storage area does not store the product identification, the product identification is stored in the first storage area.

Optionally, when the first storage area does not store the product identifier, the step of storing the product identifier in the first storage area includes:

when the first storage area does not store the product identification, detecting whether the second storage area stores the product identification;

when the second storage area does not store the product identification, storing the product identification to the first storage area;

and when the second storage area stores the product identification, moving the product identification in the second storage area to the first storage area.

Optionally, when the first storage area stores the product identifier, the step of storing the product identifier in the second storage area includes:

when the first storage area stores the product identification, the product identification is stored in the second storage area which does not store the product identification.

Optionally, the step of moving the product identifier of the second storage area to the first storage area comprises:

acquiring a storage sequence corresponding to the second storage areas, wherein the product identifiers are sequentially stored in the second storage areas according to the storage sequence, and the number of the second storage areas is at least two;

and moving the product identifier in the second storage area region to the second storage area one bit before the storage sequence according to the storage sequence, wherein the product identifier in the first second storage area is stored in the first storage area.

Optionally, the method for transmitting the product identifier further includes:

acquiring input configuration information;

and configuring the number of the second storage areas and the storage sequence of the second storage areas according to the configuration information.

In addition, to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a transmission program of a product identifier stored in the memory and executable on the processor, and the transmission program of the product identifier is executed by the processor to implement the steps of the transmission method of the product identifier described in any one of the above.

In addition, to achieve the above object, the present invention further provides a product detection system, where the product detection system includes a terminal device, a scanning device, a programmable logic controller, and a product detection device, the terminal device is respectively connected to the scanning device and the programmable logic controller in a communication manner, and the programmable logic controller is connected to the product detection device, where:

the terminal equipment is used for realizing the transmission method of the product identification;

the scanning device is used for scanning the product identification;

the programmable logic controller is used for forwarding the product identifier sent by the terminal device to the product detection device;

the product detection device is used for receiving the product identifier forwarded by the programmable logic controller, and after the product identifier is successfully received, the product detection device returns information that the product identifier is successfully received to the terminal device through the programmable logic controller.

Optionally, the terminal device is a display device.

In addition, to achieve the above object, the present invention further provides a computer-readable storage medium, on which a transmission program of a product identifier is stored, and when the transmission program of the product identifier is executed by a processor, the method of transmitting the product identifier according to any one of the above steps is implemented.

The method, the terminal device, the system and the storage medium for transmitting the product identification provided by the embodiment of the invention acquire and send the product identification stored in the first storage area; when receiving returned information that the product identification is successfully received, deleting the product identification in the first storage area, moving the product identification in the second storage area to the first storage area, and returning to execute the steps of acquiring the product identification stored in the first storage area and sending the product identification until the product identification stored in the first storage area is empty, wherein in the case of continuously scanning the product identification, the product identification can be stored in the first storage area or the second storage area, so that the product identification is not lost when continuously scanning the product identification, and in the case of sending the product identification, only sending the product identification in the first storage area, so that in the case of continuously scanning the product identification, only in the case that the product identification is successfully received, the product identification in the first storage area is deleted, and the product identification in the second storage area is moved to the first storage area, therefore, each product identification can be received and completed, the problem that part of the product identifications cannot be successfully received to cause product identification loss when the product identifications are scanned continuously is avoided, and the problem that the product identifications are lost when the product identifications are scanned continuously is avoided.

Drawings

Fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;

fig. 2 is a schematic flow chart of a first embodiment of the method for transmitting a product identifier according to the present invention;

fig. 3 is a flowchart of a second embodiment of the method for transmitting a product identifier according to the present invention;

fig. 4 is a flowchart of a third embodiment of the method for transmitting a product identifier according to the present invention;

fig. 5 is a schematic structural diagram of a product identification detection system according to an embodiment of the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

As shown in fig. 1, fig. 1 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device may include a processor 1001, such as a CPU, a communication interface 1002, a memory 1003, and a communication bus 1004. Wherein a communication bus 1004 is used to enable connective communication between these components. The communication interface 1002 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1003 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1003 may alternatively be a storage device separate from the processor 1005.

Those skilled in the art will appreciate that the configuration of the terminal device shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.

As shown in fig. 1, the memory 1003, which is a kind of computer storage medium, may include a transmission program of an operating system and a product identification.

In the terminal device shown in fig. 1, the communication interface 1002 is mainly used for connecting a scanning device and performing data communication with the scanning device; and the processor 1001 may be configured to call the transmission program of the product identifier stored in the memory 1003, and perform the following operations:

acquiring and sending a product identifier stored in a first storage area;

and when receiving the returned information that the product identification is successfully received, deleting the product identification of the first storage area, moving the product identification of the second storage area to the first storage area, and returning to execute the steps of acquiring and sending the product identification stored in the first storage area until the product identification stored in the first storage area is empty.

Further, the processor 1001 may call the transmission program of the product identifier stored in the memory 1003, and further perform the following operations:

acquiring the product identification;

when the first storage area stores the product identification, storing the product identification to the second storage area;

when the first storage area does not store the product identification, the product identification is stored in the first storage area.

Further, the processor 1001 may call the transmission program of the product identifier stored in the memory 1003, and further perform the following operations:

when the first storage area does not store the product identification, detecting whether the second storage area stores the product identification;

when the second storage area does not store the product identification, storing the product identification to the first storage area;

and when the second storage area stores the product identification, moving the product identification in the second storage area to the first storage area.

Further, the processor 1001 may call the transmission program of the product identifier stored in the memory 1003, and further perform the following operations:

when the first storage area stores the product identification, the product identification is stored in the second storage area which does not store the product identification.

Further, the processor 1001 may call the transmission program of the product identifier stored in the memory 1003, and further perform the following operations:

acquiring a storage sequence corresponding to the second storage areas, wherein the product identifiers are sequentially stored in the second storage areas according to the storage sequence, and the number of the second storage areas is at least two;

and moving the product identifier in the second storage area region to the second storage area one bit before the storage sequence according to the storage sequence, wherein the product identifier in the first second storage area is stored in the first storage area.

Further, the processor 1001 may call the transmission program of the product identifier stored in the memory 1003, and further perform the following operations:

acquiring input configuration information;

and configuring the number of the second storage areas and the storage sequence of the second storage areas according to the configuration information.

Referring to fig. 2, a first embodiment of the present invention provides a method for transmitting a product identifier, where the method for transmitting a product identifier is applied to a terminal device, and the method for transmitting a product identifier includes:

step S10, acquiring and sending the product identification stored in the first storage area;

in this embodiment, the execution main body is a terminal device, and the terminal device may be a touch screen specifically; the terminal equipment is in communication connection with the scanning equipment and can acquire the product identification scanned by the scanning equipment, and after acquiring the product identification scanned by the scanning equipment, the terminal equipment stores the product identification in the memory; the product identifier is an identifier for identifying a product, and may be one or more of characters, letters, symbols, and numbers, or may be a two-dimensional code or a bar code, such as a serial number of the product; the scanning device is a device for scanning the product identifier, such as a scanning gun, and can scan the pattern of the product identifier attached to the product to obtain the product identifier; after the terminal device obtains the product identifier scanned by the scanning device, the product identifier can be preferentially stored in the second storage area, and the original product identifier in the first storage area is prevented from being replaced and lost under the condition that the product identifier is directly stored in the first storage area.

The product identification sent by the terminal equipment is obtained only by the first storage area, and at most one product identification is stored in the first storage area at the same time; the number of the first storage areas is one; the product identifier stored in the first storage area may be moved from the second storage area to the first storage area, or the product identifier scanned by the scanning device may be stored in the first storage area when the first storage area is empty.

After the terminal device obtains the product identifier scanned by the scanning device, whether the format of the product identifier scanned by the scanning device is correct or not can be judged, and under the condition that the format is correct, the product identifier with the correct format is stored in the first storage area or the second storage area, so that the accuracy of the product identifier is improved.

The product identification can be sent to product detection equipment, the product detection equipment can be an upper computer, and the product detection equipment is used for receiving the product identification sent by the terminal equipment and returning information of successful receiving to the terminal equipment when the product identification is successfully received; after the product detection device receives the product identification, product detection can be performed based on the product identification, and a detection result can be returned to the terminal device.

The terminal device may directly establish a communication connection with the product detection device and send the product identifier to the product detection device through the directly established communication connection, or the terminal device may also be in communication connection with an intermediate device, the intermediate device is in communication connection with the product detection device, the intermediate device forwards the product identifier of the terminal device to the product detection device, the intermediate device is, for example, a Programmable Logic Controller (PLC), and the PLC forwards the product identifier to the product detection device; after receiving the product identifier sent by the terminal device, the PLC may store the product identifier in a specific area of the register, for example, in a D0-D14 area of the PLC register, and set the value of M0B of the PLC coil to 1 to indicate that the product identifier is not empty, on this basis, the product detection device may detect whether the value of M0B of the PLC coil is 1 in real time or regularly, if 1, it indicates that the product identifier is not empty, that is, the product identifier is a valid product identifier, at this time, the product detection device reads the product identifier from the PLC register, and the beneficial effect of forwarding the product identifier through the programmable logic controller is as follows: because programmable logic controller can be connected with a plurality of terminal equipment, thereby if there are a plurality of terminal equipment and need scan the product sign and send under the condition of product sign to product check out test set, only need be connected product sign transmission can be realized with a plurality of terminal equipment and PLC, and the same product check out test set of sharing, because PLC's cost is lower for product check out test set, thereby can reduce hardware cost, avoid every terminal equipment all need be connected with a product check out test set alone, the higher problem of product check out test set cost that leads to.

Step S20, when receiving the returned information that the product identifier is successfully received, deleting the product identifier of the first storage area, moving the product identifier of the second storage area to the first storage area, and returning to execute the steps of obtaining and sending the product identifier stored in the first storage area until the product identifier stored in the first storage area is empty.

The information that the product identifier is successfully received is used for indicating that the product identifier is successfully received, the data format of the information that the product identifier is successfully received may be a computer instruction, and specifically may also be a deletion instruction or an emptying instruction, so that the terminal device performs deletion based on deletion or empties the product identifier stored in the first storage area based on the emptying instruction, and thus the product identifier that has been successfully transmitted is not continuously stored in the terminal device, and further the product identifier in the second storage area is moved to the first storage area and transmitted, thereby avoiding the loss of the product identifier, and avoiding the problem of code string caused by the terminal device sending a repeated product identifier to the product detection device.

Before receiving the returned information that the product identification is successfully received, the terminal device does not send a new product identification to the product detection device, and keeps the original product identification in the first storage area not to be replaced, if the scanning device scans to obtain the new product identification, the scanned new product identification can be stored in the second storage area, until receiving the information that the product detection device returns that the product identification is successfully received, the product identification in the first storage area is deleted, the product identification in the second storage area is moved to the first storage area, and after a certain product identification in the second storage area is moved to the first storage area, the second storage area does not store the moved product identification any more; after the product identifier in the second storage area is moved to the first storage area, returning to step S10, acquiring the product identifier from the first storage area again and sending the product identifier to the product detection device again, until the first storage area is empty, not acquiring the product identifier from the first storage area, which indicates that the product identifier is not scanned any more, at this time, the transmission process of the product identifier may be stopped until the product identifier stored in the first storage area is detected again, so that, under the condition of continuously scanning the product identifier, the product identifier is not lost, and normal transmission of the product identifier can be realized; the product identification of the second storage area is scanned by the scanning equipment and then stored in the second storage area; the number of the second storage areas can be one or more than two, and each second storage area stores at most one product identifier at the same time.

In the embodiment, the product identifier stored in the first storage area is obtained and sent; when receiving returned information that the product identification is successfully received, deleting the product identification in the first storage area, moving the product identification in the second storage area to the first storage area, and returning to execute the steps of acquiring the product identification stored in the first storage area and sending the product identification until the product identification stored in the first storage area is empty, wherein in the case of continuously scanning the product identification, the product identification can be stored in the first storage area or the second storage area, so that the product identification is not lost when continuously scanning the product identification, and in the case of sending the product identification, only sending the product identification in the first storage area, so that in the case of continuously scanning the product identification, only in the case that the product identification is successfully received, the product identification in the first storage area is deleted, and the product identification in the second storage area is moved to the first storage area, therefore, each product identification can be received and completed, the problem that part of the product identifications cannot be successfully received to cause product identification loss when the product identifications are scanned continuously is avoided, and the problem that the product identifications are lost when the product identifications are scanned continuously is avoided.

Referring to fig. 3, a second embodiment of the present invention provides a method for transmitting a product identifier, where based on the first embodiment, the method for transmitting a product identifier further includes:

step S30, acquiring the product identification;

the product identification stored in the terminal device is obtained by scanning of the scanning device, so that the terminal device needs to obtain the product identification scanned by the connected scanning device, after the terminal device obtains the product identification scanned by the scanning device, the situations of storing the product identification in the first storage area and the situations of storing the product identification in the second storage area are various, different storage situations correspond to different scenes of scanning the product identification, and therefore the terminal device needs to store the product identification to different storage areas based on different storage situations.

After the product identifier scanned by the scanning device is acquired, the first storage area and the second storage area have at least the following situations: in the first case, the first storage area stores the product identifier, that is, the first storage area is not empty, which indicates that the product identifier scanned before is still not successfully received by the product detection device; in the second case, the first storage area does not store the product identifier, that is, the second storage area is empty, which indicates that the product identifier scanned before is successfully received by the product detection device; based on the two different situations, the product identifier needs to be stored in different storage areas.

Step S40, when the product identifier is stored in the first storage area, storing the product identifier in the second storage area;

when the product identification is stored in the first storage area, the previous product identification is not received by the product detection device, at the moment, the product identification is stored in the second storage area to avoid the loss of the product identification, and the product identification in the second storage area is moved to the first storage area until the product identification in the first storage area is successfully received by the terminal device; in the process that the terminal device stores the product identifier in the second storage area, in order to avoid the loss of the product identifier caused by replacing the original product identifier in the second storage area, the product identifier needs to be stored in the second storage area in which the product identifier is not stored.

When the first storage area stores the product identifier, it is also possible that the product identifier is lost during the transmission, or it may be that the information that the product detection device has successfully received is lost in the process of being sent to the terminal device, in order to avoid the problem that the product identification cannot be normally transmitted due to long-time waiting of the terminal equipment, the terminal equipment starts to time after transmitting the product identification to the product detection equipment to obtain the timing duration and updates the transmission times, when the timing duration reaches the preset duration, sending the product identification to the product detection equipment again, setting the timing duration as an initial value, returning to the step of executing the starting timing to obtain the timing duration again, and updating the sending times, if the sending times is more than the preset times, prompt information of failed transmission needs to be displayed, and the prompt information can include a log record of the transmitted product identifier so that an operator can perform processing based on the prompt information.

Step S50, when the first storage area does not store the product identifier, store the product identifier in the first storage area.

Under the condition that the product identification is not stored in the first storage area, the fact that the product identification stored in the first storage area before is received by the product detection device is completed is indicated, at the moment, the terminal device can directly store the scanned product identification into the first storage area, or the terminal device possibly acquires the product identification scanned by the scanning device before and stores the product identification into the second storage area, in order to realize the prior transmission of the product identification scanned before, the terminal device also detects whether the product identification is stored in the second storage area, under the condition that the product identification is stored in the second storage area, the product identification in the second storage area is stored into the first storage area, and the product identification scanned by the scanning device is stored into the second storage area, so that the product identification scanned before is preferentially transmitted; when the second storage area does not store the product identifier, the fact that other product identifiers scanned by the scanning device are not stored before is indicated, and the terminal device stores the obtained product identifier scanned by the scanning device in the first storage area.

The present embodiment further defines the manner in which the terminal device acquires and stores the product identifier scanned by the scanning device, and it is understood that, in the present embodiment, steps S30 to S50 may be executed before steps S10 to S20, and steps S30 to S50 may also be executed in parallel with steps S10 to S30, because steps S10 to S20 are processes of sending the product identifier to the product detecting device, in a scenario of continuously scanning the product identifier, transmission of the product identifier may be performed as long as the first storage area stores the product identifier, and thus the process of acquiring the product identifier scanned by the scanning device at steps S30 to S50 may be a stage of storing the product identifier in any one of the processes of continuously scanning the product identifier, and since the first storage area may continuously store the product identifier in the continuously scanning scenario, steps S20 to S50 are not limited to be executed before steps S10 to S20, fig. 3 shows an example in which steps S30 to S50 are performed before steps S10 to S20, which is merely exemplary and not limiting.

In the embodiment, the product identification is obtained; when the first storage area stores the product identification, the product identification is stored in the second storage area; when the product identification is not stored in the first storage area, the product identification is stored in the first storage area, so that when the product identification is obtained, the obtained product identification is stored in different storage areas based on the condition that the product identification is actually stored in the first storage area, and the product identification is prevented from being lost and normal transmission of the product identification can be carried out.

Referring to fig. 4, a third embodiment of the present invention provides a method for transmitting a product identifier, where based on any of the above embodiments, the step S20 includes:

step S21, obtaining a storage sequence corresponding to the second storage areas, where the product identifiers are sequentially stored in the second storage areas according to the storage sequence, and there are at least two second storage areas;

in an actual application scenario, when the product identifier is transmitted, the product identifier needs to be transmitted to the product detection device according to a scanning sequence, that is, the product identifier scanned previously by the scanning device needs to be transmitted to the product detection device previously, in this embodiment, the product identifier scanned previously by the scanning device is stored in the second storage area, when the product identifier is transmitted, the product identifier in the second storage area needs to be moved to the first storage area, when the product identifier is moved, the present embodiment proposes to move the product identifier based on the storage sequence, wherein each second storage area corresponds to a storage sequence, the storage sequence is used to indicate a sequence in which the obtained product identifier scanned by the scanning device is stored in the second storage area, for example, there are two second storage areas, namely the second storage area B1 and the second storage area B2 in the terminal device, when the product identifier is moved, if the storage sequence is B1 and B2, the product identifier of B1 is moved to the first storage area, the product identifier of B2 is moved to B1, when the product identifier is stored, the product identifier is stored in the storage sequence, namely, the product identifier is stored in the sequence from B1, if B1 is empty, the product identifier is directly stored to B1, and if B1 is not empty, the product identifier is stored to B2, so that the product identifier which is scanned in advance can be stored in advance, further can be moved to the previous bit in advance, and finally is transmitted to the product detection device in advance.

Step S22, moving the product identifier in the second storage area to the second storage area one bit before the storage sequence according to the storage sequence, wherein the product identifier in the first second storage area is stored in the first storage area

In order to enable the product identification stored first to be transmitted first, the product identification in the second storage area storing the first order bits is moved to the first storage area since the product identification storing the first order bits is stored first.

After the product identifier of the first second storage area in the storage order is moved to the first storage area, the first second storage area is empty, the terminal device moves the product identifiers in the other second storage areas except the first second storage area of the second storage area to the second storage area one bit before in the storage order, for example, the second storage areas are B1 and B2, B1 is the first second storage area, and B1 is the previous bit of B2, after the product identifier stored in B1 is moved to the first storage area, the product identifier stored in B2 is moved forward to B1, and if the product identifier scanned by the scanning device is acquired at this time and no product identifier is stored in B2, the scanned product identifier may be stored to B2.

In addition, under the condition that the product identification is not stored in the first storage area and the product identification is stored in the second storage area, the terminal device preferentially moves the product identification stored in the second storage area to the first storage area, and if the newly scanned product identification is obtained at the moment, the newly scanned product identification is stored in the second storage area, so that the problem that the product identification which is scanned before cannot be normally transmitted is avoided.

When the product identification is actually scanned and transmitted, the requirement of normal production rhythm can be met when the number of the second storage areas is two through actual tests, if the two second storage areas still cannot meet the actual requirements of product identification scanning and transmission, the number of second storage areas can also be configured based on configuration information input by the user, wherein the terminal equipment acquires the input configuration information, the configuration information comprises the number of the second storage areas and the storage sequence of the second storage areas, and configuring the number of the second storage areas and the storage order of the second storage areas based on the configuration information, therefore, the number of the second storage areas can be set by the terminal equipment according to different production beats, and the problem that the product identification is lost due to insufficient second storage areas when the product identification is continuously scanned is avoided.

In this embodiment, by obtaining a storage sequence corresponding to the second storage areas, where the product identifiers are sequentially stored in each second storage area according to the storage sequence, where the number of the second storage areas is at least two, the product identifiers in the second storage area are moved to the second storage area one bit before the storage sequence according to the storage sequence, where the product identifier in the first second storage area is stored in the first storage area, so that the previously scanned product identifier can be previously stored and can be sent in advance.

Referring to fig. 5, fig. 5 is a schematic diagram of an architecture of a product identifier detection system according to an embodiment of the present invention, and an embodiment of the product identifier detection system is provided based on fig. 5, where the product identifier detection system includes a terminal device 30, a scanning device 40, a programmable logic controller 20, and a product detection device 10, the terminal device 30 is respectively connected to the scanning device 40 and the programmable logic controller 20 in a communication manner, and the programmable logic controller 20 is connected to the product detection device 10, where:

the terminal device 30 is a terminal device according to the first embodiment; the terminal device 30 is a display device; the terminal device 30 may specifically be a touch screen; the reason why the number of the terminal devices 30 may be one or more than two, and when the number of the terminal devices 30 is two or more than two, the effect of reducing the hardware cost can be achieved is that, in the exemplary technique, each terminal device 30 is in communication connection with one product detection device 10, the product detection device 10 is an upper computer, which is higher in cost, and when the number of the programmable logic controllers 20 is two or more than two, the hardware cost of the programmable logic controller 20 is lower, the two or more terminal devices 30 can share the programmable logic controller 20 and realize communication with the product detection device 10, and it is not necessary that each terminal device 30 is in communication connection with one product detection device 10 alone, but the product detection device 10 can be shared on the basis of the programmable logic controller 20.

The scanning device 40 is used for scanning the product identification; the scanning device may particularly be a scanning gun.

The programmable logic controller 20 is configured to forward the product identifier sent by the terminal device 30 to the product detection device 10;

the product detection device 10 is configured to receive the product identifier forwarded by the programmable logic controller 20, and after the product identifier is successfully received, return information that the product identifier is successfully received to the terminal device 30 through the programmable logic controller 20. The product inspection apparatus 10 may be specifically an upper computer.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.

The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种固态硬盘中重建的加速方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类