Workpiece processing control method, device, computer equipment and storage medium
By checking whether there are parts to be processed during the workpiece processing process, and canceling the invalid command, the wasted time and energy consumption caused by idle stations is solved, and more efficient processing control is achieved.
Patent Information
- Application Number
- CN202411169157.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2044-08-23
AI Technical Summary
In the prior art, during the workpiece processing process, when there is no part to be processed at a certain station, it will continue to rotate to the last process, resulting in problems of wasting time and increasing energy consumption.
By receiving the processing command of the target feeding level, check whether there is a piece to be processed. If not, cancel the command and stop processing until it rotates to the first feeding level to avoid idle rotation.
It effectively avoids idleness, saves time and energy consumption, and improves the efficiency and energy efficiency of workpiece processing.
Smart Images

Figure CN119126685B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of workpiece processing, and in particular to a workpiece processing control method, device, computer equipment and storage medium. Background Art
[0002] In the field of workpiece processing, a turntable is usually used to change workstations for processing. Since it is continuous processing, the existing processing method is that after the first process is loaded, it will be transferred to each workstation for processing until the last process. However, there may be a situation where there is no workpiece to be processed at a certain workstation, and it will continue to transfer to the next workstation until the last process, which will waste time and increase energy consumption. Summary of the Invention
[0003] In view of the shortcomings of the existing technology, the present invention proposes a workpiece processing control method, device, computer equipment and storage medium, aiming to solve the problem in the existing technology that there is no workpiece to be processed at a certain workstation, but processing is still carried out, which wastes time and increases energy consumption.
[0004] The technical solution proposed by the present invention is:
[0005] A workpiece machining control method, the method comprising:
[0006] Receiving a target processing command to process a target loading position on the turntable;
[0007] Detect whether there is a workpiece to be processed at the target loading position;
[0008] If there is no workpiece to be processed, the target processing command is canceled, and the processing command for the target loading position to rotate to the subsequent loading position is stopped until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first processing step.
[0009] Furthermore, after the step of detecting whether there is a workpiece to be processed at the target loading position, the method further includes:
[0010] If there is a workpiece to be processed, determining whether the workpiece to be processed has executed the target processing command at the target loading position;
[0011] If not, the target processing command is executed.
[0012] Furthermore, after the step of determining whether the workpiece to be processed has executed the target processing command at the target loading position, the method includes:
[0013] If so, the target processing command is canceled, and the target loading position is rotated to the next loading position.
[0014] Furthermore, the step of executing the target processing command includes:
[0015] Determine whether all loading positions that have been rotated before the target loading position have executed corresponding processing commands;
[0016] If so, the target processing command is executed.
[0017] Furthermore, after the step of canceling the target processing command and stopping the processing command for the target loading position at the subsequent loading position until the target loading position rotates to the first loading position, the method further includes:
[0018] Detect whether there is a workpiece to be processed at the previous loading position of the target loading position;
[0019] If not, then detect whether there is a workpiece to be processed at the current next loading position of the target loading position;
[0020] If not, determining whether the rotation time of the turntable is greater than a preset rotation time;
[0021] If so, the processing is stopped and an alarm is issued.
[0022] Furthermore, after the step of canceling the target processing command and stopping the processing command for the target loading position at the subsequent loading position until the target loading position rotates to the first loading position, the method further includes:
[0023] Determining whether the rotation time of the turntable is greater than a preset rotation time;
[0024] If so, detecting whether there is an empty material position on the material loading position of the turntable;
[0025] If yes, then obtain the number of empty material positions;
[0026] Determining whether the number of empty material levels is greater than a preset number;
[0027] If so, the processing is stopped and an alarm is issued.
[0028] Furthermore, after the step of canceling the target processing command and stopping the processing command for the target loading position to rotate to the subsequent loading position until the target loading position rotates to the first loading position, the method further includes:
[0029] After the processing command is triggered, detecting whether all the loading positions on the turntable have executed the processing command;
[0030] If not, the corresponding loading position that has not executed the processing command is filtered out to obtain the loading position to be tested again;
[0031] Detecting whether there is a workpiece to be processed at the loading position to be inspected for the second time;
[0032] If so, execute the processing command corresponding to the loading position to be detected for the second time.
[0033] The present invention also provides a workpiece processing control device, the device comprising:
[0034] A receiving module, configured to receive a target processing command for processing a target loading position on the turntable, wherein the target loading position is a loading position not processed in the first process;
[0035] A detection module, used to detect whether there is a workpiece to be processed at the target loading position;
[0036] The command processing module is used to cancel the target processing command if there is no workpiece to be processed, and stop the processing command for the target loading position to rotate to the subsequent loading position until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first processing step.
[0037] The present invention also provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
[0038] The present invention also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0039] According to the above technical solution, the present invention has the beneficial effect of canceling the target processing command when detecting that there is no workpiece to be processed at the target loading position, and stopping the processing command for the target loading position to rotate to the subsequent loading position, thereby solving the problem in the prior art that there is no workpiece to be processed at a certain workstation but processing is still carried out, which wastes time and increases energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 This is a flow chart of a workpiece processing control method provided by an embodiment of the present invention;
[0041] Figure 2 This is a functional module diagram of a workpiece processing control device provided by an embodiment of the present invention;
[0042] Figure 3 It is a schematic block diagram of the structure of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0044] like Figure 1 As shown, an embodiment of the present invention provides a workpiece processing control method, the method comprising:
[0045] Step S101: receiving a target processing command for processing a target loading position on a turntable.
[0046] Under normal working conditions, each rotation of the turntable triggers a target processing command for processing all loading positions on the turntable. In this embodiment, the target loading position is a loading position at any position on the turntable.
[0047] Step S102: Detect whether there is a workpiece to be processed at the target loading position.
[0048] After receiving the target processing command, the target loading position is first detected to see if there are any parts to be processed. The detection method can be infrared sensing, image recognition, gravity sensing, etc.
[0049] Step S103: If there is no workpiece to be processed, cancel the target processing command and stop the processing command for the target loading position to rotate to the subsequent loading position until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first processing step.
[0050] If there is no workpiece to be processed, the target processing command is canceled to avoid empty processing of the target loading position, which wastes energy. In addition, no processing will be performed when the target loading position is rotated to the next loading position, because it will always be empty until the first loading position is rotated, because the material will be reloaded at the first loading position.
[0051] When it is detected that there is no workpiece to be processed at the target loading position, the target processing command is canceled, and the processing command for the target loading position to rotate to the subsequent loading position is stopped, which solves the problem in the prior art that there is no workpiece to be processed at a certain workstation but processing is still carried out, which wastes time and increases energy consumption.
[0052] In this embodiment, after the step of detecting whether there is a workpiece to be processed at the target loading position, the following steps are included:
[0053] If there is a workpiece to be processed, determining whether the workpiece to be processed has executed the target processing command at the target loading position;
[0054] If not, the target processing command is executed.
[0055] If there are parts to be processed at the target loading position, further judgment is required to determine whether the target loading position has executed the current corresponding processing command, that is, the target processing command, to avoid repeated processing.
[0056] In this embodiment, after the step of determining whether the workpiece to be processed has executed the target processing command at the target loading position, the following steps are included:
[0057] If so, the target processing command is canceled, and the target loading position is rotated to the next loading position.
[0058] If the target processing command has been executed and is triggered again, it means it is a false trigger. In this case, corrections must be made and the target processing command must be canceled. After the processing of other loading positions is completed, the turntable rotates to move the target loading position to the next loading position.
[0059] In this embodiment, the step of executing the target processing command includes:
[0060] Determine whether all loading positions that have been rotated before the target loading position have executed corresponding processing commands;
[0061] If so, the target processing command is executed.
[0062] Before executing the target processing command, it is necessary to determine whether the corresponding processing commands have been executed on the loading positions that have been rotated before to avoid defective products. If there is a processing command that has not been executed on any loading position before, the target processing command will no longer be executed to avoid energy consumption in one step. If the corresponding processing commands have been executed before, the current target processing command will also continue to be executed.
[0063] In this embodiment, after the step of canceling the target processing command and stopping the processing command for the target loading position at the subsequent loading position until the target loading position rotates to the first loading position, the method includes:
[0064] Detect whether there is a workpiece to be processed at the previous loading position of the target loading position;
[0065] If not, then detect whether there is a workpiece to be processed at the current next loading position of the target loading position;
[0066] If not, determining whether the rotation time of the turntable is greater than a preset rotation time;
[0067] If so, the processing is stopped and an alarm is issued.
[0068] If the previous loading position and the next loading position of the target loading position do not have any parts to be processed, it is necessary to determine whether the turntable has just started to rotate or has rotated more than one circle. If the rotation time is greater than the preset rotation time, then the processing is stopped and an alarm is issued to remind the user to check in time. Specifically, the preset rotation time is the time it takes for the turntable to rotate one circle under normal processing.
[0069] In this embodiment, after the step of canceling the target processing command and stopping the processing command for the target loading position at the subsequent loading position until the target loading position rotates to the first loading position, the method includes:
[0070] Determining whether the rotation time of the turntable is greater than a preset rotation time;
[0071] If so, detecting whether there is an empty material position on the material loading position of the turntable;
[0072] If yes, then obtain the number of empty material positions;
[0073] Determining whether the number of empty material levels is greater than a preset number;
[0074] If so, the processing is stopped and an alarm is issued.
[0075] After the turntable rotates for a preset rotation time, the material loading position of the turntable needs to be detected. If the number of empty material levels detected is greater than the preset number, the processing also needs to be stopped and an alarm is issued to remind the user to check in time. The preset number is specifically three empty material levels.
[0076] In this embodiment, after the step of canceling the target processing command and stopping the processing command for rotating the target loading position to the subsequent loading position until the target loading position rotates to the first loading position, the method includes:
[0077] After the processing command is triggered, detecting whether all the loading positions on the turntable have executed the processing command;
[0078] If not, the corresponding loading position that has not executed the processing command is filtered out to obtain the loading position to be tested again;
[0079] Detecting whether there is a workpiece to be processed at the loading position to be inspected for the second time;
[0080] If so, execute the processing command corresponding to the loading position to be detected for the second time.
[0081] In order to avoid the situation where the processing command is missed, the loading position where the processing command has not been executed is checked to see if there are any parts to be processed. If so, the processing command is executed additionally.
[0082] like Figure 2 As shown, an embodiment of the present invention provides a workpiece processing control device, which includes a receiving module 11 , a detection module 12 and a command processing module 13 .
[0083] The receiving module 11 is used to receive a target processing command for processing a target loading position on the turntable.
[0084] Under normal working conditions, each rotation of the turntable triggers a target processing command for processing all loading positions on the turntable. In this embodiment, the target loading position is a loading position at any position on the turntable.
[0085] The detection module 12 is used to detect whether there is a workpiece to be processed at the target loading position.
[0086] After receiving the target processing command, the target loading position is first detected to see if there are any parts to be processed. The detection method can be infrared sensing, image recognition, gravity sensing, etc.
[0087] The command processing module 13 is used to cancel the target processing command if there is no workpiece to be processed, and stop the processing command for the target loading position to rotate to the subsequent loading position until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first processing step.
[0088] If there is no workpiece to be processed, the target processing command is canceled to avoid empty processing of the target loading position, which wastes energy. In addition, no processing will be performed when the target loading position is rotated to the next loading position, because it will always be empty until the first loading position is rotated, because the material will be reloaded at the first loading position.
[0089] When it is detected that there is no workpiece to be processed at the target loading position, the target processing command is canceled, and the processing command for the target loading position to rotate to the subsequent loading position is stopped, which solves the problem in the prior art that there is no workpiece to be processed at a certain workstation but processing is still carried out, which wastes time and increases energy consumption.
[0090] In this embodiment, the detection module 12 includes:
[0091] The first sub-judgment module is used to determine whether the target processing command has been executed on the target loading position of the workpiece to be processed if there is one;
[0092] The first sub-execution module is configured to execute the target processing command if no.
[0093] If there are parts to be processed at the target loading position, further judgment is required to determine whether the target loading position has executed the current corresponding processing command, that is, the target processing command, to avoid repeated processing.
[0094] In this embodiment, the device includes:
[0095] The first sub-cancellation module is used to cancel the target processing command if the workpiece to be processed has executed the target processing command at the target loading position, and rotate the target loading position to the next loading position.
[0096] If the target processing command has been executed and is triggered again, it means it is a false trigger. In this case, corrections must be made and the target processing command must be canceled. After the processing of other loading positions is completed, the turntable rotates to move the target loading position to the next loading position.
[0097] In this embodiment, the first sub-executing module includes:
[0098] The second sub-judgment module is used to judge whether all the loading positions that have been rotated before the target loading position have executed the corresponding processing commands;
[0099] The second sub-execution module is configured to execute the target processing command if yes.
[0100] Before executing the target processing command, it is necessary to determine whether the corresponding processing commands have been executed on the loading positions that have been rotated before to avoid defective products. If there is a processing command that has not been executed on any loading position before, the target processing command will no longer be executed to avoid energy consumption in one step. If the corresponding processing commands have been executed before, the current target processing command will also continue to be executed.
[0101] In this embodiment, the device includes:
[0102] The second sub-detection module is used to detect whether there is a workpiece to be processed at the previous loading position of the target loading position;
[0103] The third sub-detection module is used to detect whether there is a workpiece to be processed at the current next loading position of the target loading position if no workpiece is present;
[0104] A third sub-judgment module is used to determine whether the rotation time of the turntable is greater than a preset rotation time if no;
[0105] The first sub-alarm module is used to stop processing and issue an alarm if yes.
[0106] If the previous loading position and the next loading position of the target loading position do not have any parts to be processed, it is necessary to determine whether the turntable has just started to rotate or has rotated more than one circle. If the rotation time is greater than the preset rotation time, then the processing is stopped and an alarm is issued to remind the user to check in time. Specifically, the preset rotation time is the time it takes for the turntable to rotate one circle under normal processing.
[0107] In this embodiment, the device includes:
[0108] a fourth sub-judgment module, configured to determine whether the rotation time of the turntable is greater than a preset rotation time;
[0109] A fifth sub-detection module is configured to detect whether there is an empty material position at the material loading position of the turntable if yes;
[0110] A first sub-acquisition module is configured to obtain the number of empty material positions if yes;
[0111] A fifth sub-judgment module is used to judge whether the number of empty material levels is greater than a preset number;
[0112] The second sub-alarm module is used to stop processing and issue an alarm if yes.
[0113] After the turntable rotates for a preset rotation time, the material loading position of the turntable needs to be detected. If the number of empty material levels detected is greater than the preset number, the processing also needs to be stopped and an alarm is issued to remind the user to check in time. The preset number is specifically three empty material levels.
[0114] In this embodiment, the device includes:
[0115] a sixth sub-detection module, configured to detect whether all loading positions on the turntable have executed the processing command after the processing command is triggered;
[0116] The first sub-screening module is used to screen out the corresponding loading positions that have not executed the processing command if no, and obtain the loading positions to be tested again;
[0117] A seventh sub-detection module is used to detect whether there is a workpiece to be processed at the loading position to be inspected for the second time;
[0118] The third sub-execution module is configured to execute the processing command corresponding to the loading position to be re-detected if yes.
[0119] In order to avoid the situation where the processing command is missed, the loading position where the processing command has not been executed is checked to see if there are any parts to be processed. If so, the processing command is executed additionally.
[0120] like Figure 3 As shown, the embodiment of the present invention further provides a computer device, which can be a server, and its internal structure can be as follows Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as a model of a workpiece processing control method. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a workpiece processing control method is implemented.
[0121] The processor executes the steps of the workpiece processing control method as follows: receiving a target processing command to process a target loading position on the turntable;
[0122] Detect whether there is a workpiece to be processed at the target loading position;
[0123] If there is no workpiece to be processed, the target processing command is canceled, and the processing command for the target loading position to rotate to the subsequent loading position is stopped until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first processing step.
[0124] Those skilled in the art will understand that Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device to which the solution of the present invention is applied.
[0125] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which implements a workpiece processing control method when the computer program is executed by a processor, specifically comprising: receiving a target processing command to process a target loading position on a turntable;
[0126] Detect whether there is a workpiece to be processed at the target loading position;
[0127] If there is no workpiece to be processed, the target processing command is canceled, and the processing command for the target loading position to rotate to the subsequent loading position is stopped until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first processing step.
[0128] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Among them, any reference to memory, storage, database, or other media provided by the present invention and used in the embodiments can include non-volatile and / or volatile memory. 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) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-speed SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0129] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A workpiece processing control method, characterized in that: The method comprises: Receiving a target processing command to process a target loading position on the turntable; Detect whether there is a workpiece to be processed at the target loading position; If there is no workpiece to be processed, the target processing command is canceled, and the processing command for the target loading position to rotate to the subsequent loading position is stopped until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first process; After the step of canceling the target processing command and stopping the processing command for the target loading position at the subsequent loading position until the target loading position rotates to the first loading position, the method includes: Determining whether the rotation time of the turntable is greater than a preset rotation time; If so, detecting whether there is an empty material position on the material loading position of the turntable; If yes, then obtain the number of empty material positions; Determining whether the number of empty material levels is greater than a preset number; If so, the processing is stopped and an alarm is issued; After the step of canceling the target processing command and stopping the processing command for the target loading position at the subsequent loading position until the target loading position rotates to the first loading position, the method includes: Detect whether there is a workpiece to be processed at the previous loading position of the target loading position; If not, then detect whether there is a workpiece to be processed at the current next loading position of the target loading position; If not, determining whether the rotation time of the turntable is greater than a preset rotation time; If so, the processing is stopped and an alarm is issued; After the step of canceling the target processing command and stopping the processing command for the target loading position to rotate to the subsequent loading position until the target loading position rotates to the first loading position, the method includes: After the processing command is triggered, detecting whether all the loading positions on the turntable have executed the processing command; If not, the corresponding loading position that has not executed the processing command is filtered out to obtain the loading position to be tested again; Detecting whether there is a workpiece to be processed at the loading position to be inspected for the second time; If yes, execute the processing command corresponding to the loading position to be detected twice; The preset rotation time is the time it takes for the turntable to rotate one circle under normal processing conditions.
2. The workpiece processing control method according to claim 1, characterized in that: After the step of detecting whether there is a workpiece to be processed at the target loading position, the method includes: If there is a workpiece to be processed, determining whether the workpiece to be processed has executed the target processing command at the target loading position; If not, the target processing command is executed.
3. The workpiece processing control method according to claim 2, characterized in that: After the step of determining whether the workpiece to be processed has executed the target processing command at the target loading position, the method includes: If so, the target processing command is canceled, and the target loading position is rotated to the next loading position.
4. The workpiece processing control method according to claim 3, characterized in that: The step of executing the target processing command includes: Determine whether all loading positions that have been rotated before the target loading position have executed corresponding processing commands; If so, the target processing command is executed.
5. A workpiece processing control device, characterized in that: The device comprises: A receiving module, configured to receive a target processing command for processing a target loading position on the turntable, wherein the target loading position is a loading position not processed in the first process; A detection module, used to detect whether there is a workpiece to be processed at the target loading position; a command processing module, configured to cancel the target processing command if there is no workpiece to be processed, and stop processing commands for the target loading position to rotate to subsequent loading positions until the target loading position rotates to the first loading position, wherein the first loading position is the loading position for the first process; The device further comprises: a fourth sub-judgment module, configured to determine whether the rotation time of the turntable is greater than a preset rotation time; A fifth sub-detection module is configured to detect whether there is an empty material position at the material loading position of the turntable if yes; A first sub-acquisition module is configured to obtain the number of empty material positions if yes; A fifth sub-judgment module is used to judge whether the number of empty material levels is greater than a preset number; The second sub-alarm module is used to stop processing and issue an alarm if yes; The second sub-detection module is used to detect whether there is a workpiece to be processed at the previous loading position of the target loading position; The third sub-detection module is used to detect whether there is a workpiece to be processed at the current next loading position of the target loading position if no workpiece is present; A third sub-judgment module is used to determine whether the rotation time of the turntable is greater than a preset rotation time if no; The first sub-alarm module is used to stop processing and issue an alarm if yes; a sixth sub-detection module, configured to detect whether all loading positions on the turntable have executed the processing command after the processing command is triggered; The first sub-screening module is used to screen out the corresponding loading positions that have not executed the processing command if no, and obtain the loading positions to be tested again; A seventh sub-detection module is used to detect whether there is a workpiece to be processed at the loading position to be inspected for the second time; The third sub-execution module is configured to execute the processing command corresponding to the loading position to be re-detected if yes.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Workpiece machining control method and device, processor and workpiece machining equipment
CN113649639A
Self-judgment pick-up system
CN117484487A