Disclosure of Invention
In view of the above, the invention aims to provide a plate size precision detection device and a control method thereof to solve the problems that the plate size detection device in the prior art has low detection precision and low detection speed and cannot meet the production line production mode.
In order to achieve the above purpose, the technical scheme of the invention is realized as follows:
the plate size precision detection equipment comprises a machine body, wherein the machine body is provided with a conveying part, and the conveying part is used for conveying plates;
the front end part of the machine body is provided with a detection device, a code reading device, a photographing device and a lighting device, wherein the detection device is used for detecting the position information of the plate, the code reading device is used for reading the two-dimensional code information on the surface of the plate and sending the read two-dimensional code information to the control device, the photographing device is used for collecting the image information on the surface of the plate and sending the image information to the control device, and the lighting device is used for enhancing the brightness of the surface of the plate and improving the imaging quality of the image;
the rear end part of the machine body is provided with a driving device and a labeling device, the driving device is used for driving the conveying part to enable the plate to move along with the conveying part, and the labeling device is used for labeling the plate;
the control device controls the working states of the code reading device, the photographing device, the lighting device and the driving device according to the plate position information fed back by the detection device, analyzes and compares the received two-dimensional code information with the image information, and controls the working state of the labeling device according to the comparison result.
The application panel size precision detection equipment, its overall structure is simple, can reduce equipment mechanical structure complexity, effectively reduces equipment size, reduction in production cost of equipment, and panel can accomplish in the high-speed motion process and take a picture, calculate and judge and result output, can show the precision that improves panel detection, can also improve detection speed greatly.
Further, the detection device comprises a first sensor and a second sensor, the first sensor and the second sensor are respectively arranged on the front side and the rear side of the code reading device, when the control device receives a plate in-place signal sent by the first sensor, the control device controls the code reading device to read two-dimensional code information on the surface of the plate, when the control device receives the plate in-place signal sent by the second sensor, the control device controls the photographing device to collect image information on the surface of the plate, and meanwhile controls the lighting device to assist in lighting the plate.
The arrangement can ensure accurate acquisition of plate position information, two-dimensional code information and image information, and improves detection precision and efficiency.
Further, the driving device comprises a servo motor, a servo controller and a driving shaft, wherein the servo motor is used for driving the driving shaft to rotate, the driving shaft is used for driving the conveying part to move, the servo controller controls the working state of the servo motor according to signals of the control device, and an encoder is arranged in the driving shaft and is used for calculating the specific position of the plate on the conveying part.
The arrangement can realize high-speed and accurate movement of the conveying part and accurate positioning of the plate, and greatly improves the reliability and stability of the system.
Further, the control device comprises a PLC controller and an industrial PC, and the PLC controller controls the working states of the code reading device, the photographing device, the lighting device and the driving device according to the plate position information fed back by the detection device; the industrial PC is used for receiving information fed back by the code reading device and the photographing device, analyzing and comparing the received two-dimensional code information with the image information, and sending a comparison result to the PLC, and the PLC controls the working state of the labeling device according to the comparison result; the industrial PC also comprises a display, wherein the display is used for displaying the two-dimensional code information, the image information and the comparison result.
Through the combination of the PLC and the industrial PC, the coordination control and the data processing of each device are realized, the efficiency and the reliability of the system are improved, and the user can conveniently check the comparison result in real time.
Further, the photographing device comprises a first camera and a second camera, the first camera and the second camera are arranged in parallel and are used for photographing the plate synchronously, and the first camera and the second camera are both arranged as 2D line scanning cameras.
This arrangement can achieve higher image resolution and definition and improve the accuracy of detection.
Further, the control device comprises a first acquisition card, a second acquisition card and a time sequence controller, wherein the first camera is connected with the first acquisition card, the second camera is connected with the second acquisition card, and the time sequence controller realizes synchronous photographing of each camera according to signals sent by the PLC controller and the encoder; after the first camera and the second camera acquire images line by line on the plate moving on the conveying part, the first camera sends acquired image information to the first acquisition card, the second camera sends acquired image information to the second acquisition card, the first acquisition card and the second acquisition card process the image information and then send the processed image information to the industrial PC, and the industrial PC processes and analyzes the image information and outputs a judging result.
The arrangement can ensure the synchronism of the plate in line-by-line image acquisition and the rapid processing of the acquired image information.
Further, the lighting device comprises a light source controller for controlling the brightness and the on-off state of the lighting device.
The arrangement can adjust the brightness and the on-off state of the lighting device according to the requirement, improve the brightness of the surface of the plate and enhance the imaging quality of the image.
Furthermore, the industrial PC and the PLC are connected through Ethernet, and a data transmission protocol adopts a ModbusTCP protocol to transmit data; the industrial PC and the code reading device are connected through an RS-C interface, data transmission adopts protocol-free mode communication, and after the code reading device reads the two-dimensional code information, the two-dimensional code information is sent to the industrial PC through the RS-C interface in an ASCII code mode.
The arrangement can provide a high-speed, stable and flexible data transmission mode, and meanwhile, the accuracy and the uniformity of data are ensured.
Further, the industrial PC is connected with the PLC through a switch.
The arrangement can realize high-speed data transmission and can ensure stable and reliable network communication between the industrial PC and the PLC controller.
The invention also provides a control method of the plate size precision detection equipment, which is applied to the plate size precision detection equipment and comprises the following steps:
s1: starting a plate size precision detection device, and placing a plate to be detected on the conveying part;
s2: when a plate passes through the first sensor, the first sensor sends a plate in-place signal to the PLC controller, the PLC controller sends a trigger code reading signal to the code reading device according to the received plate in-place signal, after the code reading device receives the trigger code reading signal, the code reading device starts to read two-dimensional code information on the plate, after the code reading device finishes reading the two-dimensional code information, the read two-dimensional code information is sent to the industrial PC, and a code reading success signal is fed back to the PLC controller;
s3: when a plate passes through the second sensor, the second sensor sends a plate in-place rising edge signal to the PLC controller, the PLC controller sends an enabling signal to the first camera, the second camera and the time sequence controller according to the received rising edge signal, the time sequence controller starts to receive a differential pulse signal from the encoder after receiving the enabling signal from the PLC controller, then the time sequence controller sends the pulse signal to the first camera and the second camera, after receiving the pulse signal of the time sequence controller, the first camera and the second camera start to take pictures of the plate line by line according to the received pulse signal, when the PLC controller receives the falling edge signal from the second sensor, the PLC controller stops sending the enabling signal to the first camera, the second camera and the time sequence controller, and at the moment, the first camera, the second camera and the time sequence controller stop working, and the picture taking of the current plate is finished;
s4: the first camera and the second camera send the acquired image information to an industrial PC, the industrial PC calculates and processes the image, the size information and the judging result of the plate are output, meanwhile, the judging result is sent to a PLC (programmable logic controller), and the PLC controls the working state of the labeling device according to the judging result after receiving the judging result.
According to the control method of the plate size precision detection equipment, the plurality of 2D line scanning cameras are utilized to synchronously photograph and capture images, the precision of plate detection can be remarkably improved, the accuracy of plate detection is effectively guaranteed, meanwhile, manual operation can be reduced, and the detection efficiency is improved.
Compared with the prior art, the plate size precision detection equipment and the control method have the following advantages:
1) The accuracy of plate detection can be obviously improved, and the accuracy of plate detection is effectively ensured;
2) Manual operation is reduced, and detection speed is improved.
Detailed Description
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings.
Example 1
As shown in fig. 1 to 3, a sheet size precision detection apparatus includes a machine body 1, the machine body 1 is provided with a conveying part 11, and the conveying part 11 is used for conveying a sheet 100;
the front end part of the machine body 1 is provided with a detection device 2, a code reading device 3, a photographing device 4 and a lighting device 5, wherein the detection device 2 is used for detecting the position information of the plate 100, the code reading device 3 is used for reading the two-dimensional code information on the surface of the plate 100 and sending the read two-dimensional code information to a control device 8, the photographing device 4 is used for collecting the image information on the surface of the plate 100 and sending the image information to the control device 8, and the lighting device 5 is used for enhancing the brightness of the surface of the plate 100 and improving the imaging quality of the image;
the rear end part of the machine body 1 is provided with a driving device 6 and a labeling device 7, the driving device 6 is used for driving the conveying part 11 to enable the plate 100 to move along with the conveying part 11, and the labeling device 7 is used for labeling the plate 100;
the control device 8 controls the working states of the code reading device 3, the photographing device 4, the lighting device 5 and the driving device 6 according to the plate position information fed back by the detection device 2, analyzes and compares the received two-dimensional code information with the image information, and controls the working state of the labeling device 7 according to the comparison result.
Specifically, the application panel size precision detection equipment, its overall structure is simple, can reduce equipment mechanical structure complexity, effectively reduces equipment size, reduction in production cost of equipment, and panel 100 can accomplish in the high-speed motion process and take a picture, calculate judgement and result output, can show the precision that improves panel 100 and detect, can also improve detection speed greatly.
As a preferred example of the present invention, the detecting device 2 includes a first sensor 21 and a second sensor 22, where the first sensor 21 and the second sensor 22 are respectively disposed on front and rear sides of the code reading device 3, the control device 8 controls the code reading device 3 to read two-dimensional code information on the surface of the board 100 when receiving the board in-place signal sent by the first sensor 21, and the control device 8 controls the photographing device 4 to collect image information on the surface of the board 100 when receiving the board in-place signal sent by the second sensor 22, and controls the lighting device 5 to perform auxiliary lighting on the board 100.
Specifically, the arrangement can ensure accurate acquisition of plate position information, two-dimensional code information and image information, and improve detection precision and efficiency.
Preferably, the first sensor 21 and the second sensor 22 belong to photoelectric displacement sensors for sensing the presence or absence of the sheet material 100, such as photoelectric switch sensors commonly known in the art.
As a preferred example of the present invention, the driving device 6 includes a servo motor for driving the driving shaft to rotate, a servo controller for driving the conveying part 11 to move, and a driving shaft, wherein the servo controller controls the working state of the servo motor according to the signal of the control device 8, and an encoder is disposed in the driving shaft and is used for calculating the specific position of the board 100 on the conveying part 11.
Specifically, the encoder calculates the specific position of the plate 100 on the conveying part 11, so that the accurate control and positioning of the plate position can be realized, the servo motor can provide high-speed and high-precision motion control, the conveying part 11 can rapidly and stably move, the servo controller can realize the accurate control and protection of the servo motor, the reliability and stability of the system are further improved, the arrangement can realize the high-speed and accurate movement of the conveying part 11 and the accurate positioning of the plate 100, and the reliability and stability of the system are greatly improved.
As a preferred example of the present invention, the control device 8 includes a PLC controller and an industrial PC, where the PLC controller controls the working states of the code reading device 3, the photographing device 4, the lighting device 5 and the driving device 6 according to the plate position information fed back by the detecting device 2; the industrial PC is used for receiving information fed back by the code reading device 3 and the photographing device 4, analyzing and comparing the received two-dimensional code information with the image information by utilizing plate size precision detection software, and sending a comparison result to the PLC, wherein the PLC controls the working state of the labeling device 7 according to the comparison result; the industrial PC also comprises a display, wherein the display is used for displaying a UI interface, two-dimensional code information, image information and a comparison result of the plate size precision detection software.
Specifically, through the combination of the PLC controller and the industrial PC, coordination control and data processing of each device are realized, the efficiency and reliability of the system are improved, and a user can check a comparison result in real time.
Preferably, the plate size precision detection software is the prior art and will not be described in detail.
Preferably, the PLC controller receives the plate in-place signal fed back by the first sensor 21 through the input point X3, processes the received plate in-place signal by the preset program logic in the PLC controller, and then controls the code reading device 3 to read the code, the PLC controller receives the plate in-place signal fed back by the second sensor 22 through the input point X4, and the PLC controller controls the first camera 41 and the second camera 42 to take a photograph and take a picture after processing the received plate in-place signal by the preset program logic in the PLC controller according to the plate in-place signal fed back by the second sensor 22.
Preferably, the PLC controller is connected with the encoder through the twisted pair with shielding, the PLC controller receives the differential pulse signal of the encoder through the high-speed input points X0 and X1, counts the differential pulse signal, and combines the intrinsic parameters of the transmission part 11 to calculate the specific position of the board 100 on the transmission part 11, and according to the delay code scanning distance and the delay trigger photographing distance set in the board size precision detection software, the board 100 performs two-dimensional code reading when passing through the delay code scanning distance after passing through the first sensor 21, and meanwhile, the board 100 performs image photographing and collecting when passing through the delay trigger photographing distance after passing through the second sensor 22.
Preferably, the PLC controller sends a signal for triggering the code reading to the code reading device 3 through the output point Y12, and is used for triggering the code reading device 3 to perform the code reading operation, after the code reading device 3 receives the signal for triggering the code reading, the two-dimensional code information on the board 100 starts to be collected, after the collection is completed, the collected two-dimensional code information is sent to the industrial PC, and the signal fed back by the code reading device 3 is received through the input point X2, so as to judge whether the two-dimensional code on the current board 100 is successfully read.
Preferably, the code reading device 3 is connected with the industrial PC by adopting an RS232-C serial port communication line of a DB9 interface.
Preferably, the PLC controller receives signals fed back from the first sensor 21 and the second sensor 22 through the input points X3 and X4 to monitor the position of the board 100 on the conveyor 11, and outputs control signals to the driving device 6, the photographing device 4, the lighting device 5 and the labeling device 7 after processing by a program preset in the PLC controller.
Preferably, the PLC controller and the encoder are connected by a shielded twisted pair, and the PLC controller receives differential pulse signals of the encoder through the high-speed input points X0 and X1 for monitoring the motion parameters of the sheet material 100 on the conveying part 11, thereby completing the full closed loop control.
Preferably, parameters such as an electronic gear ratio of the servo controller are set by using servo configuration software, and the PLC controller outputs pulse signals and direction signals to the servo controller through output points Y0 and Y4 to control parameters such as a rotation speed, a direction, and a running distance of the conveying section 11 so that the sheet material 100 can be moved on the conveying section 11 at the set speed and direction.
Preferably, the PLC transmits an enabling signal to the labeling device 7 through the output point Y14, and is used for activating the labeling device 7 to perform labeling, after the labeling device 7 receives the enabling signal of the output point Y14, a corresponding mark is pasted on the plate 100 passing through the labeling device 7, when the plate 100 is unqualified in size, the labeling device 7 pastes the corresponding mark on the surface of the plate 100, and unqualified plate 100 is conveniently identified, and when the plate 100 is qualified in size, labeling is not needed.
As a preferred example of the present invention, the photographing device 4 includes a first camera 41 and a second camera 42, the first camera 41 and the second camera 42 are disposed in parallel and photograph the board 100 synchronously, and the first camera 41 and the second camera 42 are both disposed as 2D line scan cameras.
In particular, the 2D line scan camera is adapted to capture images of objects moving at high speed, by scanning the object line by line and combining the lines into one complete image, so that the 2D line scan camera can generate high resolution images, which can achieve higher image resolution and definition, and improve the accuracy of detection.
As a preferred example of the present invention, the control device 8 includes a first acquisition card, a second acquisition card, and a timing controller, where the first camera 41 is connected to the first acquisition card, the second camera 42 is connected to the second acquisition card, and the timing controller implements synchronous photographing of each camera according to signals sent by the PLC controller and the encoder;
after the first camera 41 and the second camera 42 perform line-by-line image capturing on the board 100 moving on the conveying part 11, the first camera 41 sends the collected image information to the first collecting card, the second camera 42 sends the collected image information to the second collecting card, the first collecting card and the second collecting card process the image information and send the processed image information to the industrial PC, and the industrial PC processes and analyzes the image information by using board size precision detection software and outputs a determination result.
Specifically, the PLC controller transmits an enable signal to the first and second acquisition cards through the output point Y10, and is used for activating the first and second acquisition cards, and the PLC controller transmits an enable signal to the timing controller through the output point Y11, and is used for activating the timing controller, when the first and second acquisition cards receive the enable signal of the PLC controller, the first and second acquisition cards are activated, start to process the pulse signal from the timing controller, and the first and second acquisition cards control the first and second cameras 41 and 42 to take a picture of the board 100 line by line according to the pulse signal of the timing controller, and then transmit image information to the industrial PC through the first and second acquisition cards.
Preferably, the time sequence controller and the encoder are connected through a shielded twisted pair, the time sequence controller is activated after receiving an enabling signal of the output point Y11, the activated time sequence controller starts to process a differential pulse signal from the encoder, and the received differential pulse signal is synchronously transmitted to a first acquisition card and a second acquisition card through output interfaces OUT1 < + >, OUT2 < + > and OUT2 < - >, respectively, of the time sequence controller after being subjected to filter shaping and pulse synchronization of an internal circuit of the time sequence controller, and the first acquisition card and the second acquisition card respectively control the first camera 41 and the second camera 42 to synchronously photograph and acquire images of the plate 100.
As a preferred example of the present invention, the lighting device 5 includes a light source controller for controlling the brightness and the on-off state of the lighting device 5.
Specifically, the PLC controller transmits an enable signal to the light source controller through the output point Y13, for controlling the light source controller to supply power to the lighting device 5 for auxiliary lighting, and the light source controller can control the light source controller through the enable signal of the PLC controller, so that the brightness and the on-off state of the lighting device 5 can be adjusted as required, the brightness of the surface of the board 100 is improved, and the imaging quality of the image is enhanced.
As a preferred example of the present invention, the industrial PC and the PLC controller are connected by Ethernet, and the data transmission protocol adopts ModbusTCP protocol to transmit data; the industrial PC and the code reading device 3 are connected through an RS232-C interface, data transmission adopts protocol-free mode communication, and after the code reading device 3 reads the two-dimensional code information, the two-dimensional code information is sent to the industrial PC through the RS232-C interface in an ASCII code mode.
Specifically, high-speed data transmission can be realized through Ethernet connection and ModbusTCP protocol, response speed and efficiency of a system are improved, modbusTCP protocol is a common industrial communication protocol, stability and reliability are good, accuracy and integrity of data transmission can be ensured, connection is established with the code reading device 3 through an RS232-C interface, communication can be flexibly performed with the code reading devices 3 of different models and brands, compatibility and expandability of the system are improved, the code reading device 3 sends two-dimensional code information to an industrial PC in the form of ASCII codes, data formats are unified, subsequent data processing and analysis are convenient, and the arrangement can provide a high-speed, stable and flexible data transmission mode, and meanwhile, accuracy and uniformity of data are ensured.
As a preferred example of the present invention, the industrial PC is connected to the PLC controller through a switch.
In particular, the arrangement can realize high-speed data transmission and can ensure stable and reliable network communication between the industrial PC and the PLC controller.
Preferably, the industrial PC, the switch and the PLC are connected through a TCP/IP communication line, and the TCP/IP communication line is an Internet general network line.
The invention also provides a control method of the plate size precision detection equipment, which is applied to the plate size precision detection equipment and comprises the following steps:
s1: starting the plate size precision detection equipment, and placing the plate 100 to be detected on the conveying part 11;
s2: when the plate 100 passes through the first sensor 21, the first sensor 21 sends a plate in-place signal to the PLC controller, the PLC controller sends a trigger code reading signal to the code reading device 3 according to the received plate in-place signal, after the code reading device 3 receives the trigger code reading signal, the code reading device 3 starts to read the two-dimensional code information on the plate 100, after the code reading device 3 finishes reading the two-dimensional code information, the read two-dimensional code information is sent to the industrial PC, and a code reading success signal is fed back to the PLC controller;
s3: when the sheet material 100 passes through the second sensor 22, the second sensor 22 sends a sheet material 100 in-place rising edge signal to the PLC controller, the PLC controller sends an enabling signal to the first camera 41, the second camera 42 and the time sequence controller according to the received rising edge signal, the time sequence controller starts to receive a differential pulse signal from an encoder after receiving the enabling signal from the PLC controller, then the time sequence controller sends the pulse signal to the first camera 41 and the second camera 42, after the first camera 41 and the second camera 42 receive the pulse signal of the time sequence controller, photographing and image taking are started to be carried out on the sheet material 100 line by line according to the received pulse signal, when the PLC controller receives the falling edge signal from the second sensor 22, the PLC controller stops sending the enabling signal to the first camera 41, the second camera 42 and the time sequence controller, and the first camera 41 stops working at the moment, and the second camera 42 end the image taking of the current sheet material 100;
s4: the first camera 41 and the second camera 42 send the acquired image information to an industrial PC, the industrial PC calculates the image by using the sheet size precision detection software and outputs the size information and the determination result of the sheet 100, and meanwhile, the sheet size precision detection software sends the determination result to a PLC controller, and the PLC controller controls the working state of the labeling device 7 according to the determination result after receiving the determination result.
According to the control method of the plate size precision detection equipment, the plurality of 2D line scanning cameras are utilized for synchronously photographing and drawing, the detection precision of the plate 100 can be remarkably improved, the detection accuracy of the plate 100 is effectively ensured, meanwhile, manual operation can be reduced, and the detection efficiency is improved.
Compared with the prior art, the plate size precision detection equipment and the control method have the following advantages: 1) The plurality of 2D line scanning cameras are utilized to synchronously photograph and pick up pictures, so that the detection accuracy of the plate 100 can be remarkably improved, and the detection accuracy of the plate 100 is effectively ensured; 2) Photographing, drawing, calculation and judgment and result output can be completed in the high-speed movement process of the plate 100, so that manual operation is reduced, and the detection speed is improved; 3) The whole structure of the equipment is simple, the size of the equipment is effectively reduced, and the production cost of the equipment is reduced.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be made by one skilled in the art without departing from the spirit and scope of the invention, and the scope of the invention should be assessed accordingly to that of the appended claims.