Method and system for controlling startup, shutdown, power supply and power failure of production line

文档序号:1446487 发布日期:2020-02-18 浏览:17次 中文

阅读说明:本技术 生产线的开关机及供断电控制方法和系统 (Method and system for controlling startup, shutdown, power supply and power failure of production line ) 是由 刘孙春 于 2019-10-21 设计创作,主要内容包括:本申请涉及一种生产线的开关机及供断电控制方法和系统,包括:在需要对生产线中的终端和受控设备进行断电时,服务器向生产线中的终端发送关机指令,关机指令用于指示生产线中的终端关机。在确认生产线中的所有终端关机后,服务器向生产线对应的控制设备发送断电指令,断电指令用于指示生产线对应的控制设备对生产线中的终端和受控设备进行断电。由服务器发出关机指令对生产线中的终端关机后,并确认关机后,向生产线对应的控制设备发送断电指令。由控制设备统一对生产线中的终端和受控设备进行断电,这样就可以及时对生产线中的终端和受控设备进行断电,避免人为忘记断电造成的耗电,从而大大降低生产线的耗电量、节约资源。(The application relates to a method and a system for controlling startup, shutdown, power supply and power failure of a production line, comprising the following steps: when the terminal and the controlled equipment in the production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, and the shutdown instruction is used for indicating the shutdown of the terminal in the production line. After confirming that all terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, and the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line. And sending a shutdown instruction by the server to shut down the terminal in the production line, and sending a power-off instruction to the control equipment corresponding to the production line after confirming the shutdown. The terminal and the controlled equipment in the production line are powered off by the control equipment in a unified manner, so that the terminal and the controlled equipment in the production line can be powered off in time, power consumption caused by power failure forgetting artificially is avoided, and power consumption and resources are greatly reduced.)

1. A method for controlling startup, shutdown, power supply and power failure of a production line is characterized by comprising the following steps:

when the terminal and the controlled equipment in the production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, wherein the shutdown instruction is used for indicating the shutdown of the terminal in the production line;

and after confirming that all the terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, wherein the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line.

2. The method of claim 1, wherein the control device comprises a thin client and a Programmable Logic Controller (PLC);

the power-off instruction is used for instructing the control equipment corresponding to the production line to power off the terminal and the controlled equipment in the production line, and comprises the following steps:

and the power-off instruction is used for instructing the thin client corresponding to the production line to power off the terminal and the controlled equipment in the production line through a Programmable Logic Controller (PLC).

3. The method of claim 1, wherein the server sends a shutdown instruction to a terminal in the production line, comprising:

the server receives an image of the production line, which is sent by the monitor and obtained by shooting the production line, analyzes the image of the production line to obtain an analysis result, and sends a shutdown instruction to a terminal in the production line according to the analysis result.

4. The method of claim 3, wherein the server receives an image of a production line obtained by shooting the production line from a monitor, analyzes the image of the production line to obtain an analysis result, and sends a shutdown instruction to a terminal in the production line according to the analysis result, and the method comprises:

the server receives an image of a production line, which is sent by a monitor and obtained by shooting the production line, wherein the image of the production line is obtained by shooting the production line by the monitor at regular time;

carrying out similarity analysis on the image of the current production line and the image of the previous production line to obtain a similarity analysis result;

and when the similarity analysis result exceeds a preset threshold value, sending a shutdown instruction to the terminal in the production line according to the similarity analysis result.

5. The method of claim 4, wherein the similarity analysis of the currently captured image of the production line and the previous image of the production line comprises:

and performing similarity analysis on the currently shot image of the production line and the image of the previous production line by adopting a histogram mode or a Hash algorithm or cosine similarity.

6. The method of claim 1, further comprising:

the server allocates a fixed internet protocol IP address to a terminal in a production line in advance.

7. The method of claim 1, further comprising:

when power needs to be supplied to terminals and controlled equipment in production lines, the server acquires a production plan of each production line in advance, and sends a starting power-on instruction to control equipment corresponding to the production plan according to the production plan, wherein the starting power-on instruction is used for instructing the control equipment to control the terminals in the production lines to start before the production lines work and to control the controlled equipment in the production lines to be powered on.

