Curve planning method and system of electronic cam for punching machine

By establishing a motion recipe library and calculating the motion stroke in the punch system, the cam trajectory table is generated, which solves the problem of low efficiency of electronic cam planning curves for punch machines, improves work efficiency and accuracy, and enables flexible production of different products.

CN118534839APending Publication Date: 2024-08-23WEITANG AUTOMOTIVE STAMPING TECH (WUXI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410627492.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Electronic cams for punch machines have low work efficiency when planning cam curves. Manual editing is complicated and requires a lot of manual preparation time. It has poor flexibility and is difficult to quickly switch the production of different products.

Method used

By establishing a motion recipe library in the punch system, determine the target recipe according to the type of workpiece to be punched, calculate the motion stroke and maximum angle threshold of the driven and driving axes, generate a cam trajectory table, and automatically obtain the parameters of the electronic cam to improve flexibility and work efficiency.

Benefits of technology

It greatly improves the work efficiency and accuracy of the electronic cam for punching machines when planning cam curves, saves manual preparation time, reduces errors, and enables flexible production of different products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118534839A
    Figure CN118534839A
Patent Text Reader

Abstract

The invention relates to a curve planning method and system for an electronic cam for a punching machine, and belongs to the technical field of curve planning of electronic cams. The method comprises the steps that a target formula is determined in a preset movement formula library according to a workpiece to be punched, the target formula comprises the number of movement steps, driven operation parameters of each driven shaft in each movement step and driving operation parameters of a driving shaft; obtaining a motion stroke and a maximum angle threshold value corresponding to each motion step according to the driven operation parameters and the driving operation parameters in the target formula; and generating a cam track table based on the motion stroke corresponding to each motion step and the maximum angle threshold value. The method has the effects that the flexibility of the electronic cam is improved, so that the curve planning efficiency is effectively improved, and manual repeated input of a large number of parameters is avoided by directly calling movement formulas corresponding to different products, so that the curve planning accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic cam curve planning, and in particular to a curve planning method and system for an electronic cam for a punch press. Background Art

[0002] A mechanical cam is a sliding structure used to connect the movement of the camshaft and the driven shaft in reciprocating swing or movement, so that the driven shaft can move regularly according to the contour curve of the cam; while an electronic cam simulates a mechanical cam by constructing a cam curve to achieve the same software system as a mechanical cam that controls the relative movement of the driven shaft and the camshaft. In the field of stamping technology, a mechanical cam is connected to the punch press slide through a drive wheel driven by a motor, which can convert rotary motion into linear motion, thereby realizing the action of the stamping machine. The electronic cam for a punch press is a new type of equipment that uses electronic control technology to realize cam transmission. Compared with a mechanical cam, it has the advantages of simple structure, easy operation, and high action accuracy.

[0003] The electronic cam for punching machines is mainly used to generate cam curves and control the motor shafts (driven shafts) of the three-dimensional manipulator on different direction axes according to the cam curves, so that the manipulator can feed materials regularly along with the main shaft (cam main shaft) of the punching machine, which can greatly improve the automation and production efficiency of the stamping production line. However, at present, the cam curve of the electronic cam for punching machines is usually obtained by operators through manual editing on the Codesys platform. Since the manual editing requires manual calculation of the motion parameters (expected arrival position, instantaneous speed, etc.) of the cam main shaft and each driven shaft on the manipulator at each moment, the number of parameters involved is large, and this step is more complicated and difficult, requiring a long preparation time; at the same time, whenever different products need to be produced, the operator needs to pre-edit multiple sets of cam curves, and then call them through the program, which is less flexible. All of the above lead to the low working efficiency of the electronic cam for punching machines when planning the cam curve. Summary of the invention

[0004] In order to improve the working efficiency of an electronic cam for a punching machine when planning a cam curve, the present application provides a curve planning method and system for an electronic cam for a punching machine.

[0005] In a first aspect, the present application provides a curve planning method for an electronic cam for a punching machine, which adopts the following technical solution: a curve planning method for an electronic cam for a punching machine, the curve planning method is based on a punching machine system, the punching machine system includes a manipulator, and the manipulator is driven by driven shafts in different directions; the curve planning method includes: Determine a target recipe in a preset motion recipe library according to the workpiece to be punched, wherein the target recipe includes the number of motion steps, the driven operation parameters of each driven axis in each motion step, and the active operation parameters of the active axis; Obtaining a motion stroke and a maximum angle threshold corresponding to each motion step according to the driven operation parameters and the active operation parameters in the target recipe; A cam trajectory table is generated based on the motion stroke and the maximum angle threshold corresponding to each motion step.

[0006] By adopting the above technical solution, the present application first determines the target formula according to the type of workpiece to be stamped, so as to directly retrieve the slave operation parameters of each slave axis and the active operation parameters of the active axis in each motion step of the manipulator during the stamping process of the workpiece; then calculates the motion stroke and maximum angle threshold of each slave axis of the electronic cam in each motion step according to the slave operation parameters and the active operation parameters, and finally generates a cam trajectory table based on the motion stroke corresponding to each motion step and the maximum angle threshold of the cam; When switching between different types of workpieces to be stamped, the present application only needs to call the corresponding motion matching to automatically obtain the cam angle of the electronic cam trajectory, the stroke of each motion straight segment and other parameters to realize the stamping process of different products. This greatly improves the flexibility of the electronic cam and saves the preparation steps of manually inputting a large number of parameters before the start of stamping. It is not easy to make mistakes and saves time, thereby effectively improving the work efficiency and accuracy of the electronic cam for the punching machine when planning the cam curve.

[0007] In a specific implementation scheme, the driven operation parameters include specific position parameters, and the active operation parameters include the starting angle and the ending angle of the cam; the motion stroke and the maximum angle threshold corresponding to each motion step are obtained according to the driven operation parameters and the active operation parameters in the target recipe, including: Establish a rectangular coordinate system; Determine the initial broken lines of motion changes corresponding to the driven axis in each direction on the rectangular coordinate system according to the specific position parameter, the starting angle and the ending angle; Obtaining the motion stroke of the corresponding driven shaft in each of the motion steps according to the initial broken lines of motion changes corresponding to the driven shafts in each direction; A maximum angle threshold of the cam in each of the movement steps is determined according to the starting angle and the ending angle of the cam.

[0008] In a specific implementation scheme, the initial broken line of motion change is formed by connecting a plurality of motion straight line segments; the motion stroke of the corresponding driven axis in each motion step is obtained according to the initial broken line of motion change corresponding to the driven axis in each direction, including: Traversing each of the motion straight line segments in the initial polyline of the motion change in the order of the motion steps; Determining whether the current moving straight line segment is a stationary straight line segment; If the judgment result is that the current moving straight line segment is not a stationary straight line segment, then obtaining the moving stroke corresponding to the current moving straight line segment according to the specific position parameter; If the judgment result is that the current moving straight line segment is a stationary straight line segment, the moving stroke corresponding to the current moving straight line segment is 0.

[0009] In a specific possible implementation scheme, if the judgment result is that the current moving straight line segment is not a stationary straight line segment, obtaining the moving stroke corresponding to the current moving straight line segment according to the specific position parameter includes: Determine whether the current moving straight line segment is the last moving straight line segment; If the current motion straight line segment is not the last motion straight line segment, the calculation formula for the motion stroke is: S (i,j) =A (i,j+1) -A (i,j) ; Among them, S (i,j) A represents the motion stroke of the driven axis along the i-axis in the j-th motion step, (i,j+1) A represents the specific position parameter corresponding to the motion step corresponding to the next motion straight line segment; (i,j) Indicates the specific position parameters corresponding to the motion step corresponding to the current motion straight line segment; If the current motion straight line segment is the last motion straight line segment, the calculation formula for the motion stroke is: S (i,n) =A (i,1) -A (i,n) ; Where n represents the number of motion steps; S (i,n) A represents the motion stroke of the driven axis along the i-axis in the last motion step. (i,1) A represents the specific position parameter corresponding to the motion step corresponding to the first motion straight line segment; (i,n) Indicates the specific position parameters corresponding to the motion step corresponding to the last motion straight line segment.

[0010] In a specific implementation scheme, determining the maximum angle threshold of the cam in each of the movement steps according to the starting angle and the ending angle of the cam includes: Traversing each of the motion straight line segments in the initial polyline of the motion change in the order of the motion steps; Determining whether the current moving straight line segment is a stationary straight line segment; In the case where the current moving straight line segment is not a stationary straight line segment, if the starting angle corresponding to the current moving straight line segment is greater than the ending angle, the calculation formula of the maximum angle threshold is as follows: θ max (j) = θ e (j)+360°-θ s (j); Among them, θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; θ e (j) represents the end angle corresponding to the jth moving straight line segment; θ s (j) represents the end angle corresponding to the jth moving straight line segment; If the starting angle of the current moving straight line segment is smaller than the ending angle, the corresponding maximum angle threshold is calculated as follows: θ max (j) = θ e (j)-θ s (j); In the case where the current moving straight line segment is a stationary straight line segment, determining whether the current stationary straight line segment is the last moving straight line segment; In the case where the current stationary straight line segment is not the last moving straight line segment, if the starting angle of the next moving straight line segment is less than the ending angle of the current stationary straight line segment, the corresponding maximum angle threshold is calculated as follows: θ max (j) = θ s (j+1)+360°-θ e (j); Among them, θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; θ s (j+1) represents the starting angle corresponding to the j+1th moving straight line segment; θ e (j) represents the end angle corresponding to the jth moving straight line segment; If the starting angle of the next moving straight line segment is greater than the ending angle of the current stationary straight line segment, the corresponding maximum angle threshold is calculated as follows: θ max (j) = θ s(j+1)-θ e (j); When the current stationary straight line segment is the last moving straight line segment, the calculation formula for the maximum angle threshold is as follows: Among them, θ max (n) represents the maximum angle threshold corresponding to the last moving straight line segment; θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; Represents the sum of all maximum angle thresholds corresponding to the 1st moving straight line segment to the n-1th moving straight line segment.

[0011] In a specific implementation manner, after the step of determining the maximum angle threshold of the cam in each of the movement steps according to the starting angle and the ending angle of the cam, the step further includes: Detecting whether there is an abnormality in the maximum angle threshold corresponding to each of the moving straight line segments; If the judgment result is that there is an abnormality, an error is reported.

[0012] 1. In a specific implementation scheme, generating a cam trajectory table based on the motion stroke and the maximum angle threshold corresponding to each motion step includes: Determine an initialization angle, and obtain an offset angle corresponding to each of the initial fold lines of the motion change according to the initialization angle; adjust the start angle and the end angle corresponding to all the motion straight line segments in the corresponding initial fold line of the motion change according to the offset angle to obtain a standard angle; The theoretical position parameter of the corresponding driven axis is calculated according to the standard angle corresponding to all the motion straight line segments in each of the initial broken lines of the motion change and the maximum angle threshold. The calculation formula of the theoretical position parameter is as follows: Among them, θ 标准 (i,j) represents the standard angle; B (i,j) Indicates the theoretical position parameter, which refers to the distance between the driven axis and the origin in the i-axis direction when the cam angle is the standard angle. The distance unit is in millimeters. max (i, j) represents the maximum angle threshold; S (i,j) represents the motion stroke of the driven axis in the i-axis direction in the j-th motion step; A cam trajectory table is generated based on the theoretical position parameters.

[0013] In a second aspect, the present application provides a control device, which adopts the following technical solution: A control device comprises a memory and a processor, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the curve planning method of the electronic cam for a punching machine as described in the first aspect.

[0014] In a third aspect, the present application provides a curve planning system for an electronic cam for a punch press, which adopts the following technical solution: a punch press system, comprising: Punch press, used to punch the workpiece to be punched; The control device as described in the second aspect plans the movement trajectory of the manipulator according to the workpiece to be punched, and obtains the corresponding cam trajectory table; The manipulator is used to clamp the workpiece to be punched and move it according to the cam trajectory table.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium, which adopts the following technical solution: A computer-readable storage medium, wherein at least one instruction, at least one program, code set or instruction set is stored in the computer-readable storage medium, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the curve planning method for an electronic cam for a punching machine as described in the first aspect.

[0016] In summary, the present application includes at least one of the following beneficial technical effects: 1. When switching different types of workpieces to be punched, the present application only needs to call the corresponding motion matching to automatically obtain the cam angle of the electronic cam trajectory, the stroke of each motion straight line segment and other parameters to realize the punching process of different products, which greatly improves the flexibility of the electronic cam and saves the preparation steps of manually inputting a large number of parameters before the start of punching. It is not easy to make mistakes and saves time, thereby effectively improving the working efficiency and accuracy of the electronic cam for punching machines when planning the cam curve; 2. The present application uses the SIN acceleration curve interpolation method to calculate the distance (theoretical position) between each driven shaft and the origin at different cam rotation angles (standard angles). Since the SIN acceleration has a very low jerk, the changes in the robot when starting and decelerating according to the cam trajectory calculated by this method are very smooth, and the calculation of the cam trajectory is relatively convenient, which helps to achieve the minimum impact of each movement stroke, thereby minimizing the jitter of the robot and achieving a larger operating rhythm. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a structural schematic diagram of a curve planning system of an electronic cam for a punching machine according to an embodiment of the present application.

[0018] Figure 2 It is a flow chart of a curve planning method for an electronic cam for a punching machine according to another embodiment of the present application.

[0019] Description of the accompanying drawings: 100, punching machine; 200, robot; 300, collection frame; 400, control device; 410, memory; 420, processor. DETAILED DESCRIPTION

[0020] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0021] The following is a further detailed description of an embodiment of a curve planning method and system for an electronic cam for a punching machine of the present application in conjunction with the accompanying drawings of the specification.

