A control system and control method for controlling the walking trajectory of a cutting machine

The cutting trajectory is optimized through the EtherCAT bus and the parallel particle swarm algorithm, which solves the problems of low manual adjustment efficiency of the cutting machine and the inefficiency of the existing optimization algorithm, achieving efficient and automated optimal trajectory cutting, and significantly reducing the solution time.

CN111966031BActive Publication Date: 2024-08-23DEQING ZHENGJIA TECHNOLOGY SERVICE CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202010673248.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-14
Publication Date
2024-08-23
Estimated Expiration
2040-07-14

AI Technical Summary

Technical Problem

When existing cutting machines perform operations such as bevel cutting and ring cutting, they need to manually adjust the cutting head or plate angle, resulting in low production efficiency. Moreover, the existing optimization algorithm is not efficient, and serial optimization results in long solution times.

Method used

Using EtherCAT bus technology combined with multi-axis motion control algorithm and parallel particle swarm algorithm, the execution motor is controlled through the EtherCAT bus, and C++ multi-thread programming technology is used to optimize the cutting trajectory sequence in parallel to achieve optimal trajectory cutting.

Benefits of technology

It improves the automation level and cutting accuracy of the cutting machine, shortens the running time, increases the solving efficiency several times in the same time, and reduces the solving time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111966031B
    Figure CN111966031B
Patent Text Reader

Abstract

The present invention relates to the field of automation equipment, and specifically discloses a control system and a control method for controlling the walking trajectory of a cutting machine with high cutting accuracy, high automation, automatic cutting according to a predetermined trajectory, and enabling the cutting machine to cut materials along an optimal trajectory. The control system comprises a power supply system, a protection device, a control system, an EtherCAT bus, a plurality of execution motors and a cutting machine connected in sequence. The control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along the predetermined trajectory. First, the control system obtains the cutting trajectory of a CAD file, and then uses a parallel particle swarm algorithm to sequence optimize the cutting trajectory with the shortest path as the goal. After obtaining the cutting machine sequence, the control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along the predetermined trajectory and enables the cutting machine to cut materials along the optimal trajectory, thereby achieving the shortest running time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a control system for controlling the walking track of a cutting machine and a control method thereof, belonging to the field of automation equipment. Background Art

[0002] In the process of mechanical processing, manual cutting and semi-automatic cutting are still common. However, no matter which of the above cutting methods is used, when beveling, circular cutting and other cutting methods are required, the cutting head or the plate must be adjusted in angle. The adjustment method is usually through manual adjustment, which is very troublesome to use. The cutting trajectory sequence is the most important factor affecting the production efficiency of the cutting machine. In order to improve the production capacity of the cutting machine, the optimal trajectory sequence must be obtained to minimize the total distance of the walking trajectory. Usually, there are two methods to solve it. One is to use the exhaustive method, and the other is to use intelligent optimization algorithms, such as genetic algorithms, particle swarm algorithms and ant colony algorithms to solve the optimal sequence. However, these methods are all serial optimizations, and generally have the problems of low efficiency and slow solution time. Summary of the invention

