Roll paper data reading system and reading control method thereof, control equipment and medium

By designing a reading control method in the web reading system, the reader starts reading when moving to the first side position and moves back and forth when unsuccessful reading, solving the problems of high misreading rate and low reading rate of RFID technology, and improving the accuracy and efficiency of paper data reading.

CN119647494APending Publication Date: 2025-03-18CHAINT CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411709177.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

In the paper production and processing industry, due to the high misread rate and low read rate, RFID technology has low efficiency in web data management and information flow. Especially in the context of factory 4.0 intelligence, how to improve the effective read rate of RFID has become an urgent problem.

Method used

By designing a reading control method for roll paper data, the reader starts reading data when moving from the initial position to the first side position, and when data of the target electronic tag is not successfully read, the reader controls the reader to move back and forth between the first side position and the set position until the number of times is successfully read or the set number is reached.

Benefits of technology

It effectively improves the reader's misread rate and read accuracy, reduces the time for successful single reads, and improves the accuracy and read rate of roll paper data reading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119647494A_ABST
    Figure CN119647494A_ABST
Patent Text Reader

Abstract

The invention provides a roll paper data reading system, a reading control method of the roll paper data reading system, control equipment and a medium. When the reader moves from the initial position to the first side position, the reader is controlled to start data reading, so that in the reading process, the roll paper can be utilized to shield read-write signals, other electronic tags except the target electronic tag are prevented or reduced from being misread, and the misreading rate of the reader is effectively improved. Besides, when it is determined that the reader does not successfully read the data of the target electronic tag, the reader is controlled to move back and forth between the first side position and the set position, the situation that the reader needs to be controlled to return to the initial position every time to start reversing is avoided, and the time of successful single-time reading of the reader can be effectively shortened. Therefore, according to the reading control method provided by the invention, the accuracy and the reading rate of roll paper data reading can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of paper production and processing, and in particular to a paper roll data reading system and a reading control method, control device and medium thereof. Background Art

[0002] In the current paper production and processing field, such as the corrugated paper industry and the printing industry, there are two mainstream methods for the data management and circulation of roll paper. One is barcode, including one-dimensional code or two-dimensional code; the other is RFID (Radio Frequency Identification) chip, which writes information and saves it through RFID technology and reads it through a reader when needed. These two mainstream methods have their own advantages and disadvantages. The advantages of barcode are low cost and high reading rate, while the disadvantages are that barcodes are easily damaged, information is easily lost, and there are many manual operations; while the advantages of RFID are that the information is completely preserved and generally no manual intervention is required, while the disadvantages are that due to the limitations of RFID technology, it is easy to misread or miss reading. At present, RFID is the most common form in the corrugated paper industry and the printing industry, because barcodes are easily damaged as roll paper circulates and is transported, and barcodes are not convenient to use in the processing and use of roll paper. RFID, with its natural advantages, should have become the preferred solution for the circulation of roll paper management information.

[0003] However, due to the limitations of RFID technology itself, the misreading rate is high and the reading rate is low. Under the background of Factory 4.0 intelligence, data management and information flow have become the most basic requirements. How to improve the effective reading rate of RFID has become an urgent matter for the roll paper application industry. Summary of the invention

[0004] In order to solve the existing technical problems, the present application provides a paper roll data reading system with high reading accuracy and high reading rate, and a reading control method, a control device and a computer-readable storage medium.

[0005] According to a first aspect of an embodiment of the present application, a method for controlling reading of roll paper data is provided, comprising:

[0006] After determining that the paper roll has arrived at the reading station, controlling the reader to move from an initial position toward a first side position of the end surface of the paper roll;

[0007] When the reader moves to the first side position, the reader is controlled to start reading data, and the reader is controlled to move to a set position in a direction from the first side position to a second side position of the end surface of the paper roll, wherein the first side and the second side are opposite sides;

[0008] Determining whether the reader successfully reads data of a target electronic tag disposed in the roll of paper;

[0009] If yes, controlling the reader to move to an initial position;

[0010] If not, the reader is controlled to move back and forth between the first side position and the set position until the reader successfully reads the data of the target electronic tag or the number of back and forth movements reaches a set number.

[0011] According to a second aspect of an embodiment of the present application, a control device is provided, including a memory and a processor, wherein the memory stores a computer-readable program, and the processor implements the reading control method when executing the computer-readable program.