8. A startup, shutdown and power supply and outage control system of a production line is characterized by comprising: the system comprises a server, a terminal, control equipment and controlled equipment;

the server is connected with the terminal and the control equipment, when the terminal and the controlled equipment in a production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, and after all the terminals in the production line are confirmed to be powered off, the server sends a power-off instruction to the control equipment corresponding to the production line to power off the terminal and the controlled equipment in the production line;

the terminal in the production line receives a shutdown instruction sent by the server, and controls the terminal to shut down according to the shutdown instruction;

and the control equipment receives a power-off instruction sent by the server and powers off the terminal and the controlled equipment in the production line according to the power-off instruction.

9. The system of claim 8, further comprising a monitor, the monitor coupled to the server;

the monitor shoots a production line to obtain an image of the production line, and the image of the production line is sent to the server;

and the server receives the image of the production line sent by the monitor, analyzes the image of the production line to obtain an analysis result, and sends a shutdown instruction to the terminal according to the analysis result.

10. A startup, shutdown and power supply and interruption control device for a production line is characterized by comprising:

the shutdown control module is used for sending a shutdown instruction to the terminal in the production line by the server when the terminal and the controlled equipment in the production line need to be powered off, wherein the shutdown instruction is used for indicating the shutdown of the terminal in the production line;

and the power-off control module is used for sending a power-off instruction to the control equipment corresponding to the production line by the server after confirming that all the terminals in the production line are powered off, wherein the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line.

11. A server comprising a memory and a processor, the memory having a computer program stored therein, wherein the computer program, when executed by the processor, causes the processor to perform the steps of the method for controlling power on and off of a production line according to any one of claims 1 to 7.

12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.

Technical Field

The application relates to the technical field of intelligent control, in particular to a method and a system for controlling startup, shutdown, power supply and power failure of a production line.

Background

The production line is a multi-variety production organization form which takes a certain type of part groups as object organizations. It has the necessary machinery and equipment to accomplish the task of machining these kinds of parts, and these equipment and working places are arranged and configured according to the ratio of the technological route and working procedure labor of most parts or main parts on the production line. Generally, a plurality of production lines work simultaneously when a factory produces in large quantities, and the power consumption of the production lines in the workshop is always a great expense for the factory, so that how to reduce the power consumption of the production lines in the workshop is a problem to be solved urgently.

Disclosure of Invention

The embodiment of the application provides a method and a system for controlling startup, shutdown, power supply and power failure of a production line, so that the power consumption of the production line can be greatly reduced, and resources are saved.

A method for controlling startup, shutdown and power supply and power failure of a production line, the method comprising:

when the terminal and the controlled equipment in the production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, wherein the shutdown instruction is used for indicating the shutdown of the terminal in the production line;

and after confirming that all the terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, wherein the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line.

A power on/off and power supply and interruption control system of a production line comprises: the system comprises a server, a terminal, control equipment and controlled equipment;

the server is connected with the terminal and the control equipment, when the terminal and the controlled equipment in a production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, and after all the terminals in the production line are confirmed to be powered off, the server sends a power-off instruction to the control equipment corresponding to the production line to power off the terminal and the controlled equipment in the production line;

the terminal in the production line receives a shutdown instruction sent by the server, and controls the terminal to shut down according to the shutdown instruction;

and the control equipment receives a power-off instruction sent by the server and powers off the terminal and the controlled equipment in the production line according to the power-off instruction.

A power on/off and power supply/interruption control device for a production line, the device comprising:

the shutdown control module is used for sending a shutdown instruction to the terminal in the production line by the server when the terminal and the controlled equipment in the production line need to be powered off, wherein the shutdown instruction is used for indicating the shutdown of the terminal in the production line;

and the power-off control module is used for sending a power-off instruction to the control equipment corresponding to the production line by the server after confirming that all the terminals in the production line are powered off, wherein the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line.

A server comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, causes the processor to carry out the steps of the above method.

A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as above.

