A crane motion control method, device, equipment and readable storage medium
By adopting the S-curve speed control principle and sub-path merging technology in crane motion control, the problems of poor anti-sway effect and low operating efficiency are solved, and stable and efficient crane motion is achieved.
Patent Information
- Application Number
- CN202410961890.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-18
AI Technical Summary
Existing crane motion control technology has problems with poor anti-sway effect and low operating efficiency. This is mainly due to the difficulty in adjusting the speed control parameters according to the actual situation, resulting in unstable swing amplitude, and unnecessary deceleration processes in path planning, which affects the overall operating efficiency. .
Using a method based on the S-curve speed control principle, the anti-sway parameters are calculated and adjusted based on the positions of the trolley and the trolley, the end points of the sub-paths and the swing angles to achieve motion control of the trolley and the trolley, and sub-path merging is performed when necessary. , recalculate anti-sway parameters to optimize motion.
It achieves stable anti-sway positioning, suppresses the swing angle, simplifies the process, improves the operating efficiency of the crane, avoids unnecessary deceleration processes, and significantly improves the overall operating efficiency.
Smart Images

Figure CN118495359B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of control technology, and in particular to a crane motion control method, device, equipment and readable storage medium. Background Art
[0002] During the movement of the crane, in order to avoid the protection area, the driving path is generally divided into multiple sub-paths, and the operation of each sub-path should have an anti-sway function. Therefore, anti-sway and path planning are essential key technologies for the stable and efficient operation of the crane.
[0003] Currently, there are many anti-sway and path planning methods, but there are the following problems: 1) Due to factors such as changes in inverter characteristics, inconsistent friction between the driving track and the wheel at different positions, and changes in mechanical characteristics, the speed control parameters are difficult to adjust according to the actual situation, resulting in the anti-sway effect being sometimes good and sometimes bad. Sometimes, the more the control is done, the greater the swing amplitude will be, affecting the stability of the automatic operation of the crane; 2) In path planning, due to the segmented driving, the crane's trolley and car must be in place before entering the next sub-path. Although the vehicle passes the path endpoint without stopping as a whole, there are many unnecessary deceleration processes, resulting in low overall operating efficiency.
[0004] Therefore, the current crane motion control has technical problems of poor anti-sway effect and low operating efficiency. Summary of the invention
[0005] In view of this, an object of the present invention is to provide a crane motion control method, device, equipment and readable storage medium, which solve the technical problems of poor anti-sway effect and low operating efficiency in crane motion control in the prior art.
[0006] In order to solve the above technical problems, the present invention provides a crane motion control method, comprising:
[0007] When receiving an operation task, the crane's travel path is divided into multiple sub-paths according to the trolley position, truck position, target position and protection area;
[0008] Under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the trolley and the truck are calculated according to the position of the trolley, the position of the truck and the end point of the current sub-path;
[0009] The movement of the trolley and the cart is controlled according to the anti-sway parameters of the trolley and the cart, and during the movement, whether to merge the sub-paths is determined according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path, and the condition of the cart reaching the end point of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the trolley and / or the cart is adjusted according to the recalculated anti-sway parameters.
[0010] Optionally, during the movement process, whether to merge the sub-paths is determined according to the conditions of each sub-path, the condition of the small vehicle reaching the end point of the current sub-path, and the condition of the large vehicle reaching the end point of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the small vehicle and / or the large vehicle is adjusted according to the recalculated anti-sway parameters, including:
[0011] When the small car reaches the end point of the current sub-path, and the large car has not reached the end point of the current sub-path, a first merging distance is calculated according to the current position of the large car and the end point of the next sub-path, a first anti-sway parameter is calculated according to the first merging distance, the large car moves according to the first anti-sway parameter, and the small car maintains the current action;
[0012] When both the small vehicle and the large vehicle reach the end point of the current sub-path, it is determined whether the next sub-path is the end sub-path;
[0013] If the next subpath is the end subpath, the distance of the trolley is calculated according to the current position of the trolley and the end point of the next subpath, and the second anti-sway parameter is calculated according to the distance of the trolley. The trolley moves according to the second anti-sway parameter, and the large vehicle maintains the current action.
[0014] If the next sub-path is not the end sub-path, the second merge distance is calculated based on the current position of the large vehicle and the end point of the next sub-path, and the third anti-sway parameter is calculated based on the second merge distance. The large vehicle moves according to the third anti-sway parameter, and the small vehicle maintains the current action.
[0015] Optionally, under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the car are calculated according to the position of the car and the end point of the current sub-path, including:
[0016] Obtaining the travel distance according to the position of the vehicle and the end point position of the current sub-path;
[0017] The swing angle is determined by an industrial camera and an infrared light source; the industrial camera is mounted on the trolley, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is mounted on the hook housing;
[0018] The length of the steel rope is obtained by an encoder, which is installed on the reducer shaft of the main reel;
[0019] Based on the S-curve speed control principle, the anti-sway parameters of the trolley that meet the anti-sway conditions are determined according to the swing angle, the length of the steel rope and the driving distance.
[0020] Optionally, based on the S-curve speed control principle, the anti-sway parameters of the trolley that meet the anti-sway conditions are determined according to the swing angle, the length of the steel rope and the travel distance, including:
[0021] Based on the S-curve speed control principle, the change law of acceleration and speed in the acceleration stage and the change law of acceleration in the deceleration stage are obtained according to the swing angle and the length of the steel rope;
[0022] The maximum speed, maximum acceleration, minimum acceleration, jerk, deceleration distance and acceleration distance of the vehicle are determined based on the variation law of acceleration and speed in the acceleration phase, the variation law of acceleration in the deceleration phase and the travel distance.
[0023] Optionally, the swing angle can be determined by an industrial camera and an infrared light source, including:
[0024] Obtaining the horizontal viewing angle, vertical viewing angle, picture width and picture length of the industrial camera;
[0025] Obtain the horizontal and vertical coordinate differences between the center point of the light source image of the infrared light source in the industrial camera and the center point of the industrial camera screen;
[0026] The swing angle is calculated according to the horizontal and vertical coordinate differences, the horizontal viewing angle, the vertical viewing angle, the picture width and the picture length of the industrial camera.
[0027] Optionally, during exercise, you may also:
[0028] The swing angle is determined in real time by an industrial camera and an infrared light source; the industrial camera is installed on the trolley of the crane, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is installed on the hook housing;
[0029] If the swing angle exceeds the preset angle range, an angle correction is performed.
[0030] Optionally, during exercise, you may also:
[0031] When the target vehicle is in the deceleration stage, determining whether the target vehicle is in a stuck state; the target vehicle is a small car or a large car;
[0032] If yes, the speed is adjusted to a preset speed, which is a speed sufficient to drive the target vehicle in a stuck state; when the target vehicle is driven successfully, the original driving speed is restored to normal movement;
[0033] If not, the target vehicle moves normally.
[0034] The present invention also provides a crane motion control device, comprising:
[0035] A path division module is used to divide the crane's travel path into multiple sub-paths according to the trolley position, the truck position, the target position and the protection area when receiving an operation task;
[0036] The anti-sway parameter calculation module is used to calculate the anti-sway parameters of the trolley and the truck respectively according to the position of the trolley, the position of the truck and the end point of the current sub-path under the anti-sway condition based on the S-curve speed control principle;
[0037] The motion control module is used to control the movement of the trolley and the cart according to the anti-sway parameters of the trolley and the cart, and during the movement, determine whether to merge the sub-paths according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path, and the condition of the cart reaching the end point of the current sub-path. If merged, recalculate the anti-sway parameters according to the merged path, and adjust the movement of the trolley and / or the cart according to the recalculated anti-sway parameters.
[0038] The present invention also provides a crane motion control device, comprising:
[0039] Memory for storing computer programs;
[0040] A processor is used to implement the steps of the above-mentioned crane motion control method when executing the computer program.
[0041] The present invention also provides a readable storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the steps of the above-mentioned crane motion control method are implemented.
[0042] It can be seen that the present invention divides the travel path of the crane into multiple sub-paths according to the trolley position, the truck position, the target position and the protection area when receiving the operation task; under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the trolley and the truck are calculated according to the trolley position, the truck position and the end point of the current sub-path; the trolley and the truck are controlled to move according to the anti-sway parameters of the trolley and the truck, and during the movement, it is determined whether to merge the sub-paths according to the conditions of each sub-path, the trolley reaching the end point of the current sub-path and the truck reaching the end point of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the trolley or / and the truck is adjusted according to the recalculated anti-sway parameters. The present invention realizes stable anti-sway positioning based on the S-curve speed control principle, suppresses the swing angle well, and the implementation process is simple, fast and the anti-sway effect is stable; under the premise of ensuring safety, by merging the sub-paths, unnecessary deceleration processes between multiple sub-paths are avoided, and the path endpoints can be quickly passed, which greatly improves the overall operation efficiency of the crane.
[0043] In addition, the present invention also provides a crane motion control device, equipment and readable storage medium, which also have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0045] Figure 1 A flowchart of a crane motion control method provided by an embodiment of the present invention;
[0046] Figure 2 An example diagram of a path planning provided by an embodiment of the present invention;
[0047] Figure 3 A schematic diagram of a crane structure provided by an embodiment of the present invention;
[0048] Figure 4 An example diagram of S-curve speed control provided by an embodiment of the present invention;
[0049] Figure 5 A schematic diagram of a motion situation provided by an embodiment of the present invention;
[0050] Figure 6 A schematic diagram of path merging provided by an embodiment of the present invention;
[0051] Figure 7 An example flow chart of a fast path control algorithm provided by an embodiment of the present invention;
[0052] Figure 8 (a) is a schematic diagram of the paths of other path control algorithms;
[0053] FIG8 (b) is a schematic diagram of a path of a path control algorithm provided by an embodiment of the present invention;
[0054] Fig. 9 A structural schematic diagram of a crane motion control device provided by an embodiment of the present invention;
[0055] Fig.10 A structural schematic diagram of a crane motion control device provided by an embodiment of the present invention;
[0056] Figure 3 In the figure, the reference numerals are described as follows:
[0057] 301-rope drum, 302-trolley, 303-trolley track, 304-cart, 305-cart track, 306-industrial camera, 307-encoder, 308-infrared light source. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Anti-sway means controlling the sway angle of the crane and the rope within an acceptable range by controlling the speed of the crane's trolley and carriage while ensuring precise positioning control. The existing anti-sway technical solutions mainly include PID control, dynamic differential equations, and sway angle offset. The following is a specific analysis of this anti-sway method:
[0060] (1) PID control: Similar to the general PID control method, the PID serial control is used to adjust the proportional, integral, and differential parameters to control the speed of the crane trolley. This method has the following defects: The PID control method has position overshoot, which requires time for position compensation, affects angle control, and also reduces the efficiency of unmanned driving. In addition, the PID parameters are difficult to adjust, and it is even more difficult to adapt to changes in the characteristics of tracks, wheels, inverters, machinery, etc. Its disadvantages are that the parameters are difficult to adjust, poor adaptability, and low efficiency.
[0061] (2) Dynamic differential equation: The dynamic model of the crane motion process is expressed as a differential equation, and the speed setting of the unmanned vehicle is calculated based on the dynamic differential equation. This method has the following defects: The speed control based on the dynamic differential equation has a good effect on eliminating the swing angle, but because the crane dynamic differential equation is a multivariable second-order differential equation, it is impossible to find a general solution, so the deceleration distance cannot be accurately calculated, and position control and angle suppression cannot be achieved at the same time in many cases; in addition, since this method is very sensitive to speed changes, and in the actual environment, due to changes or inconsistencies in the characteristics of the track, wheels, inverter, machinery, etc., under the same inverter speed setting law, the actual walking distance will be different. In order to ensure that the position control is in place, the speed must be changed, which ultimately affects the anti-sway effect. The disadvantage of this method is that it is difficult to achieve position control and angle suppression at the same time, and the anti-sway effect is unstable.
[0062] (3) Swing angle compensation: While controlling the position, according to the law of the simple pendulum motion, the swing angle of the steel rope is detected in real time, and pulse increments are applied to the speed to offset the swing, thereby achieving the purpose of suppressing the swing angle. This method has the following defects: The main problem of swing angle compensation is that due to the changes or inconsistencies in the characteristics of the track, wheels, inverters, machinery, etc., there will be a certain lag when the speed pulse is given to the trolley or car, and the lag amplitude is different at different times and different positions, which results in the anti-sway effect sometimes being very good, sometimes almost ineffective, and even worse the more control. The disadvantage of this method is instability.
[0063] In summary, the existing anti-sway technology has the following problems: due to factors such as changes in inverter characteristics, inconsistent friction between the track and the wheel at different positions, and changes in mechanical characteristics, the speed control parameters are difficult to adjust according to actual conditions, resulting in the anti-sway effect being sometimes good and sometimes bad. Sometimes, the more the control is done, the greater the swing amplitude is, affecting the stability of the automatic operation of the unmanned vehicle.
[0064] Path control plans a driving path from the set starting position to the end position for one or more protected areas in the driving area where the hoist is not allowed to pass. The path consists of a series of sub-paths, so that the unmanned vehicle does not pass over any protected area when moving along the path, and the operation of each sub-path has an anti-sway function. Existing path planning methods include genetic algorithms, simulated annealing, artificial potential fields, ant colony algorithms, Field D (a path planning algorithm) and other algorithms. Path control is generally based on the planned sub-paths. In order to ensure safety, the next sub-path will not start until both the large and small vehicles reach the end range of a sub-path. For example, if the large vehicle is in place but the small vehicle is not, the large vehicle will stop and wait for the small vehicle to arrive. On the contrary, if the small vehicle is in place but the large vehicle is not, the small vehicle will stop and the large vehicle will continue to run. Regardless of whether it is a large vehicle or a small vehicle, when executing the current sub-path, there is a process of acceleration, uniform speed, and deceleration from the starting point of the sub-path to the end point of the sub-path. In many cases, the trolley has already avoided the protection area, but under the existing path control rules, the crane still has to complete the deceleration process of the current sub-path before entering the next sub-path to start accelerating. There is an unnecessary deceleration process, which leads to low overall operation efficiency of the unmanned vehicle. Therefore, the existing path planning method has many unnecessary deceleration processes, resulting in low overall operation efficiency.
[0065] In order to solve the above problems, this application provides a crane motion control method. Figure 1 , Figure 1 A flowchart of a crane motion control method provided by an embodiment of the present invention. The method may include:
[0066] S101: When receiving an operation task, the travel path of the crane is divided into multiple sub-paths according to the trolley position, the truck position, the target position and the protection area.
[0067] The executor of this embodiment is a controller. For example, the controller can be the PLC (programmable logic controller) of the crane; or it can also be a dedicated controller. In order to save costs, the PLC of the crane can be used to implement anti-sway and motion control, and it is based on PLC implementation, has good openness and versatility, and is easy to debug. When an operation task is received, the trolley position, the truck position, and the target position protection area are obtained, and the driving path of the crane is divided into multiple sub-paths according to the trolley position, the truck position, and the target position protection area. Among them, the trolley position and the truck position together constitute the crane position. In this embodiment, the position of the trolley and the truck can be obtained by using the truck and trolley position detection device. For example, the position detection device can be any one or a combination of two of a laser rangefinder, a coding cable, a coding ruler, a microwave radio frequency ranging system, etc. In this embodiment, the PLC of the crane receives the task issued by the upper system. Due to the existence of the protected area, the task is planned into several sub-paths from the starting point to the end point, and the protection area is also obtained from the upper system. Such as Figure 2 As shown, Figure 2 An example diagram of a path division result provided for an embodiment of the present invention. A coordinate system is established based on the position of the crane, the large vehicle moves along the X-axis, and the small vehicle moves along the Y-axis. A is the starting point, B is the end point, and the travel path planned by the crane is sub-path 1 (point A to point P1), sub-path 2 (point P1 to point P2), and sub-path 3 (point P2 to point B). It can be understood that this path division method has less impact on other areas than the two-segment method of the triangle; compared with the three-segment method of the rectangle, the small vehicle and the large vehicle can move at the same time at a faster speed. Therefore, in general, the path division is performed in the above manner. Of course, during the movement of the crane, there may be multiple protection areas, and path planning can be performed in the above manner.
[0068] S102: Under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the trolley and the truck are calculated according to the position of the trolley, the position of the truck and the end point of the current sub-path.
[0069] In this embodiment, under the anti-sway condition, the anti-sway parameters of the trolley are calculated based on the S-curve speed control principle, according to the position of the trolley and the end point of the current sub-path; the anti-sway parameters of the trolley are calculated based on the S-curve speed control principle, according to the position of the trolley and the end point of the current sub-path. The S-curve speed control can be implemented by programming in the controller, such as in the PLC of the crane, it can be implemented by programming in the SCL (a programming language in the programmable controller, used to write programs) language. Under the anti-sway condition, the anti-sway parameters of the trolley and the trolley are calculated based on the S-curve speed control principle. The anti-sway parameters may include parameters such as the current travel distance to be executed, the maximum speed, the acceleration, the deceleration distance, etc. The S-curve speed control is adopted, that is, the acceleration is not constant during acceleration and deceleration, but the acceleration increases and decreases according to a certain acceleration. Therefore, the S-curve anti-sway control can well suppress the swing angle, and the implementation process is simple and fast, and the effect is stable.
[0070] Furthermore, in order to improve the anti-sway effect and increase the anti-sway stability, under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the car are calculated according to the car position and the end point of the current sub-path, which may specifically include:
[0071] Step 21: Obtain the travel distance based on the position of the car and the end point of the current sub-path;
[0072] Step 22: Determine the swing angle by means of an industrial camera and an infrared light source; the industrial camera is mounted on the trolley, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is mounted on the hook housing;
[0073] Step 23: Obtain the length of the steel rope through an encoder, which is installed on the reducer shaft of the main reel;
[0074] Step 24: Based on the S-curve speed control principle, determine the anti-sway parameters of the trolley that meet the anti-sway conditions according to the swing angle, steel rope length and driving distance.
[0075] This embodiment takes a small car as an example to illustrate how to obtain the anti-sway parameters of the small car. The calculation of the anti-sway parameters of the large car is the same as that of the small car, which will not be repeated here. To better understand steps 21 to 24, you can refer to Figure 3 .Depend on Figure 3 It can be seen that the specific installation positions of the industrial camera 306, the encoder 307, and the infrared light source 308 are installed. The infrared light source 308 is installed on the hook shell, and the industrial camera 306 is installed on the crane trolley 302. The camera lens is equipped with an infrared bandpass filter to detect the relative position of the infrared light source and further convert it into the swing angle of the steel rope. Figure 3The middle rope drum 301 is equipped with an encoder 307 to detect the hook height, which can be further converted into the rope length. Based on the S-curve speed control principle, the anti-sway parameters of the trolley under the anti-sway conditions are determined according to the swing angle, rope length and travel distance. This embodiment can monitor the swing angle in real time by installing an industrial camera and an infrared light source, which is more suitable for practical applications.
[0076] Furthermore, in order to better improve the anti-sway effect and increase the stability of anti-sway during movement, the anti-sway parameters of the trolley that meet the anti-sway conditions are determined based on the S-curve speed control principle according to the swing angle, steel rope length and driving distance, which may specifically include:
[0077] Step 241: Based on the S-curve speed control principle, the change law of acceleration and speed in the acceleration phase and the change law of acceleration in the deceleration phase are obtained according to the swing angle and the length of the steel rope.
[0078] In order to ensure that the sway angle of the steel rope is suppressed within an acceptable range during the movement of the crane, the driving speed of the trolley and the car is determined based on this condition. However, in order to achieve a better anti-sway effect, speed control is performed based on the S-curve speed control principle to make the anti-sway more stable. Specifically, based on the S-curve speed control principle, according to the sway angle and the steel rope condition, the following change rules can be obtained:
[0079] During the acceleration phase, the variation of acceleration and velocity is as follows:
[0080] ;
[0081] ;
[0082] During the deceleration phase, the change law of acceleration is:
[0083] ;
[0084] Where a is the acceleration; j1 is the acceleration during the acceleration phase; v is the velocity; j max is the absolute value of the maximum acceleration, j max Determined according to the swing angle and maximum speed; j2 is the acceleration in the deceleration stage, according to the absolute value of the maximum acceleration j max and the swing period T sw Determine, that is, j=j max / T sw ; The swing period T sw Determined by the length of the steel rope.
[0085] Step 242: Determine the maximum speed, maximum acceleration, minimum acceleration, jerk, deceleration distance and acceleration distance of the vehicle based on the change pattern of acceleration and speed in the acceleration phase, the change pattern of acceleration in the deceleration phase and the travel distance.
[0086] Specifically, the anti-sway parameters are determined based on the change law and the driving distance, wherein the anti-sway parameters include but are not limited to the maximum speed, the maximum acceleration, the minimum acceleration, the jerk, the deceleration distance and the acceleration distance. Figure 4 , the horizontal axis is time and the vertical axis is speed, and the current path is specifically divided into acceleration stage, uniform acceleration stage, deceleration stage, uniform speed stage, acceleration and deceleration stage, uniform deceleration stage and deceleration and deceleration stage.
[0087] Furthermore, in order to determine the swing angle accurately, the swing angle determined by the industrial camera and the infrared light source may specifically include:
[0088] Step 221: Obtain the horizontal viewing angle, vertical viewing angle, picture width and picture length of the industrial camera;
[0089] Step 222: Obtain the horizontal and vertical coordinate differences between the center point of the infrared light source at the light source image of the industrial camera and the center point of the industrial camera screen;
[0090] Step 223: Calculate the swing angle according to the horizontal and vertical coordinate differences, the horizontal viewing angle, the vertical viewing angle, the picture width and the picture length of the industrial camera.
[0091] Specifically, the horizontal viewing angle θxm, vertical viewing angle θym, screen width xcm and screen length ycm of the industrial camera are fixed. The horizontal coordinate difference xc and vertical coordinate difference yc between the center point of the light source image and the center point of the screen can be calculated, and the calculation formulas for the swing angles θx and θy of the steel rope in two directions are as follows:
[0092] θx / θxm=xc / xcm;
[0093] θy / θym=yc / ycm.
[0094] S103: Control the movement of the trolley and the large vehicle according to their anti-sway parameters, and during the movement, determine whether to merge the sub-paths according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path, and the condition of the large vehicle reaching the end point of the current sub-path; if merged, recalculate the anti-sway parameters according to the merged path, and adjust the movement of the trolley and / or the large vehicle according to the recalculated anti-sway parameters.
[0095] In this embodiment, after the anti-sway parameters are calculated, the speed given v is calculated regularly, the trolley is vx, and the trolley is vy, which are sent to the trolley and trolley inverters respectively to drive the crane to operate. The speed control of the trolley and the trolley is controlled separately. At the beginning, it is an acceleration process. When the speed reaches the maximum speed, the maximum speed is kept unchanged. When the distance between the current position and the end point of the sub-path is less than or equal to the deceleration distance, the deceleration process begins. When the speed is reduced to the creeping speed, the creeping speed is kept unchanged, and the current position is checked. When the error range of the end point is reached, it stops.
[0096] Specifically, in the present embodiment, during the initial movement, the small car and the large car move according to their respective anti-sway parameters. However, during the movement, because the driving distance, speed, and actual inverter stability of the large car and the small car are different, and the friction between their respective tracks and wheels is also different, it is difficult to ensure that the large car and the small car can reach the destination at the same time. According to the existing method, the car that arrives first usually waits for the next car, and when they arrive at the same time, they execute the next sub-path together. However, in some cases, this method leads to low efficiency. In order to better understand this step, you can refer to Figure 5 . For subpath 1, if the trolley has not completed subpath 1, that is, has not reached P1_y, even if the large vehicle has completed subpath 1 and reached P1_x, it cannot execute the next subpath 2, otherwise the trolley will enter the protection area. When the trolley completes subpath 1 and reaches P1_y, but the large vehicle has not completed subpath 1, the crane has not reached point P1, but is at point P1'. In this case, according to the conventional path control rules, it is still necessary to wait for the large vehicle to slow down and reach P1_x before entering subpath 2, which obviously wastes time. The same problem exists in subpath 2. For subpath 2, if the trolley completes subpath 2 and reaches P2_y, but the large vehicle has not completed subpath 2 and reaches P2_x, the trolley is not allowed to execute the next subpath 3; and since the trolley has no driving distance in subpath 2, it is impossible for the trolley to reach P2_x before reaching P2_y.
[0097] Therefore, based on the above analysis, the situation where there is no need to wait can be processed, so that the overall operation efficiency can be improved. Specifically, it can be determined whether to merge sub-paths according to the situation of each sub-path, the situation of the small car reaching the end of the current sub-path, and the situation of the large car reaching the end of the current sub-path; if merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the small car and / or the large car is adjusted according to the recalculated anti-sway parameters.
[0098] Furthermore, in order to ensure the anti-sway effect and improve the operation efficiency as much as possible without passing through the protection area, during the movement process, it is determined whether to merge the sub-paths according to the conditions of each sub-path, the condition of the small car reaching the end point of the current sub-path, and the condition of the large car reaching the end point of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the small car and / or the large car is adjusted according to the recalculated anti-sway parameters, which may specifically include:
[0099] When the small car reaches the end point of the current sub-path, and the large car has not reached the end point of the current sub-path, a first merge distance is calculated according to the current position of the large car and the end point of the next sub-path, and a first anti-sway parameter is calculated according to the first merge distance. The large car moves according to the first anti-sway parameter, and the small car maintains the current action;
[0100] When both the small vehicle and the large vehicle reach the end point of the current sub-path, it is determined whether the next sub-path is the end sub-path;
[0101] If the next subpath is the end subpath, the distance of the trolley is calculated according to the current position of the trolley and the end point of the next subpath, and the second anti-sway parameter is calculated according to the distance of the trolley. The trolley moves according to the second anti-sway parameter, and the large vehicle maintains the current action.
[0102] If the next sub-path is not the end sub-path, the second merge distance is calculated based on the current position of the large vehicle and the end point of the next sub-path, and the third anti-sway parameter is calculated based on the second merge distance. The large vehicle moves according to the third anti-sway parameter, and the small vehicle maintains the current action.
[0103] It is understandable that when the small car reaches the end point of the current sub-path, but the large car has not reached the end point of the current sub-path, the current sub-path mentioned here is not the end sub-path, that is, the small car has not reached the end point of the final path, but the end point of other sub-paths except the last sub-path. Based on the above content, in order to facilitate programming implementation, the traditional path control algorithm's rule of "both the large and small cars must reach the end point of the sub-path before entering the next sub-path" is changed to the following two rules: ① For any sub-path except the last sub-path, after the small car reaches the end point of the sub-path _y, the large car takes the current position _x as the starting point, and takes the end point _x of the next sub-path as the end point of the anti-sway calculation, and starts to accelerate. ② The small car enters the next sub-path only after both the large and small cars have reached the end point of the sub-path." In order to better understand the content of this part, combined with Figure 6 Provide explanation.
[0104] Case 1: When the trolley reaches the end of the current sub-path, but the crane has not reached the end of the current sub-path, the crane may move to the P1' position or to the P1 to P2 interval position, but no matter which position, the trolley remains stationary and the driving path of the crane is merged. The specific merging operation is to merge the current position of the crane and the end of the next sub-path, calculate the first anti-sway parameter based on the merged distance, and the crane moves according to the first anti-sway parameter. It can be understood that after the merger, the crane does not need to slow down and may even accelerate.
[0105] Case 2: When both the trolley and the large vehicle reach the end point of the current sub-path, the crane may run to point P2 or point P1. At this time, it is necessary to determine whether the next sub-path is the end sub-path; if the next sub-path is not the end sub-path, the crane runs to point P1, and the second merged distance (the distance between P1_x and P2_x) is calculated based on the current position of the large vehicle and the end point of the next sub-path. The third anti-sway parameter is calculated based on the second merged distance, and the large vehicle moves according to the third anti-sway parameter, while the trolley remains stationary; if the next sub-path is the end sub-path, the crane runs to point P2, and the trolley distance is calculated based on the current position of the trolley and the end point of the next sub-path. The second anti-sway parameter is calculated based on the trolley distance, and the trolley moves according to the second anti-sway parameter, while the large vehicle continues to move according to the third anti-sway parameter.
[0106] This embodiment does not explain other situations, because other situations are consistent with the normal processing method and cannot be merged. For example, in situation 3: the large cart reaches the end of the current sub-path, but the small car has not reached the end of the current sub-path. At this time, the large cart needs to wait for the small car to reach the end of the path, and then perform the movement action according to the next sub-path together. In this case, in order to avoid the protection area, the driving path of the small car cannot be merged. Therefore, it is consistent with the current processing method and will not be explained. The principle of rapid control in this embodiment is to consider the large cart and the small car in the sub-path separately. After the small car reaches the end of the sub-path, the remaining travel of the large cart in this sub-path will no longer continue to be executed, but will be merged with the travel of the large cart in the next sub-path, and acceleration will begin according to the anti-sway algorithm. This can greatly speed up path control while ensuring that the driving car will not enter the protection area. In order to better understand this section, you can refer to Figure 7 , Figure 7 An example flowchart of a fast path control algorithm provided by an embodiment of the present invention.
[0107] This embodiment considers the large and small vehicles in the sub-paths separately, and dynamically merges the sub-paths to the maximum extent possible, under the premise that the protection rules of the protection area allow. Usually, in the operation of several sub-paths, the large vehicle does not need to accelerate and decelerate in sections, but can accelerate and decelerate from the starting point to the end point in one go. When the task path needs to surround the protection area and there are many sub-paths, the effect is particularly prominent. For the same path, ordinary path motion control requires 4 minutes to complete the task, while the fast control of the present invention only takes 3 minutes, and the overall efficiency is improved by about 25%. The advantages of the fast control of the present invention over other path control algorithms can be intuitively felt through Figures 8 (a) and 8 (b).
[0108] Furthermore, in order to ensure the anti-sway effect, especially when reaching the end point, the inertial swing angle may exceed the range and needs to be corrected in time. In the above-mentioned motion process, the following steps may be included, which may specifically include:
[0109] Step 31: Determine the swing angle in real time through an industrial camera and an infrared light source; the industrial camera is installed on the trolley of the crane, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is installed on the hook housing;
[0110] Step 32: If the swing angle exceeds the preset angle range, perform angle correction.
[0111] Specifically, in the actual environment, due to changes or inconsistencies in the characteristics of the track, wheels, inverters, machinery, etc., there may be a gap between the actual deceleration distance and the calculated deceleration distance, which will cause the swing angle to still exceed the preset range. In order to ensure the effect in actual application, the swing angle data of the steel rope is detected in real time, and the next step is taken only when the swing angle is lower than the set range. Generally, angle correction is more often used when reaching the end point, such as Figure 4 Angle correction stage in the process.
[0112] Furthermore, in order to prevent the occurrence of a jamming phenomenon in an actual environment, a jamming compensation link is added. During the above movement process, the following steps may be further included, which may specifically include:
[0113] Step 41: When the target vehicle is in the deceleration stage, determine whether the target vehicle is in a stuck state; the target vehicle is a small car or a large car;
[0114] Step 42: If yes, the speed is adjusted to a preset speed, which is a speed sufficient to drive the target vehicle in a stuck state; when the target vehicle is driven successfully, the original driving speed is restored to normal movement;
[0115] Step 43: If not, the target vehicle moves normally.
[0116] Specifically, in the final operation stage of the S-curve speed control, Figure 4 The jam compensation in the uniform deceleration stage (also called the creeping stage) in the vehicle is very small. Due to the unstable characteristics of the inverter and the increased friction between the track and the wheel, the inverter may have output but not enough to drive the vehicle, causing the vehicle to stop. The jamming phenomenon can be judged. After the phenomenon is judged to occur, the speed setting is set to a larger value that is sufficient to drive the vehicle in the jamming state. After the vehicle is driven, the speed returns to the previous normal operating value. Jam compensation and angle correction are only required when the time environment is significantly different from the ideal conditions.
[0117] The crane motion control method provided by the embodiment of the present invention is applied. When receiving the operation task, the travel path of the crane is divided into multiple sub-paths according to the trolley position, the trolley position, the target position and the protection area; under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the trolley and the trolley are calculated according to the trolley position, the trolley position and the end point of the current sub-path respectively; the trolley and the trolley are controlled to move according to the anti-sway parameters of the trolley and the trolley, and during the movement, it is determined whether to merge the sub-paths according to the conditions of each sub-path, the trolley reaching the end point of the current sub-path and the trolley reaching the end point of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the trolley or / and the trolley is adjusted according to the recalculated anti-sway parameters. The present invention realizes stable anti-sway positioning based on the S-curve speed control principle, suppresses the swing angle well, and the implementation process is simple, fast and the anti-sway effect is stable; under the premise of ensuring safety, by merging the sub-paths, unnecessary deceleration processes between multiple sub-paths are avoided, and the path endpoints can be quickly passed, which greatly improves the overall operation efficiency of the crane.
[0118] The crane motion control device provided by an embodiment of the present invention is introduced below. The crane motion control device described below and the crane motion control method described above can be referenced to each other.
[0119] Please refer to Fig. 9 , Fig. 9 A structural schematic diagram of a crane motion control device provided by an embodiment of the present invention may include:
[0120] A path division module 100 is used to divide the travel path of the crane into a plurality of sub-paths according to the trolley position, the truck position, the target position and the protection area when receiving the operation task;
[0121] The anti-sway parameter calculation module 200 is used to calculate the anti-sway parameters of the trolley and the truck respectively according to the position of the trolley, the position of the truck and the end point of the current sub-path under the anti-sway condition based on the S-curve speed control principle;
[0122] The motion control module 300 is used to control the movement of the trolley and the cart according to the anti-sway parameters of the trolley and the cart, and during the movement, determine whether to merge the sub-paths according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path, and the condition of the cart reaching the end point of the current sub-path. If merged, recalculate the anti-sway parameters according to the merged path, and adjust the movement of the trolley and / or the cart according to the recalculated anti-sway parameters.
[0123] Based on the above embodiment, the anti-sway parameter calculation module 200 may include:
[0124] A travel distance calculation unit, used to obtain the travel distance according to the position of the vehicle and the end point position of the current sub-path;
[0125] A swing angle determination unit, used to determine the swing angle by means of an industrial camera and an infrared light source; the industrial camera is mounted on the trolley, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is mounted on the hook housing;
[0126] A steel rope length determination unit, used to obtain the steel rope length through an encoder, wherein the encoder is installed on the reducer shaft of the main reel;
[0127] The trolley anti-sway parameter determination unit is used to determine the anti-sway parameters of the trolley that meet the anti-sway conditions based on the S-curve speed control principle and according to the swing angle, the steel rope length and the travel distance.
[0128] Based on the above embodiment, the trolley anti-sway parameter determination unit may include:
[0129] A change rule determination subunit is used to obtain the change rule of acceleration and speed in the acceleration stage and the change rule of acceleration in the deceleration stage according to the swing angle and the length of the steel rope based on the S-curve speed control principle;
[0130] Each parameter determination subunit is used to determine the maximum speed, maximum acceleration, minimum acceleration, jerk, deceleration distance and acceleration distance of the vehicle based on the change law of acceleration and speed in the acceleration stage, the change law of acceleration in the deceleration stage and the driving distance.
[0131] Based on the above embodiment, the swing angle determination unit may include:
[0132] A camera parameter acquisition subunit, used to acquire the horizontal viewing angle, vertical viewing angle, picture width and picture length of the industrial camera;
[0133] A horizontal and vertical coordinate difference acquisition subunit is used to acquire the horizontal and vertical coordinate differences between the center point of the light source image of the infrared light source in the industrial camera and the center point of the industrial camera screen;
[0134] The swing angle calculation subunit is used to calculate the swing angle according to the horizontal and vertical coordinate differences, the horizontal viewing angle, the vertical viewing angle, the picture width and the picture length of the industrial camera.
[0135] Based on the above embodiment, the motion control module 300 may include:
[0136] The first unit is used for calculating a first merging distance according to the current position of the large vehicle and the end point of the next sub-path when the small vehicle reaches the end point of the current sub-path and the large vehicle has not reached the end point of the current sub-path, calculating a first anti-sway parameter according to the first merging distance, the large vehicle moves according to the first anti-sway parameter, and the small vehicle maintains the current action;
[0137] A judgment module, used for judging whether the next sub-path is an ending sub-path when both the small vehicle and the large vehicle reach the end point of the current sub-path;
[0138] The second unit is used for calculating the distance of the trolley according to the current position of the trolley and the end point of the next subpath if the next subpath is the end subpath, calculating the second anti-sway parameter according to the trolley distance, the trolley moves according to the second anti-sway parameter, and the large vehicle maintains the current action;
[0139] The third unit is used to calculate a second merge distance based on the current position of the large vehicle and the end point of the next sub-path if the next sub-path is not the end sub-path, calculate a third anti-sway parameter based on the second merge distance, the large vehicle moves according to the third anti-sway parameter, and the small vehicle maintains the current action.
[0140] Based on any of the above embodiments, the crane motion control device may further include:
[0141] A swing angle real-time determination module is used to determine the swing angle in real time through an industrial camera and an infrared light source; the industrial camera is installed on the trolley of the crane, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is installed on the hook housing;
[0142] The angle correction module is used to perform angle correction if the swing angle exceeds a preset angle range.
[0143] Based on any of the above embodiments, the crane motion control device may further include:
[0144] A stuck state judgment module, used for judging whether the target vehicle is in a stuck state when the target vehicle is in a deceleration stage; the target vehicle is the small car or the large car;
[0145] The first judgment result module is used for adjusting the speed to a preset speed if yes, wherein the preset speed is a speed sufficient to drive the target vehicle in a stuck state; when the target vehicle is driven successfully, the original driving speed is restored to normal movement;
[0146] The second judgment result module is used to determine if no, then the target vehicle moves normally.
[0147] It should be noted that the order of the modules and units in the above-mentioned crane motion control device can be changed without affecting the logic.
[0148] The crane motion control device provided by the embodiment of the present invention is applied, and the path division module 100 is used to divide the crane's travel path into multiple sub-paths according to the trolley position, the truck position, the target position and the protection area when receiving an operation task; the anti-sway parameter calculation module 200 is used to calculate the anti-sway parameters of the trolley and the truck according to the trolley position, the truck position and the end point of the current sub-path under the anti-sway condition based on the S-curve speed control principle; the motion control module 300 is used to control the movement of the trolley and the truck according to the anti-sway parameters of the trolley and the truck, and during the movement, determine whether to merge the sub-paths according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path and the condition of the truck reaching the end point of the current sub-path; if merged, recalculate the anti-sway parameters according to the merged path, and adjust the movement of the trolley and / or the truck according to the recalculated anti-sway parameters. This device achieves stable anti-sway positioning based on the S-curve speed control principle, effectively suppresses the swing angle, and has a simple and fast implementation process with stable anti-sway effect. Under the premise of ensuring safety, by merging sub-paths, unnecessary deceleration processes between multiple sub-paths are avoided, and the path endpoints can be passed quickly, greatly improving the overall operation efficiency of the crane.
[0149] The crane motion control device provided by an embodiment of the present invention is introduced below. The crane motion control device described below and the crane motion control method described above can be referenced to each other.
[0150] Please refer to Fig.10 , Fig.10 A structural schematic diagram of a crane motion control device provided by an embodiment of the present invention may include:
[0151] A memory 10, used for storing computer programs;
[0152] The processor 20 is used to execute a computer program to implement the above-mentioned crane motion control method.
[0153] The memory 10 , the processor 20 , and the communication interface 31 all communicate with each other via the communication bus 32 .
[0154] In the embodiment of the present invention, the memory 10 is used to store one or more programs, and the program may include program code, and the program code includes computer operation instructions. In the embodiment of the present invention, the memory 10 may store programs for implementing the following functions:
[0155] When receiving an operation task, the crane's travel path is divided into multiple sub-paths according to the trolley position, truck position, target position and protection area;
[0156] Under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the trolley and the truck are calculated according to the position of the trolley, the position of the truck and the end point of the current sub-path.
[0157] The movement of the trolley and the cart is controlled according to their anti-sway parameters, and during the movement, whether to merge the sub-paths is determined according to the conditions of each sub-path, the arrival of the trolley at the end of the current sub-path, and the arrival of the cart at the end of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the trolley and / or the cart is adjusted according to the recalculated anti-sway parameters.
[0158] In a possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function, etc.; the data storage area may store data created during use.
[0159] In addition, the memory 10 may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include an NVRAM. The memory stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various systems for implementing various basic tasks and processing hardware-based tasks.
[0160] The processor 20 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic device, a microprocessor or any conventional processor, etc. The processor 20 may call a program stored in the memory 10 .
[0161] The communication interface 31 may be an interface of a communication module, and is used to connect to other devices or systems.
[0162] Of course, it should be noted that Fig.10The structure shown does not constitute a limitation on the crane motion control device in the embodiment of the present invention. In actual applications, the crane motion control device may include Fig.10 More or fewer components than shown, or combinations of certain components.
[0163] The following is an introduction to the readable storage medium provided in the embodiment of the present invention. The readable storage medium described below and the crane motion control method described above can be referenced to each other.
[0164] The present invention also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned crane motion control method are implemented.
[0165] The readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0166] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0167] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0168] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0169] The above is a detailed introduction to a crane motion control method, device, equipment and readable storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A crane motion control method, characterized in that: include: When receiving an operation task, the crane's travel path is divided into multiple sub-paths according to the trolley position, truck position, target position and protection area; Under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the trolley and the truck are calculated according to the position of the trolley, the position of the truck and the end point of the current sub-path; Control the movement of the trolley and the cart according to the anti-sway parameters of the trolley and the cart, and during the movement, determine whether to merge the sub-paths according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path, and the condition of the cart reaching the end point of the current sub-path; if merged, recalculate the anti-sway parameters according to the merged path, and adjust the movement of the trolley and / or the cart according to the recalculated anti-sway parameters; Under the anti-sway condition, based on the S-curve speed control principle, the anti-sway parameters of the car are calculated according to the position of the car and the end point of the current sub-path, including: Obtaining the travel distance according to the position of the vehicle and the end point position of the current sub-path; The swing angle is determined by an industrial camera and an infrared light source; the industrial camera is mounted on the trolley, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is mounted on the hook housing; The length of the steel rope is obtained by an encoder, which is installed on the reducer shaft of the main reel; Based on the S-curve speed control principle, the anti-sway parameters of the trolley that meet the anti-sway conditions are determined according to the swing angle, the length of the steel rope and the travel distance; The anti-sway parameters of the trolley that meet the anti-sway conditions are determined based on the S-curve speed control principle according to the swing angle, the length of the steel rope and the travel distance, including: Based on the S-curve speed control principle, the change law of acceleration and speed in the acceleration stage and the change law of acceleration in the deceleration stage are obtained according to the swing angle and the length of the steel rope; Determine the maximum speed, maximum acceleration, minimum acceleration, jerk, deceleration distance and acceleration distance of the vehicle based on the change law of acceleration and speed in the acceleration phase, the change law of acceleration in the deceleration phase and the travel distance; Based on the S-curve speed control principle, the variation law of acceleration and speed in the acceleration stage and the variation law of acceleration in the deceleration stage are obtained according to the swing angle and the length of the steel rope, including: ; ; ; Wherein, a is the acceleration; j1 is the acceleration in the acceleration phase; v is the velocity in the acceleration phase; j max is the absolute value of the maximum acceleration, j max Determined according to the swing angle and the maximum speed; j2 is the acceleration in the deceleration stage, according to the absolute value j of the maximum acceleration max and the swing period T sw Determine, that is, j=j max / T sw ; wherein the swing period T sw Determined according to the length of the steel rope.
2. The crane motion control method according to claim 1, characterized in that: During the movement, whether to merge the sub-paths is determined according to the conditions of each sub-path, the arrival of the trolley at the end of the current sub-path, and the arrival of the large vehicle at the end of the current sub-path. If merged, the anti-sway parameters are recalculated according to the merged path, and the movement of the trolley and / or large vehicle is adjusted according to the recalculated anti-sway parameters, including: When the small car reaches the end point of the current sub-path, and the large car has not reached the end point of the current sub-path, a first merging distance is calculated according to the current position of the large car and the end point of the next sub-path, a first anti-sway parameter is calculated according to the first merging distance, the large car moves according to the first anti-sway parameter, and the small car maintains the current action; When both the small vehicle and the large vehicle reach the end point of the current sub-path, it is determined whether the next sub-path is the end sub-path; If the next subpath is the end subpath, the distance of the trolley is calculated according to the current position of the trolley and the end point of the next subpath, and the second anti-sway parameter is calculated according to the distance of the trolley. The trolley moves according to the second anti-sway parameter, and the large vehicle maintains the current action. If the next sub-path is not the end sub-path, the second merge distance is calculated based on the current position of the large vehicle and the end point of the next sub-path, and the third anti-sway parameter is calculated based on the second merge distance. The large vehicle moves according to the third anti-sway parameter, and the small vehicle maintains the current action.
3. The crane motion control method according to claim 1, characterized in that: Determine the swing angle using an industrial camera and infrared light source, including: Obtaining the horizontal viewing angle, vertical viewing angle, picture width and picture length of the industrial camera; Obtain the horizontal and vertical coordinate differences between the center point of the light source image of the infrared light source in the industrial camera and the center point of the industrial camera screen; The swing angle is calculated according to the horizontal and vertical coordinate differences, the horizontal viewing angle, the vertical viewing angle, the picture width and the picture length of the industrial camera.
4. The crane motion control method according to any one of claims 1 to 3, characterized in that: During the exercise, you will also: The swing angle is determined in real time by an industrial camera and an infrared light source; the industrial camera is installed on the trolley of the crane, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is installed on the hook housing; If the swing angle exceeds the preset angle range, an angle correction is performed.
5. The crane motion control method according to any one of claims 1 to 4, characterized in that: During the exercise, you will also: When the target vehicle is in the deceleration stage, determining whether the target vehicle is in a stuck state; the target vehicle is the small car or the large car; If yes, the speed is adjusted to a preset speed, which is a speed sufficient to drive the target vehicle in a stuck state; when the target vehicle is driven successfully, the original driving speed is restored to normal movement; If not, the target vehicle moves normally.
6. A crane motion control device, characterized in that: include: A path division module is used to divide the crane's travel path into multiple sub-paths according to the trolley position, the truck position, the target position and the protection area when receiving an operation task; The anti-sway parameter calculation module is used to calculate the anti-sway parameters of the trolley and the truck respectively according to the position of the trolley, the position of the truck and the end point of the current sub-path under the anti-sway condition based on the S-curve speed control principle; A motion control module, used for controlling the movement of the trolley and the cart according to the anti-sway parameters of the trolley and the cart, and during the movement, determining whether to merge the sub-paths according to the conditions of each sub-path, the condition of the trolley reaching the end point of the current sub-path, and the condition of the cart reaching the end point of the current sub-path; if merged, recalculating the anti-sway parameters according to the merged path, and adjusting the movement of the trolley and / or the cart according to the recalculated anti-sway parameters; The anti-sway parameter calculation module includes: A travel distance calculation unit, used to obtain the travel distance according to the position of the vehicle and the end point position of the current sub-path; A swing angle determination unit, used to determine the swing angle by means of an industrial camera and an infrared light source; the industrial camera is mounted on the trolley, and the lens of the industrial camera is equipped with an infrared bandpass filter; the infrared light source is mounted on the hook housing; A steel rope length determination unit, used to obtain the steel rope length through an encoder, wherein the encoder is installed on the reducer shaft of the main reel; A trolley anti-sway parameter determination unit, for determining the trolley anti-sway parameters that meet the anti-sway conditions according to the swing angle, the steel rope length and the travel distance based on the S-curve speed control principle; The trolley anti-sway parameter determination unit includes: A change rule determination subunit is used to obtain the change rule of acceleration and speed in the acceleration stage and the change rule of acceleration in the deceleration stage according to the swing angle and the length of the steel rope based on the S-curve speed control principle; Each parameter determination subunit is used to determine the maximum speed, maximum acceleration, minimum acceleration, jerk, deceleration distance and acceleration distance of the vehicle based on the change law of acceleration and speed in the acceleration stage, the change law of acceleration in the deceleration stage and the travel distance; The variation rule determination subunit comprises: ; ; ; Wherein, a is the acceleration; j1 is the acceleration in the acceleration phase; v is the velocity in the acceleration phase; j max is the absolute value of the maximum acceleration, j max Determined according to the swing angle and the maximum speed; j2 is the acceleration in the deceleration stage, according to the absolute value j of the maximum acceleration max and the swing period T sw Determine, that is, j=j max / T sw ; wherein the swing period T sw Determined according to the length of the steel rope.
7. A crane motion control device, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the crane motion control method as described in any one of claims 1 to 5 when executing the computer program.
8. A readable storage medium, characterized in that: The readable storage medium stores computer executable instructions, and when the computer executable instructions are loaded and executed by the processor, the steps of the crane motion control method according to any one of claims 1 to 5 are implemented.