[0012] According to a third aspect of an embodiment of the present application, a system for reading roll paper data is provided, including a reader, a mechanical device and a PLC controller;

[0013] The mechanical device is arranged at the reading station;

[0014] The reader is arranged on the mechanical device and moves accordingly following the lifting and lowering action of the mechanical arm in the mechanical device;

[0015] The PLC controller is connected to the reader and the mechanical device respectively, and is used to control the mechanical arm to drive the reader to move accordingly according to the reading control method, so as to read the paper roll data.

[0016] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the reading control method is implemented.

[0017] As can be seen from the above, the reading control method provided by the embodiment of the present application controls the reader to start reading data only when the reader moves from the initial position to the first side position, so that during the reading process, the roll paper can be used to shield the read and write signals, avoiding or reducing the misreading of other electronic tags other than the target electronic tag, and effectively improving the reader's misreading rate. In addition, when it is determined that the reader has not successfully read the data of the target electronic tag, the reader is controlled to move back and forth between the first side position and the set position, that is, each time the reader is controlled to move to the set position, the reader is controlled to reverse, rather than each time the reader needs to be controlled to return to the initial position before reversing, which can effectively reduce the time for the reader to successfully read a single time. Therefore, the reading control method provided by the embodiment of the present application can effectively improve the accuracy and reading rate of the roll paper data reading. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0019] Figure 1 A schematic diagram of a flow chart of a method for controlling the reading of roll paper data provided in accordance with some embodiments of the present application;

[0020] Figure 2 A schematic diagram of the structure of a control device provided according to some embodiments of the present application;

[0021] Figure 3 A schematic flow chart of the steps of determining whether a reader has successfully read the roll paper data in a reading control method provided according to some embodiments of the present application;

[0022] Figure 4 A schematic diagram of the structure of a paper roll data reading system provided according to some embodiments of the present application;

[0023] Figure 5 A schematic diagram of the structure of a mechanical device in a roll paper data reading system provided according to some embodiments of the present application;

[0024] Figure 6 The figure is a schematic diagram of the working process of a paper roll data reading control system provided according to some embodiments of the present application. DETAILED DESCRIPTION

[0025] The technical solution of the present application is further elaborated in detail below in conjunction with the accompanying drawings and specific embodiments of the specification.

[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit the implementation of this application. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0027] In the description of the present application, it should be understood that the terms "center", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating positions or positional relationships, are based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as a limitation on the present application. In the description of the present application, unless otherwise specified, "multiple" means two or more.

[0028] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0029] See also Figure 1 , which is a flow chart of a method for reading control methods provided in some embodiments of the present application. The reading control methods provided in some embodiments of the present application can be applied to, but not limited to, Figure 2 The control device shown. The control device provided in the embodiment of the present application can achieve the same technical effect as the reading control method provided in the embodiment of the present application. The control device provided in some embodiments of the present application includes a memory 201 and a processor 202, and the memory 201 stores a computer-readable program. When the processor 202 executes the computer-readable program, it implements the reading control method provided in accordance with any embodiment of the present application. The number of memories 201 and processors 202 is not limited to one, and can be multiple. For example, the control device used in the reading control method provided in some embodiments of the present application may include a host computer and a PLC controller, then the memory 201 includes a first memory of the host computer and a second memory of the PLC controller, and the processor 202 includes a first processor of the host computer and a second processor of the PLC. Some steps in the reading control method provided in some embodiments of the present application can be executed by the host computer, and other steps can be executed by the PLC, which will be described in detail in the subsequent description. The reading control method provided in some embodiments of the present application includes S01, S03, S05, S07 and S09, and the description of each step is as follows.

[0030] S01: After determining that the paper roll has arrived at the reading station, controlling the reader to move from an initial position toward a first side position of an end surface of the paper roll.

[0031] The roll of paper is a roll of paper, which can be base paper in paper processing. In some embodiments, the paper roll can be a paper stack. The end face of the roll of paper refers to an end face of the roll of paper close to the reader in the two side end faces of the core tube extending direction.