According to the method and the system for controlling the power on/off and the power supply/outage of the production line, when the terminal and the controlled equipment in the production line need to be powered off, the server sends a power-off instruction to the terminal in the production line, and the power-off instruction is used for indicating the terminal in the production line to be powered off. After confirming that all terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, and the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line. And sending a shutdown instruction by the server to shut down the terminal in the production line, and sending a power-off instruction to the control equipment corresponding to the production line after confirming the shutdown. The terminal and the controlled equipment in the production line are powered off by the control equipment in a unified manner, so that the terminal and the controlled equipment in the production line can be powered off in time, power consumption caused by power failure forgetting artificially is avoided, and power consumption and resources are greatly reduced.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a schematic diagram of an internal structure of a server according to an embodiment;

FIG. 2 is a flow chart of a method for controlling power on/off and power supply/interruption of a production line according to an embodiment;

FIG. 3 is a diagram of the configuration of the pull-wire circuit and the PLC circuit in one embodiment;

FIG. 4 is a flowchart illustrating a method for analyzing an image of the production line to obtain an analysis result and sending a shutdown instruction to a terminal in the production line according to the analysis result in one embodiment;

FIG. 5 is a schematic diagram of a power on/off and power supply/interruption control system of the production line according to an embodiment;

FIG. 6 is a schematic diagram of a power on/off and power supply/interruption control system of a production line in another embodiment;

FIG. 7 is a block diagram showing the configuration of the power on/off and power supply/interruption control device of the production line in one embodiment;

fig. 8 is a block diagram showing a configuration of a switching on/off and power supply/interruption control device of a production line in another embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

Fig. 1 is a schematic diagram of an internal structure of a server in one embodiment. As shown in fig. 1, the server includes a processor and a memory connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole server. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor for implementing a method for controlling power on/off and power supply of a production line provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The server may be a computer, a tablet computer, a dedicated server, or the like.

Traditionally, when the production line of a workshop reaches the off-duty time, workers in the workshop uniformly cut off the power of one production line. However, when a computer or other terminal equipment is not powered off, the instantaneous current is too large if the power is directly turned off, and abnormal conditions such as burning out a computer host or a power supply occur, which results in loss of equipment on the production line. And when workers in a workshop forget to power off the production line, the waste of power consumption is obviously caused.

Fig. 2 is a flowchart of a power on/off and power supply/interruption control method of a production line according to an embodiment, and as shown in fig. 2, the power on/off and power supply/interruption control method of the production line includes steps 220 to 260.

Step 220, when the terminal and the controlled device in the production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, and the shutdown instruction is used for instructing the terminal in the production line to shutdown.

The terminals, the control equipment and the controlled equipment in the production line are all positioned in the local area network of the production line, while the office equipment is positioned in the office local area network, and the equipment between the two networks cannot be directly accessed with each other. It is not feasible to remotely control devices in the local area network of the production line directly with devices in the office local area network. Therefore, the server is added, and the server can access the local area network of the office and the local area network of the production line, so that the remote control of the equipment in the local area network of the production line is realized. Here, the terminal in the production line refers to an intelligent terminal (including a processor and the like), such as a computer, a control panel, a robot and the like; the controlled device in the production line herein refers to a non-intelligent terminal (not including a processor, etc.), such as a jig, etc.

Generally, a production line of a workshop needs to power off terminals and controlled equipment in the production line during off-duty time. Since the production line of the plant does not need to be operated during off-duty periods, and of course does not need to be powered. If the time period of the production line of the workshop is 18: 00-20: 00 off duty, the terminal and the controlled equipment in the production line need to be powered off in the time period. The server acquires terminal information of the terminals in the production line in advance and stores the terminal information in the form of a terminal information data table. The terminal information may include a name of a production line where the terminal is located, a specific location name located in the production line, a local area network address (MAC address), an internet protocol address (IP address), and the like, which is not limited in this application. At the moment, the server sends a shutdown instruction to the terminals in the production line according to the terminal information data table, and the terminals can control automatic shutdown according to the shutdown instruction after receiving the shutdown instruction.

And 240, after confirming that all the terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, wherein the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line.