[0022] An embodiment of the present application discloses a punching machine system.

[0023] Reference Figure 1 A punching machine system includes a punching machine 100, a manipulator 200, a collection frame 300 and a control device 400; the punching machine is used to punch a workpiece to be punched on its worktable through a punch head to obtain a standard workpiece after punching, wherein a plurality of workpieces to be punched are sequentially placed on the worktable along the length direction of the worktable; the collection frame 300 is located on one side of the worktable of the punching machine 100 in the width direction; the control device 400 is used to plan the movement trajectory of the manipulator 200 according to the workpiece to be punched, and obtain a corresponding cam trajectory table, wherein the cam trajectory table includes a plurality of theoretical positions of the manipulator 200; the manipulator 200 is arranged on the punching machine 100 in the punching machine 100; the manipulator 200 is arranged on ... Several robots are installed on both sides of the bed 100 along the length direction of the worktable of the punch press 100, and each end of each workpiece to be punched on the worktable corresponds to a robot 200. The robot 200 is used to clamp the workpiece to be punched on the worktable of the punch press 100 and move it according to the theoretical position in the cam trajectory table; the control device 400 includes a memory 410 and a processor 420, and the memory 410 stores at least one instruction, at least one program, code set or instruction set. At least one instruction, at least one program, code set or instruction set is loaded and executed by the processor 420 to realize the curve planning method of the electronic cam for the punch press as described below.