[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a control system and a control method for controlling the travel trajectory of a cutting machine which has high cutting accuracy, high degree of automation, automatic cutting according to a predetermined trajectory, and enables the cutting machine to cut materials along the optimal trajectory.

[0004] In order to achieve the above-mentioned purpose, the present invention is implemented through the following technical scheme: a control system for controlling the walking trajectory of a cutting machine, comprising a power supply system, a protection device, a control system, a plurality of switching power supplies, an EtherCAT bus, a plurality of actuator motors and a cutting machine connected in sequence, wherein the control system controls each actuator motor through the EtherCAT bus, so that the cutting machine cuts along a predetermined trajectory.

[0005] A further improvement is that the power supply system includes a power supply, a conversion switch, and a transformer connected in sequence.

[0006] A further improvement is that the protection device is a plurality of air switches connected in parallel.

[0007] A further improvement is that the control system adopts the international standard EtherCAT bus technology, equipped with a multi-axis motion control algorithm and a data acquisition IO control board.

[0008] A control method for a control system for controlling the walking trajectory of a cutting machine is also provided: first, the control system obtains a conventional cutting trajectory pre-stored in the system or a cutting trajectory of an imported CAD file. If a conventional cutting trajectory is obtained, the control system controls each execution motor through the EtherCAT bus to make the cutting machine cut along a predetermined trajectory. If a cutting trajectory of an input CAD file is obtained, the cutting trajectory is optimized using a parallel particle swarm algorithm with the shortest path as the goal. After obtaining the cutting machine sequence, the control system controls each execution motor through the EtherCAT bus to make the cutting machine cut along a predetermined trajectory, so that the cutting machine cuts materials with the optimal trajectory, thereby achieving the shortest running time. .

[0009] Further improved, the control method for obtaining the CAD file includes the following steps:

[0010] Step 1: Get the trajectory of the CAD file. Assume there are n trajectories, use τ1, τ2, .... τn to represent the trajectory point set of each trajectory, s1, s2, .... sn to represent the starting point of each trajectory, e1, e2, .... e n Indicates the end point of each trajectory.

[0011] Step 2: Integrate the trajectory points to obtain the length of n trajectories. The calculation formula is as follows:

[0012] L i =∫τ i (i=1,2....n)

[0013] Where, L i represents the length of the i-th trajectory, τ i represents the set of trajectory points of the i-th trajectory;

[0014] Step 3: Calculate the distance between the end point of each trajectory and the starting point of the other (n-1) trajectories. The calculation formula is as follows:

[0015] E i,j =e j -s j (i=1,2,....n; j=1,2,....n)

[0016] In the formula, E i,j represents the distance from the end point of the i-th track to the starting point of the j-th track, e i represents the end point of the ith trajectory, s j represents the starting point of the jth trajectory;

[0017] Step 4: Use C++ multithreaded programming technology to start k threads and initialize a particle swarm particle V in each thread k =(τ1,τ2,....τn ), the particle represents the cutting trajectory in the order of 1 to n

[0018] Play sports;

[0019] Step 5: Use Sum Lk Represents the total trajectory distance of particle k, recorded as the optimal path. The calculation formula is as follows:

[0020] Sum Lk =L k +∫E a,b

[0021] Where ∫E a,b Indicates the cumulative sum of the lengths from the end point of each track to the starting point of the next track;

[0022] Step 6: Particle V k elements in the sequence, randomly obtain two numbers r1 and r2 from 1 to n, and replace τ r1 and τ r2 The position of the new particle V is exchanged k ;

[0023] Step 7: Use the formula in step 4 to calculate the total distance of the new particle's trajectory;

[0024] Step 8: Compare the total distance of the trajectory of the new particle with the total distance of the optimal path. If the total distance of the new particle is less than the total distance of the optimal path, the path generated by the new particle is recorded as the optimal path;

[0025] Step 9: When the random number reaches the preset value, go to step 10, otherwise go to step 6;

[0026] Step 10: Compare the optimal paths obtained by each thread to obtain the trajectory sequence with the shortest total distance, recorded as V best ;

[0027] Step 11: V best The trajectory sequence in the program is converted into motor control quantity, which drives the cutting machine to move through the EtherCAT bus to complete a cutting.

[0028] The beneficial effects of the present invention are as follows: the present invention provides a control system for controlling the walking trajectory of a cutting machine and a control method thereof. The control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along a predetermined trajectory, and the cutting machine cuts materials along the optimal trajectory, thereby achieving the shortest running time. Under the same running time, compared with the serial algorithm, the number of parallel particles of the parallel particle swarm algorithm, that is, the multiple of the solution efficiency, is improved. This method not only ensures the solution quality of the trajectory sequence, but also greatly reduces the solution time, and should be widely promoted and used in the market. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0030] Figure 1 is a schematic diagram of a control circuit of the present invention;