And after confirming that all the terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line. And determining that all the terminals are powered off by waiting for a preset time period after sending the power-off instruction, and determining that all the terminals are powered off when the preset time period is reached. The preset time period can be obtained by performing statistical analysis according to the shutdown duration of the terminal. Of course, it may also be adopted to feed back a shutdown completion signal to the server after the terminal is shutdown or before the terminal is shutdown.

After the control equipment receives the power-off instruction sent by the server, the control equipment controls the terminal and the controlled equipment in the production line to be powered off according to the power-off instruction. Therefore, the server drives the control equipment to power off the terminal and the controlled equipment on the production line.

In the embodiment of the application, when the terminal and the controlled device in the production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, and the shutdown instruction is used for indicating the terminal in the production line to be shut down. After confirming that all terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, and the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line. And sending a shutdown instruction by the server to shut down the terminal in the production line, and sending a power-off instruction to the control equipment corresponding to the production line after confirming the shutdown. The terminal and the controlled equipment in the production line are powered off by the control equipment in a unified manner, so that the terminal and the controlled equipment in the production line can be powered off in time, power consumption caused by power failure forgetting artificially is avoided, and power consumption and resources are greatly reduced. And the power is cut off after the power is turned off, so that the damage caused by the direct power-off of the terminal which is not turned off on the production line can be avoided.

In one embodiment, the control device comprises a thin client and a Programmable Logic Controller (PLC);

the outage instruction is used for instructing the corresponding control equipment of production line to carry out the outage to terminal and controlled equipment in the production line, includes:

and the power-off instruction is used for instructing the thin client corresponding to the production line to power off the terminal and the controlled equipment in the production line through the Programmable Logic Controller (PLC).

Specifically, a thin client (thin client) is a small industry-specific commercial PC designed based on PC industry standards using a professional embedded processor, a small local DOM electronic disk, and a reduced version operating system. An embedded processor is configured to include specialized low power, high arithmetic functionality. Local flash memory for non-removably storing an operating system, and standard I/O options for local system memory, network adapters, video cards, and other peripherals. The thin client has no removable components, and can provide a more secure and reliable use environment, lower power consumption and higher security than a common PC.

A PLC (Programmable Logic Controller), which is an electronic device designed specifically for digital operation in an industrial environment. It uses programmable memory to store the instructions for executing logical operation, sequential operation, timing, counting and arithmetic operation, and can control various types of machinery or production process by digital or analog input and output.

The control equipment comprises a thin client and a Programmable Logic Controller (PLC), wherein the thin client can control the PLC, and then the PLC controls the controlled equipment. A thin client may be provided for one production line, or a plurality of production lines may be provided to share a thin client. The PLC can be replaced by a single chip microcomputer, a control panel or other equipment capable of controlling the controlled equipment, and the PLC is not limited in the application. And after confirming that all terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, wherein the power-off instruction is used for instructing the thin client corresponding to the production line to power off the terminals and the controlled equipment in the production line through the PLC. The PLC is connected with the main switch of each production line in series, so that the thin client realizes the power-off of the terminal and the controlled equipment in the production line through the PLC. As shown in fig. 3, fig. 3(a) shows that the power supply and the power failure are controlled by the (production line) pull switch between the commercial power and the (production line) pull electricity, and fig. 3(b) shows a schematic diagram of the PLC circuit. The PLC circuit is connected with the pull switch in series, so that the thin client can realize the power-off of the terminal and the controlled equipment in the production line through the PLC. Namely, after the thin client receives the power-off instruction, the PLC is controlled according to the power-off instruction, and then the PLC controls the terminal and the controlled equipment in the production line to be powered off. And the power-off instruction sent by the server comprises a production line name, namely, the production line is powered off.

In the embodiment of the application, in order to enable the server to power off the terminal and the controlled terminal on the production line, the thin client and the PLC are added to control the terminal and the controlled device in the production line to power off. Therefore, the server sends a power-off instruction to the thin client corresponding to the production line, and the thin client controls the PLC to power off the terminal and the controlled equipment on the production line after receiving the power-off instruction. Therefore, after all the terminals in the production line are confirmed to be shut down, the server can send a power-off instruction to the control equipment corresponding to the production line, and the server can realize the power-off of the terminals and the controlled equipment on the production line. The intelligent outage avoids the power consumption waste caused by negligence due to the outage by workers in a workshop, and finally saves resources.