[0024] It should be noted that the punch press 100 of this embodiment includes a plurality of punches arranged along the length direction of the workbench, and the punches are used to punch the workpieces to be punched on the workbench. The punches are located above the workbench and each punch corresponds to a workpiece to be punched. In this embodiment, each punch is a punching process. After each punching process is completed, each workpiece to be punched on the workbench will be clamped and moved along the length direction of the workbench to the next punch corresponding to it under the gripping and movement of the manipulators 200 on both sides, so as to improve the processing step by step (such as trimming first, then punching, and then chamfering, etc.), until the last punching process is completed, and the manipulators 200 on both sides are gripped and moved to the collection frame 300 to complete the processing.

[0025] The manipulator 200 of this embodiment takes a three-dimensional stamping manipulator 200 as an example: the manipulator 200 is always placed in a three-dimensional measurement space during operation, and the spatial coordinates of any point on the manipulator 200 at each moment can be obtained by measurement. The three-dimensional stamping manipulator 200 is a prior art and will not be described in detail here. In this embodiment, a spatial rectangular coordinate system is established by taking the straight line in the length direction of the punching machine 100 worktable as the X-axis, the straight line in the width direction of the punching machine 100 worktable as the Y-axis, the straight line in the height direction of the punching machine 100 worktable as the Z-axis, and the center point of the upper surface of the punching machine 100 worktable as the origin; all output shafts of the motor driving each manipulator 200 to move along the X-axis direction are taken as the first driven shaft, all output shafts of the motor driving each manipulator 200 to move along the Y-axis direction are taken as the second driven shaft, all output shafts of the motor driving each manipulator 200 to move along the Z-axis direction are taken as the third driven shaft, and all output shafts of the motor driving each punch to move up and down along the Z-axis at a fixed speed are regarded as the driving shafts of the electronic cam. On this basis, the control device 400 completes the planning of the cam curve.

