Workpiece positioning and information tracing system and method on production line
By using the FPGA main control board, encoder and photoelectric sensor combination on the production line, the workpiece position and status signals are processed in real time, which solves the problem that traditional processors are difficult to meet the detection and positioning of workpiece micropores or defects on high-speed production lines, and the precise positioning and information traceability of workpieces are achieved.
Patent Information
- Application Number
- CN202311319967.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-15
AI Technical Summary
Traditional processors are difficult to meet the requirements for detecting and positioning of workpiece micropores or defects on high-speed production lines, especially when high-speed movements such as box sheets.
The FPGA main control board is used to combine an encoder and photoelectric sensor to obtain the workpiece position and status signals in real time, and transmit it through the FPGA chip processing and communication module to realize the positioning and information traceability of the workpiece.
Real-time positioning and information traceability of workpieces on high-speed production lines is realized, the monitoring and defect detection problems of small workpieces is solved, and the monitoring accuracy and efficiency of the production line is improved.
Smart Images

Figure CN119828604A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of workpiece detection, and in particular relates to a workpiece positioning and information tracing system and method on a production line. Background Art
[0002] As the requirements for technology and quality in industrial production gradually increase, the instant traceability of processed parts or products on the production line becomes more and more important. It is necessary to monitor the location, area, time and other information of the workpiece or product in real time to judge the quality of its specific characteristics in the processing section or station, but traditional processors can no longer meet the needs.
[0003] For example, on a high-speed production line that processes liquid packaging boxes, the boxes move quickly on the production line, and the size of the micropores or defects on the boxes is very small. Traditional processors such as single-chip microcomputers or PLCs can hardly meet the requirements for detecting and locating the micropores or defects on the boxes. Summary of the invention
[0004] In view of the above problems, the present invention discloses a system and method for workpiece positioning and information tracing on a production line to overcome the above problems or at least partially solve the above problems.
[0005] In order to achieve the above object, the present invention adopts the following technical solutions:
[0006] On one hand, the present invention provides a workpiece positioning and information tracing system on a production line, the production line includes a plurality of workstations or sections, and the workpiece positioning and information tracing system on the production line includes a plurality of encoders, a plurality of photoelectric sensors, an FPGA main control board and a communication module; wherein,
[0007] Each encoder is fixedly installed on the conveying device of the production line and is used to output the operation signal of the conveying device in real time;
[0008] Each photoelectric sensor is arranged at a workstation or a work section, and is used to send a signal when detecting that each workpiece arrives at and / or leaves the workstation or the work section;
[0009] FPGA main control board, connected to each encoder and each photoelectric sensor, the FPGA main control board is provided with an FPGA chip, which is used to obtain the operation signal and the signal of each photoelectric sensor, so as to determine the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section;
[0010] The communication module is connected to the FPGA main control board and is used to receive the position of each workpiece at each time point when it passes through the production line or the time it passes through each workstation or section from the FPGA chip, and transmit or display it.
[0011] Optionally, a workpiece status detection device is also provided on the workstation or work section, and the FPGA main control board also obtains the workpiece status signal emitted by the workpiece status detection device, and transmits and / or displays it to the communication module after being processed by the FPGA chip.
[0012] Optionally, the FPGA main control board is also used to calculate and encapsulate the position, time and status information of the workpiece.
[0013] Optionally, the communication module includes a display circuit and / or a serial communication circuit directly connected to the FPGA main control board.
[0014] Optionally, the display circuit is an RGB display circuit, which is connected to a liquid crystal display screen; the serial port communication circuit is a GPRS communication circuit, which is connected to a remote host computer or a server.
[0015] Optionally, a signal conversion circuit is also included, which is used to convert the signal generated by the photoelectric sensor and / or the encoder into a signal that can be received or processed by the FPGA main control board.
[0016] Optionally, it also includes a key circuit connected to the FPGA main control board, and the key circuit is used to input parameters or instructions through keys so that the FPGA main control board performs corresponding operations.
[0017] Optionally, an alarm module is also included, which is connected to the FPGA main control board. When it is detected that the state of the workpiece does not meet the qualified standard, the alarm module sends out an alarm.
[0018] Optionally, the FPGA main control board also includes at least one of the following modules: a storage module, a program writing module, a clock generator and a signal indication module.
[0019] Another aspect of the present invention provides a method for positioning and tracing workpieces on a production line, which is executed by an FPGA chip on an FPGA main control board, and the method includes:
[0020] When each workpiece passes through the production line, the signal from the photoelectric sensor installed at each station or section of the production line is obtained or received, and each workpiece is numbered in sequence;
[0021] Obtain or receive the operation signal of the encoder set on the conveying device of the production line, and determine the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section based on the correspondence between the signal of the photoelectric sensor and the operation signal and taking the position of the photoelectric sensor as the initial position;
[0022] The position of each workpiece at each time point when passing through the production line or the time it takes to pass through each workstation or section is displayed or transmitted to an external device through a communication module.
[0023] Optionally, the photoelectric sensor includes a first photoelectric sensor arranged at the initial position of each workstation or section on the production line. When the conveying device moves at a constant speed, the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section is determined. The specific steps include:
[0024] Pre-operation production line, from the time the first photoelectric sensor detects each workpiece, the FPGA chip starts to record the encoder's counting signal and marks the encoder's value when the workpiece arrives at each station or section, and will use it as the standard value for each station or section;
[0025] After formal operation, the time when each numbered workpiece enters the initial position on each workstation or section is obtained according to the first photoelectric sensor, and the real-time value of the numbered workpiece when passing through the production line is determined according to the counting signal of the encoder, and the workstation or section reached by the numbered workpiece is judged based on the comparison result between the real-time value and the standard value.
[0026] Optionally, when the conveying device moves at a non-uniform speed, the photoelectric sensor further includes a second photoelectric sensor placed behind the first photoelectric sensor in the transmission direction of the production line, and the specific steps of determining the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section include:
[0027] The time when each numbered workpiece enters the initial position on each workstation or section is obtained according to the first photoelectric sensor;
[0028] Each numbered workpiece moves sequentially on the conveying device of the production line. When the second photoelectric sensor senses each numbered workpiece, the time when the numbered workpiece passes by is recorded, and the acceleration signal of the conveying device is determined;
[0029] The position of the workpiece with the specified number is determined based on the acceleration signal and the encoder's counting signal.
[0030] Optionally, the method further includes:
[0031] Acquire or receive a workpiece status signal from a workpiece status detection device disposed at a workstation or section, and merge the workpiece status signal into the position and time information of the workpiece.
[0032] Optionally, the position and time are displayed or transmitted to an external device via a communication module including:
[0033] After the photoelectric sensor detects the workpiece, a data packet is created for each numbered workpiece, and the position and time information of each numbered workpiece is obtained from the preset FIFO data stack and stored in the data packet. The subsequent workpiece status signal and processing signal are stored in the data packet as needed, and then the data packet is sent to the external device for analysis, query or display by the external device.
[0034] The advantages and beneficial effects of the present invention are:
[0035] The above solution adopts an FPGA chip suitable for high-speed processing, and uses encoders and photoelectric sensors to collect signals. It can track the position information of each workpiece on the production line in real time. At the same time, combined with the processing and detection of the workpieces in each section, the position information of each workpiece is packaged and integrated with other status information. By parsing the data packets of each workpiece, the information traceability, positioning and defect detection of each workpiece can be realized in real time, which solves the need for real-time monitoring of the position, precision measurement, and acquisition of product quality information of tiny workpieces moving at high speed in high-speed production lines. It can realize the positioning and tracking of workpieces, thereby accurately obtaining information such as the position and status of workpieces on high-speed production lines. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0037] Figure 1 It is a structural diagram of a workpiece positioning and information tracing system on a production line in one embodiment of the present invention;
[0038] Figure 2 A structural diagram of an RGB display circuit in one embodiment of the present invention;
[0039] Figure 3 A structural diagram of a GPRS communication circuit in one embodiment of the present invention;
[0040] Figure 4 A structural diagram of an optocoupler conversion circuit in one embodiment of the present invention;
[0041] Figure 5 A structural diagram of a key circuit in one embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the structure of some functional modules of an FPGA main control board in an embodiment of the present invention;
[0043] Figure 7 A flowchart of a method for positioning and tracing information of workpieces on a production line in one embodiment of the present invention;
[0044] Figure 8 The present invention is a flowchart for determining the position of a workpiece on a production line according to an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the specific embodiments of the present invention and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] It should be understood that the terms "include / comprise", "consist of..." or any other variations are intended to cover non-exclusive inclusion, so that a product, device, process or method that includes a series of elements includes not only those elements, but also may include other elements not explicitly listed when necessary, or also includes elements inherent to such product, device, process or method. In the absence of more restrictions, the elements defined by the sentence "include / comprise...", "consist of..." do not exclude the presence of other identical elements in the product, device, process or method that includes the elements.
[0047] In the present invention, unless otherwise clearly specified and limited, the terms "install", "connect", "connect", "fix", "set" and the like 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 mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0048] The workpiece in the present invention can be a workpiece on a production line, a component to be assembled and processed, or a semi-finished product or a finished product to be formed.
[0049] The information transmission between the circuits or functional modules in the present invention can be in a push mode or a pull mode, and can be passively received or actively acquired on one side.
[0050] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0051] An embodiment of the present invention discloses a workpiece positioning and information tracing system on a production line, wherein the production line includes a conveying device, which can continuously convey the workpiece, preferably a chain plate-shaped or conveyor belt-shaped annular conveying device, and the production line may include multiple workstations or work sections, and the processing procedures of each workstation and work section may be the same or different.
[0052] Specifically, the workpiece positioning and information tracing system on the production line includes but is not limited to one or more encoders, one or more photoelectric sensors, one or more FPGA main control boards, and clock generators, power supply circuits, storage modules, etc. arranged on the FPGA main control boards. The composition of the above system and the electrical connection relationship of each electronic component in the composition are as follows: Figure 1 shown.
[0053] Among them, the encoder is arranged on the conveying device of the production line. When multiple conveying devices are arranged on the production line, each conveying device can be provided with an encoder. The encoder is a device that compiles and converts signals (such as bit streams) or data into signal forms that can be used for communication, transmission and storage. The encoder converts angular displacement or linear displacement into electrical signals. The former is called a code disk, and the latter is called a yardstick. The preferred encoder in the present invention is a code disk type encoder. At this time, the encoder is fixed on the driving shaft or rotating shaft of the conveying device. The encoder can be used to obtain or receive the operation signals of one or more conveying devices in real time. According to the readout method, the encoder can be divided into contact type and non-contact type; according to the working principle, the encoder can be divided into incremental type and absolute type. The incremental encoder converts the displacement into a periodic electrical signal, and then converts the electrical signal into a counting pulse, and the number of pulses is used to represent the size of the displacement. Each position of the absolute encoder corresponds to a certain digital code, so its indication is only related to the starting and ending positions of the measurement, but not to the intermediate process of the measurement. The above embodiment can select the encoder as needed without specific limitation.
[0054] Preferably, the above-mentioned operation signal includes a counting signal, and the count is increased by one when the conveying device rotates a certain angle or moves a certain distance at regular intervals, thereby obtaining the position information of the workpiece when it passes by by measuring the angular displacement or linear displacement of the conveyor belt in the annular conveying device.
[0055] Photoelectric sensors can be set at the front end of the production line and on the side of each workstation or section to detect whether the workpiece has arrived. For example, when the workpiece passes by, a pulse signal is sent to the FPGA chip so that the position of the photoelectric sensor is used as the starting position and the specific position of the workpiece is determined based on the encoder's count, step length, and time.
[0056] FPGA main control board, the FPGA main control board is provided with an FPGA chip, the FPGA chip is used to obtain or receive the above-mentioned operation signal and the pulse signal of the photoelectric sensor, and correspond the signal of the above-mentioned photoelectric sensor and the operation position signal of the encoder, to determine the position of each workpiece at each time point when passing through the production line or the time it passes through each workstation or section.
[0057] It should be noted that FPGA (Field Programmable Gate Array) is a product further developed on the basis of programmable devices such as PAL and GAL. It emerged as a semi-custom circuit in the field of application-specific integrated circuits (ASIC), which not only solves the shortcomings of custom circuits, but also overcomes the shortcomings of the limited number of gate circuits of the original programmable devices. FPGA chips are not simply limited to research and design chips, but can be optimized and designed for products in many fields with the help of specific chip models. From the perspective of chip devices, FPGA itself constitutes a typical integrated circuit in semi-custom circuits, which contains digital management modules, embedded units, output units, and input units. FPGA chips focus on comprehensive chip optimization design, and add new chip functions by improving the current chip design, thereby simplifying the overall chip structure and improving performance. FPGA adopts the concept of logic cell array LCA (Logic Cell Array), which includes three parts: configurable logic module CLB (Configurable Logic Block), input and output module IOB (Input Output Block) and internal wiring (Interconnect). FPGA uses a small lookup table (16×1 RAM) to implement combinational logic. Each lookup table is connected to the input of a D flip-flop, which then drives other logic circuits or drives I / O, thus forming a basic logic unit module that can implement both combinational logic functions and sequential logic functions. These modules are connected to each other or to I / O modules using metal wires.
[0058] In addition, the above system also includes a communication module for receiving information such as the position of the workpiece at each time point when passing through the production line or the time it passes through each workstation or section from the FPGA chip, and transmitting and / or displaying the information.
[0059] Preferably, the communication module may include a display circuit for displaying the above information and a serial communication circuit for transmitting the above information over long distances.
[0060] In one or some embodiments, a workpiece status detection device is also provided on the workstation or work section, which can be detected by, for example, a camera or a light generating device, or of course, a photoelectric sensor, so as to realize information collection of features or defects processed at each workstation or work section. The FPGA main control board receives the workpiece status information transmitted by the workpiece status detection device, and after processing by the FPGA chip, for example, a preliminary judgment can be made on whether the processed features are qualified, and then the communication module can transmit and / or display the information.
[0061] The above-mentioned photoelectric sensor is preferably a color mark sensor. The basic working principle of the color mark sensor is to adopt the principle of light emission and reception, emit modulated light, receive the reflected light of the object to be measured, and distinguish different colors according to the strength of the received light signal to determine whether the object exists or not, whether there are defects, etc.
[0062] Therefore, when inspecting workpieces, when tiny workpieces of a few millimeters or tiny workpiece defects appear, the features of the workpiece or defect can be accurately identified through changes in color or brightness.
[0063] In one or some embodiments, the FPGA chip is also used to calculate and encapsulate the position, time and status information of the workpiece. Preferably, the above information can be transported and controlled by setting a FIFO stack module, and each workpiece entering the production line is numbered in sequence, a data packet is set for each numbered workpiece, and the subsequent information of the workpiece is added to its corresponding data packet, so as to obtain all the data features of the workpiece. In addition, the data in the data packet can be calculated and encapsulated as needed to facilitate the transportation and processing of the data packet.
[0064] In one or more embodiments, the communication module includes a display circuit and / or a serial communication circuit directly connected to the FPGA main control board. Figure 1 and Figure 2 As shown, the display circuit is an RGB display circuit, which is connected to the FPGA main control board and mainly includes a plurality of data input ports for converting length information into red, green and blue primary colors of the liquid crystal display LCD, thereby realizing the display of data in color on the liquid crystal display LCD.
[0065] The above serial communication circuit is preferably a GPRS communication circuit, and the GPRS communication circuit is connected to a remote host computer or server.
[0066] Specifically, the remote host computer is connected to the FPGA main control board via a GPRS communication circuit. The GPRS communication circuit is as follows: Figure 3 shown.
[0067] In one or more embodiments, see Figure 1 and Figure 4 As shown, the workpiece positioning and information tracing system on the production line also includes a signal conversion circuit for converting the signal generated by the photoelectric sensor and / or the encoder into a signal that can be received and processed by the FPGA main control board. For example, the signal conversion circuit is preferably an optocoupler conversion circuit, which can convert the electrical signal generated by the photoelectric sensor into an electrical signal that can be received and processed by the FPGA main control board, such as according to Figure 4It can be seen that the larger voltage signal such as 12V output by the photoelectric sensor is converted into a 3.3V electrical signal that can be received by the FPGA main control board through the middle photoelectric coupler LTV-816S-TAI(C).
[0068] In one or some embodiments, the workpiece positioning and information tracing system on the production line also includes a key circuit connected to the FPGA main control board, see Figure 5 As shown, it is used to input parameters or instructions through the buttons thereon so that the FPGA main control board performs corresponding operations.
[0069] In one or some embodiments, the workpiece positioning and information tracing system on the production line also includes an alarm module, such as a sound, indicator light, etc. The alarm module is connected to the FPGA main control board, and when it is detected that the state of the workpiece does not meet the qualified standard, the alarm module issues an alarm. For example, when it is detected that the processing length or radius size of the workpiece is not within the normal range, the alarm module issues an audible and visual alarm, which can remind the next station to process the defective workpiece or the workpiece with unqualified size.
[0070] In one or more embodiments, see Figure 6 As shown, the FPGA main control board uses a ZYNQ7000 high-speed chip and also includes at least one of the following modules: a storage module including DDR3, a 6-Pin JTAG program writing module, a CLOCK clock module, and an LED signal indication module, etc., so as to realize the above-mentioned signal reception, calculation, and display operations.
[0071] It should be noted that when the position signal of the encoder and the electrical signal of the photoelectric sensor are used to perform workpiece positioning and information tracing operations in the above embodiments, the program is written in Verilog language and is compiled by VIVADO software and written into the FPGA chip for execution.
[0072] See also Figure 7 A method for positioning and tracing workpieces on a production line is shown. The method is executed by a preset algorithm on an FPGA chip on an FPGA main control board. The algorithm can be written in Verilog language, etc., and written into the FPGA chip after compilation. The method specifically includes the following steps:
[0073] Step 110, when a workpiece appears on the production line, the FPGA chip can be used to obtain or receive a signal from a photoelectric sensor installed on the production line. The signal can be a pulse signal. Starting from the time the first workpiece enters the sensing range of the photoelectric sensor, each workpiece is numbered in sequence to facilitate subsequent calculations to determine the time when each workpiece appears at each workstation or section or the position at a certain point in time.
[0074] For example, the first workpiece that enters is coded as XXX00001. Then, each time the photoelectric sensor senses a workpiece, it sends a signal, and the number is increased by 1, thereby obtaining the number identification of the workpiece in processing.
[0075] Step 120, obtaining or receiving the operating signal of the encoder arranged on the conveying device of the production line. The operating signal is preferably a counting signal, and the count is increased by one after each standard time, which is similar to the step length of a ruler. The position of the workpiece can be determined according to the number of subsequent steps. The preset algorithm uses the position of the photoelectric sensor as the initial position, and uses the pulse signal of the photoelectric sensor as the trigger condition, combined with the operating signal, especially the statistical encoder count value, to determine the position of each workpiece at each time point when passing through the production line or the time it passes through each workstation or section.
[0076] Step 130, the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section is transmitted to an external device through a communication module, so as to facilitate the positioning and tracing of the workpiece on the production line.
[0077] Specifically, a highly sensitive photoelectric sensor can be set at the starting position of the production line to detect the initial position of each workpiece in real time, and can be positioned through the counting information of the encoder. After positioning, each workpiece is numbered, and each workpiece has a unified ID from the top to the bottom of the line, and a data packet is established for each workpiece. On the one hand, the current position information of each workpiece can be monitored in real time through the encoder, and after arriving at each section, the production information of the workpiece can also be filled into the data packet until the production is completed. After the numbered workpiece is processed, the data packet is sent out in real time, and the receiving end obtains the above data by parsing the data packet.
[0078] It should be noted that the above step numbers do not limit the order of the steps. According to needs, the above steps can be performed simultaneously, separately or sequentially.
[0079] In a preferred embodiment, a first photoelectric sensor may be provided at the initial position of a workstation or section of the production line. When the conveying device moves at a constant speed, the step of determining the position of each workpiece at each time point when it passes through the production line or the time it passes through each workstation or section in step 120 includes:
[0080] Before the formal processing, the production line is pre-run. From the time the first photoelectric sensor detects each workpiece, the FPGA chip starts to record the counting signal of the encoder and marks the value of the encoder when the workpiece arrives at each station or section. For example, the value can be counted as 0 at the initial position, and the value when it arrives at each station or section is the standard value; or the relative value obtained by subtracting the value of the encoder at the initial position from the value at each section can be used as the standard value of each station or section;
[0081] After formal operation, the time when each numbered workpiece enters the initial position on each workstation or section is obtained according to the first photoelectric sensor. If necessary, the physical delay can be compensated, and the real-time value of the numbered workpiece relative to the initial position at a certain time point is determined by recording and statistics based on the counting signal of the encoder. The position of the numbered workpiece is determined according to the difference between the real-time value and the standard value. For example, if the value is the same as a standard value, it means that the workpiece is at the workstation or section corresponding to the standard value.
[0082] like Figure 8 As shown in the figure, when the equipment is in trial operation, the FPGA will collect the counting signal of the encoder of the equipment, mark the value of the encoder when the workpiece arrives at each station or section, and determine the standard value of each station or section. In actual production, when the workpiece passes, the first photoelectric sensor is triggered, and the current encoder value is read as the initial value. Due to the existence of system errors, it can be delayed by 100ms. After a period of time, the encoder value is read again, and the difference is made with the initial value, and the difference is compared with the standard value marked in each section, so as to determine which marked section the workpiece has reached.
[0083] In one or some embodiments, a second photoelectric sensor is arranged behind the first photoelectric sensor in the transmission direction of the production line. When the conveying device moves at a non-uniform speed, the specific steps of determining the position and elapsed time of the workpiece when it passes through the workstation or section in step 130 include:
[0084] First, the time when each numbered workpiece enters the initial position on each workstation or section and the value of the encoder are obtained according to the first photoelectric sensor;
[0085] Each numbered workpiece moves sequentially on the conveying device of the production line. When the second photoelectric sensor senses the numbered workpiece, the time when the numbered workpiece passes and the value of the encoder are recorded. According to the difference between the above two positions, the acceleration signal of the conveying device is calculated and determined;
[0086] The position of the numbered workpiece at other times or the time it passes through a certain work section is determined based on the time, the acceleration signal and the counting signal of the encoder.
[0087] In one or some embodiments, the method also includes: obtaining or receiving a status signal of a workpiece status detection device arranged on a workstation or work section, preferably, the workpiece status detection device can detect defects on the workpiece through changes in color or brightness, and then merging the above-mentioned status signal into the aforementioned workpiece position and time information, thereby forming complete workpiece processing positioning and traceability information.
[0088] In one or some embodiments, step 130 transmits the above-mentioned position and time information to an external device through a communication module, specifically including: starting from the first photoelectric sensor detecting the first workpiece, establishing a data packet for each numbered workpiece, obtaining the position and time information from a preset FIFO data stack, wherein the position and time information in the FIFO data stack is obtained from the first photoelectric sensor, the second photoelectric sensor and the encoder, and then adding the subsequent position and time information to the data packet, and then sending the data packet to an external device as needed for the external device to parse, query or display.
[0089] The above description is only an embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, expansion, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A workpiece positioning and information tracing system on a production line, wherein the production line includes a plurality of workstations or sections, characterized in that: The workpiece positioning and information tracing system on the production line includes several encoders, several photoelectric sensors, an FPGA main control board and a communication module; wherein, Each of the encoders is fixedly arranged on the conveying device of the production line and is used to output the operation signal of the conveying device in real time; Each of the photoelectric sensors is arranged at the workstation or section, and is used to send a signal when detecting that each workpiece arrives at and / or leaves the workstation or section; The FPGA main control board is connected to each of the encoders and each of the photoelectric sensors. The FPGA main control board is provided with an FPGA chip for acquiring the operation signal and the signal of each of the photoelectric sensors, so as to determine the position of each workpiece at each time point when passing through the production line or the time when passing through each of the workstations or sections; The communication module is connected to the FPGA main control board, and is used to receive the position of each workpiece at each time point when it passes through the production line or the time it passes through each workstation or work section from the FPGA chip, and transmit or display it.
2. The workpiece positioning and information tracing system on the production line according to claim 1, characterized in that: The workstation or work section is also provided with a workpiece status detection device, and the FPGA main control board also obtains the workpiece status signal sent by the workpiece status detection device, and transmits and / or displays it to the communication module after being processed by the FPGA chip.
3. The workpiece positioning and information tracing system on the production line according to claim 2, characterized in that: The FPGA main control board is also used to calculate and encapsulate the position, time and status information of the workpiece.
4. The workpiece positioning and information tracing system on a production line according to any one of claims 1 to 3, characterized in that: The communication module includes a display circuit and / or a serial communication circuit directly connected to the FPGA main control board.
5. The workpiece positioning and information tracing system on the production line according to claim 4, characterized in that: The display circuit is an RGB display circuit, and the RGB display circuit is connected to a liquid crystal display screen; the serial port communication circuit is a GPRS communication circuit, and the GPRS communication circuit is connected to a remote host computer or a server.
6. The workpiece positioning and information tracing system on a production line according to any one of claims 1 to 3, characterized in that: It also includes a signal conversion circuit for converting the signal generated by the photoelectric sensor and / or the encoder into a signal that can be received or processed by the FPGA main control board.
7. The workpiece positioning and information tracing system on a production line according to any one of claims 1 to 3, characterized in that: It also includes a key circuit connected to the FPGA main control board, and the key circuit is used to input parameters or instructions through keys so that the FPGA main control board performs corresponding operations.
8. The workpiece positioning and information tracing system on the production line according to claim 2, characterized in that: It also includes an alarm module, which is connected to the FPGA main control board. When it is detected that the state of the workpiece does not meet the qualified standard, the alarm module sends out an alarm.
9. The workpiece positioning and information tracing system on a production line according to any one of claims 1 to 3, characterized in that: The FPGA main control board also includes at least one of the following modules: a storage module, a program writing module, a clock generator and a signal indication module.
10. A method for workpiece positioning and information tracing on a production line, executed by an FPGA chip on an FPGA main control board, characterized in that: The method comprises: When each of the workpieces passes through the production line, a signal from a photoelectric sensor disposed at each station or section of the production line is acquired or received, and each of the workpieces is numbered in sequence; Obtain or receive the operation signal of the encoder provided on the conveying device of the production line, and determine the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section according to the correspondence between the signal of the photoelectric sensor and the operation signal and taking the position of the photoelectric sensor as the initial position; The position of each workpiece at each time point when passing through the production line or the time it passes through each workstation or section is displayed or transmitted to an external device through a communication module.
11. The method for positioning and tracing workpiece information on a production line according to claim 10, characterized in that: The photoelectric sensor includes a first photoelectric sensor arranged at the initial position of each workstation or section on the production line. When the conveying device moves at a constant speed, the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section is determined. The specific steps include: Pre-run the production line, from the time when the first photoelectric sensor detects each workpiece, the FPGA chip starts to record the counting signal of the encoder, and marks the value of the encoder when the workpiece arrives at each workstation or section as the standard value of each workstation or section; After formal operation, the time when each numbered workpiece enters the initial position on each workstation or section is obtained according to the first photoelectric sensor, and the real-time value of the numbered workpiece relative to the initial position at a certain time point is determined according to the counting signal of the encoder, and the workstation or section reached by the numbered workpiece is judged according to the comparison result between the real-time value and the standard value.
12. The method for positioning and tracing workpiece information on a production line according to claim 11, characterized in that: When the conveying device moves at a non-uniform speed, the photoelectric sensor further includes a second photoelectric sensor placed behind the first photoelectric sensor in the transmission direction of the production line, and the specific steps of determining the position of each workpiece at each time point when passing through the production line or the time when passing through each workstation or section include: Acquiring the time when each of the numbered workpieces enters the initial position on each of the workstations or sections according to the first photoelectric sensor; Each numbered workpiece moves sequentially on the conveying device of the production line. When the second photoelectric sensor senses each numbered workpiece, the time when the numbered workpiece passes by is recorded, and an acceleration signal of the conveying device is determined; The position of the numbered workpiece is determined according to the acceleration signal and the counting signal of the encoder.
13. The method for positioning and tracing workpiece information on a production line according to any one of claims 10 to 12, characterized in that: The method further comprises: Acquire or receive a workpiece status signal of a workpiece status detection device arranged at the workstation or section, and merge the workpiece status signal into the position and time information of the workpiece.
14. The method for positioning and tracing workpiece information on a production line according to any one of claims 10 to 12, characterized in that: Displaying or transmitting the position of each workpiece at each time point when it passes through the production line or the time it passes through each workstation or section to an external device through a communication module includes: After the photoelectric sensor detects the workpiece, a data packet is created for each numbered workpiece, the position and time information of each numbered workpiece is obtained from a preset FIFO data stack and stored in the data packet, and subsequent workpiece status signals and processing signals are stored in the data packet as needed, and then the data packet is sent to an external device for the external device to parse, query or display.