In one embodiment, the server sends a shutdown instruction to a terminal in the production line, and the shutdown instruction comprises the following steps:

the server receives the production line image which is sent by the monitor and obtained by shooting the production line, analyzes the production line image to obtain an analysis result, and sends a shutdown instruction to a terminal in the production line according to the analysis result.

Specifically, when the terminal and the controlled device in the production line are required to be powered off during the off-duty time period of the production line, a computer and a worker at some stations may be in use, so that all the terminals on the production line cannot be directly and uniformly powered off. Therefore, when the power of the terminal and the controlled equipment in the production line needs to be cut off, the server receives the production line image obtained by shooting the production line sent by the monitor, analyzes the received production line image, and judges which terminal on the production line to send the shutdown instruction according to the analysis result.

The received images of the production line are analyzed, and whether a person moves in a preset range of each terminal or not can be analyzed through the shot images of the production line, namely, the person appears in the preset range of the terminal on several shot images before and after the shot images, and displacement occurs. If yes, it indicates that there is still personnel operation on the terminal, and the terminal is not powered off temporarily, and if not, it indicates that there is no personnel operation on the terminal, and the terminal can be powered off, and a power-off instruction is sent to the terminal in the production line.

In the embodiment of the application, the server receives the image of the production line, which is sent by the monitor and is obtained by shooting the production line, analyzes the image of the production line to obtain an analysis result, and sends a shutdown instruction to the terminal in the production line according to the analysis result. Therefore, analysis is made according to whether the terminal in the production line is operated by a person or not, then the terminal on the production line is shut down distinctively, and all the terminals on the production line are not shut down uniformly and simultaneously, so that the special use requirements of the person on the production line can be met. Then, once the server finds the terminal without personnel operation through the monitor, the server can power off the terminal in time. The special use requirements of personnel on a production line can be met, meanwhile, power-off is timely performed on terminals which are not operated by the personnel, and finally, power-off is performed on all the terminals, so that the power consumption of the production line is greatly reduced, and resources are saved.

In one embodiment, as shown in fig. 4, the server receives an image of a production line obtained by shooting the production line from a monitor, analyzes the image of the production line to obtain an analysis result, and sends a shutdown instruction to a terminal in the production line according to the analysis result, including:

in step 420, the server receives the production line image obtained by shooting the production line sent by the monitor, wherein the production line image is obtained by shooting the production line by the monitor at regular time.

The monitor regularly shoots the production line to obtain images, and the shot production line images are sent to the server for analysis by the server. The timing may be to perform shooting according to a preset time period, for example, shooting every 5 minutes to obtain one image, which is not limited in the present application.

And 440, performing similarity analysis on the currently shot image of the production line and the image of the previous production line to obtain a similarity analysis result.

Step 460, when the similarity analysis result exceeds the preset threshold, sending a shutdown instruction to the terminal in the production line according to the similarity analysis result.

That is, the images of two production lines that have been continuously photographed recently are subjected to similarity analysis to obtain a similarity analysis result, which may be a similarity. If the similarity analysis result exceeds the preset threshold, the fact that almost no person moves in the time period of the images of the two production lines which are continuously shot recently is indicated, and the fact that no person operates the terminal on the production lines can be approximately considered. At this time, a shutdown instruction can be sent to the terminal in the production line, and the terminal receives the shutdown instruction to shut down the terminal. If the similarity analysis result is lower than or equal to the preset threshold, it indicates that part of the terminals in the production line still have personnel operation temporarily, and a shutdown instruction may not be sent to all the terminals in the production line temporarily. The image of the production line shot recently can be further analyzed, and the terminal which is located on the specific station of the production line is analyzed to be temporarily incapable of being shut down, so that the terminal is only temporarily not shut down, and other terminals on the production line are shut down uniformly.