[0032] The reading station refers to a station in the paper processing process, which is used to scan the roll of paper to determine the relevant information of the roll of paper. The relevant information of the roll of paper is the data of the roll of paper in this application, which includes but is not limited to the attribute information such as the model and type of the roll of paper. In the paper processing process, when the roll of paper is transported to the reading station, the reader arranged at the reading station reads its relevant data information. Specifically, the roll of paper usually includes a core tube, and an electronic tag corresponding to the reader is placed in the core tube, and the electronic tag stores the data information of the roll of paper. The reader reads the information of the electronic tag to read the data information of the roll of paper. The reader can be a radio frequency identification reader, and the corresponding electronic tag is a radio frequency identification tag.

[0033] S01 may be, but is not limited to, executed by a PLC controller in the control device. The PLC controller is specifically used to control the mechanical arm carrying the reader to perform lifting and lowering movements, so as to drive the reader to perform corresponding movements. When the paper roll reaches the reading station, the PLC controller starts to control the mechanical arm to descend, so as to drive the reader to descend to the first side position.

[0034] S03: When the reader moves to the first side position, the reader is controlled to start reading data, and the reader is controlled to move to a set position in a direction from the first side position to the second side position of the end surface of the paper roll, wherein the first side and the second side are opposite sides.

[0035] Before the reader moves from the initial position to the first side position, the reader is in an unopened state, that is, the reader is turned on to start reading data only when it moves from the initial position to the first side position. After the reader is turned on, the data of the electronic tag within its reading range is read. After the reader starts reading data, the control device controls the reader to continue moving from the first side position to the set position.

[0036] Specifically, in some embodiments, the PLC controller may determine whether the reader moves to the first side position, but is not limited thereto. When the PLC controller determines that the reader moves to the first side position, the PLC controller sends a read permission signal to the host computer, and when the host computer receives the read permission signal, the reader is turned on so that the reader starts to read data.

[0037] S05: Determine whether the reader successfully reads the data of the target electronic tag set in the roll paper.

[0038] In the present application, the electronic tag set in the roll paper to be identified is called a target electronic tag, which is an electronic tag that needs to be accurately read by a reader.

[0039] The host computer in the control device processes the data read by the reader to determine whether there is data that meets the preset conditions in the data read by the reader. If so, it is determined that the data that meets the preset conditions is the data of the target electronic tag, that is, it is determined that the reader has successfully read the data of the target electronic tag. If not, it is determined that the reader has not currently read the data of the target electronic tag.

[0040] After determining that the reader has successfully read the data of the target electronic tag, the host computer sends a read success signal to the PLC controller. The PLC controller determines whether the reader has successfully read the data of the target electronic tag based on whether it has received the read success signal sent by the host computer.

[0041] If the determination result of S05 is that the reader successfully reads the data of the target electronic tag, the next step is to execute S07 , otherwise the next step is to execute S09 .

[0042] S07: Control the reader to move to the initial position.

[0043] S07 may be, but is not limited to, executed by a PLC controller. After receiving a reading success signal, the PLC controller controls the reader to move from a current position to an initial position, ie, resets the reader, and completes reading of the roll paper data.

[0044] S09: Control the reader to move back and forth between the first side position and the set position until the reader successfully reads the data of the target electronic tag or the number of back and forth movements reaches the set number.

[0045] Before the reader has completed moving from the first side position to the set position in sequence, the control device processes the data read by the reader during the last movement from the first side position to the set position to determine whether the reader has successfully read the data of the target electronic tag.

[0046] Controlling the reader to move back and forth between the first side position and the set position means that: the reader moves from the first position to the set position, and when it moves to the set position, the movement direction of the reader is controlled to be reversed to move from the set position to the first position again, and when it moves to the first position, the movement direction of the reader is controlled to be reversed again to move from the first side position to the set position again.

[0047] One round trip means that the reader moves from the set position to the first position, and then moves from the first position to the set position. In some embodiments, SO9 is executed by a PLC controller. When the PLC controller does not receive a read success signal sent by the host computer, it continues to control the reader to perform the above-mentioned back-and-forth action and counts the number of back-and-forth actions. When the number of back-and-forth actions reaches the set number, if the PLC controller still does not receive a read success signal, it means that an abnormality has occurred in the reading of the roll paper data, and the PLC controller no longer controls the reader to continue the above-mentioned back-and-forth movement, but controls the reader to stop moving or move to the initial position.

[0048] The setting position refers to a position lower than the initial position of the reader. Specifically, the setting position is a position near the second side position, that is, the distance between the setting position and the second side position is less than the distance between the initial position and the second side position. The setting position and the second side position can be the same position.