[0031] Figure 2 This is a control flow chart of the present invention.

[0032] In the figure: power supply-1, transfer switch-2, transformer-3, air switch-4, control system-5, switching power supply-6, EtherCAT bus-7, execution motor-8. DETAILED DESCRIPTION

[0033] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0034] See also Figure 1 , Figure 2 A control system for controlling the walking trajectory of a cutting machine includes a power supply system, a protection device, a control system, a plurality of switching power supplies, an EtherCAT bus, a plurality of execution motors and a cutting machine connected in sequence. The control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along a predetermined trajectory. The power supply system includes a power supply, a conversion switch, and a transformer connected in sequence. The protection device is a plurality of air switches connected in parallel. The control system is a PLC control system.

[0035] A control method for a control system for controlling the walking trajectory of a cutting machine is also provided: first, the control system obtains a conventional cutting trajectory pre-stored in the system or a cutting trajectory of an imported CAD file. If a conventional cutting trajectory is obtained, the control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along a predetermined trajectory. If a cutting trajectory of an input CAD file is obtained, the shortest path is taken as the goal, and a parallel particle swarm algorithm is used to perform sequence optimization on the cutting trajectory. After obtaining the cutting machine sequence, the control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along a predetermined trajectory, so that the cutting machine cuts materials with the optimal trajectory, thereby achieving the shortest running time. The control method for obtaining a CAD file includes the following steps:

[0036] Step 1: Get the trajectory of the CAD file. Assume there are n trajectories, use τ1, τ2, .... τ n Represents the set of trajectory points for each trajectory, s1, s2, ....sn Indicates the starting point of each trajectory, e1, e2, ....e n Indicates the end point of each trajectory.

[0037] Step 2: Integrate the trajectory points to obtain the length of n trajectories. The calculation formula is as follows:

[0038] L i =∫τ i (i=1,2....n)

[0039] Where, L i represents the length of the i-th trajectory, τ i represents the set of trajectory points of the i-th trajectory;

[0040] Step 3: Calculate the distance between the end point of each trajectory and the starting point of the other (n-1) trajectories. The calculation formula is as follows:

[0041] E i,j =e j -s j (i=1,2,....n; j=1,2,....n)

[0042] In the formula, E i,j represents the distance from the end point of the i-th track to the starting point of the j-th track, e i represents the end point of the ith trajectory, s j represents the starting point of the jth trajectory;

[0043] Step 4: Use C++ multithreaded programming technology to start k threads and initialize a particle swarm particle V in each thread k =(τ1,τ2,....τ n ), the particle represents the cutting trajectory in the order of 1 to n

[0044] Play sports;

[0045] Step 5: Use Sum Lk Represents the total trajectory distance of particle k, recorded as the optimal path. The calculation formula is as follows:

[0046] Sum Lk =L k +∫E a,b

[0047] Where ∫E a,b Indicates the cumulative sum of the lengths from the end point of each track to the starting point of the next track;

[0048] Step 6: Particle V k elements in the sequence, randomly obtain two numbers r1 and r2 from 1 to n, and replace τ r1 and τ r2The position of the new particle V is exchanged k ;

[0049] Step 7: Use the formula in step 4 to calculate the total distance of the new particle's trajectory;

[0050] Step 8: Compare the total distance of the trajectory of the new particle with the total distance of the optimal path. If the total distance of the new particle is less than the total distance of the optimal path, the path generated by the new particle is recorded as the optimal path;

[0051] Step 9: When the random number reaches the preset value, go to step 10, otherwise go to step 6;

[0052] Step 10: Compare the optimal paths obtained by each thread to obtain the trajectory sequence with the shortest total distance, recorded as V best ;