In the embodiment of the application, the server judges whether a person operates the terminal on the production line by means of the image of the production line shot by the monitor. Therefore, whether a person operates the terminal or not can be accurately judged, the terminal which is not operated by the person is accurately powered off, and the terminal which is operated by the person temporarily is not powered off. Therefore, the power consumption can be reduced to a certain extent, and the resources can be saved.

In one embodiment, the similarity analysis of the currently captured image of the production line and the previous image of the production line includes:

and performing similarity analysis on the currently shot image of the production line and the image of the previous production line by adopting a histogram mode or a Hash algorithm or cosine similarity.

Specifically, when calculating the similarity between the image of the currently photographed production line and the image of the previous production line, various methods of calculating the image similarity may be employed. For example, the similarity between images may be calculated in a histogram manner or by a hash algorithm or by cosine similarity. When calculating the image similarity, basically, the image needs to be grayed to obtain a grayscale image, and then, a plurality of methods for calculating the image similarity are adopted for the grayscale image to perform calculation.

The process of calculating the image similarity in a histogram mode comprises the following steps: firstly, respectively acquiring histogram data of an image of a current production line and an image of a previous production line, normalizing the acquired image histograms, and calculating a similarity value by using a similarity formula. Wherein the similarity formula includes a correlation coefficient, chi-square, intersection, or baryta distance. And judging whether the similarity between the two images is greater than a preset threshold value or not.

The image similarity can also be calculated by adopting a hash algorithm, wherein the hash algorithm comprises a mean hash algorithm, a perceptual hash algorithm and a difference hash algorithm. For example, the process of calculating the image similarity by using the difference hash algorithm includes: firstly, reducing the image to 9 x 8, namely the image consists of 72 pixels; carrying out graying processing on the reduced image to obtain a grayscale image; and secondly, calculating a difference value, and calculating the difference value between adjacent pixel points, wherein 8 difference values are calculated by 9 pixel points in each row, and 64 difference values are generated by 8 rows in total. Finally, if the pixel on the left is brighter than the pixel on the right, a 1 is recorded, otherwise a 0 is recorded, thus generating an image fingerprint. And comparing the image fingerprints of the two images, and calculating the Hamming distance. When the calculated hamming distance is larger, the similarity of the images is smaller, and the similarity of the images is larger when the hamming distance is smaller. And obtaining a similarity value according to the Hamming distance, and judging whether the similarity between the image of the current production line and the image of the previous production line is greater than a preset threshold value.

The process of calculating the image similarity by adopting the cosine similarity comprises the following steps: first, two images are reduced (e.g., to 224 × 224); secondly, converting the reduced image into a gray-scale image; and finally, calculating the cosine distances of the two gray level images, wherein the closer the cosine distance is to 1, the higher the similarity of the two images is. And taking the cosine distance as a similarity value, and judging whether the similarity between the image of the currently shot production line and the image of the previous production line is greater than a preset threshold value or not.

The similarity between images can also be calculated by converting the images into binary codes to compare pixels.

Because the accuracy of calculating the similarity between the currently shot image of the production line and the image of the previous production line in different modes is different, when the similarity between the two images is calculated in different modes, the preset threshold values of the corresponding similarity can also be different.

In the embodiment of the application, when the similarity between the currently shot image of the production line and the previously shot image of the production line is calculated, different calculation modes can be adopted for calculation, and each calculation mode has advantages and disadvantages of the calculation mode, so that the similarity can be calculated by correspondingly adopting the optimal calculation mode according to the characteristics of the currently shot image of the production line and the previously shot image of the production line. Thus, the accuracy of the calculated similarity is improved.

In one embodiment, a method for controlling power on/off and power supply/cut-off of a production line is further provided, and the method further includes: the server assigns a fixed internet protocol IP address to a terminal in the production line in advance.

