Detection method, device and equipment based on production line and storage medium
By acquiring sensor signals on the production line and calculating material residence time, and generating material detection results, the problem of low efficiency in obtaining detection results and susceptible to manual intervention in the prior art is solved, and more efficient and reliable acquisition of detection results is achieved.
Patent Information
- Application Number
- CN202411444413.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-28
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial automation technology, and in particular to a detection method, device, equipment and storage medium based on a production line. Background Art
[0002] The quality of materials and the speed of transportation directly determine the production capacity of the production line. Therefore, testing the materials on the production line can achieve refined management of the production process. This refined management can optimize the production process, reduce downtime, and help improve the production capacity of the production line.
[0003] However, the acquisition process of the existing material test results is cumbersome, which is not conducive to improving the efficiency of obtaining the test results. The reason is that the existing technology mainly adopts the manual acquisition method to obtain the material test results, and the manual acquisition method consumes a lot of human resources and time resources, increases the acquisition time of the material test results, and is easily affected by manual intervention, therefore, it is not conducive to improving the efficiency of obtaining the test results. Summary of the invention
[0004] The present invention provides a detection method, device, computer equipment and storage medium based on a production line to solve the technical problem that the existing process of acquiring the text subject of the text to be processed is complicated and is not conducive to improving the efficiency of acquiring the text subject.
[0005] In a first aspect, a detection method based on a production line is provided, comprising:
[0006] Acquire a first signal generated by a first sensor when the material arrives at a first station on the production line;
[0007] Selecting the recording time of the first signal as a first timestamp;
[0008] Starting from the first timestamp, obtaining the actual residence time of the material;
[0009] When the actual dwell time is within a preset dwell time range, a reset signal is sent to a first camera corresponding to the first station;
[0010] After the reset signal is sent successfully, a second signal generated by the second sensor when the material arrives at a second station on the production line is obtained, and a recording time of the second signal is selected as a second timestamp;
[0011] Based on a preset generation method, the detection result of the material is generated through the first timestamp and the second timestamp.
[0012] Further, the selecting the recording time of the first signal as the first timestamp includes:
[0013] In the record file, obtaining the recording time of the first signal;
[0014] The recording time of the first signal is acquired, and the recording time of the first signal is selected as a first timestamp through the first selection instruction.
[0015] Further, starting from the first timestamp, obtaining the actual residence time of the material includes:
[0016] Starting from the first timestamp, detecting whether a trigger signal generated by the first sensor when the material leaves the first station on the production line is obtained;
[0017] When the trigger signal is acquired, the recording time of the trigger signal is selected as the target timestamp, and the difference between the target timestamp and the first timestamp is selected as the actual stay time.
[0018] Further, when the actual dwell time is within a preset dwell time range, sending a reset signal to a first camera corresponding to the first station includes:
[0019] When the actual stay time is within a preset stay time range, generating a reset signal;
[0020] Connecting to a first camera corresponding to the first station, and sending the reset signal to the first camera.
[0021] Further, after the reset signal is sent successfully, obtaining a second signal generated by the second sensor when the material arrives at a second station on the production line, and selecting a recording time of the second signal as a second timestamp, includes:
[0022] After the reset signal is sent successfully, obtaining a second signal generated by the second sensor when the material arrives at a second station on the production line;
[0023] A second selection instruction is obtained, and a recording time of the second signal is selected as a second timestamp through the second selection instruction.
[0024] Furthermore, the generating method based on a preset method, using the first timestamp and the second timestamp, generates the detection result of the material, including:
[0025] Obtain the time interval between the first timestamp and the second timestamp, obtain the material code corresponding to the first sensor, and obtain the material code corresponding to the second sensor;
[0026] When the time interval is not within a preset range, the time interval and a preset time anomaly mark are packaged to generate a first detection result of the material;
[0027] When the material code corresponding to the first sensor and the material code corresponding to the second sensor are different, the material code corresponding to the first sensor, the material code corresponding to the second sensor and a preset coding abnormality mark are packaged to generate a second detection result of the material.
[0028] Further, after the detection result of the material is generated by the first timestamp and the second timestamp based on the preset generation method, the detection method includes:
[0029] Obtain a prompt box corresponding to the detection result, and display the detection result through the prompt box.
[0030] In a second aspect, a detection device based on a production line is provided, comprising:
[0031] A first acquisition module, used to acquire a first signal generated by a first sensor when a material arrives at a first station on a production line;
[0032] A selection module, configured to select a recording time of the first signal as a first timestamp;
[0033] A second acquisition module, used for acquiring the actual residence time of the material starting from the first timestamp;
[0034] A sending module, used for sending a reset signal to a first camera corresponding to a first station when the actual dwell time is within a preset dwell time range;
[0035] A third acquisition module is used to acquire, after the reset signal is sent successfully, a second signal generated by the second sensor when the material arrives at a second station on the production line, and select a recording time of the second signal as a second timestamp;
[0036] A detection module is used to generate a detection result of the material based on a preset generation method through the first timestamp and the second timestamp.
[0037] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned detection method when executing the computer program.
[0038] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned detection method are implemented.
[0039] The present application provides a detection method, device, computer equipment and storage medium based on a production line, which obtain a first signal generated by a first sensor when a material arrives at a first station on a production line; select the recording time of the first signal as a first timestamp; starting from the first timestamp, obtain the actual residence time of the material; when the actual residence time is within a preset residence time range, send a reset signal to a first camera corresponding to the first station; after the reset signal is successfully sent, obtain a second signal generated by a second sensor when the material arrives at a second station on the production line, and select the recording time of the second signal as a second timestamp; based on a preset generation method, generate the detection result of the material through the first timestamp and the second timestamp, and the beneficial effects are in two aspects. On the one hand, based on the preset generation method, generate the detection result of the material through the first timestamp and the second timestamp, because no manual acquisition is required, the acquisition time of the detection result of the material is reduced, which is conducive to improving the acquisition efficiency of the detection result of the material; on the other hand, it will not be affected by manual intervention, so it is conducive to improving the reliability of the acquired detection result of the material. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0041] Figure 1 is a schematic diagram of an application environment of a detection method in one embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a flow chart of a detection method provided by an embodiment of the present invention;
[0043] Figure 3 yes Figure 1 A schematic flow chart of a specific implementation of step S23;
[0044] Figure 4 yes Figure 1 A schematic flow chart of a specific implementation of step S25;
[0045] Figure 5 yes Figure 1 A schematic flow chart of a specific implementation of step S26;
[0046] Figure 6 is a structural schematic diagram of a detection device in one embodiment of the present invention;
[0047] Figure 7 It is a structural diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0049] See also Figure 1 , Figure 1 is a schematic diagram of an application environment of a detection method in an embodiment of the present invention. The detection method provided by the embodiment of the present invention can be applied in Figure 1 In an application environment, a client communicates with a server through a network.
[0050] The server obtains, through the client, a first signal generated by the first sensor when the material arrives at the first station on the production line;
[0051] Selecting the recording time of the first signal as a first timestamp;
[0052] Starting from the first timestamp, obtaining the actual residence time of the material;
[0053] When the actual dwell time is within a preset dwell time range, a reset signal is sent to a first camera corresponding to the first station;
[0054] After the reset signal is sent successfully, a second signal generated by the second sensor when the material arrives at a second station on the production line is obtained, and a recording time of the second signal is selected as a second timestamp;
[0055] Based on a preset generation method, the detection result of the material is generated through the first timestamp and the second timestamp.
[0056] In the scheme implemented by the above-mentioned detection method, device, equipment and medium, the beneficial effects are in two aspects. On the one hand, based on the preset generation method, the detection result of the material is generated through the first timestamp and the second timestamp. Since manual acquisition is not required, the acquisition time of the material detection result is reduced, which is conducive to improving the acquisition efficiency of the material detection result; on the other hand, it will not be affected by human intervention, so it is conducive to improving the reliability of the acquired detection result of the material.
[0057] The device running the client is referred to as a client device.
[0058] The device running the server is referred to as the server device.
[0059] Among them, client devices include but are not limited to smartphones, personal computers, Internet of Vehicles terminals, tablets and portable wearable devices.
[0060] The server device can be implemented with an independent task database or a task database cluster composed of multiple task databases. The present invention is described in detail below through specific embodiments.
[0061] See also Figure 2 , Figure 2 A flow chart of a detection method provided in one embodiment of the present invention includes the following steps:
[0062] S21, obtaining a first signal generated by a first sensor when a material arrives at a first station on a production line;
[0063] Exemplarily, the step of obtaining a first signal generated by a first sensor when the material arrives at a first station on the production line includes:
[0064] A first sensor is connected to obtain a first signal generated by the first sensor when the material reaches a first station on the production line.
[0065] Among them, materials in an automated production environment refer to various raw materials, semi-finished products or finished products that are placed on the production line and continuously transported by mechanical or electric drive.
[0066] Among them, materials include but are not limited to metal parts, plastic parts, electronic components, food, medicines, and packaging materials.
[0067] S22, selecting the recording time of the first signal as a first timestamp;
[0068] The step of selecting the recording time of the first signal as the first timestamp includes:
[0069] In the record file, obtaining the recording time of the first signal;
[0070] The recording time of the first signal is acquired, and the recording time of the first signal is selected as a first timestamp through the first selection instruction.
[0071] S23, starting from the first timestamp, obtaining the actual residence time of the material;
[0072] S24, when the actual dwell time is within a preset dwell time range, sending a reset signal to a first camera corresponding to the first station;
[0073] The production line can detect different parts of the material through the first station and the second station. After the detection is completed, a reset signal needs to be sent to the first camera corresponding to the first station.
[0074] For the sake of illustration, an example is given below:
[0075] For example, the multiple workstations are the first workstation and the second workstation; the first workstation and the second workstation correspond to different shooting points respectively;
[0076] A first camera and a second camera are respectively arranged at the first station and the second station for detecting two surfaces of the material.
[0077] A first sensor and a second sensor are respectively arranged at the first station and the second station.
[0078] When the material passes through the first sensor, it means that the material has reached the photographing position of the first station. The PLC will trigger the first camera to start taking pictures. After the picture is taken, the first camera needs to be reset.
[0079] When the material passes through the second sensor, it means that the material has reached the photographing position of the second station. The PLC will trigger the second camera to start taking pictures. After the picture is taken, the second camera needs to be reset.
[0080] Among them, the number of multiple workstations on the production line can be set according to needs and is not limited here.
[0081] For the sake of illustration, an example is given below:
[0082] For example, the multiple workstations are the first workstation, the second workstation, the third workstation, the fourth workstation, the fifth workstation, and the sixth workstation, and the first workstation, the second workstation, the third workstation, the fourth workstation, the fifth workstation, and the sixth workstation correspond to different shooting points respectively;
[0083] The first camera, the second camera, the third camera, the fourth camera, the fifth camera and the sixth camera are respectively arranged at the first station, the second station, the third station, the fourth station, the fifth station and the sixth station. The first camera, the second camera, the third camera, the fourth camera, the fifth camera and the sixth camera are respectively used to detect the six sides of the material.
[0084] A first sensor, a second sensor, a third sensor, a fourth sensor, a fifth sensor and a sixth sensor are respectively arranged at the first station, the second station, the third station, the fourth station, the fifth station and the sixth station.
[0085] When the material passes through the first sensor, it means that the material has reached the photographing position of the first station. The PLC will trigger the first camera to start taking pictures. After the picture is taken, the first camera needs to be reset.
[0086] When the material passes through the second sensor, it means that the material has reached the photographing position of the second station. The PLC will trigger the second camera to start taking pictures. After the picture is taken, the second camera needs to be reset.
[0087] When the material passes through the third sensor, it means that the material has reached the photographing position of the third station. The PLC will trigger the third camera to start taking pictures. After the photo is taken, the third camera needs to be reset.
[0088] When the material passes through the fourth sensor, it means that the material has reached the photographing position of the fourth station. The PLC will trigger the fourth camera to start taking pictures. After the picture is taken, the fourth camera needs to be reset.
[0089] When the material passes through the fifth sensor, it means that the material has reached the photographing position of the fifth station. The PLC will trigger the fifth camera to start taking pictures. After the photo is taken, the fifth camera needs to be reset.
[0090] When the material passes through the sixth sensor, it means that the material has reached the photographing position of the sixth station. The PLC will trigger the sixth camera to start taking pictures. After the photo is taken, the sixth camera needs to be reset.
[0091] Among them, PLC, the full name of Programmable Logic Controller, is a digital operation electronic system designed for industrial environments. It uses programmable memory to store instructions for performing logical operations, sequential control, timing, counting and arithmetic operations, and controls various types of mechanical equipment or production processes through digital or analog input / output.
[0092] Wherein, when the actual dwell time is within a preset dwell time range, sending a reset signal to a first camera corresponding to the first station includes:
[0093] Step A, when the actual residence time is within a preset residence time range, generating a reset signal;
[0094] Connecting to a first camera corresponding to the first station, and sending the reset signal to the first camera.
[0095] Exemplarily, the reset signal is a low level signal or a high level signal.
[0096] Exemplarily, after obtaining the actual residence time of the material starting from the first timestamp, the detection method further includes:
[0097] Step B: When the actual residence time is not within the preset residence time range, an alarm is issued.
[0098] Wherein, after obtaining the actual residence time of the material starting from the first timestamp, step A or step B is executed.
[0099] For the sake of illustration, an example is given below:
[0100] For example, the preset residence time range is 40 seconds to 50 seconds. When the actual residence time of the material at the first station is 65 seconds, it is immediately judged that the residence time is too long and an alarm is issued.
[0101] For example, the preset residence time range is 30 seconds to 50 seconds. When the actual residence time of the material at the first station is 70 seconds, it is immediately judged that the residence time is too long and an alarm is issued.
[0102] For example, the preset residence time range is 40 seconds to 60 seconds. When the actual residence time of the material at the first station is 5 seconds, it is immediately judged that the residence time is too short and an alarm is issued.
[0103] For example, the preset residence time range is 30 seconds to 60 seconds. When the actual residence time of the material at the first station is 2 seconds, it is immediately judged that the residence time is too short and an alarm is issued.
[0104] S25, after the reset signal is sent successfully, obtaining a second signal generated by the second sensor when the material arrives at a second station on the production line, and selecting a recording time of the second signal as a second timestamp;
[0105] Wherein, the first sensor is a sensor on the first workstation.
[0106] Wherein, the second sensor is a sensor on the second workstation.
[0107] The first workstation and the second workstation are different workstations on the production line.
[0108] Among them, the second workstation is the next workstation of the first workstation.
[0109] S26, based on a preset generation method, generating the detection result of the material through the first timestamp and the second timestamp.
[0110] Wherein, after generating the detection result of the material by using the first timestamp and the second timestamp based on the preset generation method, the detection method includes:
[0111] Obtain a prompt box corresponding to the detection result, and display the detection result through the prompt box.
[0112] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, based on the preset generation method, the detection result of the material is generated by the first timestamp and the second timestamp. Since manual acquisition is not required, the acquisition time of the material detection result is reduced, which is beneficial to improving the acquisition efficiency of the material detection result. On the other hand, it will not be affected by human intervention, which is beneficial to improving the reliability of the acquired detection result of the material.
[0113] See also Figure 3 , Figure 3 yes Figure 1 A specific implementation flow diagram of step S23 is described in detail as follows:
[0114] S31, starting from the first timestamp, detecting whether a trigger signal generated by the first sensor when the material leaves the first station on the production line is obtained;
[0115] S32: When the trigger signal is acquired, the recording time of the trigger signal is selected as the target timestamp, and the difference between the target timestamp and the first timestamp is selected as the actual stay time.
[0116] In the embodiment of the present invention, the actual residence time of the material is an important basis for evaluating the effectiveness of production planning and scheduling. Through the actual residence time and the planned residence time in the residence time range, the enterprise can evaluate the execution of the production plan, find the deviation between the actual residence time and the planned residence time, and adjust the production plan accordingly to ensure the timely completion of the production task. Figure 4 , Figure 4 yes Figure 1 A specific implementation flow diagram of step S25 is described in detail as follows:
[0117] S41, after the reset signal is sent successfully, obtaining a second signal generated by the second sensor when the material arrives at a second station on the production line;
[0118] S42, obtaining a second selection instruction, and selecting the recording time of the second signal as a second timestamp through the second selection instruction.
[0119] In an embodiment of the present invention, the recording time of the second signal is selected as the second timestamp through the second selection instruction. The second timestamp is the time when the second sensor arrives at the second workstation on the production line when the material arrives. This recording method enables production managers to clearly grasp the production progress, promptly discover and solve potential bottleneck problems, thereby optimizing the production process and improving production efficiency.
[0120] See also Figure 5 , Figure 5 yes Figure 1A specific implementation flow diagram of step S26 is described in detail as follows:
[0121] S51, obtaining the time interval between the first timestamp and the second timestamp, obtaining the material code corresponding to the first sensor, and obtaining the material code corresponding to the second sensor;
[0122] S52, when the time interval is not within a preset range, packaging the time interval and a preset time anomaly mark to generate a first detection result of the material;
[0123] S53, when the material code corresponding to the first sensor and the material code corresponding to the second sensor are different, the material code corresponding to the first sensor, the material code corresponding to the second sensor and a preset coding abnormality mark are packaged to generate a second detection result of the material.
[0124] The time anomaly identifier is an identifier of an abnormal time interval.
[0125] The coding exception identifier is an identifier of the coding exception.
[0126] The time anomaly flag and coding anomaly flag are set by the user or by system default and are not restricted here.
[0127] For the sake of illustration, an example is given below:
[0128] For example, the time anomaly identifier uses 001, and the coding anomaly identifier uses 002;
[0129] For example, the time anomaly mark uses A1 and the coding anomaly mark uses A2.
[0130] Among them, the material code is the unique identifier of the material in the system.
[0131] Among them, when the material code corresponding to the first sensor and the material code corresponding to the second sensor are different, the material code corresponding to the first sensor, the material code corresponding to the second sensor and the preset coding abnormality mark are packaged to generate a second detection result of the material, which can effectively prevent interruption of the production process and avoid additional adjustments or rework due to material coding errors, thereby ensuring the smooth operation of the production line, improving production efficiency and reducing costs.
[0132] In the embodiment of the present invention, the first detection result and the second detection result will not be affected by human intervention, which is conducive to improving the reliability of the obtained first detection result and the second detection result.
[0133] See also Figure 6 , Figure 6 is a schematic diagram of a structure of a detection device in one embodiment of the present invention, Figure 6 As shown, the detection device includes a first acquisition module 101, a selection module 102, a second acquisition module 103, a sending module 104, a third acquisition module 105, and a detection module 106. The functional modules are described in detail as follows:
[0134] A first acquisition module 101 is used to acquire a first signal generated by a first sensor when a material arrives at a first station on a production line;
[0135] A selection module 102, configured to select a recording time of the first signal as a first timestamp;
[0136] A second acquisition module 103, used to acquire the actual residence time of the material starting from the first timestamp;
[0137] A sending module 104, configured to send a reset signal to a first camera corresponding to a first station when the actual dwell time is within a preset dwell time range;
[0138] A third acquisition module 105 is used to acquire, after the reset signal is successfully sent, a second signal generated by the second sensor when the material arrives at a second station on the production line, and select a recording time of the second signal as a second timestamp;
[0139] The detection module 106 is used to generate a detection result of the material based on a preset generation method through the first timestamp and the second timestamp.
[0140] In the embodiment of the present invention, the beneficial effects are in two aspects. On the one hand, based on the preset generation method, the detection result of the material is generated by the first timestamp and the second timestamp. Since manual acquisition is not required, the acquisition time of the material detection result is reduced, which is beneficial to improving the acquisition efficiency of the material detection result. On the other hand, it will not be affected by human intervention, which is beneficial to improving the reliability of the acquired detection result of the material.
[0141] For the specific limitations on the detection device, please refer to the limitations on the detection method above, which will not be repeated here.
[0142] Each module in the above detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0143] See also Figure 7 , Figure 71 is another structural diagram of a computer device in one embodiment of the present invention. In one embodiment, a computer device is provided. The computer device is a server device or a client device. The internal structure diagram thereof can be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external database. When the computer program is executed by the processor, a function or step of a detection method based on a production line can be implemented.
[0144] In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor.
[0145] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or computer device can refer to the relevant description of the aforementioned method embodiment. In order to avoid repetition, they will not be described one by one here.
[0146] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0147] The above description and accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of a stated sub-sample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other sub-samples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.
[0148] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0149] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.
[0150] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.
Claims
1. A detection method based on a production line, characterized in that: include: Acquire a first signal generated by a first sensor when the material arrives at a first station on the production line; Selecting the recording time of the first signal as a first timestamp; Starting from the first timestamp, obtaining the actual residence time of the material; When the actual dwell time is within a preset dwell time range, sending a reset signal to a first camera corresponding to the first station; After the reset signal is sent successfully, a second signal generated by the second sensor when the material arrives at a second station on the production line is obtained, and a recording time of the second signal is selected as a second timestamp; Based on a preset generation method, the detection result of the material is generated through the first timestamp and the second timestamp.
2. The detection method according to claim 1, characterized in that: The selecting the recording time of the first signal as the first timestamp includes: In the record file, obtaining the recording time of the first signal; The recording time of the first signal is acquired, and the recording time of the first signal is selected as a first timestamp through the first selection instruction.
3. The detection method according to claim 1, characterized in that: The obtaining, starting from the first timestamp, the actual residence time of the material includes: Starting from the first timestamp, detecting whether a trigger signal generated by the first sensor when the material leaves the first station on the production line is obtained; When the trigger signal is acquired, the recording time of the trigger signal is selected as the target timestamp, and the difference between the target timestamp and the first timestamp is selected as the actual stay time.
4. The detection method according to claim 1, characterized in that: When the actual dwell time is within a preset dwell time range, sending a reset signal to a first camera corresponding to the first station includes: When the actual stay time is within a preset stay time range, generating a reset signal; Connecting to a first camera corresponding to the first station, and sending the reset signal to the first camera.
5. The detection method according to claim 1, characterized in that: After the reset signal is successfully sent, obtaining a second signal generated by the second sensor when the material arrives at a second station on the production line, and selecting a recording time of the second signal as a second timestamp, includes: After the reset signal is sent successfully, obtaining a second signal generated by the second sensor when the material arrives at a second station on the production line; A second selection instruction is obtained, and a recording time of the second signal is selected as a second timestamp through the second selection instruction.
6. The detection method according to claim 1, characterized in that: The generating method based on a preset method, generating the detection result of the material by using the first timestamp and the second timestamp, includes: Obtain the time interval between the first timestamp and the second timestamp, obtain the material code corresponding to the first sensor, and obtain the material code corresponding to the second sensor; When the time interval is not within a preset range, the time interval and a preset time anomaly mark are packaged to generate a first detection result of the material; When the material code corresponding to the first sensor and the material code corresponding to the second sensor are different, the material code corresponding to the first sensor, the material code corresponding to the second sensor and a preset coding abnormality mark are packaged to generate a second detection result of the material.
7. The detection method according to any one of claims 1 to 6, characterized in that: After the detection result of the material is generated by the first timestamp and the second timestamp based on the preset generation method, the detection method includes: Obtain a prompt box corresponding to the detection result, and display the detection result through the prompt box.
8. A detection device based on a production line, characterized in that: include: A first acquisition module, used to acquire a first signal generated by a first sensor when a material arrives at a first station on a production line; A selection module, configured to select a recording time of the first signal as a first timestamp; A second acquisition module, used for acquiring the actual residence time of the material starting from the first timestamp; A sending module, used for sending a reset signal to a first camera corresponding to a first station when the actual dwell time is within a preset dwell time range; A third acquisition module is used to acquire, after the reset signal is sent successfully, a second signal generated by the second sensor when the material arrives at a second station on the production line, and select a recording time of the second signal as a second timestamp; A detection module is used to generate a detection result of the material based on a preset generation method through the first timestamp and the second timestamp.
9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the detection method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the detection method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Production line supervision method and device and storage medium
CN110910369A
Productivity bottleneck detection method and device and computer readable storage medium
CN111489079A
Fault diagnosis method and device, electronic equipment and storage medium
CN115855138A