Planning method and device for limiting walking path and storage medium
By conducting central sampling and constraint range planning of the moving trajectory point of the movable tool holder device in the bending center, the problem of interference of the bending shaft within the restricted stroke is solved, ensuring the safety of sheet metal processing.
Patent Information
- Application Number
- CN202410984106.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-12
AI Technical Summary
During sheet metal processing, the front and rear bending shafts and upper and lower bending shafts of the movable tool holder device in the bending center may interfere with each other within the restricted stroke, affecting processing safety.
By sampling the working conditions of the front and rear bend shafts and upper and lower bend shafts of the movable tool holder device, obtain the set of moving track points, plan the motion constraint range of each axis, and control it to move within the constraint range to avoid interference .
Effectively prevent the interfering of each shaft of the movable tool holder device from interfering within the restricted stroke, ensuring mechanical safety and ensuring the safety of sheet metal processing.
Smart Images

Figure CN118938801A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of sheet metal processing, and in particular to a planning method, device and storage medium for restricting a walking path. Background Art
[0002] The bending center is a CNC machine tool for automatic sheet metal bending. The process of the bending center processing sheet metal workpieces is generally as follows: the Z-axis servo motor of the upper slider mechanism of the bending center converts the rotational motion into linear motion through the screw nut substructure, driving the upper slider mechanism to move up and down. An upper pressing knife is installed at the lower end of the upper slider mechanism. When the feeding mechanism of the bending center sends the sheet metal workpiece to the specified bending position, the Z-axis servo motor drives the upper slider mechanism downward to press the sheet metal workpiece through the upper pressing knife to fix it. After that, the front and rear bending axes (X-axis) and the upper and lower bending axes (Y-axis) of the movable tool holder device of the bending center are linked to control to complete bending of the sheet metal workpiece at different angles according to the set trajectory.
[0003] Since the bending center needs to use multiple plates at the same time in the process of completing the sheet metal workpiece processing operation, such as the front and rear bending axes and the upper and lower bending axes of the movable tool holder device. When in use, in order to ensure the normal processing operation of the sheet metal workpiece, positive and negative travel limits are generally set for each axis of the movable tool holder device. However, in actual processing, the axes of the movable tool holder device may also interfere with each other within the limited travel.
[0004] Therefore, it is necessary to provide a solution that can prevent the axes of the movable tool holder device from interfering with each other within the limited stroke to ensure the safety of sheet metal processing. Summary of the invention
[0005] The embodiment of the present application provides a planning method, device and storage medium for limiting a walking path to solve the problems existing in the related art. The technical solution is as follows:
[0006] In a first aspect, an embodiment of the present application provides a planning method for limiting a walking path, which is applied to a movable tool holder device of a bending center, wherein the movable tool holder device includes a front and rear bending axis and an upper and lower bending axis, and the method includes:
[0007] Perform position sampling according to the working conditions of the front and rear bending axes and the upper and lower bending axes to obtain a first sampling coordinate point set of the front and rear bending axes and a second sampling coordinate point set of the upper and lower bending axes;
[0008] Acquire a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes;
[0009] Planning a first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set, and planning a second motion constraint range of the upper and lower bending axes according to the second sampling coordinate point set and the second motion trajectory point set;
[0010] The front and rear bending axes are controlled to move within the first motion constraint range, and the upper and lower bending axes are controlled to move within the second motion constraint range.
[0011] In one embodiment, obtaining a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes comprises:
[0012] Acquire first motion data of the front and rear bending axes and second motion data of the upper and lower bending axes, wherein the first motion data includes the motion path and motion speed of the front and rear bending axes, and the second motion data includes the motion path and motion speed of the upper and lower bending axes;
[0013] Generate the first motion trajectory point set according to the motion path and motion speed in the first motion data;
[0014] The second motion trajectory point set is generated according to the motion path and motion speed in the second motion data.
[0015] In one embodiment, planning the first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set includes:
[0016] Taking out one first motion point from the first motion trajectory point set at a time in a specified order;
[0017] For each first motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the first motion trajectory point set, wherein the first motion constraint range includes the constrained X coordinates of all motion points in the first motion trajectory point set:
[0018] Searching for adjacent first target sampling coordinate points and second target sampling coordinate points from the first sampling coordinate point set, wherein the Y coordinate of each first motion point is between the Y coordinate of the first target sampling coordinate point and the Y coordinate of the second target sampling coordinate point;
[0019] According to the first target sampling coordinate point, the second target sampling coordinate point and the Y coordinate of each first motion point, a constrained X coordinate of each first motion point is planned.
[0020] In one implementation, planning the constrained X coordinate of each first motion point according to the first target sampling coordinate point, the second target sampling coordinate point, and the Y coordinate of each first motion point includes:
[0021] Planning a first target straight line according to the first target sampling coordinate point and the second target sampling coordinate point, wherein the first target sampling coordinate point and the second target sampling coordinate point are both located on the first target straight line;
[0022] The constrained X coordinate of each first motion point is obtained according to the first target straight line and the Y coordinate of each first motion point.
[0023] In one implementation, generating the second motion trajectory point set according to the motion path and motion speed in the second motion data includes:
[0024] Taking out one second motion point from the second motion trajectory point set in chronological order each time;
[0025] For each second motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the second motion trajectory point set, wherein the second motion constraint range includes the constrained X coordinates of all motion points in the second motion trajectory point set:
[0026] Searching for adjacent third target sampling coordinate points and fourth target sampling coordinate points from the second sampling coordinate point set, wherein the Y coordinate of each second motion point is between the Y coordinate of the third target sampling coordinate point and the Y coordinate of the fourth target sampling coordinate point;
[0027] According to the third target sampling coordinate point, the fourth target sampling coordinate point and the Y coordinate of each second motion point, the constrained X coordinate of each second motion point is planned.
[0028] In one implementation, planning the constrained X coordinate of each second motion point according to the third target sampling coordinate point, the fourth target sampling coordinate point and the Y coordinate of each second motion point includes:
[0029] Planning a second target straight line according to the third target sampling coordinate point and the fourth target sampling coordinate point, wherein the third target sampling coordinate point and the fourth target sampling coordinate point are both located on the second target straight line;
[0030] The constrained X coordinate of each second moving point is obtained according to the second target straight line and the Y coordinate of each second moving point.
[0031] In one embodiment, the method further comprises:
[0032] When the movement of the front and rear bending axes exceeds the first movement constraint range, controlling the front and rear bending axes to stop moving;
[0033] When the movement of the upper and lower bending axes exceeds the second movement constraint range, the movement of the upper and lower bending axes is controlled.
[0034] In a second aspect, an embodiment of the present application further provides a planning device for limiting a walking path, which is applied to a movable tool holder device of a bending center, wherein the movable tool holder device includes a front and rear bending axis and an upper and lower bending axis, and the device includes:
[0035] A planning unit, used for performing position sampling according to the working conditions of the front and rear bending axes and the upper and lower bending axes to obtain a first sampling coordinate point set of the front and rear bending axes and a second sampling coordinate point set of the upper and lower bending axes; obtaining a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes; planning a first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set, and planning a second motion constraint range of the upper and lower bending axes according to the second sampling coordinate point set and the second motion trajectory point set;
[0036] A control unit is used to control the front and rear bending axes to move within the first motion constraint range, and to control the upper and lower bending axes to move within the second motion constraint range.
[0037] In one implementation, the planning unit is specifically configured to:
[0038] Acquire first motion data of the front and rear bending axes and second motion data of the upper and lower bending axes, wherein the first motion data includes the motion path and motion speed of the front and rear bending axes, and the second motion data includes the motion path and motion speed of the upper and lower bending axes;
[0039] Generate the first motion trajectory point set according to the motion path and motion speed in the first motion data;
[0040] The second motion trajectory point set is generated according to the motion path and motion speed in the second motion data.
[0041] In one implementation, the planning unit is specifically configured to:
[0042] Taking out one first motion point from the first motion trajectory point set at a time in a specified order;
[0043] For each first motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the first motion trajectory point set, wherein the first motion constraint range includes the constrained X coordinates of all motion points in the first motion trajectory point set:
[0044] Searching for adjacent first target sampling coordinate points and second target sampling coordinate points from the first sampling coordinate point set, wherein the Y coordinate of each first motion point is between the Y coordinate of the first target sampling coordinate point and the Y coordinate of the second target sampling coordinate point;
[0045] According to the first target sampling coordinate point, the second target sampling coordinate point and the Y coordinate of each first motion point, a constrained X coordinate of each first motion point is planned.
[0046] In one implementation, the planning unit is specifically configured to:
[0047] Planning a first target straight line according to the first target sampling coordinate point and the second target sampling coordinate point, wherein the first target sampling coordinate point and the second target sampling coordinate point are both located on the first target straight line;
[0048] The constrained X coordinate of each first motion point is obtained according to the first target straight line and the Y coordinate of each first motion point.
[0049] In one implementation, the planning unit is specifically configured to:
[0050] Taking out one second motion point from the second motion trajectory point set in chronological order each time;
[0051] For each second motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the second motion trajectory point set, wherein the second motion constraint range includes the constrained X coordinates of all motion points in the second motion trajectory point set:
[0052] Searching for adjacent third target sampling coordinate points and fourth target sampling coordinate points from the second sampling coordinate point set, wherein the Y coordinate of each second motion point is between the Y coordinate of the third target sampling coordinate point and the Y coordinate of the fourth target sampling coordinate point;
[0053] According to the third target sampling coordinate point, the fourth target sampling coordinate point and the Y coordinate of each second motion point, the constrained X coordinate of each second motion point is planned.
[0054] In one implementation, the planning unit is specifically configured to:
[0055] Planning a second target straight line according to the third target sampling coordinate point and the fourth target sampling coordinate point, wherein the third target sampling coordinate point and the fourth target sampling coordinate point are both located on the second target straight line;
[0056] The constrained X coordinate of each second moving point is obtained according to the second target straight line and the Y coordinate of each second moving point.
[0057] In one embodiment, the control unit is further configured to:
[0058] When the movement of the front and rear bending axes exceeds the first movement constraint range, controlling the front and rear bending axes to stop moving;
[0059] When the movement of the upper and lower bending axes exceeds the second movement constraint range, the movement of the upper and lower bending axes is controlled.
[0060] In a third aspect, an embodiment of the present application further provides a computer device, comprising: a memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement a method in any one of the above-mentioned aspects, wherein the memory and the processor communicate with each other through an internal connection path.
[0061] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method in any one of the above-mentioned embodiments is implemented.
[0062] The advantages or beneficial effects of the above technical solution include at least:
[0063] Compared with the traditional method of simply adding positive and negative limits to each axis of the movable tool seat device, the present application can plan the motion constraint range of each axis of the movable tool seat device based on the actual situation of the movable tool seat device, so that each axis of the movable tool seat device can only move within the corresponding motion constraint range, thereby effectively preventing the axes of the movable tool seat device from interfering with each other within the restricted stroke, ensuring the mechanical safety of each axis of the movable tool seat device, and ensuring the safety of sheet metal processing.
[0064] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in the present application and should not be regarded as limiting the scope of the present application.
[0066] Figure 1 An example flow chart of a method for planning a restricted walking path provided in an embodiment of the present application;
[0067] Figure 2 An example diagram of a position sampling process of an upper and lower bending axis provided in an embodiment of the present application;
[0068] Figure 3 An example flow chart of another method for planning a restricted walking path provided in an embodiment of the present application;
[0069] Figure 4 A structural block diagram of a planning device for restricting a walking path provided in an embodiment of the present application;
[0070] Figure 5 A structural block diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary and non-restrictive in nature.
[0072] Figure 1 A flow chart of a method for planning a restricted walking path according to an embodiment of the present application is shown.
[0073] The method is applied to the movable tool holder device of the bending center, which includes the front and rear bending axes and the upper and lower bending axes. It can also be understood that the method is used to plan the restricted walking paths of the front and rear bending axes and the upper and lower bending axes. Figure 1 As shown, the method may include the following steps:
[0074] S110, performing position sampling according to the working conditions of the front and rear bending axes and the upper and lower bending axes to obtain a first sampling coordinate point set of the front and rear bending axes and a second sampling coordinate point set of the upper and lower bending axes.
[0075] In one embodiment, for the upper and lower bending axes, combined Figure 2 As shown, the position sampling process can be: during the movement of the upper and lower bending axes, in order from high to low, for example Figure 2The sequence of 1-14 is used to record the position coordinates of the upper curved knife and the lower curved knife of the movable knife holder device on the upper and lower bending axes in sequence. The upper curved knife and the lower curved knife move coaxially on the upper and lower bending axes.
[0076] It can be understood that the second sampling coordinate point set includes the sampling coordinate points where the upper curved blade moves on the upper and lower bending axes and the sampling coordinate points where the lower curved blade moves on the upper and lower bending axes.
[0077] In one embodiment, the position sampling process of the front and rear bending shafts may be the same as or similar to the position sampling process of the upper and lower bending shafts described above, and will not be described in detail herein.
[0078] In the embodiment of the present application, by executing step S110, it is possible to plan the motion constraint range of the front and rear bending axes and the upper and lower bending axes based on their actual working conditions, which can effectively prevent the axes of the movable tool holder device from interfering with each other within the restricted stroke.
[0079] S120, obtaining a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes.
[0080] In one implementation, the execution process of step S120 may include the following steps:
[0081] S121, obtaining the first motion data of the front and rear bending axes and the second motion data of the upper and lower bending axes.
[0082] In specific implementation, the first motion data may include but is not limited to: the motion path and motion speed of the front and rear bending axes. The second motion data may include but is not limited to: the motion path and motion speed of the upper and lower bending axes.
[0083] For example, during the movement of the front and rear bending axes, the movement speed and movement path of the front and rear bending axes can be set, and then the front and rear bending axes can be controlled to move according to the set movement speed and movement path. Similarly, during the movement of the upper and lower bending axes, the movement speed and movement path of the upper and lower bending axes can be set, and then the upper and lower bending axes can be controlled to move according to the set movement speed and movement path.
[0084] As an example, the first motion data can be the motion data pre-set for the front and rear bending axes, or the motion data recorded during the movement of the front and rear bending axes, which is not limited in the embodiments of the present application. Similarly, the second motion data can be the motion data pre-set for the upper and lower bending axes, or the motion data recorded during the movement of the upper and lower bending axes.
[0085] S122: Generate a first motion trajectory point set according to the motion path and motion speed in the first motion data.
[0086] In a specific implementation, the first motion trajectory point set can be generated according to the motion path and motion speed in the first motion data according to the following formula (1).
[0087] v 1 =s 1 / t 1 (1)
[0088] Among them, v 1 Expressed as the movement speed of the front and rear bending axes, t 1 Expressed as the movement time of the front and rear bending axes, s 1 It is expressed as the front and rear bending axes at t 1 The corresponding position.
[0089] S123: Generate a second motion trajectory point set according to the motion path and motion speed in the second motion data.
[0090] In a specific implementation, the second motion trajectory point set can be generated according to the motion path and motion speed in the second motion data according to the following formula (2).
[0091] v 2 =s 2 / t 2 (2)
[0092] Among them, v 2 Expressed as the movement speed of the upper and lower bending axes, t 2 Expressed as the movement time of the upper and lower bending axes, s 2 It is expressed as the upper and lower bending axes at t 2 The corresponding position.
[0093] It should be understood that the above-mentioned step S122 and step S123 can be executed simultaneously or in a corresponding sequence, and the embodiment of the present application is not limited to this.
[0094] In the embodiment of the present application, by executing step S120, it is possible to plan the motion constraint range of the front and rear bending axes and the upper and lower bending axes based on the actual movement conditions of the front and rear bending axes and the upper and lower bending axes, which can effectively prevent the axes of the movable tool holder device from interfering with each other within the restricted stroke.
[0095] S130, planning a first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set, and planning a second motion constraint range of the upper and lower bending axes according to the second sampling coordinate point set and the second motion trajectory point set.
[0096] In one embodiment, planning the first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set may include the following steps:
[0097] S131, taking out one first motion point from the first motion trajectory point set each time in a specified order.
[0098] In a specific implementation, the specified order may be a time order or other order, and the embodiments of the present application do not limit this.
[0099] It should be understood that the first motion point refers to any motion point in the first motion trajectory point set.
[0100] S132. For each first motion point taken out, perform the following process to obtain the constrained X coordinates of all motion points in the first motion trajectory point set, wherein the first motion constraint range includes the constrained X coordinates of all motion points in the first motion trajectory point set:
[0101] S1321. Search for adjacent first target sampling coordinate points and second target sampling coordinate points from the first sampling coordinate point set.
[0102] In a specific implementation, the Y coordinate of each first motion point is located between the Y coordinate of the first target sampling coordinate point and the Y coordinate of the second target sampling coordinate point.
[0103] Exemplarily, taking the first sampling coordinate point set including N coordinate points, and each first motion point being point A as an example, then the process of searching for adjacent first target sampling coordinate points and second target sampling coordinate points from the first sampling coordinate point set may be: sequentially taking sampling coordinate points from the first sampling coordinate point set, taking two sampling coordinate points each time, such as point B and point C, taking the first sampling coordinate point and the second sampling coordinate point for the first time, taking the second sampling coordinate point and the third sampling coordinate point for the second time, and so on, and finally taking the N-1th sampling coordinate point to the Nth sampling coordinate point, until it is found that the Y coordinate of point A is between the Y coordinates of the two sampling coordinate points.
[0104] S1322: Plan a constrained X coordinate of each first motion point according to the first target sampling coordinate point, the second target sampling coordinate point, and the Y coordinate of each first motion point.
[0105] In a specific implementation, a first target straight line may be planned according to the first target sampling coordinate point and the second target sampling coordinate point, wherein the first target sampling coordinate point and the second target sampling coordinate point are both located on the first target straight line.
[0106] For example, the coordinates of the first target sampling point are (x 1 ,y 1 ), the coordinates of the second target sampling point are (x 2 ,y 2 ) as an example, the first target straight line y=kx+b can be planned according to the following formula (3).
[0107] (yy 2 ) / (yy 1 )=(xx 2 ) / (xx 1 ) (3)
[0108] In specific implementation, after the first target straight line is planned, the constrained X coordinate of each first moving point can be obtained according to the first target straight line and the Y coordinate of each first moving point. For example, the Y coordinate of each first moving point can be substituted into y=kx+b for calculation to obtain the corresponding X coordinate, which is the constrained X coordinate of each first moving point.
[0109] It should be understood that in the embodiment of the present application, the constrained X coordinate of each first motion point is represented by the minimum X coordinate corresponding to the current Y coordinate of each first motion point. During the movement of the front and rear bending axes, when the X coordinate is less than or equal to the constrained X coordinate, mutual interference will occur with other axes of the movable tool holder device (such as the upper and lower bending axes).
[0110] It can be understood that the first motion constraint range is the constraint range of the X coordinate when the front and rear bending axes move.
[0111] In the embodiment of the present application, by executing step S131 and step S132, the first motion constraint range of the front and rear bending axes can be planned, and the first motion transportation range is the restricted walking path of the front and rear bending axes.
[0112] In one implementation, generating the second motion trajectory point set according to the motion path and motion speed in the second motion data may include the following steps:
[0113] S133, taking out one second motion point from the second motion trajectory point set each time in a specified order.
[0114] In specific implementation, the execution process of step S133 is the same as or similar to the execution process of the above step S131, and will not be repeated here.
[0115] S134. For each second motion point taken out, perform the following process to obtain the constrained X coordinates of all motion points in the second motion trajectory point set, wherein the second motion constraint range includes the constrained X coordinates of all motion points in the second motion trajectory point set:
[0116] S1341. Search for adjacent third target sampling coordinate points and fourth target sampling coordinate points from the second sampling coordinate point set.
[0117] In a specific implementation, the Y coordinate of each second motion point is located between the Y coordinate of the third target sampling coordinate point and the Y coordinate of the fourth target sampling coordinate point.
[0118] The execution process of step S1341 is the same as or similar to the execution process of the above-mentioned step S1321, and will not be repeated here.
[0119] S1342: Plan a constrained X coordinate of each second motion point according to the third target sampling coordinate point, the fourth target sampling coordinate point, and the Y coordinate of each second motion point.
[0120] In a specific implementation, a second target straight line can be planned according to the third target sampling coordinate point and the fourth target sampling coordinate point, and the third target sampling coordinate point and the fourth target sampling coordinate point are both located on the second target straight line. The planning method of the second target straight line is the same or similar to the planning method of the first target straight line, and will not be repeated here.
[0121] In specific implementation, after the second target straight line is planned, the constrained X coordinate of each second moving point can be obtained according to the second target straight line and the Y coordinate of each second moving point. The constrained X coordinate of each second moving point is obtained in the same or similar manner as the constrained X coordinate of each first moving point, which will not be described in detail here.
[0122] It can be understood that the second motion constraint range is the constraint range of the X coordinate when the upper and lower bending axes move.
[0123] In the embodiment of the present application, by executing step S133 and step S134, the second motion constraint range of the upper and lower bending axes can be planned, and the second motion transportation range is the restricted walking path of the upper and lower bending axes.
[0124] It should be understood that the above-mentioned steps S131 and S132 and steps S133 and S134 can be executed simultaneously, or can be executed in a corresponding sequence, and the embodiments of the present application are not limited to this.
[0125] S140, controlling the front and rear bending axes to move within a first motion constraint range, and controlling the upper and lower bending axes to move within a second motion constraint range.
[0126] In the embodiment of the present application, by executing step S140, the front and rear bending axes and the upper and lower bending axes can only move within the constraint range, thereby preventing the axes of the movable tool holder device from interfering with each other within the restricted stroke, ensuring the mechanical safety of the axes of the movable tool holder device, and ensuring the safety of sheet metal processing.
[0127] In an applicable scenario provided in an embodiment of the present application, combined with Figure 1 and Figure 3 As shown, the method for planning a restricted walking path provided in the embodiment of the present application may also include the following steps:
[0128] S150, when the movement of the front and rear bending axes exceeds the first movement constraint range, the front and rear bending axes are controlled to stop moving.
[0129] For example, when it is determined that during the movement of the front and rear bending axes, the X axis thereof is less than or equal to the corresponding constraint X coordinate in the first motion constraint range, it indicates that the movement path of the front and rear bending axes may collide with other axes of the movable tool holder device. At this time, the front and rear bending axes can be controlled to stop moving to ensure the mechanical safety of each axis of the movable tool holder device. In this case, the front and rear bending axes can be debugged and then restarted.
[0130] Correspondingly, when it is determined that during the movement of the front and rear bending axes, its X-axis is greater than the corresponding constraint X-coordinate in the first motion constraint range, it means that the movement path of the front and rear bending axes will not collide with other axes of the movable tool holder device. At this time, the front and rear bending axes can be moved to the specified position.
[0131] S160. When the movement of the upper and lower bending axes exceeds the second movement constraint range, the movement of the upper and lower bending axes is controlled.
[0132] For example, when it is determined that during the movement of the upper and lower bending axes, the X axis thereof is less than or equal to the corresponding constraint X coordinate in the second motion constraint range, it indicates that the movement path of the upper and lower bending axes may collide with other axes of the movable tool holder device. At this time, the upper and lower bending axes can be controlled to stop moving to ensure the safety of the mechanical axes of the movable tool holder device. In this case, the upper and lower bending axes can be debugged and then restarted.
[0133] Correspondingly, when it is determined that during the movement of the upper and lower bending axes, the X-axis is greater than the corresponding constraint X-coordinate in the second motion constraint range, it means that the movement path of the upper and lower bending axes will not collide with other axes of the movable tool holder device. At this time, the upper and lower bending axes can be moved to the specified position.
[0134] In the embodiment of the present application, by executing step S150 and step S160, it is possible to automatically determine whether the movement paths of the axes of the movable tool holder device will collide, and when a collision is likely to occur, stop the movement of the corresponding axis, thereby further ensuring the mechanical safety of the axes of the movable tool holder device and further ensuring the safety of sheet metal processing.
[0135] From the above description, it can be seen that compared with the traditional method of simply adding positive and negative limits to each axis of the movable tool seat device, the method for planning a restricted walking path provided in the embodiment of the present application can plan the motion constraint range of each axis of the movable tool seat device based on the actual situation of the movable tool seat device, so that each axis of the movable tool seat device can only move within the corresponding motion constraint range, thereby effectively preventing the axes of the movable tool seat device from interfering with each other within the restricted stroke, ensuring the mechanical safety of each axis of the movable tool seat device, and ensuring the safety of sheet metal processing.
[0136] Figure 4 The structure block diagram of a planning device for limiting a walking path according to an embodiment of the present application is shown. The device can be applied to a movable tool holder device of a bending center, and the movable tool holder device includes a front and rear bending axis and an upper and lower bending axis. Figure 4 As shown, the device may include:
[0137] The planning unit 210 is used to perform position sampling according to the working conditions of the front and rear bending axes and the upper and lower bending axes to obtain a first sampling coordinate point set of the front and rear bending axes and a second sampling coordinate point set of the upper and lower bending axes; obtain a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes; plan a first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set, and plan a second motion constraint range of the upper and lower bending axes according to the second sampling coordinate point set and the second motion trajectory point set;
[0138] The control unit 220 is used to control the front and rear bending axes to move within a first motion constraint range, and to control the upper and lower bending axes to move within a second motion constraint range.
[0139] In one implementation, the planning unit 210 is specifically configured to:
[0140] Acquire first motion data of the front and rear bending axes and second motion data of the upper and lower bending axes, wherein the first motion data includes the motion path and motion speed of the front and rear bending axes, and the second motion data includes the motion path and motion speed of the upper and lower bending axes;
[0141] Generate a first motion trajectory point set according to the motion path and motion speed in the first motion data;
[0142] A second motion trajectory point set is generated according to the motion path and motion speed in the second motion data.
[0143] In one implementation, the planning unit 210 is specifically configured to:
[0144] Take out one first motion point from the first motion trajectory point set at a time in a specified order;
[0145] For each first motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the first motion trajectory point set, wherein the first motion constraint range includes the constrained X coordinates of all motion points in the first motion trajectory point set:
[0146] Find adjacent first target sampling coordinate points and second target sampling coordinate points from the first sampling coordinate point set, wherein the Y coordinate of each first motion point is between the Y coordinate of the first target sampling coordinate point and the Y coordinate of the second target sampling coordinate point;
[0147] According to the first target sampling coordinate point, the second target sampling coordinate point and the Y coordinate of each first motion point, the constrained X coordinate of each first motion point is planned.
[0148] In one implementation, the planning unit 210 is specifically configured to:
[0149] Planning a first target straight line according to the first target sampling coordinate point and the second target sampling coordinate point, wherein the first target sampling coordinate point and the second target sampling coordinate point are both located on the first target straight line;
[0150] According to the first target straight line and the Y coordinate of each first motion point, the constrained X coordinate of each first motion point is obtained.
[0151] In one implementation, the planning unit 210 is specifically configured to:
[0152] Taking out one second motion point from the second motion trajectory point set in time sequence each time;
[0153] For each second motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the second motion trajectory point set, wherein the second motion constraint range includes the constrained X coordinates of all motion points in the second motion trajectory point set:
[0154] Finding adjacent third target sampling coordinate points and fourth target sampling coordinate points from the second sampling coordinate point set, wherein the Y coordinate of each second motion point is between the Y coordinate of the third target sampling coordinate point and the Y coordinate of the fourth target sampling coordinate point;
[0155] According to the third target sampling coordinate point, the fourth target sampling coordinate point and the Y coordinate of each second motion point, the constrained X coordinate of each second motion point is planned.
[0156] In one implementation, the planning unit 210 is specifically configured to:
[0157] Planning a second target straight line according to the third target sampling coordinate point and the fourth target sampling coordinate point, wherein the third target sampling coordinate point and the fourth target sampling coordinate point are both located on the second target straight line;
[0158] The constrained X coordinate of each second moving point is obtained according to the second target straight line and the Y coordinate of each second moving point.
[0159] In one embodiment, the control unit 220 is further configured to:
[0160] When the movement of the front and rear bending axes exceeds the first motion constraint range, the front and rear bending axes are controlled to stop moving;
[0161] When the movement of the upper and lower bending axes exceeds the second motion constraint range, the movement of the upper and lower bending axes is controlled.
[0162] The functions of each unit in the device for planning a restricted walking path in the embodiment of the present application can be found in the corresponding description in the above method and will not be repeated here.
[0163] Figure 5 FIG. 2 shows a block diagram of a computer device according to an embodiment of the present application. Figure 5 As shown, the computer device includes: a memory 310 and a processor 320. The memory 310 stores instructions, and the instructions are loaded and executed by the processor 320 to implement the planning method of the restricted walking path in the above embodiment. The number of the memory 310 and the processor 320 can be one or more.
[0164] The computer device also includes:
[0165] The communication interface 330 is used to communicate with external devices and perform data exchange transmission.
[0166] If the memory 310, the processor 320 and the communication interface 330 are implemented independently, the memory 310, the processor 320 and the communication interface 330 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0167] Optionally, in a specific implementation, if the memory 310, the processor 320 and the communication interface 330 are integrated on a chip, the memory 310, the processor 320 and the communication interface 330 can communicate with each other through an internal interface.
[0168] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a computer, the method provided in the embodiment of the present application is implemented.
[0169] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in a memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0170] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0171] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0172] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct rambus RAM (DR RAM).
[0173] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0174] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0175] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0176] Any process or method description in the flow chart or otherwise described herein can be understood to represent a module, fragment or portion of a code including one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0177] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0178] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0179] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0180] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A planning method for limiting a walking path, applied to a movable tool holder device of a bending center, wherein the movable tool holder device comprises a front and rear bending axis and an upper and lower bending axis, It is characterized in that The method comprises: Perform position sampling according to the working conditions of the front and rear bending axes and the upper and lower bending axes to obtain a first sampling coordinate point set of the front and rear bending axes and a second sampling coordinate point set of the upper and lower bending axes; Acquire a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes; Planning a first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set, and planning a second motion constraint range of the upper and lower bending axes according to the second sampling coordinate point set and the second motion trajectory point set; The front and rear bending axes are controlled to move within the first motion constraint range, and the upper and lower bending axes are controlled to move within the second motion constraint range.
2. The method according to claim 1, It is characterized in that Acquiring a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes comprises: Acquire first motion data of the front and rear bending axes and second motion data of the upper and lower bending axes, wherein the first motion data includes the motion path and motion speed of the front and rear bending axes, and the second motion data includes the motion path and motion speed of the upper and lower bending axes; Generate the first motion trajectory point set according to the motion path and motion speed in the first motion data; The second motion trajectory point set is generated according to the motion path and motion speed in the second motion data.
3. The method according to claim 1, It is characterized in that Planning the first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set includes: Taking out one first motion point from the first motion trajectory point set at a time in a specified order; For each first motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the first motion trajectory point set, wherein the first motion constraint range includes the constrained X coordinates of all motion points in the first motion trajectory point set: Searching for adjacent first target sampling coordinate points and second target sampling coordinate points from the first sampling coordinate point set, wherein the Y coordinate of each first motion point is between the Y coordinate of the first target sampling coordinate point and the Y coordinate of the second target sampling coordinate point; According to the first target sampling coordinate point, the second target sampling coordinate point and the Y coordinate of each first motion point, a constrained X coordinate of each first motion point is planned.
4. The method according to claim 3, It is characterized in that Planning the constrained X coordinate of each first motion point according to the first target sampling coordinate point, the second target sampling coordinate point and the Y coordinate of each first motion point includes: Planning a first target straight line according to the first target sampling coordinate point and the second target sampling coordinate point, wherein the first target sampling coordinate point and the second target sampling coordinate point are both located on the first target straight line; The constrained X coordinate of each first motion point is obtained according to the first target straight line and the Y coordinate of each first motion point.
5. The method according to claim 1, It is characterized in that Generating the second motion trajectory point set according to the motion path and motion speed in the second motion data includes: Taking out one second motion point from the second motion trajectory point set in chronological order each time; For each second motion point taken out, the following process is performed to obtain the constrained X coordinates of all motion points in the second motion trajectory point set, wherein the second motion constraint range includes the constrained X coordinates of all motion points in the second motion trajectory point set: Searching for adjacent third target sampling coordinate points and fourth target sampling coordinate points from the second sampling coordinate point set, wherein the Y coordinate of each second motion point is between the Y coordinate of the third target sampling coordinate point and the Y coordinate of the fourth target sampling coordinate point; According to the third target sampling coordinate point, the fourth target sampling coordinate point and the Y coordinate of each second motion point, the constrained X coordinate of each second motion point is planned.
6. The method according to claim 5, It is characterized in that Planning the constrained X coordinate of each second motion point according to the third target sampling coordinate point, the fourth target sampling coordinate point and the Y coordinate of each second motion point includes: Planning a second target straight line according to the third target sampling coordinate point and the fourth target sampling coordinate point, wherein the third target sampling coordinate point and the fourth target sampling coordinate point are both located on the second target straight line; The constrained X coordinate of each second moving point is obtained according to the second target straight line and the Y coordinate of each second moving point.
7. The method according to any one of claims 1 to 6, It is characterized in that The method further comprises: When the movement of the front and rear bending axes exceeds the first movement constraint range, controlling the front and rear bending axes to stop moving; When the movement of the upper and lower bending axes exceeds the second movement constraint range, the movement of the upper and lower bending axes is controlled.
8. A planning device for limiting a walking path, applied to a movable tool holder device of a bending center, wherein the movable tool holder device comprises a front and rear bending axis and an upper and lower bending axis, It is characterized in that The device comprises: A planning unit, used for performing position sampling according to the working conditions of the front and rear bending axes and the upper and lower bending axes to obtain a first sampling coordinate point set of the front and rear bending axes and a second sampling coordinate point set of the upper and lower bending axes; obtaining a first motion trajectory point set of the front and rear bending axes and a second motion trajectory point set of the upper and lower bending axes; planning a first motion constraint range of the front and rear bending axes according to the first sampling coordinate point set and the first motion trajectory point set, and planning a second motion constraint range of the upper and lower bending axes according to the second sampling coordinate point set and the second motion trajectory point set; A control unit is used to control the front and rear bending axes to move within the first motion constraint range, and to control the upper and lower bending axes to move within the second motion constraint range.
9. A computer device, It is characterized in that include: A memory and a processor, wherein the memory stores instructions, and the instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on a computer, the method according to any one of claims 1 to 7 is implemented.