[0026] For ease of understanding, the driving shaft and driven shaft of the cam are explained below: In a mechanical cam, engineers will design the shape of the mechanical cam to make the driven shaft follow the movement of the driving shaft and make corresponding movements; it can also be understood that when the driving shaft rotates, the mechanical cam that rotates with the driving shaft contacts the driven shaft at one end of the protrusion, pushes the driven shaft to make a linear motion, and then after the protrusion leaves the driven shaft, the driven shaft loses its supporting force and returns to its original position, thereby achieving uniform motion of the driving shaft and periodic repetitive motion of the driven shaft (the speed change of the driven shaft when making a linear motion can also be controlled by separately designing the shape of one end of the protrusion); In the electronic cam, the cam itself is virtual, and there is no concept of the active shaft driving the driven shaft to move through a physical cam. The method of using the electronic cam to replace the mechanical cam is actually: the position of the active shaft originally connected to the mechanical cam is fed back, and the cam angle corresponding to the current position of the active shaft (that is, the rotation angle of the original mechanical cam at this time) is calculated in real time, and then the corresponding theoretical position of each driven shaft is calculated based on the cam angle, and then the signal carrying each theoretical position is sent to the servo motor of the corresponding driven shaft, so that the servo motor controls the driven shaft to make the corresponding movement (move to the corresponding theoretical position).

[0027] The following is a detailed description of the implementation of the curve planning method of the electronic cam for the punch press in combination with the above punch press system: Reference Figure 2 Another embodiment of the present application provides a curve planning method for an electronic cam for a punching machine. The curve planning method is based on the punching machine system provided in the above embodiment. The curve planning method includes: S100, determining a target formula in a preset motion formula library according to the workpiece to be punched; Among them, the motion recipe library of this embodiment includes motion recipes corresponding to different types of workpieces. These motion recipes are stored in the memory 410 of the control device 400 for easy access at any time, and can be automatically stored to update the motion recipe library when the operator inputs a new motion recipe.

[0028] Considering that different workpieces to be stamped have different processing flows (different stamping processes or process sequences), specifically, S100 includes: S110, determining the type of workpiece to be punched on the workbench of the punch press 100; Specifically, the type of the workpiece to be punched may be obtained through manual input, or may be automatically identified by installing a camera facing the workpiece to be punched on the worktable on one side of the worktable and using image recognition technology.

[0029] S120, taking the motion formula corresponding to the type of the workpiece to be punched in the preset motion formula library as the target formula; wherein the motion formula includes the number of motion steps, the slave operation parameters of each slave axis (the first slave axis, the second slave axis and the third slave axis) in each motion step, and the active operation parameters of the active axis; in this embodiment, each displacement of the slave axis in the same direction or each stay still for a period of time is regarded as a motion step, for example: the driven axis first moves forward in the direction of the X-axis, pauses for a period of time, and then moves forward in the direction of the Y-axis. At this time, the number of motion steps is 3.

[0030] S200, obtaining a motion stroke and a maximum angle threshold corresponding to each motion step according to the driven operation parameters and the active operation parameters in the target recipe; The driven operation parameters include specific position parameters. The specific position parameters of this embodiment are A (i,j) , i is one of X, Y, and Z and j (the number of motion steps) is one of the natural numbers 1, 2, 3, ..., and refers to the distance between the driven axis in the i-axis direction and the origin at the beginning of the j-th motion step, and the distance unit is in millimeters for example; the active operation parameters include the starting angle and the ending angle of the cam (the original mechanical cam), and the starting angle of this embodiment is θ s (j) refers to the angle of the cam at the beginning of the jth motion step; the ending angle is θ e (j) refers to the angle of the cam at the end of the jth motion step.

[0031] It should be noted that the specific position parameters, start angle and end angle parameters in this embodiment are all endpoint values ​​pre-stored in the target recipe. These endpoint values ​​are obtained through repeated calculation, simulation and optimization according to the production process of different types of workpieces to be stamped. Generally, the data input is completed in advance by manual according to the corresponding stamping process, and then the processor 420 of the control device 400 packages the corresponding data into motion recipes corresponding to different types of workpieces to be stamped, and sends them to the memory 410 for storage for subsequent calls. In this embodiment, the specific position parameter of the driven axis in the next motion step can be regarded as the distance between the driven axis and the origin at the end of the current motion step.

[0032] Specifically, S200 includes: S210, establishing a rectangular coordinate system; Among them, the x-axis of the rectangular coordinate system represents the rotation angle of the cam (the deflection angle of one end of the cam protrusion compared to the initial state). In this embodiment, one rotation of the cam is considered a cycle, so the value range of x is 0-360°, and the y-axis represents the distance between the driven axis and the origin in each direction (X-axis, Y-axis, Z-axis).

