Disclosure of Invention
The embodiment of the invention provides a detection system and a detection method, which are used for solving the problems that the traditional production and manufacturing execution system is separated from production line production, excessively depends on subjective activity of people, and cannot timely and accurately feed back the production condition of a workshop production line in the prior art.
An embodiment of the present invention provides a detection system, including: an information processing apparatus and a detection apparatus; the data interface of the information processing equipment is connected with the data interface of the detection equipment;
the detection equipment is used for scanning a code of a product to be detected, acquiring data information of the product to be detected and transmitting the data information to the information processing equipment through a data interface, wherein the data information at least comprises identification information of the product to be detected and data information corresponding to a current process; when a first control signal sent by the information processing equipment is received, returning the product to be detected to the missing scanning process; when a second control signal sent by the information processing equipment is received, carrying out electrical detection on the product to be detected, and judging whether the product to be detected is a good product or not according to a detection result; if yes, sending a third control signal to the information processing equipment, otherwise, ending;
the information processing equipment is used for continuously matching the acquired data information with data information corresponding to a previous process of the product to be detected and production line data information, and judging whether a process missing scanning condition exists in the product to be detected or not; if so, sending the first control signal to the detection equipment, otherwise, sending the second control signal to the detection equipment; and when the third control signal is received, carrying out non-defective product calculation on the product to be detected.
In a possible implementation manner, in the detection system provided in an embodiment of the present invention, the detection device is further configured to issue an alarm prompt when receiving the first control signal.
In a possible implementation manner, in the detection system provided in an embodiment of the present invention, the detection device is further configured to control the product to be detected to enter a re-judgment process when the product to be detected is determined to be a bad product.
In a possible implementation manner, in the detection system provided by an embodiment of the present invention, the detection device is a lighting machine, and the lighting machine includes: a carrier and a control panel; wherein the content of the first and second substances,
a miniature code scanning gun is integrated on the carrying platform, and the miniature code scanning gun is provided with a data interface for data communication with the information processing equipment; the microscope carrier is used for placing the product to be detected, the miniature code scanning gun is used for scanning the code of the product to be detected, acquiring data information of the product to be detected and transmitting the data information to the information processing equipment through a data interface;
the control panel is provided with a data interface for data communication with the information processing equipment, and the control panel is used for returning the product to be detected to the missing scanning process when receiving a first control signal sent by the information processing equipment; when a second control signal sent by the information processing equipment is received, lighting detection is carried out on the product to be detected, and whether the product to be detected is a good product or not is judged according to a detection result; if so, sending a third control signal to the information processing equipment, otherwise, ending.
In a possible implementation manner, in the detection system provided in an embodiment of the present invention, the control panel is further configured to issue an alarm prompt when receiving the first control signal.
In a possible implementation manner, in the detection system provided in an embodiment of the present invention, the control panel is further configured to control the product to be tested to enter a re-judging process when the product to be tested is determined to be a bad product.
The embodiment of the invention provides a detection method, which comprises the following steps:
scanning a code of a product to be detected and acquiring data information of the product to be detected, wherein the data information at least comprises identification information of the product to be detected and data information corresponding to a current process;
continuously matching the acquired data information with data information corresponding to a previous process of the product to be detected and production line data information, and judging whether the product to be detected has a process missing scanning condition or not; if yes, sending a first control signal, otherwise, sending a second control signal;
when the first control signal is received, returning the product to be detected to the missing scanning process; when the second control signal is received, carrying out electrical detection on the product to be detected, and judging whether the product to be detected is a good product or not according to a detection result; if yes, sending a third control signal, otherwise, ending;
and when the third control signal is received, carrying out non-defective product calculation on the product to be detected.
In a possible implementation manner, in the detection method provided in an embodiment of the present invention, scanning a code of a product to be detected and acquiring data information of the product to be detected specifically includes:
and placing the product to be detected on a carrying platform, scanning the code of the product to be detected by adopting a miniature code scanning gun and acquiring the data information of the product to be detected.
In a possible implementation manner, the detection method provided in an embodiment of the present invention further includes: and sending out an alarm prompt when the first control signal is received.
In a possible implementation manner, the detection method provided in an embodiment of the present invention further includes: and controlling the product to be detected to enter a re-judging procedure when the product to be detected is judged to be a bad product.
The embodiment of the invention has the beneficial effects that:
the embodiment of the invention provides a detection system and a detection method, wherein the detection system comprises: an information processing apparatus and a detection apparatus; the data interface of the information processing equipment is connected with the data interface of the detection equipment, so that data communication between the detection equipment and the information processing equipment can be realized; the detection equipment can transmit data information of a product to be detected to the information processing equipment, perform electrical detection on the product to be detected according to a control signal transmitted by the information processing equipment, and transmit a corresponding control signal to the information processing equipment after the electrical detection; the information processing equipment judges whether the product to be detected has a process missing scanning condition or not according to the data information transmitted by the detection equipment, sends a corresponding control signal to the detection equipment, and determines whether to perform good product calculation or not according to the control signal transmitted by the detection equipment. Compared with the prior art in which data processing depends on interaction between people and an information system, the detection system provided by the embodiment of the invention can effectively combine production line production with information processing such as electrical inspection and computer, greatly shortens the working hours, improves the automation and the intellectualization of the production line, and effectively intercepts the continuous flow of missed products to the next process.
Detailed Description
The following describes in detail specific embodiments of a detection system and a detection method according to an embodiment of the present invention with reference to the accompanying drawings.
An embodiment of the present invention provides a detection system, as shown in fig. 1, which may include: an information processing apparatus 01 and a detection apparatus 02; wherein, the data interface of the information processing device 01 is connected with the data interface of the detection device 02;
the detection device 02 is used for scanning a code of a product to be detected, acquiring data information of the product to be detected, and transmitting the data information to the information processing device through a data interface, wherein the data information at least comprises identification information of the product to be detected and data information corresponding to a current process; when a first control signal sent by the information processing equipment 01 is received, returning the product to be detected to the missing scanning process; when a second control signal sent by the information processing equipment 01 is received, performing electrical detection on the product to be detected, and judging whether the product to be detected is a good product or not according to a detection result; if yes, sending a third control signal to the information processing device 01, otherwise, ending;
the information processing equipment 01 is used for continuously matching the acquired data information with data information corresponding to a previous process of the product to be detected and production line data information, and judging whether a process missing scanning condition exists in the product to be detected or not; if yes, sending a first control signal to the detection device 02, otherwise, sending a second control signal to the detection device 02; and when the third control signal is received, the good product to be tested is subjected to electric calculation.
The detection system provided by the embodiment of the invention comprises: an information processing apparatus and a detection apparatus; the data interface of the information processing equipment is connected with the data interface of the detection equipment, so that data communication between the detection equipment and the information processing equipment can be realized; the detection equipment can transmit data information of a product to be detected to the information processing equipment, perform electrical detection on the product to be detected according to a control signal transmitted by the information processing equipment, and transmit a corresponding control signal to the information processing equipment after the electrical detection; the information processing equipment judges whether the product to be detected has a process missing scanning condition or not according to the data information transmitted by the detection equipment, sends a corresponding control signal to the detection equipment, and determines whether to perform good product calculation or not according to the control signal transmitted by the detection equipment. Compared with the prior art in which data processing depends on interaction between people and an information system, the detection system provided by the embodiment of the invention can effectively combine production line production with information processing such as electrical inspection and computer, greatly shortens the working hours, improves the automation and the intellectualization of the production line, and effectively intercepts the continuous flow of missed products to the next process.
In specific implementation, in the detection system provided in the embodiment of the present invention, the detection device is further configured to issue an alarm prompt when receiving the first control signal. Specifically, the detection device can scan a code of a product to be detected and acquire data information corresponding to the product to be detected, and input the data information into the information processing device in real time through the data interface, and then the information processing device continuously matches the acquired data information with data information corresponding to a previous process of the product to be detected and production line data information, and determines whether a process missing scanning condition occurs on the product to be detected, if so, the information processing device can send a corresponding control signal to the detection device to inform the detection device that the process missing scanning condition occurs on the product to be detected, and meanwhile, the detection device can send an alarm prompt when receiving a first control signal, so that an industrial worker can find the missing scanning condition in time.
In specific implementation, in the detection system provided in the embodiment of the present invention, the detection device is further configured to control the product to be detected to enter a re-judgment process when the product to be detected is determined to be a defective product. Specifically, after the product to be detected enters the electrical property detection stage, the detection device judges whether the product to be detected is a good product or not according to the detection result, if the product to be detected is found to be a bad product, the product is controlled to enter a re-judgment process, the problem and defect of the product are further determined, a corresponding control signal is sent to the information processing device, and the information processing device is informed not to perform electric calculation on the product.
In a specific implementation, in the detection system provided in an embodiment of the present invention, as shown in fig. 2, the detection device may be a lighting device, and the lighting device includes: a carrier 1 and a control panel 2; wherein the content of the first and second substances,
a micro code scanning gun 3 is integrated on the carrying platform 1, and the micro code scanning gun 3 is provided with a data interface for data communication with the information processing equipment (the data interface of the micro code scanning gun in fig. 2 is connected with the data interface of the terminal host 4 of the information processing equipment); the carrying platform 1 is used for placing a product to be detected, and the micro code scanning gun 3 is used for scanning the code of the product to be detected, acquiring data information of the product to be detected and transmitting the data information to the information processing equipment through a data interface;
the control panel 2 is provided with a data interface for data communication with the information processing equipment, and the control panel 2 is used for returning a product to be detected to the missing scanning process when receiving a first control signal sent by the information processing equipment; when a second control signal sent by the information processing equipment is received, lighting detection is carried out on the product to be detected, and whether the product to be detected is a good product or not is judged according to a detection result; if so, sending a third control signal to the information processing equipment, otherwise, ending.
Specifically, the lighting machine can perform data communication with a data interface of a terminal PC of the information processing device running the production execution system through the data interface of the lighting machine, and meanwhile, a micro code scanning gun is installed on a stage of the lighting machine, so that synchronous code scanning and lighting detection can be realized. Firstly, after placing the product to be measured on the lighting machine microscope carrier 1, scanning the code to the product to be measured through the miniature code scanning gun 3, and transmitting the acquired data information to the host 4 of the fine information processing equipment, after the information processing equipment receives the data information, judging the data information: if the missing scanning does not occur, a second control signal such as "0" is sent to the control panel 2 of the lighting machine, and then the lighting machine is turned on, and the operator starts to perform electrical inspection; if the scanning missing condition occurs, a first control signal such as '1' is sent to the control panel 2 of the lighting machine, and then the lighting machine is not lighted, the product to be detected is not electrically connected, and meanwhile, an alarm prompt is sent out.
After the lighting machine carries out electrical inspection, whether the product to be detected is a good product is judged according to an electrical detection result, if the product is a good product, an 'OK' button of a lighting machine control panel 2 can be manually pressed, the lighting machine sends a signal of a third control signal such as '0' to a host 4 of the information processing equipment through a communication link channel, the information processing equipment carries out good product calculation operation on the product to be detected, and the product enters the next working procedure; if the product is a defective product as a result of the electrical inspection, the lighting machine can simultaneously send a fourth control signal such as "1" to the information processing device through the communication link channel by manually pressing the "NG" button on the lighting machine control panel 2, the information processing device does not execute the calculation operation, and the product to be tested enters a re-judgment process.
In particular implementation, the data communication between the lighting machine and the information processing device can be realized through the following logic implementation modes:
establishing connection through a socket of the lighting machine, and sending data to a server of the information processing equipment by a server of the lighting machine through data recvfrom () waiting for receiving; establishing an input stream at a server of the information processing equipment, configuring monitoring, reading the stream in real time, processing the read information by the server of the information processing equipment to obtain a result, establishing an output stream by the server of the information processing equipment, and sending the processing result to the server of the lighting machine; the server of the lighting machine reads the stream in real time through recvfrom (), and the server of the lighting machine processes the read information to obtain a result.
The server of the lighting machine uses the socket to establish a lighting machine data interface, and the second parameter is SOCK _ DGRAM. The variables of the sockaddr _ in structure are initialized and assigned.
The sockaddr _ in structure is defined as follows:
struct sockaddr_in{
uint8_t sin_len;
sa_family_t sin_family;
in_port_t sin_port;
structin_addrsin_addr;
char sin_zero[8];
};
ANY of the ports 0-65535 are used as the service port, and "INADDR _ ANY" is used as the bound IP address, i.e., the address on ANY host. Bind () is used to bind the above data interface and the defined IP address and port. And entering an infinite loop program, entering a waiting state by using recvfrom (), processing the received data until the data sent by the client program is received, sending feedback to the client program, and controlling the state of the lighting machine.
The server of the information processing apparatus uses the socket to establish a raindrop level-matched data interface through which the address and ports (IP and port) of the connection point level server. Specifically, a timing task is configured, and whether a server of a lighting machine sends data is monitored in real time, and the implementation method is as follows:
the server of the information processing device reads data and sends a processing result through the input output stream, and the specific implementation mode is as follows:
//……
InputStream in=Socket.getInputStream();
DataInputStream Din=new DataInputStream(in);
OputStream out=Socket.getOutputStream();
DataOutputStream Dout=new DataOutputStream(Out);
//……
the received data are processed, and a processing result set is returned, and the specific implementation mode is as follows:
// Tcp _ NODELAY: indicating that the data is sent immediately.
// so _ RESUSEADR: indicating whether reuse of the local address bound by the Socket is allowed.
// so _ TIMEOUT: indicating wait time-out data when the data is accepted.
// so _ LINGER: represents whether or not the underlying Socket is immediately closed when the close () method of the Socket is executed.
// so _ SNFBUF: indicating the size of the buffer in which the data is transmitted.
// so _ RCVBUF: indicating the size of the buffer of received data.
// so _ KEEPALIVE: indicating whether or not to automatically turn off a Socket in an idle state for a long time.
// CONINLINE: indicating whether transmission of one byte of TCP emergency data is supported.
Public String receiveAndSend(){
Public byte[]GetbyteMesaage(byte[]socketRecvBytrArrHeader){
Private char[]getChars(byte[]bytes){
Class ConnectionMessage implements Runnable{
Public byte[]ChangStype(byte[]MessageByteArr,String Stype){
Public String RecvHeaderReturnlength(byte[]Headerarr){
Public static String bytestohex(byte[]bytes)
Public static String ChangByte(byte[]lengthArr){
Specifically, the implementation manner of the above program segments is only an exemplary illustration, and other logic manners capable of implementing the above functions may be adopted in specific implementation.
In specific implementation, in the detection system provided in the embodiment of the present invention, the control panel is further configured to issue an alarm prompt when receiving the first control signal. Specifically, when the condition of missed scanning occurs, the information processing equipment sends a first control signal to the lighting machine, the lighting machine does not perform electrical property detection on a product to be detected when receiving the first control signal, and meanwhile, a control panel of the lighting machine sends out an alarm prompt to prompt a production line worker to generate the condition of missed scanning.
In specific implementation, in the detection system provided in the embodiment of the present invention, the control panel is further configured to control the product to be detected to enter a re-judging process when the product to be detected is determined to be a defective product. Specifically, after the product to be tested is lighted and detected, the product to be tested is found to be a bad product, the control panel controls the product to enter a re-judging process, further determines the problem and defect of the product, and simultaneously sends a corresponding control signal to the information processing equipment to inform the information processing equipment that the product is not subjected to electric calculation.
Based on the same inventive concept, an embodiment of the present invention provides a detection method, as shown in fig. 3, which may specifically include:
s101, scanning a code of a product to be detected and acquiring data information of the product to be detected, wherein the data information at least comprises identification information of the product to be detected and data information corresponding to a current process;
s102, continuously matching the acquired data information with data information corresponding to a previous process of the product to be detected and production line data information, and judging whether the product to be detected has a process missing scanning condition or not; if yes, executing step S103, otherwise executing step S104;
s103, sending a first control signal;
s104, sending a second control signal;
s105, when the first control signal is received, returning the product to be detected to the missing scanning process;
s106, when the second control signal is received, carrying out electrical detection on the product to be detected, and judging whether the product to be detected is a good product or not according to a detection result; if yes, go to step S107; otherwise, ending;
s107, sending a third control signal;
and S108, when the third control signal is received, performing non-defective product calculation on the product to be detected.
The detection method provided by the embodiment of the invention can effectively combine electrical inspection and information processing and calculation together, greatly shortens the working hours and improves the automation and the intellectualization of a production line; meanwhile, the products which are not swept are effectively intercepted and continuously flow to the next working procedure.
In a specific implementation, in the detection method provided in the embodiment of the present invention, step S101 may specifically include: and placing the product to be detected on the carrying platform, scanning the code of the product to be detected by adopting a miniature code scanning gun and acquiring the data information of the product to be detected. Specifically, the product information can be acquired and input through the miniature code scanning gun, and compared with the prior art which needs to rely on interaction between people and information processing equipment, the product information can be automatically acquired and input.
In specific implementation, the detection method provided in the embodiment of the present invention may further include: and sending out an alarm prompt when the first control signal is received. Specifically, the product is sweeping the sign indicating number in-process, if the process condition of missing sweeping appears, will in time send out the police dispatch newspaper and remind for the production line workman can in time discover the condition of missing sweeping, in time make corresponding processing.
In a possible implementation manner, the detection method provided in an embodiment of the present invention may further include: and when the product to be detected is judged to be a bad product, controlling the product to be detected to enter a re-judging procedure. Specifically, if the product is found to be a bad product after the electrical detection, the product is controlled to enter a re-judging process to further determine the problem and defect of the product, and meanwhile, a corresponding control signal can be sent to enable the information processing equipment not to calculate the product.
The embodiment of the invention provides a detection system and a detection method, wherein the detection system comprises: an information processing apparatus and a detection apparatus; the data interface of the information processing equipment is connected with the data interface of the detection equipment, so that data communication between the detection equipment and the information processing equipment can be realized; the detection equipment can transmit data information of a product to be detected to the information processing equipment, perform electrical detection on the product to be detected according to a control signal transmitted by the information processing equipment, and transmit a corresponding control signal to the information processing equipment after the electrical detection; the information processing equipment judges whether the product to be detected has a process missing scanning condition or not according to the data information transmitted by the detection equipment, sends a corresponding control signal to the detection equipment, and determines whether to perform good product calculation or not according to the control signal transmitted by the detection equipment. Compared with the prior art in which data processing depends on interaction between people and an information system, the detection system provided by the embodiment of the invention can effectively combine production line production with information processing such as electrical inspection and computer, greatly shortens the working hours, improves the automation and the intellectualization of the production line, and effectively intercepts the continuous flow of missed products to the next process.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.