In the embodiment of the application, the server allocates fixed IP addresses to the terminals at specific stations on each production line in advance, maintains the terminal information data table, and records the MAC addresses of the terminals in the terminal information data table, so that the terminals with problems can be traced when problems occur in subsequent production. The terminal information data table records terminal information of the terminals in the production line. Before production, a terminal on a production line sends terminal information of the terminal to a server in advance, and the terminal information may include a name of a production line where the terminal is located, a specific position name located on the production line, a local area network address (MAC address), an internet protocol address (IP address), and the like. After the server receives the terminal information sent by the terminal, when the IP address of the corresponding terminal is found to be changed, the IP address of the terminal is modified into the IP address recorded on the server, so that the server can trace the terminal causing the problem when the problem occurs in the subsequent production.

In one embodiment, a method for controlling power on/off and power supply/cut-off of a production line is further provided, and the method further includes: when the power needs to be supplied to the terminal and the controlled equipment in the production line, the server acquires the production plan of each production line in advance, and sends a starting power-on instruction to the control equipment corresponding to the production plan according to the production plan, wherein the starting power-on instruction is used for instructing the control equipment to control the terminal in the production line to start before the production line works and to control the controlled equipment in the production line to be powered on.

In the embodiment of the application, the production line is powered on after being started according to the production plan. Specifically, the server sends a power-on instruction to the control device corresponding to the production plan according to the production plan, and after the control device receives the power-on instruction, the control device controls the terminal in the production line to be powered on and controls the controlled device in the production line to be powered on. Therefore, the production line in the production plan can be powered on in a targeted manner, and the power on in the production line is realized before the production line works, so that the waiting time of operators is reduced, and the working efficiency is improved.

In one embodiment, as shown in fig. 5, there is provided a power on/off and power supply/interruption control system for a production line, including: server 520, terminal 540, control device 560, and controlled device 580. Here, the terminal in the production line refers to an intelligent terminal (including a processor and the like), such as a computer, a control panel, a robot and the like; the controlled device in the production line herein refers to a non-intelligent terminal (not including a processor, etc.), such as a jig, etc.

The server is connected with the terminal and the control equipment, when the terminal and the controlled equipment in the production line need to be powered off, the server sends a shutdown instruction to the terminal in the production line, and after all the terminals in the production line are confirmed to be powered off, the server sends a power-off instruction to the control equipment corresponding to the production line to power off the terminal and the controlled equipment in the production line.

And the terminal in the production line receives the shutdown instruction sent by the server and controls the terminal to shut down according to the shutdown instruction.

And the control equipment receives a power-off instruction sent by the server and powers off the terminal and the controlled equipment in the production line according to the power-off instruction. The control device 560 comprises a thin client 562 and a Programmable Logic Controller (PLC) 564, namely, the server sends a power-off instruction to the thin client corresponding to the production line, the thin client controls the PLC according to the power-off instruction after receiving the power-off instruction, and then the PLC controls a pull switch in the production line, so that the power-off of the terminal and the controlled device in the production line is controlled.

In the embodiment of the application, the power on/off and power supply/interruption control system for the production line comprises a server, a terminal, a control device and a controlled device. The system can realize that the server sends a shutdown instruction to the terminal in the production line when the terminal and the controlled equipment in the production line need to be powered off, and the shutdown instruction is used for indicating the shutdown of the terminal in the production line. After confirming that all terminals in the production line are shut down, the server sends a power-off instruction to the control equipment corresponding to the production line, and the power-off instruction is used for indicating the control equipment corresponding to the production line to power off the terminals and the controlled equipment in the production line. And sending a shutdown instruction by the server to shut down the terminal in the production line, and sending a power-off instruction to the control equipment corresponding to the production line after confirming the shutdown. The control system is powered off by the control equipment to the terminals and the controlled equipment in the production line in a unified mode, so that the terminals and the controlled equipment in the production line can be powered off in time, power consumption caused by power failure forgetting artificially is avoided, and power consumption and resources are saved in the production line. And the power is cut off after the power is turned off, so that the damage caused by the direct power-off of the terminal which is not turned off on the production line can be avoided.

In one embodiment, as shown in fig. 6, the power on/off and power supply/interruption control system for a production line further includes a monitor 570, wherein the monitor 570 is connected to the server 520;