[0033] S220, determining initial broken lines of motion changes corresponding to the driven axes in various directions in a rectangular coordinate system according to the specific position parameters, the start angle, and the end angle; The motion change initial broken line is used to reflect the change relationship between the distance between the driven shaft and the origin and the rotation angle of the cam in all motion steps; the following table is part of the information of a motion formula pre-stored in the memory 410, and the step S220 is explained below through the table: The table (including only the data corresponding to the first two movement steps) is shown in Table 2.1 below: Table 2.1 Referring to Table 2.1, taking the first movement step as an example, during the process of this step, the driven shaft moving along the X-axis direction moves from a position of 259 mm from the origin to a position of 639 mm from the origin, and the cam rotates from 320° to 40°; the driven shaft moving along the Y-axis direction moves from a position of 100 mm from the origin to a position of 288 mm from the origin, and the cam rotates from 250° to 300°; the driven shaft moving along the Z-axis direction moves from a position of 60 mm from the origin to a position of 100 mm from the origin, and the cam rotates from 301° to 319°; and so on, we can finally get the initial broken line of the movement change of the distance between the driven shaft and the origin in each direction as x increases from 0° to 360° (37-58, 60-102, 102-250, 250-300, 301-319, 320-40 can form a closed loop).

[0034] S230, obtaining the movement stroke of the corresponding driven shaft in each movement step according to the initial broken lines of the movement changes corresponding to the driven shafts in each direction; Among them, each initial broken line of motion change is composed of point (θ e (j),A (i,j+1) ),(j≤n) and point(θ s (j),A (i,j) ), that is, when i=X, n=3, the initial broken line of the motion change corresponding to the driven axis moving along the X-axis direction includes three motion straight line segments corresponding to the three motion steps: when j=1, point (θ e (1),A (X,2) ) and point (θ s (1),A (X,1) ) is connected by a straight line, when j = 2, point (θ e (2),A (X,3) ) and point (θ s (2),A (X,2) ) and when j = 3, point (θ e (3),A (X,1) ) and point (θ s (3),A (X,3) ) are connected to form a straight line. (When the number of motion steps n is only 3, it means that every three motion steps constitute a cycle). Specifically, S230 includes: S231, traversing each motion straight line segment in the initial polyline of the motion change in the order of the motion steps; S232, Determine whether the current moving straight line segment is a stationary straight line segment; Among them, each moving straight line segment corresponds to two specific position parameters, namely A (i,j) and A (i,j+1) , where one is the specific position parameter at the beginning of the movement step, and the other is the distance value between the driven shaft and the origin at the end of the movement step (i.e., the specific position parameter at the beginning of the next movement step); specifically, if the two specific position parameters are equal, the judgment result is that the current moving straight line segment is a stationary straight line segment; otherwise, the judgment result is that the current moving straight line segment is not a stationary straight line segment.

[0035] S233, If the judgment result is that the current moving straight line segment is not a stationary straight line segment, obtain the movement stroke corresponding to the current moving straight line segment according to the specific position parameter; Specifically, S233 includes: S2331, Determine whether the current moving straight line segment is the last moving straight line segment; Specifically, to determine whether it is the last moving straight line segment, the movement step j corresponding to the current moving straight line segment can be numerically compared with the number n of movement steps in the target formula (j ≤ n); if j < n, the current moving straight line segment is not the last moving straight line segment, and if j = n, the current moving straight line segment is the last moving straight line segment.

[0036] S2332, If the current moving straight line segment is not the last moving straight line segment, the calculation formula for the movement stroke is: S (i,j) = A (i,j+1) - A (i,j) ; Among them, S (i,j) represents the movement stroke of the driven shaft along the i-axis direction corresponding to the jth movement step (the current moving straight line segment), A (i,j+1) represents the specific position parameter corresponding to the movement step corresponding to the next moving straight line segment; A (i,j) represents the specific position parameter corresponding to the movement step corresponding to the current moving straight line segment.

[0037] S2333, If the current moving straight line segment is the last moving straight line segment, the calculation formula for the movement stroke is: S (i,n) = A (i,1) - A (i,n) ; Among them, n represents the number of movement steps; S (i,n) represents the movement stroke of the driven shaft along the i-axis direction corresponding to the last movement step (the last moving straight line segment), A (i,1)A represents the specific position parameter corresponding to the motion step corresponding to the first motion straight line segment; (i,n) Indicates the specific position parameters corresponding to the motion step corresponding to the last motion straight line segment.

[0038] S234: If the judgment result is that the current moving straight line segment is a stationary straight line segment, the moving stroke corresponding to the current moving straight line segment is 0.

[0039] S240, determining a maximum angle threshold of the cam in each movement step according to the starting angle and the ending angle of the cam; The maximum angle threshold refers to the total angle value of the cam rotating in one motion step; specifically, S240 includes: S241, traversing each motion straight line segment in the initial polyline of the motion change according to the order of the motion steps; S242, calculating the maximum angle threshold corresponding to each moving straight line segment; Specifically, S242 includes: S2421, determining whether the current moving straight line segment is a stationary straight line segment; Specifically, if the starting angle corresponding to the current moving straight line segment is equal to the ending angle, the corresponding moving straight line segment is regarded as a stationary straight line segment; otherwise, the corresponding moving straight line segment is not a stationary straight line segment.