[0049] As can be seen from the above, the reading control method provided by some embodiments of the present application controls the reader to start data reading only when the reader moves from the initial position to the first side position, so that during the reading process, the roll paper can be used to shield the read and write signals, avoid or reduce the misreading of other electronic tags other than the target electronic tag, and effectively improve the reader's misreading rate. In addition, the reading control method provided by the embodiment of the present application controls the reader to move back and forth between the first side position and the set position when it is determined that the reader has not successfully read the data of the target electronic tag, that is, each time the reader is controlled to move to the set position, the reader is controlled to reverse, rather than each time the reader needs to be controlled to return to the initial position before reversing, which can effectively reduce the time for a single successful reading of the reader, such as reducing the time for a single successful reading of the reader to 5s. Therefore, the reading control method provided by some embodiments of the present application can effectively improve the accuracy and reading rate of roll paper data reading.

[0050] In some embodiments, the reading control method provided by the present application further includes: during the period of controlling the reader to move from the first side position to the set position, adjusting the power of the reader according to a preset power adjustment strategy.

[0051] The preset power adjustment strategy may be a strategy for increasing the reading power of the reader according to a certain power increase frequency. The reading control method provided in some embodiments of the present application controls the reader to start the reading function only when it moves from the initial position to the first side position, so that the roll paper can be used to shield the read and write signals during the data reading process of the reader, and the power of the reader is automatically adjusted during the reading process, which will not increase the misreading rate, and enable the reader to fully read, so that the reading distance of the reader can reach 50cm, thereby further improving the reading success rate of the reader reading the roll paper data, such as the reading success rate can reach 99.99%.

[0052] In some embodiments, the set position is the second side position, such as the first side position is the top position of the end surface of the roll paper, and the second side position is the bottom position of the end surface of the roll paper. The reading control method provided in some embodiments of the present application controls the reader to read the roll paper data while moving within the range of the roll paper end surface, effectively improving the reading success rate and reading rate of the roll paper data.

[0053] In some embodiments, the reading control method provided by the present application also includes sending an alarm message if the reader still fails to successfully read the data of the target electronic tag after the number of back and forth reaches the set number. Specifically, the PLC controller in the control device can count the number of back and forth times and compare the number of back and forth times with the set number. If the number of back and forth times of the reader has been controlled to reach the set number, and the PLC controller still has not received the reading success signal sent by the host computer, it means that the reading of the roll paper data may be abnormal, and an alarm message is sent to remind the staff to conduct an abnormality check, thereby improving the reading efficiency.

[0054] See also Figure 3 As shown, in the reading control method provided in some embodiments of the present application, determining whether the reader has successfully read the data of the target electronic tag set in the roll paper in S05 specifically includes S051, S053 and S055, and the specific description of each step is as follows.

[0055] S051: Determine whether there is target data having a reading number that meets a preset condition according to the data read by the reader during the current movement from the first position to the set position.

[0056] S053: Taking the target data as the data of the target tag, and determining that the data of the target electronic tag is successfully read.

[0057] S055: Determine that the data of the target electronic tag has not been successfully read.

[0058] Specifically, the preset condition is that the data read by the reader meets the condition of the data corresponding to the target electronic tag. Each time the control device controls the reader to move from the first position to the set position, it makes a judgment based on the data read by the reader in the process to determine whether the reader successfully reads the data of the target electronic tag.

[0059] The reader itself counts the data read during the movement from the first position to the set position each time, and sends the electronic tags corresponding to the read data and the reading times corresponding to each read data to the control device, so that the control device can filter out the data with the most reading times and meeting the preset reading times as the data of the target electronic tag. The preset reading times here are the above-mentioned preset conditions. Specifically, steps S051 to S05 can be, but are not limited to, executed by the host computer in the control device.

[0060] In some embodiments, the reading control method provided by the present application further includes: acquiring sensing data generated by the reader sensing the paper roll; and determining whether the reader reaches the first side position and the second side position based on the sensing data.

[0061] The reader is also integrated with a sensor unit for sensing the paper roll. When the reader moves from the initial position to the first position, the sensor unit senses the paper roll in real time. Once the paper roll is sensed, the corresponding sensing data is sent to the control device. The control device determines whether the reader moves to the first side position and the second side position based on the sensing data. The first side position is the top position of the end surface of the paper roll, and the second side position is the bottom position of the end surface of the paper roll. When the reader moves to the first side position, the sensor unit senses the paper roll. When the reader moves to the second side position and is about to leave the second side position, the sensor unit begins to not sense the paper roll, indicating that the reader has currently moved to the second side position.