[0053] Step 11: V best The trajectory sequence in the program is converted into motor control quantity, which drives the cutting machine to move through the EtherCAT bus to complete a cutting.

[0054] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.

[0055] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A control system for controlling the walking trajectory of a cutting machine, characterized in that: It includes a power supply system, a protection device, a control system, a plurality of switch power supplies, an EtherCAT bus, a plurality of execution motors and a cutting machine connected in sequence, wherein the control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along a predetermined trajectory; The power supply system includes a power supply, a conversion switch, and a transformer connected in sequence; The protection device is a plurality of air switches connected in parallel; The control system is an IO control board; The control method includes the following steps: first, the control system obtains the conventional cutting trajectory pre-stored in the system or the cutting trajectory of the imported CAD file. If the conventional cutting trajectory is obtained, the control system controls each execution motor through the EtherCAT bus to make the cutting machine cut along the predetermined trajectory. If the cutting trajectory of the input CAD file is obtained, the shortest path is taken as the goal, and the parallel particle swarm algorithm is used to optimize the cutting trajectory sequence. After obtaining the cutting machine sequence, the control system controls each execution motor through the EtherCAT bus, so that the cutting machine cuts along the predetermined trajectory, so that the cutting machine cuts the material with the optimal trajectory, thereby achieving the shortest running time. The control method for obtaining the CAD file includes the following steps: Step 1: Get the trajectory of the CAD file. Assume there are n trajectories and use τ1, τ2, .... τ n Represents the set of trajectory points for each trajectory, s1, s2, ....s n Indicates the starting point of each trajectory, e1, e2, ....e n Indicates the end point of each trajectory; Step 2: Integrate the trajectory points to obtain the length of n trajectories. The calculation formula is as follows: L i =∫τ i (i=1,2....n) Where, L i represents the length of the i-th trajectory, τ i represents the set of trajectory points of the i-th trajectory; Step 3: Calculate the distance between the end point of each trajectory and the starting point of the other (n-1) trajectories. The calculation formula is as follows: E i,j =e j -s j (i=1,2,....n;j=1,2,....n) In the formula, E i,j represents the distance from the end point of the i-th track to the starting point of the j-th track, e i represents the end point of the ith trajectory, s j represents the starting point of the jth trajectory; Step 4: Use C++ multithreaded programming technology to start k threads and initialize a particle swarm particle V in each thread k =(τ1,τ2,....τ n ), the particle represents the movement of the cutting trajectory in the order of 1 to n; Step 5: Use Sum Lk Represents the total trajectory distance of particle k, recorded as the optimal path, and the calculation formula is as follows: Sum Lk =L k +∫E a,b Where ∫E a,b Indicates the cumulative sum of the lengths from the end point of each track to the starting point of the next track; Step 6: Particle V k elements in the sequence, randomly obtain two numbers r1 and r2 from 1 to n, and replace τ r1 and τ r2 The position of the new particle V is exchanged k ; Step 7: Use the formula in step 4 to calculate the total distance of the new particle's trajectory; Step 8: Compare the total distance of the trajectory of the new particle with the total distance of the optimal path. If the total distance of the new particle is less than the total distance of the optimal path, the path generated by the new particle is recorded as the optimal path; Step 9: When the random number reaches the preset value, go to step 10, otherwise go to step 6; Step 10: Compare the optimal paths obtained by each thread to obtain the trajectory sequence with the shortest total distance, recorded as Vbest; Step 11: Convert the trajectory sequence in Vbest into motor control quantity, drive the cutting machine to move through the EtherCAT bus, and complete a cutting.

Citation Information

Patent Citations

  • Method for optimizing track of engraving machine

    CN105868858A

  • Multi-distribution-center logistics transportation scheduling method and system

    CN106203739A

  • Cluster intelligent control system

    CN107422637A

  • Target interception method based on particle swarm optimization and regional reachable path minimization

    CN110110919A

  • Control system for controlling walking track of cutting machine

    CN212208029U