[0040] S2422, when the current moving straight line segment is not a stationary straight line segment, if the starting angle corresponding to the current moving straight line segment (movement step) is greater than the ending angle, the calculation formula of the maximum angle threshold is as follows: θ max (j) = θ e (j)+360°-θ s (j); Among them, θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; θ e (j) represents the end angle corresponding to the jth moving straight line segment; θ s (j) represents the end angle corresponding to the jth moving straight line segment; If the starting angle of the current moving straight line segment is smaller than the ending angle, the corresponding maximum angle threshold is calculated as follows: θ max (j) = θ e (j)-θ s (j). S2423, when the current moving straight line segment is a stationary straight line segment, determining whether the current stationary straight line segment is the last moving straight line segment; Specifically, the step of S2423 is the same as the step of S2331 above.

[0041] S2424, when the current stationary straight line segment is not the last moving straight line segment, if the starting angle of the next moving straight line segment is less than the ending angle of the current stationary straight line segment, the corresponding maximum angle threshold is calculated as follows: θ max (j) = θ s (j+1)+360°-θ e (j); Among them, θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; θ s (j+1) represents the starting angle corresponding to the j+1th moving straight line segment; θ e (j) represents the end angle corresponding to the jth moving straight line segment; If the starting angle of the next moving straight line segment is greater than the ending angle of the current stationary straight line segment, the corresponding maximum angle threshold is calculated as follows: θ max (j) = θ s (j+1)-θ e (j). S2425, when the current stationary straight line segment is the last moving straight line segment, the calculation formula of the maximum angle threshold is as follows: Among them, θ max (n) represents the maximum angle threshold corresponding to the last moving straight line segment; θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; Represents the sum of all maximum angle thresholds corresponding to the 1st moving straight line segment to the n-1th moving straight line segment.

[0042] It should be noted that after S240, the following steps are also included: S250, detecting whether the maximum angle threshold corresponding to each moving straight line segment is abnormal; Among them, the judgment results include the presence of an abnormality and the absence of an abnormality; this embodiment judges the abnormal situation by judging whether the maximum angle threshold is greater than 0 and whether the sum of all maximum angle thresholds is 360°; if the maximum angle threshold is less than or equal to 0, or the sum of all maximum angle thresholds is not 360°, it is judged that an abnormality exists; otherwise, it is judged that there is no abnormality.

[0043] S260: If the result of the determination is that an abnormality exists, an error message is given and the process returns to step S100 to redefine the target formula.

[0044] S300, generating a cam trajectory table based on the motion stroke and maximum angle threshold corresponding to each motion step; The cam trajectory table corresponds to each motion step one by one; specifically, S300 includes: S310, correcting and planning all the initial broken lines of motion changes according to the corresponding motion stroke and the maximum angle threshold, and obtaining a number of theoretical position parameters corresponding to each initial broken line of motion changes; The planning and correction of this embodiment refers to calculating the theoretical positions of countless nodes actually passed between each endpoint and the corresponding next endpoint by using the endpoint values ​​specified in the initial polyline of the motion change. Specifically, S310 includes: S311, determining an initialization angle, and obtaining an offset angle corresponding to each initial broken line of motion change according to the initialization angle; In order to simplify subsequent calculations, the initialization angle of this embodiment is taken as 0. Specifically, S311 includes: S3111, when the initialization angle is greater than the starting angle of the first moving straight line segment of the current motion change initial polyline, the calculation formula of the offset angle is as follows: θ 偏移 =θ 初始 -θ s (i,1); Among them, θ 偏移 Indicates the offset angle, which is the angle required to convert the starting angle in the target recipe into the initialization angle; θ 初始 Represents the initialization angle; θ s (i,1) represents the starting angle of the first moving straight line segment of the initial broken line of the motion change corresponding to the driven axis moving along the i-axis direction.

[0045] S3112, when the initialization angle is smaller than the starting angle of the first moving straight line segment of the current motion change initial polyline, the calculation formula of the offset angle is as follows: θ 偏移 =θ 初始 +360°-θ s (i,1); Among them, θ 偏移 Indicates the offset angle, which is the angle required to convert the starting angle in the target recipe into the initialization angle; θ 初始 Represents the initialization angle; θ s (i,1) represents the starting angle of the first moving straight line segment of the initial broken line of the motion change corresponding to the driven axis moving along the i-axis direction.

[0046] S3113, when the initialization angle is equal to the starting angle of the first moving straight line segment of the current motion change initial broken line, the offset angle is 0.

[0047] S312, adjusting and planning each moving straight line segment in the corresponding initial broken line of the moving change according to the offset angle and the maximum angle threshold, to obtain a theoretical position parameter; Specifically, S312 includes: S3121, adjusting the starting angle and the ending angle corresponding to all the moving straight line segments in the initial broken line of the corresponding moving change according to the offset angle to obtain a standard angle; In this embodiment, the starting angle and the ending angle corresponding to each moving straight line segment can be expressed with each other (except the starting angle of the first moving straight line segment and the ending angle of the last moving straight line segment). Since the starting angle of the first moving straight line segment has been adjusted to the initialization angle, the corresponding starting angle is mainly expressed by the ending angle below, such as: e (i,1) represents θ s (i,2); Specifically, S3121 includes: S31211, when θ 偏移 >θ e (i,j), θ 标准 (i,j)=θ e (i,j)+360°-θ 偏移 ; S31212, when θ 偏移 ≤θ e (i,j), θ 标准 (i,j)=θ e (i,j)-θ 偏移 ; Among them, θ 标准 (i, j) represents the ending angle of the jth moving straight line segment of the initial broken line of the motion change corresponding to the driven axis moving along the i-axis direction (the starting angle of the j+1th moving straight line segment).