[0062] Specifically, the PLC controller in the control device determines whether the reader reaches the first side position or the second side position according to the sensing data sent by the sensor unit, so as to perform corresponding control according to the determination result.

[0063] See also Figure 4 , which is a structural schematic diagram of a paper roll data reading system 30 provided in some embodiments of the present application. In some embodiments, the reading system 30 provided in the present application includes a PLC controller 301, a mechanical device 302 and a reader 303. Figure 5As shown, it is a structural schematic diagram of a mechanical device 302 in a reading system 30 provided according to some embodiments of the present application, and the mechanical device 302 is arranged at the reading station of the roll paper 40. The mechanical device 302 has a mechanical arm 3021, and a reader 303 is arranged on the mechanical arm 3021 in the mechanical device 302, and moves accordingly following the lifting and lowering action of the mechanical arm 3021. The PLC controller 301 is connected to the reader 303 and the mechanical device 302 respectively, and is used to control the mechanical arm 3021 to drive the reader 303 to move accordingly according to the reading control method provided in any embodiment of the present application, so as to read the data of the roll paper 40. The reading system provided according to some embodiments of the present application can achieve the same technical effect as the reading control method provided in the embodiment of the present application, and will not be repeated here.

[0064] When the PLC controller 301 determines that the paper roll 40 is delivered to the reading station where the mechanical device 302 is located, the mechanical arm 3021 is controlled to move from the initial position to the first side position of the end surface 402 of the paper roll. Specifically, the first side position can be the top position of the end surface 402 of the paper roll, and the second side position and the setting position are the bottom positions of the end surface 402 of the paper roll. When the paper roll 40 reaches the reading station, the PLC controller 301 controls the mechanical arm 3021 to start descending to drive the reader 303 to descend. The reader 303 is provided with a sensor unit, which senses the paper roll 40 during the descent of the reader 303 and sends the sensing signal to the PLC controller 301. The PLC controller 301 determines whether the reader moves to the top position or the bottom position of the end surface 402 of the paper roll according to the sensing signal. When the PLC controller 301 determines that the reader 303 has descended to the top position of the paper roll end surface 402, it determines that the current moment is the reading moment and sends a read permission signal to the host computer 10, so that the host computer 10 can control the reader 303 to start and read data according to the received read permission signal.

[0065] After the reader 303 starts to read data, the PLC controller 301 continues to control the mechanical arm 3021 to descend, so as to drive the reader 303 to move to the bottom position of the paper roll end surface 402. The host computer 10 determines whether the reader 303 successfully reads the data of the target electronic tag 50 in the target paper roll 40 during the current movement from the top position to the bottom position according to the reading result obtained during the reader's current movement from the top position to the bottom position. If the host computer 10 determines that the reader 303 successfully reads the data of the target electronic tag 50 during the current movement from the top position to the bottom position, a read success signal is sent to the PLC controller 301. The PLC controller 301 determines whether the reader 301 successfully reads the data of the target electronic tag, that is, the data of the paper roll 40, according to whether the read success signal is received. Specifically, the paper roll 40 has a core tube 401, and the target electronic tag can be placed in the core tube 401 for the reader 303 to read.

[0066] When the PLC controller 301 determines that the reader 303 has successfully read the data of the roll paper 40, it controls the reader 303 to move to the initial position, i.e., reset, thereby ending the data reading of the current roll paper 40. If the PLC controller 301 never receives the reading success signal sent by the host computer 10, and the number of times the PLC controller 301 controls the reader 303 to move back and forth between the top position and the top position of the roll paper end surface 402 reaches the set number of times, the PLC controller 301 no longer controls the reader 301 to continue to move back and forth, and triggers an alarm message, and ends the current reading process to improve the reading efficiency.

[0067] In addition, in order to further improve the reading rate, the reader 303 also automatically adjusts the reading power during the back and forth movement within the spatial range of the paper roll end surface 402 based on the control of the host computer 10, so as to fully read the data of the paper roll 40. Specifically, the host computer 10 controls the reader 303 to adaptively adjust the reading power according to the preset power adjustment strategy, so that the reader 303 can fully read the data with the largest possible reading power. Due to the reading system provided by the embodiment of the present application, the reader 303 moves within the spatial range of the paper roll end surface 40 and reads the data, and the paper roll 40 can be used to shield the interference signal, and it is not easy to cause a decrease in the reading accuracy while adjusting the reading power. Therefore, the reading system provided by the embodiment of the present application has both high reading accuracy and high reading rate.