the monitor shoots the production line to obtain an image of the production line, and the image of the production line is sent to the server. The server receives the images of the production line sent by the monitor, analyzes the images of the production line to obtain an analysis result, and sends a shutdown instruction to the terminal according to the analysis result.

In the power on/off and power supply/interruption control system of the production line, the server receives an image of the production line, which is sent by the monitor and is obtained by shooting the production line, analyzes the image of the production line to obtain an analysis result, and sends a power off instruction to a terminal in the production line according to the analysis result. Therefore, analysis is made according to whether the terminal in the production line is operated by a person or not, then the terminal on the production line is shut down distinctively, and all the terminals on the production line are not shut down uniformly and simultaneously, so that the special use requirements of the person on the production line can be met. Then, once the server finds the terminal without personnel operation through the monitor, the server can power off the terminal in time. The control system can meet the special use requirements of personnel on a production line, simultaneously power off is timely performed on terminals operated by no personnel, and finally power off is performed on all the terminals, so that the power consumption of the production line is greatly reduced, and resources are saved.

It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.

In one embodiment, as shown in fig. 7, there is provided a power on/off and power supply/interruption control device 700 for a production line, comprising: a shutdown control module 720 and a power-off control module 740. Wherein the content of the first and second substances,

the shutdown control module 720 is configured to, when the power of the terminal and the controlled device in the production line needs to be cut off, send a shutdown instruction to the terminal in the production line by the server, where the shutdown instruction is used to instruct the terminal in the production line to shutdown;

and the power-off control module 740 is configured to, after it is determined that all the terminals in the production line are powered off, send a power-off instruction to the control device corresponding to the production line, where the power-off instruction is used to instruct the control device corresponding to the production line to power off the terminals and the controlled devices in the production line.

In one embodiment, the control device comprises a thin client and a Programmable Logic Controller (PLC);

the outage instruction is used for instructing the corresponding control equipment of production line to carry out the outage to terminal and controlled equipment in the production line, includes:

and the power-off instruction is used for instructing the thin client corresponding to the production line to power off the terminal and the controlled equipment in the production line through the Programmable Logic Controller (PLC).

In an embodiment, the shutdown control module 720 is further configured to receive, by the server, an image of the production line, which is obtained by shooting the production line, sent by the monitor, analyze the image of the production line to obtain an analysis result, and send a shutdown instruction to a terminal in the production line according to the analysis result.

In one embodiment, the shutdown control module 720 is further configured to receive, by the server, an image of the production line, which is sent by the monitor and obtained by shooting the production line, where the image of the production line is obtained by shooting the production line by the monitor at regular time; carrying out similarity analysis on the image of the current production line and the image of the previous production line to obtain a similarity analysis result; and when the similarity analysis result exceeds a preset threshold value, sending a shutdown instruction to the terminal in the production line according to the similarity analysis result.

In one embodiment, the shutdown control module 720 is further configured to perform similarity analysis between the currently captured image of the production line and the previous image of the production line by using a histogram method, a hash algorithm, or a cosine similarity.

In one embodiment, a power on/off and power supply/interruption control device for a production line is provided, further comprising: and the IP address allocation module is used for allocating a fixed Internet protocol IP address to the terminal in the production line in advance by the server.

In one embodiment, as shown in fig. 8, there is provided a power on/off and power supply/interruption control device 700 for a production line, further comprising: and a power-on module 760, configured to, when power needs to be supplied to the terminal and the controlled device in the production line, pre-acquire a production plan of each production line, and send a power-on command to the control device corresponding to the production plan according to the production plan, where the power-on command is used to instruct the control device to control the terminal in the production line to be powered on before the production line works, so as to control the controlled device in the production line to be powered on.

The implementation of each module in the power on/off and power supply/interruption control device of the production line provided in the embodiment of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.

The process of the server implementing the power on/off and power supply/interruption control method of the production line is as described in the above embodiments, and is not described herein again.

The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of a method for controlling power on and off of a production line.

A computer program product comprising instructions which, when run on a computer, cause the computer to perform a method of controlling power on and off of a production line.

Any reference to memory, storage, database, or other medium used by embodiments of the present application may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).

The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:大数据运维平台、服务器及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类