[0048] S3122, calculating the theoretical position parameters of the corresponding driven axis according to the standard angles and maximum angle thresholds corresponding to all the moving straight line segments in each initial broken line of the moving change; Among them, the theoretical position parameters correspond to the standard angles one by one; specifically, S3122 includes: S31221, obtaining a displacement curve of the slave axis according to the motion stroke corresponding to each motion step; The formula of the displacement curve from the axis in this embodiment is based on a fifth-order fitting polynomial: f(x)=a+bx+cx^2+dx^3+ex^4+fx^5. This fitting polynomial is a prior art and will not be described in detail here. In this embodiment, x in the fitting polynomial represents θ e(i, j), f(x) represents the motion stroke; the slave axis displacement curve is used to reflect the theoretical change of the distance between the driven axis and the origin and the end angle during the process of rotating with the driving axis.

[0049] S31222, determining whether each standard angle is located on the slave axis displacement curve; Among them, this embodiment mainly makes a judgment by substituting the end angle corresponding to the standard angle into the formula of the slave axis displacement curve. If the obtained f(x) is equal to the motion stroke corresponding to the end angle, it is considered that the corresponding standard angle is on the slave axis displacement curve.

[0050] S31223, if the standard angle is on the displacement curve of the slave axis, the theoretical position parameter is obtained according to the standard angle; specifically, the calculation formula of the theoretical position parameter is as follows: Among them, θ 标准 (i,j) represents the standard angle; B (i,j) Indicates the theoretical position parameter, which refers to the distance between the driven axis and the origin in the i-axis direction when the cam angle is the standard angle. The distance unit is in millimeters. max (i, j) represents the maximum angle threshold; S (i,j) Represents the motion stroke of the driven axis in the i-axis direction in the j-th motion step.

[0051] S320, generating a cam trajectory table based on all theoretical position parameters; Among them, the cam table of this embodiment is of XY type, that is, a two-dimensional array is used to represent the rotation angle of the cam (standard angle) and the distance between the driven axis and the origin in each axis direction (theoretical position parameter). A set of data in the cam table of this embodiment takes the theoretical positions of each driven axis as 330 mm for the X axis, 120 mm for the Y axis, and 28 mm for the Z axis when the standard rotation angle of the cam is 82° as an example.

[0052] It should be particularly noted that after generating the cam trajectory table, the control device 400 will communicate the theoretical position of each driven shaft in the cam trajectory table to the servo system of each driven shaft (the existing structure of the electronic cam system, which is not described in detail in this embodiment) for execution, thereby achieving strict synchronization of each driven shaft with the driving shaft.

[0053] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses a control device, including a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the curve planning method of the electronic cam for the punching machine provided in the above method embodiment.

[0054] Based on the same inventive concept mentioned above, an embodiment of the present application also discloses a computer-readable storage medium, which stores at least one instruction, at least one program, code set or instruction set. The at least one instruction, at least one program, code set or instruction set can be loaded and executed by a processor to implement the curve planning method of the electronic cam for a punching machine provided in the above method embodiment.

[0055] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0056] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium. The storage medium mentioned above may include, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory 410 (RAM), a magnetic disk or an optical disk.

[0057] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A curve planning method for an electronic cam for a punch press, characterized in that: The curve planning method is based on a punch press system, wherein the punch press system includes a manipulator, and the manipulator is driven by driven shafts in different directions; The curve planning method comprises: Determine a target recipe in a preset motion recipe library according to the workpiece to be punched, wherein the target recipe includes the number of motion steps, the driven operation parameters of each driven axis in each motion step, and the active operation parameters of the active axis; Obtaining a motion stroke and a maximum angle threshold corresponding to each motion step according to the driven operation parameters and the active operation parameters in the target recipe; A cam trajectory table is generated based on the motion stroke and the maximum angle threshold corresponding to each motion step.

2. The curve planning method according to claim 1, characterized in that: The driven operation parameters include specific position parameters, and the active operation parameters include the starting angle and the ending angle of the cam; the step of obtaining the motion stroke and the maximum angle threshold corresponding to each motion step according to the driven operation parameters and the active operation parameters in the target recipe includes: establishing a rectangular coordinate system; Determine the initial broken lines of motion changes corresponding to the driven axis in each direction on the rectangular coordinate system according to the specific position parameter, the starting angle and the ending angle; Obtaining the motion stroke of the corresponding driven shaft in each of the motion steps according to the initial broken lines of motion changes corresponding to the driven shafts in each direction; A maximum angle threshold of the cam in each of the movement steps is determined according to the starting angle and the ending angle of the cam.

3. The curve planning method according to claim 2, characterized in that: The motion change initial broken line is formed by connecting a number of motion straight line segments; the motion stroke of the corresponding driven axis in each motion step obtained according to the motion change initial broken line corresponding to the driven axis in each direction includes: Traversing each of the motion straight line segments in the initial polyline of the motion change in the order of the motion steps; Determining whether the current moving straight line segment is a stationary straight line segment; If the judgment result is that the current moving straight line segment is not a stationary straight line segment, then obtaining the moving stroke corresponding to the current moving straight line segment according to the specific position parameter; If the judgment result is that the current moving straight line segment is a stationary straight line segment, the moving stroke corresponding to the current moving straight line segment is 0.