[0068] Please continue reading Figure 4 As shown, the reading system 30 further includes a communication module 304 , and the reader 303 communicates with the host computer via the communication module 304 , wherein the communication module may be, but is not limited to, a wireless communication module.

[0069] Please continue reading Figure 4As shown, in some embodiments, the PLC controller 301 exchanges data with the host computer 10 through the PLC data acquisition system 20 .

[0070] Please continue reading Figure 5 As shown, in some embodiments, the reading system provided by the embodiments of the present application also includes a protective cover 60, which is installed on the mechanical arm 3021 and is used to cover the reader 303 to protect the reader 303, and at the same time can shield interference signals to improve the reading accuracy of the reader 303.

[0071] See also Figure 6 As shown, it is a schematic diagram of the work flow of the paper roll data reading control system provided in some embodiments of the present application. The paper roll data reading control system provided in the embodiment of the present application includes the above-mentioned host computer 10, PLC acquisition system 20 and reading system 30. The host computer 10 exchanges data with the PLC controller 301 in the reading system 30 through the PLC acquisition system 20. Specifically, the paper roll data reading control system provided in the embodiment of the present application includes the following work flow.

[0072] S11: PLC controller determines that the roll paper 40 reaches the reading station. When the PLC controller 301 determines that the roll paper 40 reaches the reading station, it executes S12.

[0073] S12: The PLC controller controls the mechanical arm to descend. The PLC controller 301 controls the mechanical arm 3021 to descend, so as to drive the reader 303 to descend, and before the reader 303 descends to the top position of the paper roll end surface 402, the reader 303 is controlled to remain in the read-off state, that is, before the reader 303 descends to the top position of the paper roll end surface 402, the data of the electronic tag within the reading range is not read, thereby effectively reducing the interference data reading. After completing S12, S13 is executed.

[0074] S13: When the paper roll is sensed, the PLC controller sends a signal to allow reading. The PLC controller 301 determines whether the paper roll is currently sensed based on the sensing signal of the sensor unit in the reader 303 to the paper roll. If so, the PLC controller 301 sends a signal to allow reading to the host computer 10. After completing S13, S14 is executed.

[0075] S14: The host computer determines whether a read permission signal is received. When the host computer 10 receives the read permission signal, it executes S15, otherwise it returns to execute S12.

[0076] S15: The host computer turns on the reader, and the reader starts to read data. When the host computer 10 receives the read permission signal sent by the PLC controller 301, it controls the reader 303 to turn on, so that the reader 303 starts to read data. At the same time, the PLC controller 303 continues to control the mechanical arm 3021 to drive the reader 303 to descend to the bottom position of the roll paper end surface 402. After S15 is executed, S16 is executed.

[0077] S16: Automatically adjust the reading power of the reader. The host computer 10 automatically adjusts the reading power of the reader 303 according to the preset power adjustment strategy, so that the reader 303 can fully read the data and improve the reading rate of the reader 303. After S16 starts to be executed, S17 is executed.

[0078] S17: The host computer processes the data read by the reader to determine whether the reading is successful. After the reader 303 reads the data of each electronic tag within its reading range, the host computer 10 performs business logic processing on the data read to determine whether the reader 303 successfully reads the data of the roll paper 40. If so, S18 is executed.

[0079] S18: The host computer sends a read success signal to the PLC controller.

[0080] S19: Whether the PLC controller receives a read success signal. If the PLC controller 301 receives a read success signal, S20 is executed, otherwise, S21 is executed.

[0081] S20: The PLC controller controls the machine to return to the initial position.

[0082] S21: The PLC controller determines whether the number of back and forth movements reaches the set number. If the determination result of S21 is yes, S22 is executed, otherwise S23 is executed.

[0083] S22: Send alarm information. When the PLC controller 301 controls the reader 303 to move back and forth for a set number of times, and the reader 303 still fails to successfully read the data of the roll paper 40, it means that an abnormality has occurred in the current reading. The PLC controller sends an alarm message, such as sending the alarm message to the host computer 10, to remind the user to perform abnormal discharge, thereby effectively improving the reading efficiency.

