Material loading and unloading control method, controller and storage medium of CNC machining system
By introducing an automated loading and unloading control method in the CNC processing system, the upper computer and the robot use to realize the cyclic and alternating loading and unloading process, the problem of manual failure to deal with multiple CNC equipment in a timely manner and improve production efficiency.
Patent Information
- Application Number
- CN202411074753.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-08-07
AI Technical Summary
When multiple CNC equipment is running at the same time, due to the inability of manual detection and processing of equipment that have been completed in time, the invalid working hours are increased and the production efficiency of the processing line is inefficient.
通过在CNC加工系统中引入上位机、加工线、下料输送带、上料输送带和机械手,实现全自动循环交替的上下料流程,根据工件加工任务确定目标设备并生成上下料节拍控制信号, Control the robot to move on the rail frame and automatically load and unload.
A fully automated loading and unloading process has been realized, which reduces labor costs and improves the production and processing efficiency of the processing line.
Smart Images

Figure CN118605397B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automated processing technology, and in particular to a loading and unloading control method, a controller, and a storage medium for a CNC processing system. Background Art
[0002] CNC equipment, also known as CNC machine tools, is the abbreviation of Computer numerical control machine tools (Computer numerical control). It is an automated machine tool controlled by a program. CNC machine tools can control the feed speed of the tool and the spindle speed through computer decoding, so that the machine tool can complete cutting, drilling and other operations on the workpiece. CNC machining has great advantages over manual machining, and the parts produced by its machining are accurate and repeatable.
[0003] In the process of using multiple CNC equipment to process large quantities of materials, it involves loading and unloading materials at multiple stations and large-scale processing. At present, the loading and unloading of multiple machines in CNC processing are all completed by manpower. Workers need to repeatedly remove the processed workpieces, clamp the workpieces to be processed, and clean the workpieces and machine tools in a timely manner at multiple different stations. Due to limited manpower, when multiple CNC equipment are running at the same time, it may not be possible to manually find that some of the CNC equipment have completed processing in time, and it is impossible to load and unload materials in time, resulting in a lot of invalid working hours of CNC equipment and low production and processing efficiency of the processing line. Summary of the invention
[0004] The following is an overview of the topics described in detail in this article.
[0005] The embodiments of the present application provide a loading and unloading control method, controller, and storage medium for a CNC machining system, which can realize a fully automatic, cyclical loading and unloading process, reduce labor costs, and improve the production and processing efficiency of the machining line.
[0006] In a first aspect, an embodiment of the present application provides a method for controlling loading and unloading of a CNC machining system, which is applied to a controller of a CNC machining system, wherein the CNC machining system further comprises: a host computer, a machining line, a material unloading conveyor belt and a material loading conveyor belt arranged beside the machining line, and a guide rail frame erected above the machining line and provided with a manipulator; a plurality of candidate CNC devices are arranged in sequence along the length direction of the machining line;
[0007] The method comprises:
[0008] Determine an initial processing step set from the workpiece processing task issued by the host computer, and obtain step sequence information, number of steps, and single-step processing time of each processing step of the initial processing step set;
[0009] Perform step reorganization processing according to the step sequence information, the number of steps, and the single step processing time of each processing step to generate a process list;
[0010] Determining the target number of equipment to be used according to the number of processes in the process list;
[0011] When the number of the target devices is less than or equal to the number of candidate devices of the candidate CNC devices, performing online confirmation processing and device screening processing on the candidate CNC devices, determining target CNC devices whose number is equal to the number of the target devices from the candidate CNC devices, and acquiring corresponding target device information;
[0012] Perform loading and unloading schedule planning according to the target equipment information and the process list to obtain loading and unloading rhythm control signals;
[0013] In response to the processing start command, the robot is controlled to move along the guide frame according to the loading and unloading rhythm control signal, and loads and unloads materials cyclically and alternately between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment to perform the workpiece processing task.
[0014] In a second aspect, an embodiment of the present application provides a controller comprising at least one processor and a memory for communicating with the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the loading and unloading control method of the CNC machining system as described in any one of the embodiments of the first aspect.
[0015] In a third aspect, an embodiment of the present application provides a storage medium, which is a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the loading and unloading control method of a CNC machining system as described in any one of the embodiments of the first aspect.
[0016] The embodiment of the present application includes: a CNC processing system including: a controller, a host computer, a processing line, a feeding conveyor belt and a unloading conveyor belt arranged beside the processing line, and a guide rail frame erected above the processing line and provided with a manipulator; a plurality of candidate CNC devices are arranged in sequence along the length direction of the processing line; when the CNC processing system is used to perform a workpiece processing task, the controller first determines an initial processing step set from the workpiece processing task issued by the host computer, and obtains the step sequence information, the number of steps, and the single-step processing time of each processing step of the initial processing step set; secondly, the step reorganization processing is performed according to the step sequence information, the number of steps, and the single-step processing time of each processing step to generate a process list; then, the adopted process is determined according to the number of processes in the process list. The number of target devices; then, when the number of target devices is less than or equal to the number of candidate devices of the candidate CNC devices, the candidate CNC devices are subjected to online confirmation processing and device screening processing, and the target CNC devices whose number is equal to the number of target devices are determined from the candidate CNC devices, and the corresponding target device information is obtained; then, the loading and unloading stroke planning processing is carried out according to the target device information and the process list, and the loading and unloading rhythm control signal is obtained; finally, in response to the processing start command, the manipulator is controlled to move along the guide frame according to the loading and unloading rhythm control signal, and the material is unloaded and unloaded cyclically and alternately between the loading conveyor belt, the unloading conveyor belt, and the target CNC device to perform the workpiece processing task; in this way, automatic loading and unloading is realized at a certain rhythm during the workpiece processing process, thereby improving the processing efficiency. That is to say, the embodiment of the present application can realize a fully automatic, cyclic and alternating loading and unloading process, reduce labor costs, and improve the production and processing efficiency of the processing line. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural schematic diagram of a CNC machining system provided by an embodiment of the present application;
[0018] Figure 2 It is a flow chart of a method for controlling loading and unloading of a CNC machining system provided in one embodiment of the present application;
[0019] Figure 3 This is a schematic diagram of the implementation process of the step reorganization process provided by an implementation of the present application;
[0020] Figure 4 is a schematic diagram of determining a target CNC device provided by an implementation of the present application;
[0021] Figure 5 It is a schematic diagram of the hardware structure of a controller provided by an implementation of the present application. DETAILED DESCRIPTION
[0022] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0023] It should be noted that although a logical order is shown in the flowchart in the description of the present application, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. In the description of the present application, a number of means one or more, and a plurality of means two or more. The description of "first" and "second" is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0025] The present application discloses a loading and unloading control method, controller, and computer-readable storage medium for a CNC machining system. The method includes: performing step reorganization processing according to the acquired step sequence information, number of steps, and single-step processing time of each machining step, and after generating a process list, determining the number of target devices according to the number of processes; when the number of target devices is less than or equal to the number of candidate devices, performing online confirmation processing and device screening processing on the candidate CNC devices, determining the number of target CNC devices equal to the number of target devices and obtaining the corresponding target device information; performing loading and unloading stroke planning processing according to the target device information and the process list, and after obtaining the loading and unloading beat control signal, controlling the manipulator to cyclically and alternately load and unload the target CNC device to perform the workpiece machining task. It can realize a fully automatic, cyclic and alternating loading and unloading process, reduce labor costs, and improve production and processing efficiency.
[0026] The embodiments of the present application are further described below in conjunction with the accompanying drawings.
[0027] like Figure 1 As shown, the CNC processing system 100 includes: a controller 110, a host computer 120, a processing line, a unloading conveyor belt 150 and a loading conveyor belt 140 arranged beside the processing line, and a guide rail frame 160 erected above the processing line and provided with a manipulator 130; a plurality of candidate CNC devices are arranged in sequence along the length direction of the processing line; wherein the controller 110 is communicatively connected with the manipulator 130, the candidate CNC devices, and the host computer 120.
[0028] Specifically, the host computer 120 is used to be operated by the management personnel, send workpiece processing tasks to the controller, and receive alarm signals returned by the controller.
[0029] Specifically, the distances between two adjacent candidate CNC devices are the same.
[0030] Specifically, the loading conveyor belt 140 is used to convey the workpieces to be processed. Specifically, the staff will place the workpieces to be processed of corresponding specifications on the loading conveyor belt in an orderly manner at the manual pick-up and placement inspection position. The loading conveyor belt 140 will transfer the workpieces to be processed so that the manipulator 130 can grab and load the materials. The staff can load the materials continuously to ensure that the materials are sufficient; or a robot can be used to load the materials at the manual pick-up and placement inspection position. Specifically, the workpiece to be processed is aluminum.
[0031] Specifically, the guide rail frame 160 includes but is not limited to: a column, a movable beam and a movable base, and the movable base is connected to the manipulator. The movable beam is mainly composed of a square tube, a linear guide mechanism, a quick docking structure, etc., which can facilitate the linear docking of the guide rails and connect them in series to form a movable beam mechanism of a preset length. It is understandable that as the scale of production expands, when the processing line needs to be extended, the guide rail frame can be extended. It is understandable that the guide rail frame 160 can also include other mechanisms, such as safety protection devices and other mechanisms. Therefore, the embodiment of the present application does not impose specific restrictions on the structural composition of the guide rail frame 160.
[0032] Specifically, the controller 110 is used to: first determine the initial processing step set from the workpiece processing task issued by the host computer 120, and obtain the step sequence information, step number, and single-step processing time of the processing steps of the initial processing step set; secondly, perform step reorganization processing according to the step sequence information, step number, and single-step processing time of each processing step to generate a process list; then, determine the number of target devices to be used according to the number of processes in the process list; then, when the number of target devices is less than or equal to the number of candidate devices of the candidate CNC devices, perform online confirmation processing and device selection on the candidate CNC devices. Screening is performed to determine the target CNC devices whose number is equal to the target devices from the candidate CNC devices, and the corresponding target device information is obtained; then, the loading and unloading stroke planning is performed according to the target device information and the process list, and the loading and unloading rhythm control signal is obtained; finally, in response to the processing start command, the robot 130 is controlled to move along the guide frame according to the loading and unloading rhythm control signal, and the material is loaded and unloaded cyclically and alternately between the loading conveyor belt 140, the unloading conveyor belt 150, and the target CNC device to perform the workpiece processing task; in this way, automatic loading and unloading is realized at a certain rhythm during the workpiece processing process, thereby improving the processing efficiency.
[0033] According to the CNC machining system provided in the embodiment of the present application, it is possible to control the robot to cyclically and alternately load and unload materials between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment based on the generated loading and unloading rhythm control signal, thereby realizing a fully automatic, cyclic alternating loading and unloading process, reducing labor costs, and improving the production and processing efficiency of the machining line.
[0034] Those skilled in the art will appreciate that the system structure shown in the figure does not constitute a limitation on the embodiments of the present application, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0035] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0036] Those skilled in the art will appreciate that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0037] Based on the above-mentioned embodiments of the CNC machining system, various embodiments of the loading and unloading control method of the CNC machining system of the present application are proposed below.
[0038] Reference Figure 2 The loading and unloading control method of the CNC machining system is applied to the controller of the CNC machining system, and the CNC machining system also includes: a host computer, a machining line, a material unloading conveyor belt and a material loading conveyor belt arranged beside the machining line, and a guide rail frame erected above the machining line and provided with a manipulator; a plurality of candidate CNC devices are arranged in sequence along the length direction of the machining line; wherein the controller is in communication connection with the manipulator, the candidate CNC device, and the host computer. The loading and unloading control method includes but is not limited to steps S110 to S160.
[0039] Step S110: determining an initial processing step set from the workpiece processing task sent by the host computer, and obtaining step sequence information, number of steps, and single-step processing time of each processing step of the initial processing step set.
[0040] Step S120: Perform step reorganization processing according to the step sequence information, the number of steps, and the single-step processing time of each processing step to generate a process list.
[0041] Step S130: Determine the target number of devices to be used according to the number of processes in the process list.
[0042] Step S140: When the number of target devices is less than or equal to the number of candidate devices of the candidate CNC devices, online confirmation processing and device screening processing are performed on the candidate CNC devices, target CNC devices whose number is equal to the number of target devices are determined from the candidate CNC devices, and corresponding target device information is obtained.
[0043] Step S150: Perform loading and unloading schedule planning according to the target equipment information and the process list to obtain loading and unloading rhythm control signals.
[0044] Step S160: In response to the processing start command, the robot is controlled to move along the guide frame according to the loading and unloading rhythm control signal, and cyclically and alternately loads and unloads materials between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment to perform workpiece processing tasks.
[0045] It is understandable that the processing steps that CNC equipment can perform include but are not limited to: drilling, welding, bending, engraving, etc. Based on different processing requirements, the processing steps and processing types used for different workpieces to be processed are different. Therefore, this application does not make specific restrictions on the types of processing steps involved. The staff can generate a workpiece processing task by operating on the upper computer, and the processing steps, processing types, and single-step processing time of each processing step to be performed on the workpiece to be processed have been determined in the workpiece processing task.
[0046] It is understandable that the number of candidate devices is determined by the number of CNC devices actually set up in the processing line, and the number of candidate devices is at least two. The controller can obtain the number of candidate devices of the candidate CNC device from the configuration information sent by the host computer. This application does not impose specific restrictions on the number of candidate devices.
[0047] It is understandable that the processing start command is issued by the host computer.
[0048] It should be noted that after obtaining the target device number in step S130, when the target device number is greater than the candidate device number of the candidate CNC device, an alarm signal indicating the number of candidate devices is returned to the host computer to prompt the staff to check, adjust and confirm the generated process list.
[0049] Through steps S110 to S160, when the CNC machining system is used to perform a workpiece machining task, the controller first determines an initial machining step set from the workpiece machining task issued by the host computer, obtains the step sequence information, the number of steps, and the single-step machining time of each machining step of the initial machining step set; secondly, the step reorganization is performed according to the step sequence information, the number of steps, and the single-step machining time of each machining step to generate a process list; then, the number of target devices to be used is determined according to the number of processes in the process list; then, when the number of target devices is less than or equal to the number of candidate devices of the candidate CNC devices, the candidate devices are selected. The CNC equipment performs online confirmation processing and equipment screening processing, determines the target CNC equipment whose number is equal to the target equipment number from the candidate CNC equipment, and obtains the corresponding target equipment information; then, performs loading and unloading stroke planning processing according to the target equipment information and the process list, and obtains the loading and unloading rhythm control signal; finally, in response to the processing start command, controls the manipulator to move along the guide frame according to the loading and unloading rhythm control signal, and cyclically and alternately loads and unloads between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment to perform the workpiece processing task; in this way, automatic loading and unloading is realized at a certain rhythm during the workpiece processing process, thereby improving the processing efficiency. Therefore, the embodiment of the present application can realize a fully automatic, cyclically alternating loading and unloading process, reduce labor costs, and improve the production and processing efficiency of the processing line.
[0050] According to some embodiments of the present application, step S120 is further described, and step S120 includes but is not limited to steps S121 to S127.
[0051] Step S121: Determine the single-step processing time with the largest value as the reference time threshold.
[0052] Step S122: According to the reference duration threshold and step sequence information, the initial processing step set is subjected to step combination processing and duration accumulation verification processing to determine a first step group including at least one processing step.
[0053] Step S123: Update the initial processing step set according to the first step group to obtain the remaining processing step set.
[0054] Step S124: According to the reference duration threshold and the step sequence information of the remaining processing steps, the remaining processing step set is subjected to step combination processing and duration accumulation verification processing to determine a second step group including at least one processing step.
[0055] Step S125: until all processing steps are traversed, determine the order of step groups, the number of step groups, and the cumulative duration of the steps of each step group; wherein the cumulative duration of the steps is obtained by adding up the single-step processing duration of all processing steps in the step group, and the cumulative duration of the steps of each step group is less than or equal to the reference duration threshold.
[0056] Step S126: Reorganize the process according to the sequence of the step groups, the number of the step groups, and the cumulative duration of the steps in each step group, and obtain the process duration, number of steps, and sequence of the reorganized process.
[0057] Step S127: Generate a process list according to process duration, process quantity, and process sequence.
[0058] According to some embodiments of the present application, step S122 is further described, and step S122 includes but is not limited to steps S1221 to S1226.
[0059] Step S1221: According to the step sequence information, the first processing step is taken as the reference step.
[0060] Step S1222: According to the step sequence information, the processing step adjacent to the reference step is determined as the first adjacent step, and the reference step and the first adjacent step are combined into a first candidate set.
[0061] Step S1223: Add the single-step processing durations of the reference step and the first adjacent step to obtain a first accumulated duration of the first candidate set.
[0062] Step S1224: When the first accumulated duration is greater than the reference duration threshold, the first adjacent step is removed from the first candidate set to obtain a first step group including only the reference step.
[0063] Step S1225: When the first accumulated duration is equal to the reference duration threshold, the first candidate set is determined as the first step group.
[0064] Step S1226: When the first accumulated duration is less than the reference duration threshold, the step combination process and the duration accumulation verification process are re-performed based on the first candidate set until the first step group is obtained.
[0065] Specifically, step S1226 includes: when the first accumulated duration is less than the reference duration threshold, according to the step sequence information, the next processing step adjacent to the first adjacent step is determined as the second adjacent step; the first candidate set and the second adjacent step are combined into a second candidate set, the first accumulated duration is added to the single step duration of the second adjacent step, and the second accumulated duration of the second step set is obtained; according to the comparison result of the second accumulated duration and the reference duration threshold, it is determined whether the first step group can be determined based on the second candidate set. If the first step group cannot be determined based on the second candidate set, the step combination process and the duration accumulation verification process are continued based on the second candidate set, and so on, until the first step group is obtained.
[0066] After obtaining the first step group, execute step S123 to update the initial processing step set according to the first step group to obtain the remaining processing step set. Specifically, after deleting the steps in the first step group from the initial processing step set, the remaining processing steps constitute a new remaining processing step set.
[0067] Further, step S124 is executed based on the remaining processing step set. It can be understood that the execution logic of step S124 is the same as that of step S122, and the specific steps of step S124 are similar to steps S1221 to S1226, so this application will not repeat them here.
[0068] Furthermore, after executing and completing step S125, the first stage of the step reorganization processing is completed, and multiple step groups are obtained, and the cumulative duration of the steps in the step groups is less than or equal to the reference duration threshold; laying the foundation for the second stage of the step reorganization processing.
[0069] According to some embodiments of the present application, step S126 is further described. Step S126: Process reorganization is performed according to the order of step groups, the number of step groups, and the cumulative duration of the steps in each step group. The process duration, number of processes, and process order of the reorganized process are obtained, including but not limited to steps S1261 to S1263.
[0070] Step S1261: Calculate the mean value according to the number of step groups and the accumulated duration of the steps in each step group to obtain the average duration of the step groups.
[0071] Step S1262: Determine the average duration of the step group as the process duration of the reorganization process.
[0072] Step S1263: Re-divide the step groups according to the process duration and the order of the step groups to obtain reorganized processes, and determine the number of processes and the order of the processes in the reorganized processes.
[0073] Through step S1261 to step S1263, the second stage of the step reorganization process is completed; the reorganized process and the process quantity and process sequence of the reorganized process are obtained.
[0074] It should be noted that there are many single steps in the workpiece processing task, some of which are time-consuming, and the CNC equipment is limited. It is difficult to form a suitable loading and unloading rhythm based on the numerous steps. Even if the single-step processing time of each processing step is the same, loading and unloading is too frequent and wastes resources if the single-step processing time is used as the time interval. Therefore, the embodiment of the present application obtains multiple step groups through the step reorganization processing of the first stage through steps S121 to S126, laying the foundation for the step reorganization processing of the second stage; and further performs the reorganization processing of the second stage based on the multiple step groups to obtain the reorganization process; it is conducive to utilizing a limited number of CNC equipment to process, orderly and alternately execute the reorganization process based on a certain time interval, and realize the flow-line loading and unloading during the processing.
[0075] Combination Figure 3 , taking an example, steps S110 to S120 are further explained.
[0076] The initial set of processing steps for the workpiece processing task includes: Figure 3 Among the 6 steps shown, the maximum value of the single-step processing time of step 6 is 25 seconds, so 25 seconds is determined as the reference time threshold. Step 1 is taken as the reference step, and the single-step processing time of step 1 and the adjacent step 2 is accumulated to obtain 15 seconds, which is less than the reference time threshold; continue to determine the single-step processing time of step 3 adjacent to step 2, add 15 seconds to the single-step processing time of step 3, and get 25 seconds, which is equal to the reference time threshold at this time, then it is determined that the first step group is obtained, and the first step group includes: step 1, step 2 and step 3. After eliminating steps 1, 2 and 3, the remaining steps 4 to 6 constitute the remaining processing step set. Based on the remaining processing step set, taking step 4 as the reference step, continue to accumulate the single-step time of step 4 and the adjacent step 5 to obtain 41 seconds. 41 seconds is greater than the reference time threshold, then it is determined that the second step group obtained only includes step 4. And so on, the third step group obtained only includes step 5, and the fourth step group obtained only includes step 6. The obtained step group list is as follows Figure 3 As shown. Next, calculate the average duration of the step group T = 91 / 4 = 22.75 seconds. That is, the process duration is 22.75 seconds. Re-divide the four step groups to obtain four reorganized processes with equal process durations. That is, Figure 3 As shown, a process list is finally generated, which includes: a first reorganization process, a second reorganization process, a third reorganization process, and a fourth reorganization process with a fixed execution order, a total of 4 reorganization processes.
[0077] According to some embodiments of the present application, step S140 is further described, wherein candidate CNC devices are subjected to online confirmation processing and device screening processing, target CNC devices whose number is equal to the number of target devices are determined from the candidate CNC devices, and corresponding target device information is obtained, including but not limited to steps S141 to S148.
[0078] Step S141: Broadcasting an online confirmation request to the candidate CNC devices.
[0079] Step S142: receiving an online response returned by the candidate CNC device in response to the online confirmation request, and counting the number of online devices according to the online response.
[0080] Step S143: When the number of online devices is greater than the number of target devices, obtain the device identifier and device coordinate information from the online response.
[0081] Step S144: Generate an online list of CNC devices according to the device identifier and device coordinate information.
[0082] Step S145: According to the target device quantity, the online devices in the CNC device online list are orderly arranged and combined to obtain multiple candidate processing groups; the online devices in the candidate processing groups are sorted from small to large according to the horizontal coordinates of the device coordinate information.
[0083] Step S146: For each candidate processing group, the device distance between every two online devices is calculated according to the device coordinate information, and the device distance with the largest value is determined as the maximum transmission distance of the candidate processing group.
[0084] Step S147: comparing the maximum transmission distances of a plurality of candidate processing groups, and determining the candidate processing group with the shortest maximum transmission distance as the target processing group.
[0085] Step S148: Determine the online device in the target processing group as the target CNC device, and obtain the corresponding target device information.
[0086] It should be noted that the center of the edge line of the first CNC device is used as the coordinate origin O, the length direction of the processing line is used as the X-axis to establish the horizontal axis, and a coordinate system is established, so that the device coordinate information can be obtained.
[0087] According to some embodiments of the present application, after counting the number of online devices according to online responses, the method also includes: when the number of online devices is less than the target number of devices, sending an alarm signal to the host computer to indicate that the number of online devices is insufficient; when the number of online devices is equal to the target number of devices, all online devices are determined as target CNC devices.
[0088] This application selects a suitable number of target devices with suitable transmission distances from multiple candidate CNC devices through steps S141 to S148. In order to facilitate the subsequent expansion of the production line, multiple candidate CNC devices can be divided into multiple target processing groups to process different workpiece processing tasks in parallel. For example, when there are 10 candidate CNC devices online, the first workpiece processing task task1 requires 4 CNC devices, and the second workpiece processing task task2 requires 6 CNC devices, then the 10 candidate CNC devices can be divided into a first target processing group and a second target processing group; in parallel, the first target processing group executes the first workpiece processing task task1, and the second target processing group executes the second workpiece processing task task2; improve the utilization rate of the production line and the production and processing efficiency.
[0089] Combination Figure 4 , take an example to further illustrate the specific process of determining the target processing group.
[0090] The candidate CNC devices include 6 CNC devices A, B, CNC devices C, D, E, and F, which are arranged in sequence. First, the controller broadcasts online confirmation requests to the 6 candidate CNC devices. When the controller receives online responses returned by CNC devices A, B, CNC devices C, E, and F, it determines that the number of online devices is 5. Figure 4 The solid-line boxes represent online devices, and the dotted-line boxes represent offline devices. Figure 3 For the workpiece processing task shown in the figure, the target number of devices is 4. The online number is greater than the target number of devices, and the online list of CNC devices is generated according to the device identifiers and device coordinate information of devices A, B, C, E, and F. Based on the knowledge of mathematical permutations and combinations, multiple candidate processing groups are obtained, and the candidate processing groups are simply represented by symbols as: ABCE, ABCF, ABEF, ACEF, BCEF.
[0091] When the candidate processing group is ABCE, the maximum transmission distance of the candidate processing group is 8 meters between device A and device E; when the candidate processing group is ABCF, the maximum transmission distance of the candidate processing group is 10 meters; when the candidate processing group is ABEF, the maximum transmission distance of the candidate processing group is 10 meters; when the candidate processing group is ACEF, the maximum transmission distance of the candidate processing group is 10 meters; when the candidate processing group is BCEF, the maximum transmission distance of the candidate processing group is 8 meters. Based on this, the candidate processing group (ABCE or BCEF) with the shortest maximum transmission distance is determined as the target processing group. When there are multiple candidate processing groups with the same and shortest maximum transmission distance, one of them can be selected as the target processing group.
[0092] According to some embodiments of the present application, step S150 is further described, and step S150 includes but is not limited to steps S151 to S155.
[0093] Step S151: Obtain the device coordinate information of each target CNC device from the target device information. In the target processing group, determine the first target CNC device as the first device node, the last target CNC device as the last device node, and the remaining target CNC devices as the intermediate device node set.
[0094] Step S152: According to the rule of node sequential connection, path planning is performed for the first device node, the intermediate device node set, and the last device node to determine the path information; the path information includes: multiple transmission paths, path sequence, and transmission distance of each transmission path.
[0095] Step S153: Subtract the preset single loading and unloading time from the process time to obtain the moving time.
[0096] Step S154: Divide the transmission distance of each segment by the moving time to obtain the moving speed corresponding to each segment of the transmission path.
[0097] Step S155: Generate a loading and unloading rhythm control signal according to the process list, path information, moving speed of each section, and single loading and unloading time.
[0098] It is understandable that the duration of a single loading and unloading includes: the time taken by the manipulator to remove the processed workpiece from the CNC equipment, the time taken to transport the processed workpiece to the unloading conveyor belt, the time taken to take the workpiece to be processed from the loading conveyor belt, and the time taken to reload the CNC equipment. The time consumed by the manipulator for picking up materials, unloading materials, and loading materials is relatively small, so the time consumed in this process is unified as the duration of a single loading and unloading. The duration of a single loading and unloading can also be obtained through actual measurement, which is generally fixed and can be preset. Therefore, this application does not impose specific restrictions on the duration of a single loading and unloading; but the duration of a single loading and unloading should be less than the duration of the process. If the duration of the process is less than the duration of a single loading and unloading, the process reorganization will continue based on the current process list. It is understandable that other processes such as purge stations may also be included when picking up materials, and the time consumed by these other purge stations is also included in the duration of a single loading and unloading.
[0099] Through steps S151 to S155, path planning is performed based on the determined target CNC equipment, and then a loading and unloading rhythm control signal is generated, so that the robot can be controlled to cycle and alternately load and unload materials between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment based on the generated loading and unloading rhythm control signal.
[0100] Combination Figure 4 , take an example to further illustrate the specific process of generating loading and unloading rhythm control signals.
[0101] When the target processing group is determined to be: device A, device B, device C, and device E, based on the device coordinate information, device A is the first device node, device E is the last device node, and devices B and C form the intermediate device node set. The coordinates of device A, device B, device C, and device E are as follows: Figure 4 As shown. Based on the nodes, multiple transmission paths are determined and the order of the paths is: transmission path AB segment (2 meters), transmission path BC segment (2 meters), transmission path CE segment (4 meters), and transmission path EA segment (8 meters). In order to ensure that it can be delivered in time before the next CNC device finishes processing, the movement time used by the robot to move on each transmission path is consistent. The movement time is the process time (22.75 seconds) minus the preset single loading and unloading time (12.75 seconds) to get the time difference (10 seconds). According to the transmission distance of each segment and the movement time, the corresponding moving speed of each transmission path is obtained: the moving speed of the transmission path AB segment is 0.2m / s, the moving speed of the transmission path BC segment is 0.2m / s, the moving speed of the transmission path CE segment is 0.4m / s, and the moving speed of the transmission path EA segment is 0.8m / s. So far, according to Figure 3 The process list, path information, moving speed of each section, and single loading and unloading time shown generate loading and unloading rhythm control signals.
[0102] According to some embodiments of the present application, step S160 is further described. Step S160: according to the loading and unloading rhythm control signal, the robot arm is controlled to move along the guide frame, and loads and unloads materials cyclically and alternately between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment to perform workpiece processing tasks, including but not limited to steps S161 to S165.
[0103] Step S161: Control the robot to load materials for all target CNC devices, start the first target CNC device, and start one target CNC device in turn every interval process time.
[0104] Step S162: After all target CNC devices are started up, when the first target CNC device completes the last reorganization process, the robot is controlled to remove the workpiece processed by the first target CNC device and place it on the unloading conveyor belt within a single unloading time to complete unloading, and take the material from the loading conveyor belt for loading.
[0105] Step S163: Control the robot to move to the next target CNC device according to the moving speed and path information. When the robot arrives, the next target CNC device completes the last reorganization process. Control the robot to unload and load materials for the next target CNC device, so that the first target CNC device can re-execute the reorganization process in the process list in an orderly manner.
[0106] Step S164: continuously and orderly and alternately loading and unloading materials for the target CNC equipment.
[0107] Through steps S161 to S165, based on the generated loading and unloading rhythm control signal, the robot is controlled to cyclically and alternately load and unload materials between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment, thereby realizing a fully automatic, cyclic alternating loading and unloading process, reducing labor costs, and improving the production and processing efficiency of the processing line.
[0108] Take an example, combined with Figure 3 as well as Figure 4 , further illustrating the process of controlling the loading and unloading of the robot based on the loading and unloading rhythm control signal.
[0109] First, in response to the processing start command, the process list, path information, movement speed of each section, and single loading and unloading time are determined according to the loading and unloading rhythm control signal. Figure 3 As shown, the target processing groups are: equipment A, equipment B, equipment C, and equipment E.
[0110] Specifically, the path information includes: multiple transmission paths and a path sequence; wherein the path sequence is: transmission path segment AB (2 meters), transmission path segment BC (2 meters), transmission path segment CE (4 meters), and transmission path segment EA (8 meters).
[0111] Specifically, the moving speed of the transmission path AB section is 0.2m / s, the moving speed of the transmission path BC section is 0.2m / s, the moving speed of the transmission path CE section is 0.4m / s, and the moving speed of the transmission path EA section is 0.8m / s. The single loading and unloading time is 2.75 seconds.
[0112] Secondly, the robot is controlled to uniformly load materials to device A, device B, device C, and device E.
[0113] Then, start device A to start the first reorganization process. After 22.75 seconds, start device B to start the first reorganization process. At this time, start device A to complete the first reorganization process and start the second reorganization process. Similarly, start device D and let device D start the first reorganization process. At this time, device A starts the fourth reorganization process.
[0114] Next, when device A completes the fourth reorganization process (at this time, device B completes the third reorganization process, device C completes the second reorganization process, and device E completes the first reorganization process), the robot is controlled to remove the workpiece processed by device A and place it on the unloading conveyor belt within a single loading and unloading time to complete unloading, and take the material from the loading conveyor belt for loading; device A is ordered to automatically re-execute the reorganization process in the process list in an orderly manner; that is, device A re-executes from the first reorganization process.
[0115] Then, the robot is controlled to pass through the AB section of the transmission path at a speed of 0.2m / s within the process time. When the robot just arrives at device B, device B has just completed the fourth reorganization process. The robot is controlled to remove the workpiece processed by device B and place it on the unloading conveyor belt within a single loading and unloading time to complete unloading, and take the material from the loading conveyor belt for loading; device B is controlled to automatically re-execute the reorganization process in the process list in an orderly manner; that is, device B also re-executes from the first reorganization process.
[0116] By analogy, the material is changed for device C through the BC section of the transmission path, the material is changed for device E through the CE section of the transmission path, and the material is changed for device A through the EA section of the transmission path. At this point, the cycle and alternating loading and unloading of materials are realized.
[0117] Second, as Figure 5 As shown, the present application also provides a controller, including:
[0118] The processor 501 may be implemented by a general-purpose central processing unit, a microprocessor, an application-specific integrated circuit, or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0119] The memory 502 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 502 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 502, and the processor 501 calls and executes the loading and unloading control method of the CNC machining system of the embodiment of this application;
[0120] Input / output interface 503, used to implement information input and output;
[0121] Communication interface 504, used to realize communication interaction between the present apparatus and other devices, which can be realized by wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.);
[0122] A bus 505 that transmits information between various components of the device (e.g., the processor 501, the memory 502, the input / output interface 503, and the communication interface 504);
[0123] The processor 501 , the memory 502 , the input / output interface 503 and the communication interface 504 are electrically connected to each other inside the device via a bus 505 .
[0124] The controller provided in accordance with the second aspect of the present application has at least the following beneficial effects: based on the generated loading and unloading rhythm control signal, the controller controls the robot to cyclically and alternately load and unload materials between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment, thereby realizing a fully automatic, cyclically alternating loading and unloading process, reducing labor costs, and improving the production and processing efficiency of the processing line.
[0125] In a third aspect, an embodiment of the present application provides a storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute a loading and unloading control method of a CNC machining system such as any one of the above embodiments.
[0126] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0127] It will be appreciated by those skilled in the art that all or some of the steps and systems in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0128] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the present application.
Claims
1. A method for controlling loading and unloading of a CNC machining system, characterized in that: A controller applied to a CNC processing system, the CNC processing system further comprising: a host computer, a processing line, a material unloading conveyor belt and a material loading conveyor belt arranged beside the processing line, and a guide rail frame erected above the processing line and provided with a manipulator; a plurality of candidate CNC devices are arranged in sequence along the length direction of the processing line; The method comprises: Determine an initial processing step set from the workpiece processing task issued by the host computer, and obtain step sequence information, number of steps, and single-step processing time of each processing step of the initial processing step set; Perform step reorganization processing according to the step sequence information, the number of steps, and the single step processing time of each processing step to generate a process list; Determining the target number of equipment to be used according to the number of processes in the process list; When the number of the target devices is less than or equal to the number of candidate devices of the candidate CNC devices, performing online confirmation processing and device screening processing on the candidate CNC devices, determining target CNC devices whose number is equal to the number of the target devices from the candidate CNC devices, and acquiring corresponding target device information; Perform loading and unloading schedule planning according to the target equipment information and the process list to obtain loading and unloading rhythm control signals; In response to the processing start command, the robot is controlled to move along the guide frame according to the loading and unloading rhythm control signal, and loads and unloads materials cyclically and alternately between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment to perform the workpiece processing task.
2. The material loading and unloading control method of the CNC machining system according to claim 1, characterized in that: The step reorganization process is performed according to the step sequence information, the number of steps, and the single step processing time of each processing step to generate a process list, including: Determine the single-step processing time with the largest value as a reference time threshold; According to the reference duration threshold and the step sequence information, performing step combination processing and duration accumulation verification processing on the initial processing step set to determine a first step group including at least one of the processing steps; Update the initial processing step set according to the first step group to obtain a remaining processing step set; According to the reference duration threshold and the step sequence information of the remaining processing steps, performing step combination processing and duration accumulation verification processing on the remaining processing step set to determine a second step group including at least one of the processing steps; Until all the processing steps are traversed, the order of the step groups, the number of step groups, and the cumulative step duration of each step group are determined; wherein the cumulative step duration is obtained by accumulating the single-step processing duration of all the processing steps in the step group, and the cumulative step duration of each step group is less than or equal to the reference duration threshold; Reorganize the process according to the sequence of the step groups, the number of the step groups, and the cumulative duration of the steps of each step group, and obtain the duration, number, and sequence of the reorganized process; The process list is generated according to the process duration, the process quantity, and the process sequence.
3. The material loading and unloading control method of the CNC machining system according to claim 2, characterized in that: The step of performing step combination processing and time accumulation verification processing on the initial processing step set according to the reference time threshold and the step sequence information to determine a first step group including at least one of the processing steps comprises: According to the step sequence information, the first processing step is used as a reference step; According to the step sequence information, determining the processing step adjacent to the reference step as a first adjacent step, and combining the reference step and the first adjacent step into a first candidate set; Adding the single-step processing durations of the reference step and the first adjacent step to obtain a first accumulated duration of the first candidate set; When the first accumulated duration is greater than the reference duration threshold, the first adjacent step is removed from the first candidate set to obtain the first step group including only the reference step; When the first accumulated duration is equal to the reference duration threshold, determining the first candidate set as the first step group; When the first accumulated duration is less than the reference duration threshold, the step combination process and the duration accumulation verification process are re-performed based on the first candidate set until the first step group is obtained.
4. The material loading and unloading control method of the CNC machining system according to claim 2, characterized in that: The process reorganization is performed according to the sequence of the step groups, the number of the step groups, and the cumulative duration of the steps of each step group, and the process duration, number of processes, and sequence of the reorganized process are obtained, including: Calculate the average value according to the number of step groups and the cumulative duration of the steps of each step group to obtain the average duration of the step group; Determine the average duration of the step group as the process duration of the reorganization process; The step groups are re-divided according to the process duration and the sequence of the step groups to obtain the reorganized processes, and the number of processes and the sequence of the processes of the reorganized processes are determined.
5. The material loading and unloading control method of the CNC machining system according to claim 2, characterized in that: The online confirmation process and device screening process are performed on the candidate CNC devices, the target CNC devices whose number is equal to the number of the target devices are determined from the candidate CNC devices, and the corresponding target device information is obtained, including: Broadcasting an online confirmation request to the candidate CNC device; receiving an online response returned by the candidate CNC device in response to the online confirmation request, and counting the number of online devices according to the online response; When the number of online devices is greater than the number of target devices, acquiring device identifiers and device coordinate information from the online responses; Generate an online list of CNC devices according to the device identifier and the device coordinate information; According to the target device quantity, the online devices are orderly arranged and combined in the online list of CNC devices to obtain a plurality of candidate processing groups; the online devices in the candidate processing groups are sorted from small to large according to the horizontal coordinates of the device coordinate information; For each candidate processing group, the device distance between every two online devices is calculated according to the device coordinate information, and the device distance with the largest value is determined as the maximum transmission distance of the candidate processing group; comparing the maximum transmission distances of the plurality of candidate processing groups, and determining the candidate processing group with the shortest maximum transmission distance as the target processing group; The online device in the target processing group is determined as the target CNC device, and the corresponding target device information is obtained.
6. The material loading and unloading control method of the CNC machining system according to claim 5, characterized in that: After counting the number of online users according to the online responses, the method further includes: When the number of online devices is less than the target number of devices, an alarm signal indicating that the number of online devices is insufficient is sent to the host computer; When the number of online devices is equal to the number of target devices, all the online devices are determined as the target CNC devices.
7. The material loading and unloading control method of a CNC machining system according to any one of claims 5 or 6, characterized in that: The process of performing loading and unloading stroke planning according to the target equipment information and the process list to obtain a loading and unloading rhythm control signal includes: Acquire the device coordinate information of each target CNC device from the target device information, determine the first target CNC device as the first device node, determine the last target CNC device as the last device node, and determine the remaining target CNC devices as the intermediate device node set in the target processing group; According to the rule of sequential connection of nodes, path planning is performed for the first device node, the intermediate device node set, and the last device node to determine path information; the path information includes: multiple transmission paths, path order, and transmission distance of each transmission path; Subtract the preset single loading and unloading time from the process time to obtain the moving time; According to the transmission distance of each segment divided by the movement time, the movement speed corresponding to each segment of the transmission path is obtained; The loading and unloading rhythm control signal is generated according to the process list, the path information, the moving speed of each section, and the single loading and unloading time.
8. The material loading and unloading control method of the CNC machining system according to claim 7, characterized in that: The method of controlling the manipulator to move along the guide rail frame according to the loading and unloading rhythm control signal, and cyclically and alternately loading and unloading materials between the loading conveyor belt, the unloading conveyor belt, and the target CNC equipment to perform the workpiece processing task includes: Control the robot to feed all the target CNC devices, start the first target CNC device, and start one target CNC device in turn every time the process duration is exceeded; When all the target CNC devices have been started up, when the first target CNC device has completed the last reorganization process, the robot is controlled to remove the workpiece processed by the first target CNC device and place it on the unloading conveyor belt within the single loading and unloading time to complete unloading, and to take the workpiece from the loading conveyor belt for loading, so that the first target CNC device can re-execute the reorganization process in the process list in an orderly manner; Control the manipulator to move to the next target CNC device according to the moving speed and the path information, when the manipulator arrives, the next target CNC device completes the last reorganization process, and controls the manipulator to unload and load materials for the next target CNC device; The target CNC equipment is continuously and orderly loaded and unloaded alternately.
9. A controller, characterized in that: It includes at least one processor and a memory for communicating with the at least one processor; the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the loading and unloading control method of the CNC machining system as described in any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the loading and unloading control method of the CNC machining system according to any one of claims 1 to 8.