4. The curve planning method according to claim 2, characterized in that: If the judgment result is that the current moving straight line segment is not a stationary straight line segment, obtaining the moving stroke corresponding to the current moving straight line segment according to the specific position parameter includes: Determine whether the current moving straight line segment is the last moving straight line segment; If the current motion straight line segment is not the last motion straight line segment, the calculation formula for the motion stroke is: S (i,j) =A (i,j+1) -A (i,j) ; Among them, S (i,j) A represents the motion stroke of the driven axis along the i-axis in the j-th motion step, (i,j+1) A represents the specific position parameter corresponding to the motion step corresponding to the next motion straight line segment; (i,j) Indicates the specific position parameters corresponding to the motion step corresponding to the current motion straight line segment; If the current motion straight line segment is the last motion straight line segment, the calculation formula for the motion stroke is: S (i,n) =A (i,1) -A (i,n) ; Where n represents the number of motion steps; S (i,n) A represents the motion stroke of the driven axis along the i-axis in the last motion step. (i,1) A represents the specific position parameter corresponding to the motion step corresponding to the first motion straight line segment; (i,n) Indicates the specific position parameters corresponding to the motion step corresponding to the last motion straight line segment.

5. The curve planning method according to claim 2, characterized in that: Determining the maximum angle threshold of the cam in each of the movement steps according to the starting angle and the ending angle of the cam comprises: Traversing each of the motion straight line segments in the initial polyline of the motion change in the order of the motion steps; Determining whether the current moving straight line segment is a stationary straight line segment; In the case where the current moving straight line segment is not a stationary straight line segment, if the starting angle corresponding to the current moving straight line segment is greater than the ending angle, the calculation formula of the maximum angle threshold is as follows: i max (j)=θ e (j)+360°-θ s (j); Among them, θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; θ e (j) represents the end angle corresponding to the jth moving straight line segment; θ s (j) represents the end angle corresponding to the jth moving straight line segment; If the starting angle of the current moving straight line segment is smaller than the ending angle, the corresponding maximum angle threshold is calculated as follows: i max (j)=θ e (j)-θ s (j); In the case where the current moving straight line segment is a stationary straight line segment, determining whether the current stationary straight line segment is the last moving straight line segment; In the case where the current stationary straight line segment is not the last moving straight line segment, if the starting angle of the next moving straight line segment is less than the ending angle of the current stationary straight line segment, the corresponding maximum angle threshold is calculated as follows: i max (j)=θ s (j+1)+360°-θ e (j); Among them, θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; θ s (j+1) represents the starting angle corresponding to the j+1th moving straight line segment; θ e (j) represents the end angle corresponding to the jth moving straight line segment; If the starting angle of the next moving straight line segment is greater than the ending angle of the current stationary straight line segment, the corresponding maximum angle threshold is calculated as follows: i max (j)=θ s (j+1)-θ e (j); When the current stationary straight line segment is the last moving straight line segment, the calculation formula for the maximum angle threshold is as follows: Among them, θ max (n) represents the maximum angle threshold corresponding to the last moving straight line segment; θ max (j) represents the maximum angle threshold corresponding to the jth moving straight line segment; Represents the sum of all maximum angle thresholds corresponding to the 1st moving straight line segment to the n-1th moving straight line segment.

6. The curve planning method according to claim 5, characterized in that: After the step of determining the maximum angle threshold of the cam in each of the movement steps according to the starting angle and the ending angle of the cam, the method further comprises: Detecting whether there is an abnormality in the maximum angle threshold corresponding to each of the moving straight line segments; If the judgment result is that there is an abnormality, an error is reported.

7. The curve planning method according to claim 1, characterized in that: The generating of the cam trajectory table based on the motion stroke and the maximum angle threshold corresponding to each motion step comprises: Determine an initialization angle, and obtain an offset angle corresponding to each of the initial fold lines of the motion change according to the initialization angle; adjust the start angle and the end angle corresponding to all the motion straight line segments in the corresponding initial fold line of the motion change according to the offset angle to obtain a standard angle; The theoretical position parameter of the corresponding driven axis is calculated according to the standard angle corresponding to all the motion straight line segments in each of the initial broken lines of the motion change and the maximum angle threshold. The calculation formula of the theoretical position parameter is as follows: Among them, θ 标准 (i,j) represents the standard angle; B (i,j) Indicates the theoretical position parameter, which refers to the distance between the driven axis and the origin in the i-axis direction when the cam angle is the standard angle. The distance unit is in millimeters. max (i, j) represents the maximum angle threshold; S (i,j) represents the motion stroke of the driven axis in the i-axis direction in the j-th motion step; A cam trajectory table is generated based on the theoretical position parameters.

8. A control device, characterized in that: It comprises a memory and a processor, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the curve planning method for the electronic cam for a punching machine as described in any one of claims 1 to 7.

9. A punching system, characterized in that: include: A punching machine (100) is used to punch a workpiece to be punched; The control device (400) as claimed in claim 8 plans the movement trajectory of the manipulator according to the workpiece to be punched to obtain a corresponding cam trajectory table; A robot (200) is used to clamp a workpiece to be punched and move it according to the cam track table.

10. A computer-readable storage medium, characterized in that: The readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by a processor to implement the curve planning method for an electronic cam for a punching machine as described in any one of claims 1 to 7.