[0084] S23: The PLC controller controls the mechanical arm to continue to move up and down on the end surface of the paper roll. Controlling the reader 303 to move up and down multiple times within the spatial range of the end surface of the paper roll 402 is conducive to improving the reading rate of the reader so as to obtain accurate paper roll data. In addition, during the period when the PLC controller 301 controls the reader 303 to move up and down on the end surface of the paper roll 402, the host computer 10 also automatically adjusts the power of the reader 30 according to the preset power adjustment strategy.

[0085] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned reading control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium is such as a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0086] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for controlling the reading of roll paper data, characterized in that: include: After determining that the paper roll has arrived at the reading station, controlling the reader to move from an initial position toward a first side position of the end surface of the paper roll; When the reader moves to the first side position, the reader is controlled to start reading data, and the reader is controlled to move to a set position in a direction from the first side position to a second side position of the end surface of the paper roll, wherein the first side and the second side are opposite sides; Determining whether the reader successfully reads data of a target electronic tag disposed in the roll of paper; If yes, controlling the reader to move to an initial position; If not, the reader is controlled to move back and forth between the first side position and the set position until the reader successfully reads the data of the target electronic tag or the number of back and forth movements reaches a set number.

2. The reading control method according to claim 1, characterized in that: Also includes: During the process of controlling the reader to move from the first side position to the set position, the power of the reader is adjusted according to a preset power adjustment strategy.

3. The reading control method according to claim 1, characterized in that: The set position is the second side position.

4. The reading control method according to claim 1, characterized in that: Also includes: After the number of back and forth reaches the set number of times, if the reader still fails to successfully read the data of the target electronic tag, an alarm prompt message is issued.

5. The reading control method according to claim 1, characterized in that: The step of determining whether the reader successfully reads the data of the target electronic tag set in the roll of paper includes: Determine whether there is target data with a reading number that meets a preset condition according to the data read by the reader during the current movement from the first position to the set position; If yes, the target data is used as the data of the target tag, and it is determined that the data of the target electronic tag is successfully read; If not, it is determined that the data of the target electronic tag is not successfully read.

6. The reading control method according to any one of claims 1 to 5, characterized in that: The first side position is the top position of the end surface of the paper roll, and the second side position and the set position are respectively the bottom positions of the end surface of the paper roll.

7. The reading control method according to claim 6, characterized in that: Also includes: Acquire sensing data generated by the reader sensing the paper roll; According to the sensing data, it is determined whether the reader reaches the first side position and the second side position.

8. A control device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer-readable program, and the processor implements the reading control method according to any one of claims 1 to 7 when executing the computer-readable program.

9. A system for reading roll paper data, characterized in that: Including reader, mechanical device and PLC controller; The mechanical device is arranged at the reading station; The reader is arranged on the mechanical device and moves accordingly following the lifting and lowering action of the mechanical arm in the mechanical device; The PLC controller is connected to the reader and the mechanical device respectively, and is used to control the mechanical arm to drive the reader to move accordingly according to the reading control method as described in any one of claims 1 to 7, so as to read the paper roll data.

10. The reading system according to claim 9, characterized in that The reader is provided with a sensor unit for sensing the roll of paper; The PLC controller determines that the reader moves to a first side position and a second side position of the end surface of the paper roll according to the sensing signal generated by the sensor unit; The PLC controller is also used to determine the moment when the reader moves from the initial position to the first side position as the reading moment, and send a read permission signal to the host computer at the reading moment, so that the host computer can control the reader to start data reading at the reading moment.

11. The reading system according to claim 9, characterized in that: The PLC controller is also specifically used to determine whether the reader successfully reads the data of the target electronic tag set in the roll of paper according to whether a reading success signal sent by the host computer is received.

12. The reading system according to claim 9, characterized in that The PLC controller is also used to send an alarm signal to the host computer if the reader still fails to successfully read the data of the target electronic tag after the number of back and forth reaches the set number of times.

13. The reading system according to any one of claims 10 to 12, characterized in that: The PLC controller exchanges data with the host computer through a PLC data acquisition system.

14. The reading system according to claim 9, characterized in that Also included is a protective cover, which is installed on the mechanical arm and is used to cover the reader.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the reading control method according to any one of claims 1 to 7 is implemented.