Control method for rotation motion of two arms of rack and related device
By combining main control computer, PLC module, motor controller and other technologies, the precise control and safety guarantee of the movement of the two-arm robot are achieved, which solves the problems of insufficient monitoring, low accuracy and speed control limitations in the traditional system, and improves the system's efficiency. Overall performance and security.
Patent Information
- Application Number
- CN202410739033.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
AI Technical Summary
During the motion control process of the two-arm robot, there are problems such as simple monitoring and alarm functions, insufficient rotation accuracy, limited speed control, and joint drift, which affect the safety and performance of the system.
It uses a combination of main control computer, PLC module, motor controller, motion controller, limit switch, rotary encoder and multiple sets of motors to monitor the movement status of the robotic arm in real time and achieve angle and area speed control, intelligently Coordinate management and security.
Through real-time feedback and dynamic adjustment, high-precision, safe and flexible motion control of the robotic arm is achieved, improving the overall performance and adaptability of the system, avoiding collisions and damage, and enhancing safety and reliability.
Smart Images

Figure CN118528264A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of particle radiotherapy equipment, and in particular to a control method for rotating double arms of a rack and a related device. Background Art
[0002] The control device of the gantry double-arm rotation motion is an important component in the field of particle radiotherapy equipment. With the rapid development of robotics technology, the dual-arm robot has greatly enhanced its adaptability to complex assembly tasks and improved the efficiency of workspace utilization because it can have two arms like humans and coordinate work within a certain range. However, there are some technical challenges in the motion control process of the dual-arm robot.
[0003] First, the dual-motor rotation system usually uses a single-function controller. The monitoring and alarm functions of this controller are relatively simple. Once the system fails or malfunctions, it is often difficult to detect and respond in time, which may cause safety accidents.
[0004] Secondly, in terms of rotation accuracy, traditional systems often have difficulty meeting high precision requirements, especially in situations where an angle error of ±0.1° is required, the accuracy of traditional systems often cannot meet the requirements, affecting the overall performance and stability of the system.
[0005] In addition, the traditional system also has certain limitations in speed control. It is impossible to achieve real-time regional control, and it is difficult for the system to accurately adjust the speed according to actual needs, which affects the flexibility and adaptability of the system.
[0006] Furthermore, when the robot's end task is a closed curve, its joints may not be able to return to their initial positions. This phenomenon is called joint drift or non-cyclic motion problem. This may cause the robot to be unable to achieve a closed curve cyclic motion or joint offset during the movement, increasing the experimental cost and risk. In addition, the dynamic performance of the robot arm during the movement of the dual-arm robot, such as speed, stability, and low overshoot, as well as the motion accuracy of the mechanical position, that is, the position accuracy of the repeated arrival position, are also important to ensure that the robot can accurately and stably complete various tasks. Summary of the invention
[0007] Based on the above problems, the present invention provides a control method and related devices for the rotational motion of the double arms of the frame, which monitor the motion status of the double arms in real time, realize speed control at all angles and areas, and intelligently realize precise control, coordinated management and safety assurance of the double arms.
[0008] In a first aspect, the present invention provides a control device for double-arm rotational motion, the device comprising:
[0009] A main control computer, a PLC module, a motor controller, a motion controller, a limit switch, a rotary encoder and multiple motors; the multiple motors are respectively arranged on the two arms of the robot; the motors include a motor encoder and a reduction box; the two arms of the robot are located on both sides of the frame;
[0010] The main control computer is used to send control instructions to the motion controller through the PLC module;
[0011] The limit switch is used to feedback signals to the PLC module and motion controller;
[0012] The motor encoder and the rotary encoder are used to provide real-time feedback on the operating status of the two arms of the robot;
[0013] The motion controller is configured to respond to control instructions from the main control computer and control the operation of the motor through a motor controller, wherein the operation of the motor includes: motor start and stop, regional speed control, and rotation.
[0014] Preferably, each side of the robotic arm includes two groups of motors, the rotational force directions of the two groups of motors on the same side of the robotic arm are opposite, each group of motors corresponds to a motion controller, and the motors of the robotic arms on both sides are symmetrically arranged.
[0015] Preferably, the PLC module is used to receive count input from a motor encoder, status input from a motion controller, temperature input and limit switch input; the PLC module is also used to output an alarm signal.
[0016] Preferably, the motion controller is also used for the coordinated management of the motion of the two arms of the robot; the motion controller sends speed and direction instructions to the motor controller, and receives speed feedback and digital status from the motor controller;
[0017] The states of the two arms of the robot include: angle values, speed values and twist values of the two arms.
[0018] Preferably, the control device comprises a plurality of limit switches;
[0019] When the two arms of the robot touch the first limit switch, the first limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to decelerate;
[0020] When the two arms of the robot touch the second limit switch, the second limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop;
[0021] When the two arms of the robot touch the third limit switch, the third limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop and cuts off the power supply.
[0022] The present invention provides a control method for the rotational motion of a double-arm of a frame, which is used to control the motion of the double-arm of a robot arm by using any control device of the present invention, and the method comprises:
[0023] In response to the rotation instruction of the main control computer, the motion controller communicates with the PLC module, the motor and the rotary encoder respectively through the communication interface to obtain the status information of the PLC module, the motor and the rotary encoder;
[0024] The motion controller sends a command to the motor controller, and the motor controller drives the motor to rotate;
[0025] Obtaining the operating state and position of the two arms of the robot; the operating state includes the angle value, speed value, and twist value of the rotation of the two arms;
[0026] The operation of the motor is adjusted according to the operating state and the position.
[0027] Preferably, adjusting the operation of the motor according to the operating state and position includes:
[0028] When the two arms of the robot touch the first limit switch, the first limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to decelerate;
[0029] When the two arms of the robot touch the second limit switch, the second limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop;
[0030] When the two arms of the robot touch the third limit switch, the third limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop and cuts off the power supply.
[0031] Preferably, the step of adjusting the operation of the motor according to the operating state and position further comprises:
[0032] Get the current position and movement information of both arms of the robot;
[0033] When the two arms of the robot move toward the preset area, and the shortest distance between the current position and the preset area is less than or equal to the preset distance threshold, the operation of the motor is adjusted so that the two arms of the robot are adjusted to the preset area at a preset speed.
[0034] Preferably, the method comprises:
[0035] Feedback the operating status of the two arms of the robot to the PLC module and the motion controller in real time through the motor encoder and the rotary encoder;
[0036] If the feedback results of the motor encoder and the rotary encoder are inconsistent at the same time point, the motion controller issues a stop command and the motor controller stops driving the motor.
[0037] Preferably, the method further comprises:
[0038] If the twist value of both arms of the robot exceeds the preset range;
[0039] The motion controller issues a stop command, and the motor controller stops driving the motor.
[0040] Preferably, each side of the mechanical arm includes two groups of motors, the rotational force directions of the two groups of motors on the same side of the mechanical arm are opposite, each group of motors corresponds to a motion controller, and the motors of the mechanical arms on both sides are symmetrically arranged; the operation of the motors is adjusted according to the operating state and position, including:
[0041] The motion controller is used to adjust the distribution of the rotational force of the two groups of motors on the same side to achieve the motion speed control of the robot arm.
[0042] Preferably, the method further comprises:
[0043] Dynamically adjust the motor control strategy based on the real-time motion data of the robot's dual arms and environmental parameters.
[0044] Preferably, dynamically adjusting the control strategy of the motor according to the real-time motion data of the two arms of the robot and the environmental parameters includes:
[0045] Collecting motion data of the two arms of the robot and corresponding environmental parameters; the motion data of the two arms of the robot include load, speed, position, and vibration; the environmental parameters include temperature and humidity;
[0046] Based on historical motion data, through machine learning, a speed mapping model of the robot's dual arms and a corresponding relationship model between the motor operating parameters and the speed of the robot's dual arms are established;
[0047] The real-time motion data and environmental parameters are combined with the speed mapping model to obtain the expected speed value;
[0048] According to the expected speed value and the corresponding relationship model between the motor operating parameters and the speed of the two arms of the robot, the motor operating parameters are adjusted to adjust the two arms of the robot to the expected speed; at the same time, the positions of the two arms of the robot are monitored.
[0049] Preferably, the method comprises:
[0050] Obtaining the absolute value of the difference between the current speed of the two arms of the robot and the expected speed as the first difference;
[0051] If the first difference is greater than the difference threshold, the current speed is first adjusted to the second speed through the first acceleration;
[0052] If the absolute value of the difference between the second speed and the expected speed is still greater than the difference threshold, the current speed is adjusted to the third speed through the second acceleration;
[0053] The absolute value of the first acceleration is greater than the absolute value of the second acceleration.
[0054] In a third aspect, the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any method described in the present invention or implements the functions of the device described in the present invention when executing the computer program.
[0055] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the storage medium stores computer instructions. When a computer reads the computer instructions, the computer executes the steps of any method described in the present invention or implements the functions of the device described in the present invention.
[0056] In a fifth aspect, the present invention provides a radiotherapy device, comprising the aforementioned control device for the rotational movement of the double arms of the gantry.
[0057] Compared with the prior art, the beneficial effects of the present invention include at least: through the real-time feedback of the motor encoder and the rotary encoder, the system can accurately grasp the operating status of the two arms of the robot, including the angle value, speed value and distortion value, so as to realize precise rotational motion control; the setting of multiple groups of limit switches ensures that the robot arm can automatically decelerate or stop when it approaches or exceeds the preset limit position, thereby avoiding possible collision or damage; in particular, when the robot arm touches the third limit switch, the power supply can be cut off immediately, which increases the safety of the system; the motion controller not only controls the operation of a single motor, but is also responsible for the coordinated management of the movement of the two arms, ensuring that the movement of the robot arms on both sides is synchronized and coordinated, thereby improving the operation efficiency of the entire system; when the feedback results of the motor encoder and the rotary encoder are inconsistent When the robot stops, the motion controller can immediately issue a stop command, preventing possible misoperation or damage and improving the operating efficiency of the system; by collecting the real-time motion data and environmental parameters of the robot arm and combining machine learning technology, the system can dynamically adjust the control strategy of the motor to achieve more efficient and safer operation; this intelligent control strategy not only optimizes the operating performance of the robot arm, but also improves the adaptability and reliability of the system; when adjusting the motor speed, the strategy of gradually reducing the absolute value of the acceleration is adopted, so that the motor can smoothly reach the desired speed, reducing shock and vibration, and extending the service life of the motor; the design of the control device allows the number of motors, the number of motion controllers, and the setting of limit switches to be flexibly adjusted according to specific needs, so as to adapt to different application scenarios and needs. In summary, the control device and method of the dual-arm rotational motion improves the accuracy, safety, coordination and intelligence of the system, while providing an effective solution for various application scenarios that require precise control of the rotational motion of the robot arm, such as the rotational motion control of the rotating frame of the radiotherapy equipment in the particle radiotherapy scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1A is a schematic diagram of a dual-arm robot according to an embodiment of the present invention;
[0059] Figure 1B is a schematic diagram of the dual arms of the robotic arm of an embodiment of the present invention from another perspective;
[0060] Figure 2 is a schematic diagram of a control device for double-arm rotational motion according to an embodiment of the present invention;
[0061] Figure 3 Schematic diagram of a radiotherapy device according to an embodiment of the present invention.
[0062] In the figure: 1, motor R1; 2, motor R2; 3, motor R3; 4, motor R4. DETAILED DESCRIPTION
[0063] The exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; on the contrary, these embodiments are provided to make the present invention more comprehensive and complete and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0064] The schematic diagram of the dual-arm robot mentioned in the embodiment of the present invention is shown in the attached figure. Figure 1A and Figure 1B shown.
[0065] In some embodiments of the present invention, a control device for the rotational movement of a frame double arm comprises:
[0066] A main control computer, a PLC module, a motor controller, a motion controller, a limit switch, a rotary encoder and multiple motors; the multiple motors are respectively arranged on the two arms of the mechanical arm; the two arms of the mechanical arm are located on both sides of the frame; the two arms of the frame are the mechanical arms on both sides of the frame, and can also be called the two arms of the mechanical arm, and the motor includes a motor encoder and a reduction box;
[0067] The main control computer is used to send control instructions to the motion controller through the PLC module;
[0068] The limit switch is used to feedback signals to the PLC module and motion controller;
[0069] The motor encoder and the rotary encoder are used to provide real-time feedback on the operating status of the two arms of the robot;
[0070] The motion controller is configured to respond to control instructions from the main control computer and control the operation of the motor through a motor controller, wherein the operation of the motor includes: motor start and stop, regional speed control, and rotation.
[0071] The working principle of the above technical solution is: the working principle of the control device for the double-arm rotational motion involves a collaborative system, which is composed of a main control computer, a PLC module, a motor controller, a motion controller, a limit switch, a rotary encoder and multiple groups of motors; these components work together to ensure that the double-arm robotic arm can perform precise and safe rotational motion according to predetermined instructions, ensure that the radiotherapy equipment can move accurately relative to the part to be treated, and further ensure the ideal radiotherapy effect.
[0072] Main control computer: As the core of the entire system, it can monitor and operate the entire system in real time; the main control computer is responsible for sending control instructions; these instructions are generated based on the predetermined motion path, speed requirements and task requirements.
[0073] PLC module: The PLC (Programmable Logic Controller) module receives control instructions from the main control computer and converts them into specific control signals, which are sent directly to the motion controller. At the same time, the PLC module also receives feedback signals from the limit switch to determine whether the robot arm has reached the preset limit position.
[0074] Motion controller: The motion controller is a key component for controlling the motion of the robot arm; it receives control signals from the PLC module and controls the operation of the motor through the motor controller based on these signals. The motor's operating status, including start and stop, speed control, and rotation direction, are all precisely controlled by the motion controller.
[0075] Motor controller: The motor controller directly drives the motor to rotate; it receives instructions from the motion controller and adjusts the motor's power, current, frequency and other parameters accordingly to achieve precise control of the motor's speed, acceleration and direction.
[0076] Motor: The motor is the actuator of the robot arm's rotational motion; each side of the robot arm is equipped with a motor, which is connected to the robot arm through a reduction gearbox to generate sufficient torque and force to drive the robot arm to rotate. The motor encoder is also integrated inside the motor to provide real-time feedback on the motor's operating status.
[0077] Rotary encoder: In addition to the motor encoder, each robot arm is also equipped with a rotary encoder; these encoders can detect the rotation angle and speed of the robot arm in real time and feed this information back to the motion controller; the motion controller adjusts the operating status of the motor in real time based on this feedback information to ensure that the robot arm can rotate according to the predetermined trajectory and speed.
[0078] Limit switches: Limit switches are installed near the limit positions of the robot arm. When the robot arm approaches or reaches these limit positions, the limit switches are triggered and send signals to the PLC module and motion controller. These signals are used to prevent the robot arm from over-rotating to avoid equipment damage or personal injury.
[0079] In summary, this double-arm rotation motion control device achieves precise and safe control of the robot arm's rotation motion through the coordinated work of the main control computer, PLC module, motor controller, motion controller, limit switch, rotary encoder and multiple groups of motors.
[0080] The effect of the above technical solution is: through the real-time feedback of the motor encoder and the rotary encoder, the system can accurately grasp the operating status of the robot arm, including position, speed and acceleration, etc.; this enables the motion controller to fine-tune the motor according to these real-time data, thereby achieving high-precision motion control; the main control computer sends control instructions to the motion controller through the PLC module. This architecture enables the system to respond to control instructions quickly, reduce delays, and improve operating efficiency. At the same time, the collaborative work of the motion controller and the motor controller also ensures that the motor can quickly and accurately perform actions such as start and stop, speed control and rotation; the introduction of the limit switch provides additional safety for the system. When the robot arm approaches or reaches the preset limit position, the limit switch will trigger and send a signal to the PLC module and the motion controller, so that the system can immediately stop or change the direction of movement of the robot arm, thereby avoiding equipment damage or personal injury; speed control can be achieved at all angles and areas, and the movement speed can be slowed down at specific angles; the motor controller has encoder feedback plus external rotary encoder feedback, and the motion controller can monitor the movement status of both arms in real time. If any abnormality occurs, the motion controller will send a motion stop instruction.
[0081] As attached Figure 1A and Figure 1B As shown: In some embodiments, each side of the robotic arm includes two groups of motors (in the figure, 1 is motor R1, 2 is motor R2, 3 is motor R3, and 4 is motor R4), one of which is the main motor and the other is the slave motor. The rotational force directions of the two groups of motors in the same side of the robotic arm are opposite, and each group of motors corresponds to a motion controller.
[0082] In some embodiments, the motors of the robotic arms on both sides are arranged symmetrically.
[0083] The working principle of the above technical solution is: each side of the robotic arm is equipped with two sets of motors, each set of motors is driven independently and controlled by a motor controller respectively; the two sets of motors are arranged symmetrically and connected to the robotic arm through the transmission mechanism inside the robotic arm.
[0084] When the main control computer sends a control instruction to the PLC module, the PLC module passes the instruction to the corresponding motion controller.
[0085] Each motion controller controls its corresponding motor controller according to the instructions, thereby controlling the rotation direction and speed of the motor.
[0086] On the same side of the robotic arm, one is the main motor and the other is the slave motor; the two sets of motors rotate in opposite directions; this is usually achieved through the reverse drive circuit of the motor controller, so that the two sets of motors can generate torque in opposite directions; by dragging the slave motor on the main motor, this dragging effect can offset the vibration and instability factors that may be caused by the rapid movement of the main motor, thereby ensuring the smoothness and stability of the robotic arm's movement; when both arms rotate clockwise, the rotation force of motor R1 / R4 is clockwise, and the rotation force of motor R2 / R3 is counterclockwise, making its movement stable and precise.
[0087] The effect of the above technical solution is: through the design of two sets of motors rotating in opposite directions, the robot arm can achieve more complex rotation and movement while maintaining balance. For example, when one set of motors rotates clockwise, the other set of motors rotates counterclockwise, so that the posture of the robot arm can be adjusted or fine-tuned without changing the overall position of the robot arm. The motors of the robot arms on both sides are arranged in a mirror-symmetrical structure, that is, the motor layout of the robot arm on one side is exactly the same as that on the other side, but in opposite directions; the motors of the robot arms on both sides are uniformly controlled by the main control computer and the PLC module to ensure that the robot arms on both sides can move synchronously and coordinately. When performing complex operations, the motors of the robot arms on both sides can work together to achieve more accurate positioning and more stable operation; the symmetrical setting of the motors can make the robot arms on both sides consistent in structure and function, and improve the reliability and stability of the entire system; when performing some operations that require the robot arms on both sides to perform simultaneously (such as grasping, carrying, etc.), the symmetrically arranged motors can ensure that the movements of the robot arms on both sides are synchronized and consistent, thereby improving work efficiency and safety.
[0088] In summary, by designing that each robotic arm includes two sets of motors with opposite rotation directions and the motors of the robotic arms on both sides are symmetrically arranged, more flexible and stable dual-arm rotation motion control can be achieved, thereby improving the overall performance and reliability of the system.
[0089] In some embodiments, the PLC module is used to receive count input from a motor encoder, status input from a motion controller, temperature input, and limit switch input; the PLC module is also used to output an alarm signal.
[0090] In some embodiments, the motion controller is also used for coordinated management of dual-arm motion of the robotic arm; the motion controller sends speed and direction instructions to the motor controller, and receives speed feedback and digital status from the motor controller.
[0091] In some embodiments, the states of the two arms of the robotic arm include: angle values, speed values, and twist values of the two arms.
[0092] In some embodiments, the method comprises:
[0093] When the two arms of the robot touch the first limit switch, the first limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to decelerate;
[0094] When the two arms of the robot touch the second limit switch, the second limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop;
[0095] When the two arms of the robot touch the third limit switch, the third limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop and cuts off the power supply.
[0096] The working principle of the above technical solution is as follows: the PLC module is the key part of the entire control system, which is responsible for receiving and processing input signals from different sensors and outputting control signals or alarm signals;
[0097] The PLC module receives count inputs from the motor encoder, which reflect the rotation angle and speed of the motor, so that the position and status of the robot arms can be calculated; the PLC module also receives status inputs from the motion controller, which may include the current working status of the motion controller, error codes, etc. The temperature input may be a temperature sensor from the motor or other key components to monitor the thermal state of the system.
[0098] When the robot arm touches the limit switch, the input signal of the limit switch will also be received by the PLC module.
[0099] Based on the analysis and logic processing of the input signal, the PLC module will output a control signal to the motion controller or motor controller to adjust the operating status of the motor. If the system detects an abnormal situation (such as overtemperature, motor failure, etc.), the PLC module will output an alarm signal to remind the operator or trigger other safety measures.
[0100] The motion controller is responsible for the coordinated management of the movement of the two arms of the robot, ensuring that the two arms can move synchronously and coordinately; the motion controller receives control instructions from the PLC module, and sends speed and direction instructions to the motor controller according to these instructions; the motor controller controls the operation of the motor according to these instructions, thereby realizing the rotation and movement of the robot arm; the motion controller receives speed feedback and digital status from the motor controller to monitor the operating status of the motor in real time; these feedback information are used to adjust the control instructions to ensure that the robot can move according to the predetermined trajectory and speed. The status of the two arms of the robot includes the angle value, speed value, and twist value of the two arms.
[0101] Double-arm angle value: The current angle value of the robot's double arms can be calculated through the rotation angle information fed back in real time by the motor encoder and rotary encoder.
[0102] Speed value: Based on the count input and time difference of the motor encoder, the movement speed of the robot arm can be calculated.
[0103] Distortion value: may be calculated through additional sensors or algorithms to reflect whether the robotic arm is twisted or deformed during movement.
[0104] Limit switches are used to protect the robot arm from exceeding the preset range of motion.
[0105] First limit switch: When the two arms of the robot touch the first limit switch, the limit switch feedback signal is given to the PLC module and the motion controller; after receiving the signal, the motion controller will control the movement of the two arms to slow down to prevent the robot from getting too close to the limit position.
[0106] Second limit switch: When both arms of the robot touch the second limit switch, a signal will also be triggered; the motion controller will control the movement of both arms to stop, ensuring that the robot does not exceed the safety range.
[0107] The third limit switch: This is the last line of defense of the robot arm; when the robot arm touches the third limit switch, in addition to controlling the movement of the arms to stop, the motion controller will also cut off the power supply to ensure the safety of the robot arm.
[0108] The effect of the above technical solution is: through the motor encoder and the rotary encoder, the angle value, speed value and possible distortion value of the two arms of the robot are fed back in real time. The system can accurately grasp the real-time status of the robot arm and ensure high-precision operation.
[0109] The design of the limit switch ensures that the robot arm can slow down or stop when it approaches the limit position, avoiding possible collision or damage and improving the safety of the system.
[0110] The PLC module can receive input signals from multiple sensors, perform logical processing based on these signals, and output control signals or alarm signals, making the system more flexible and reliable.
[0111] The motion controller is responsible for the coordinated management of the movement of the two arms of the robot, ensuring that the robotic arms on both sides can move synchronously and coordinatedly, improving the overall performance of the system.
[0112] The design of temperature input enables the system to monitor the temperature of key components in real time and prevent failures due to overheating.
[0113] When an abnormal situation is detected, the PLC module can output an alarm signal to promptly notify the operator or trigger other safety measures to ensure the stable operation of the system.
[0114] By setting the first, second and third limit switches, the system provides multi-level protection for the robot arm; the first limit switch is used to slow down, the second limit switch is used to stop, and the third limit switch is used to cut off the power supply, ensuring a quick response when the robot arm accidentally touches an obstacle to protect the robot arm from damage.
[0115] By precisely controlling the motor's operating status and speed, the system can avoid unnecessary energy waste and reduce energy consumption. Since the system can precisely control the robot's motion trajectory and speed, it ensures stability and consistency during the production process and improves production efficiency.
[0116] The present invention provides a control method for the rotational motion of two arms, which is used by any control device in the embodiments of the present invention to control the motion of two arms of a robot arm, and the method comprises:
[0117] In response to the rotation instruction of the main control computer, the motion controller communicates with the PLC module, the motor and the rotary encoder respectively through the communication interface to obtain the status information of the PLC module, the motor and the rotary encoder;
[0118] The motion controller sends a command to the motor controller, and the motor controller drives the motor to rotate;
[0119] Obtaining the operating state and position of the two arms of the robot; the operating state includes the angle value, speed value, and twist value of the rotation of the two arms;
[0120] The operation of the motor is adjusted according to the operating state and the position.
[0121] The working principle and effect of the above technical solution are as follows: when the main control computer issues a rotation instruction, the motion controller will immediately respond to this instruction; this instruction may include parameters such as the rotation angle, speed, acceleration, etc. The motion controller communicates with the PLC module, motor and rotary encoder through the communication interface; obtains the overall status information of the system from the PLC module, such as temperature, voltage, system error code, etc.; at the same time, the motion controller obtains the real-time status information of the motor from the motor and rotary encoder, such as current, voltage, temperature, etc., as well as the rotation angle and speed of the two arms of the robot arm; and obtains the real-time position information of the two arms of the robot arm from the rotary encoder, that is, the angle value and distortion value of the rotation of the two arms.
[0122] The motion controller calculates and generates control instructions for the motor based on the received rotation instructions and status information obtained from other devices; these control instructions are sent to the motor controller through the communication interface; the motor controller drives the motor to perform corresponding rotational motion based on the received instructions.
[0123] During the rotation of the motor, the motor controller sends status feedback to the motion controller, including operating status (such as whether it is running normally, whether it is overloaded, etc.) and position feedback (that is, the angle value provided by the rotary encoder).
[0124] At the same time, the motion controller also obtains the speed values of the robotic arms (which may be calculated by the motor speed and transmission ratio) and the distortion values (which may be calculated by special sensors or algorithms) through other sensors.
[0125] The motion controller compares the received feedback information with the preset threshold or expected value to determine whether the robot arms rotate as expected.
[0126] If the feedback information indicates that the rotation state of the robot arm is not consistent with expectations (such as too fast speed, too large angle deviation, distortion, etc.), the motion controller will adjust the control instructions to the motor according to the feedback results. These adjustments include changing the rotation speed, acceleration, direction, etc. of the motor to ensure that the robot arm can rotate according to the preset trajectory and parameters.
[0127] During the entire rotation process, the motion controller will continuously monitor the status of the motor, PLC module, rotary encoder, etc. to ensure that the system can operate stably; if any abnormal situation is found (such as motor overheating, system error, etc.), the motion controller will immediately take corresponding protective measures, such as deceleration, stopping rotation, cutting off power, etc., to avoid system damage or safety accidents.
[0128] Through the above method, high-precision and high-efficiency control of the rotational motion of the two arms can be achieved, ensuring that the robotic arm can perform stable rotational motion according to preset parameters and trajectories.
[0129] In some embodiments, adjusting the operation of the motor according to the operating state and position includes:
[0130] When the two arms of the robot touch the first limit switch, the first limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to decelerate;
[0131] When the two arms of the robot touch the second limit switch, the second limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop;
[0132] When the two arms of the robot touch the third limit switch, the third limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop and cuts off the power supply.
[0133] The working principle of the above technical solution is as follows: the PLC module is the key part of the entire control system, which is responsible for receiving and processing input signals from different sensors and outputting control signals or alarm signals;
[0134] The PLC module receives count inputs from the motor encoder, which reflect the rotation angle and speed of the motor, so that the position and status of the robot arms can be calculated; the PLC module also receives status inputs from the motion controller, which may include the current working status of the motion controller, error codes, etc. The temperature input may be a temperature sensor from the motor or other key components to monitor the thermal state of the system.
[0135] When the robot arm touches the limit switch, the input signal of the limit switch will also be received by the PLC module.
[0136] Based on the analysis and logic processing of the input signal, the PLC module will output a control signal to the motion controller or motor controller to adjust the operating status of the motor. If the system detects an abnormal situation (such as overtemperature, motor failure, etc.), the PLC module will output an alarm signal to remind the operator or trigger other safety measures.
[0137] The motion controller is responsible for the coordinated management of the movement of the two arms of the robot, ensuring that the two arms can move synchronously and coordinately; the motion controller receives control instructions from the PLC module, and sends speed and direction instructions to the motor controller according to these instructions; the motor controller controls the operation of the motor according to these instructions, thereby realizing the rotation and movement of the robot arm; the motion controller receives speed feedback and digital status from the motor controller to monitor the operating status of the motor in real time; these feedback information are used to adjust the control instructions to ensure that the robot can move according to the predetermined trajectory and speed. The status of the two arms of the robot includes the angle value, speed value, and twist value of the two arms.
[0138] Double-arm angle value: The current angle value of the robot's double arms can be calculated through the rotation angle information fed back in real time by the motor encoder and rotary encoder.
[0139] Speed value: Based on the count input and time difference of the motor encoder, the movement speed of the robot arm can be calculated.
[0140] Distortion value: may be calculated through additional sensors or algorithms to reflect whether the robotic arm is twisted or deformed during movement.
[0141] Limit switches are used to protect the robot arm from exceeding the preset range of motion.
[0142] First limit switch: When the two arms of the robot touch the first limit switch, the limit switch feedback signal is given to the PLC module and the motion controller; after receiving the signal, the motion controller will control the movement of the two arms to slow down to prevent the robot from getting too close to the limit position.
[0143] Second limit switch: When both arms of the robot touch the second limit switch, a signal will also be triggered; the motion controller will control the movement of both arms to stop, ensuring that the robot does not exceed the safety range.
[0144] The third limit switch: This is the last line of defense of the robot arm; when the robot arm touches the third limit switch, in addition to controlling the movement of the arms to stop, the motion controller will also cut off the power supply to ensure the safety of the robot arm.
[0145] The effect of the above technical solution is: through the motor encoder and the rotary encoder, the angle value, speed value and possible distortion value of the two arms of the robot are fed back in real time. The system can accurately grasp the real-time status of the robot arm and ensure high-precision operation.
[0146] The design of the limit switch ensures that the robot arm can slow down or stop when it approaches the limit position, avoiding possible collision or damage and improving the safety of the system.
[0147] The PLC module can receive input signals from multiple sensors, perform logical processing based on these signals, and output control signals or alarm signals, making the system more flexible and reliable.
[0148] The motion controller is responsible for the coordinated management of the movement of the two arms of the robot, ensuring that the robotic arms on both sides can move synchronously and coordinatedly, improving the overall performance of the system.
[0149] The design of temperature input enables the system to monitor the temperature of key components in real time and prevent failures due to overheating.
[0150] When an abnormal situation is detected, the PLC module can output an alarm signal to promptly notify the operator or trigger other safety measures to ensure the stable operation of the system.
[0151] By setting the first, second and third limit switches, the system provides multi-level protection for the robot arm; the first limit switch is used to slow down, the second limit switch is used to stop, and the third limit switch is used to cut off the power supply, ensuring a quick response when the robot arm accidentally touches an obstacle to protect the robot arm from damage.
[0152] By precisely controlling the motor's operating status and speed, the system can avoid unnecessary energy waste and reduce energy consumption. Since the system can precisely control the robot's motion trajectory and speed, it ensures stability and consistency during the production process and improves production efficiency.
[0153] In some embodiments, adjusting the operation of the motor according to the operating state and position includes:
[0154] Get the current position and movement information of both arms of the robot;
[0155] When the two arms of the robotic arm move toward the preset area, and the shortest distance between the current position and the preset area is less than or equal to the preset distance threshold, the operation of the motor is adjusted so that the two arms of the robotic arm are adjusted to the preset area at a preset speed; wherein the preset area includes, for example, a position commonly used for treating patients, a position parallel to the treatment bed, i.e., a 90-degree position area, etc.
[0156] The working principle of the above technical solution is as follows: multiple specific areas are preset in the system, which are usually the positions commonly used when treating patients, such as the 90-degree position area parallel to the treatment bed. When the two arms of the manipulator begin to move toward these preset areas, the control system will continuously detect the shortest distance between the current position of the manipulator and the preset area; the system sets a preset distance threshold to determine whether the manipulator is close to the preset area. This threshold is usually set according to actual needs to ensure that the manipulator can start to slow down and accurately adjust the position when approaching the preset area; when it is detected that the shortest distance between the current position of the two arms of the manipulator and the preset area is less than or equal to the preset distance threshold, the control system will trigger the adjustment mechanism; once the adjustment mechanism is triggered, the control system will send instructions to the motor to move the two arms of the manipulator to the preset area at a preset speed. This preset speed is usually slow to ensure that the manipulator can reach the target position smoothly and accurately; during this process, the control system will continuously obtain the real-time position and posture information of the manipulator, and fine-tune the motor based on this information to achieve more accurate positioning. By constantly comparing the real-time position with the target position, the real-time speed with the target speed, etc., the control system can continuously fine-tune the motor to ensure that the robotic arm can accurately reach the preset area.
[0157] The effects of the above technical solution are: real-time acquisition of the current position and posture information of the two arms of the robotic arm; in the particle therapy system, the preset area is usually a common position for treating patients, such as the 90-degree position area parallel to the treatment bed. By precisely controlling the movement of the robotic arm, it can ensure that the radioactive particles are accurately delivered to the target position in the patient's body, thereby improving the accuracy and effect of the treatment. Precise control can avoid unnecessary damage to the patient during treatment, especially when the location and dose of radioactive particles need to be precisely controlled. By optimizing the movement path and speed of the robotic arm, time waste during treatment can be reduced and the overall efficiency of treatment can be improved.
[0158] In summary, by precisely controlling the movement of the robotic arm and combining it with the characteristics and needs of the particle therapy field, we can improve treatment accuracy, reduce patient damage, and improve treatment efficiency, providing strong support for the development of the particle therapy field.
[0159] In some embodiments, the method comprises:
[0160] Feedback the operating status of the two arms of the robot to the PLC module and the motion controller in real time through the motor encoder and the rotary encoder;
[0161] If the feedback results of the motor encoder and the rotary encoder are inconsistent at the same time point, the motion controller issues a stop command and the motor controller stops driving the motor.
[0162] The working principle and effect of the above technical solution are as follows: the motor encoder is used to monitor the rotation state of the motor and provide real-time feedback on the motor's rotation angle, speed and other information.
[0163] The rotary encoder is used to provide real-time feedback on the rotation angle information of the robot's two arms; both encoders will transmit the collected information to the PLC module and motion controller through their respective communication interfaces.
[0164] The motion controller receives feedback data from the motor encoder and the rotary encoder. Normally, since the motor drives the robot to rotate, the feedback data from the motor encoder and the rotary encoder should match each other, that is, the angle of rotation of the motor corresponds to the angle of rotation of the robot; the motion controller will compare the feedback data from the two encoders in real time to confirm whether they are consistent.
[0165] If the feedback from the motor encoder and the rotary encoder are inconsistent at the same time, this may mean that there is some kind of fault or abnormality in the system. For example, the motor may be rotating without properly driving the robot arm, or the robot arm may be moving without being driven by the motor.
[0166] Upon detecting this inconsistency, the motion controller immediately determines that the system is in an unsafe state and triggers safety protection measures.
[0167] The motion controller will send a stop command to the motor controller; after receiving the stop command, the motor controller will immediately stop driving the motor to ensure that the robot arm no longer rotates; after receiving inconsistent feedback data, the PLC module may trigger an alarm signal to notify the operator or maintenance personnel of an abnormality in the system. At the same time, the system may record this event, including the time of occurrence, inconsistent data, etc., to facilitate subsequent troubleshooting and analysis.
[0168] Maintenance personnel can troubleshoot the system based on the alarm signal and recorded information. Possible causes include motor encoder failure, rotary encoder failure, transmission system problems, motor controller problems, etc.
[0169] Through the above control method, it can be ensured that when the feedback data of the motor encoder and the rotary encoder are inconsistent, the system can stop running quickly, thereby avoiding possible damage or safety accidents.
[0170] In some embodiments, the method further comprises:
[0171] If the twist value of both arms of the robot exceeds the preset range;
[0172] The motion controller issues a stop command, and the motor controller stops driving the motor.
[0173] The working principle and effect of the above technical solution are as follows: during the control process of the double-arm rotation movement, in order to prevent the robot arms from being damaged due to excessive twisting or causing an unsafe operating state, the system will monitor the twist values of the robot arms in real time; the "twist value" here refers to the abnormal changes in the relative position between the two arms caused by various reasons (such as load imbalance, mechanical failure, etc.) during the rotation of the two arms of the robot, and the system monitors the twist values of the two arms of the robot arms in real time through sensors or calculation algorithms; wherein, the twist value can be obtained through the rotation angle value of the two arms.
[0174] During the system initialization or configuration phase, a permissible distortion value range is set; this range is determined based on the design parameters of the robot arm, safe operating specifications, and actual operating experience.
[0175] The motion controller receives and processes the distortion value data from the sensor in real time. It compares this data with the preset allowable range; if the detected distortion value exceeds the preset allowable range, the motion controller determines that this is an abnormal situation and needs to take immediate measures to prevent further damage or danger. When it is judged as an abnormal situation, the motion controller will immediately send a stop command to the motor controller.
[0176] When issuing a stop command, the system may trigger an alarm signal to notify the operator or maintenance personnel that the system has an abnormal situation. In addition, the system will also record relevant information about the event, such as the time of occurrence, distortion value, stop command, etc., to facilitate subsequent troubleshooting and analysis.
[0177] In some embodiments, each side of the robotic arm includes two groups of motors, one of which is a master motor and the other is a slave motor. The rotational force directions of the two groups of motors on the same side of the robotic arm are opposite. Each group of motors corresponds to a motion controller, and the motors of the robotic arms on both sides are symmetrically arranged. The operation of the motors is adjusted according to the operating state and position, including:
[0178] The motion controller is used to adjust the distribution of the rotational force of the two groups of motors on the same side to achieve the motion speed control of the two arms of the robot.
[0179] The working principle and effect of the above technical solution are as follows: each side of the mechanical arm contains two groups of motors, one is the main motor and the other is the slave motor; the two groups of motors of the same side of the mechanical arm rotate in opposite directions, and the slave motor drags the main motor, and this dragging effect can offset the vibration and instability factors that may be caused by the rapid movement of the main motor, thereby ensuring the smoothness and stability of the movement of the mechanical arm; each group of motors corresponds to a motion controller to achieve independent control; the motor configuration of the mechanical arms on both sides is symmetrical, that is, the position and function of the main motor and the slave motor of each side of the mechanical arm are the same; this symmetrical setting helps to maintain the balance of the mechanical arm during movement and reduce problems caused by uneven weight distribution or uncoordinated movement; the motion controller is responsible for receiving instructions from the main control computer and adjusting the operation of the motor according to the instructions; when it is necessary to control the movement speed of the two arms of the mechanical arm, the motion controller will adjust the distribution of the rotational force of the two groups of motors on the same side; the distribution of the rotational force directly affects the movement speed of the two arms of the mechanical arm. By adjusting the ratio of the rotational force, the acceleration, uniform motion or deceleration of the two arms of the mechanical arm can be controlled.
[0180] Through the precise distribution and adjustment of the rotational force of the two motors on the same side by the motion controller, combined with real-time feedback and closed-loop control mechanisms, this technical solution can achieve precise control of the movement speed of the robot's two arms. This control method can not only ensure the smooth and stable movement of the robot's two arms, but also quickly adjust the movement speed according to actual needs, thereby improving work efficiency and accuracy.
[0181] In some embodiments, the method further comprises:
[0182] Dynamically adjust the motor control strategy based on the real-time motion data of the robot's dual arms and environmental parameters.
[0183] In some embodiments, dynamically adjusting the control strategy of the motor according to the real-time motion data and environmental parameters of the robot arm includes:
[0184] Collecting motion data of both arms of the robot and corresponding environmental parameters; the motion data includes load, speed, position, and vibration; the environmental parameters include temperature and humidity;
[0185] Based on historical motion data, through machine learning, a speed mapping model of the two arms of the robot and a corresponding relationship model between the motor operating parameters and the speed of the two arms of the robot are established; the operating parameters include the speed of each motor, the power distribution of each motor, etc.;
[0186] The real-time motion data and environmental parameters are combined with the speed mapping model to obtain the expected speed value;
[0187] According to the expected speed value and the corresponding relationship model between the motor operating parameters and the speed of the two arms of the robot, the motor operating parameters are adjusted to adjust the two arms of the robot to the expected speed; at the same time, the positions of the two arms of the robot are monitored.
[0188] The working principle and effect of the above technical solution are:
[0189] The motion data of the robot arm is collected in real time, including key indicators such as load, speed, position, and vibration. The system also monitors environmental parameters such as temperature and humidity. These parameters have an important impact on the motion performance of the robot arm and the operating status of the motor. Using historical motion data, a speed mapping model is established through machine learning algorithms (such as linear regression, neural networks, etc.); this model can predict the optimal speed value based on factors such as the load, position, and environmental parameters of the robot arm. In the process of model building, the impact of different loads, positions, and environmental parameters on speed, as well as their interactions, are fully considered; through a large amount of historical data training and optimization, the accuracy and reliability of the model are ensured; at the same time, using historical motion data, a mapping relationship between motor operating parameters and the speed of the robot arm is established through machine learning algorithms (such as linear regression, neural networks, etc.), which is used to determine how to adjust the motor operating parameters to achieve the desired speed.
[0190] The real-time motion data and environmental parameters are input into the speed mapping model, and the model will output a recommended expected speed value; this expected speed value is calculated based on current conditions and historical data, and is intended to achieve stable and efficient movement of the robot arms; the motor operating parameters are calculated and adjusted according to the expected speed value and the corresponding relationship model between the motor operating parameters and the speed of the robot arms; by accurately controlling the rotation force of each motor, it can be ensured that the robot arms can move at the expected speed; during the whole process, the position of the robot arms is continuously monitored. If there is a deviation between the actual position and the expected position, the control system will adjust the motor operating parameters in real time to correct the deviation and ensure that the robot arms can accurately reach the target position. Taking into account the real-time motion data and environmental parameters, the control system can dynamically adapt to different working conditions and environmental changes; for example, when the ambient temperature rises, the working efficiency of the motor may decrease, and the control system will automatically adjust the motor operating parameters to compensate for this effect.
[0191] The effect of the above technical solution is: the consideration of real-time data and environmental parameters enables the control system to more accurately predict and respond to the movement requirements of the two arms of the manipulator. This helps to reduce errors and improve the positioning accuracy and movement accuracy of the manipulator. Through the speed mapping model and the motor rotation force distribution model established by machine learning, the control system can optimize the motor rotation force distribution according to the current conditions, thereby reducing the vibration and instability of the manipulator; it helps to improve the accuracy of treatment and the comfort of the patient; dynamically adjusting the motor control strategy can ensure that the motor provides sufficient power when needed and reduces the power output when not needed. This helps to reduce energy consumption and improve energy efficiency. The control system can respond to changes in environmental parameters (such as temperature and humidity) in real time and adjust the motor control strategy accordingly. This enables the manipulator to maintain stable performance in different working environments and improves the adaptability and reliability of the system. By accurately controlling the movement of the manipulator, the risk caused by loss of control or misoperation of the manipulator can be reduced. In addition, the optimized distribution of the motor rotation force also helps to reduce mechanical failures caused by excessive stress or overheating; precise and stable manipulator arm movement can improve the accuracy and efficiency of treatment, thereby improving the experience of patients and medical staff. In addition, reducing vibration and noise also helps to improve comfort in use.
[0192] In summary, dynamically adjusting the motor control strategy based on the real-time motion data of the manipulator's arms and environmental parameters can significantly improve the performance and stability of the manipulator, while optimizing energy efficiency and improving safety. This is of great significance for applications such as particle therapy that require high-precision, high-stability manipulators.
[0193] In some embodiments, the method comprises:
[0194] Obtaining the absolute value of the difference between the current speed of the two arms of the robot and the expected speed as the first difference;
[0195] If the first difference is less than or equal to the difference threshold, the current speed of the two arms of the robot is adjusted to the expected speed through the minimum acceleration; wherein the minimum acceleration is obtained through a simulation experiment;
[0196] If the first difference is greater than the difference threshold, the current speed of the motor is adjusted to the second speed by the first acceleration;
[0197] If the absolute value of the difference between the second speed and the expected speed is still greater than the difference threshold, the speed of the two arms of the robot arm is adjusted to the third speed through the second acceleration;
[0198] If the absolute value of the difference between the third speed and the expected speed is still greater than the difference threshold, the speed of the two arms of the manipulator is adjusted to the fourth speed by the third acceleration. This process is repeated until the difference between the intermediate speed and the expected speed is less than or equal to the difference threshold, and the speed of the two arms of the manipulator is adjusted to the expected speed by the minimum acceleration.
[0199] The absolute value of the first acceleration is greater than the absolute value of the second acceleration, and the absolute value of the second acceleration is greater than the absolute value of the third acceleration.
[0200] Among them, the second speed is:
[0201] V2=V C +k*t*a1;
[0202] V3=V2+k*t*a2;
[0203] The first acceleration is a1,
[0204] The second acceleration is a2,
[0205] The third acceleration is a3,
[0206] Among them, V C is the current speed of the robot's double-arm speed; V2 is the second speed; t is the system response time; a1 is the first acceleration, a2 is the second acceleration; a2 is the third acceleration; if the current speed of the robot's double-arm speed is less than the expected speed, the corresponding acceleration takes a positive value; if the current speed of the robot's double-arm speed is greater than the expected speed, the corresponding acceleration takes a negative value; the absolute value of the acceleration adjusted each time does not exceed the maximum value of the acceleration; k is the coefficient, k≥1.
[0207] The working principle of the above technical solution is:
[0208] First, the system calculates the absolute value of the difference between the robot arm's double-arm speed and the expected speed, and this difference is called the first difference.
[0209] If the first difference is less than or equal to a preset difference threshold, it means that the robot arm speed is very close to the expected speed. At this time, the system will use a smaller acceleration (minimum acceleration) to fine-tune the robot arm speed so that it can smoothly reach the expected speed. This minimum acceleration is obtained through simulation experiments to ensure the smoothness and accuracy of speed adjustment.
[0210] If the first difference is greater than the difference threshold, it means that there is a large gap between the speed of the robot arm and the expected speed. At this time, the system needs to adopt a faster adjustment strategy.
[0211] First, the system will use a larger acceleration (first acceleration a1) to quickly adjust the robot arm speed to an intermediate speed (second speed V2). This intermediate speed is calculated by the current rotation speed V C , system response time t and the first acceleration a1, the specific formula is: V2 = V C+k*t*a1. Where k is a coefficient used to adjust the influence of acceleration on speed change, usually k≥1.
[0212] If the difference between the second speed and the expected speed is still greater than the difference threshold, the system will continue to use a smaller acceleration (the second acceleration a2) to further adjust the robot arm speed to another intermediate speed (the third speed V3). The third speed V3 is calculated by the second speed V2, the system response time t and the second acceleration a2, and the specific formula is: V3 = V2 + k*t*a2.
[0213] If the difference between the third speed and the expected speed is still greater than the difference threshold, the system will continue this process, using a smaller acceleration (third acceleration a3, fourth acceleration, etc.) to gradually adjust the speed of the manipulator arms until the difference between a certain intermediate speed and the expected speed is less than or equal to the difference threshold; the direction of the acceleration depends on the relative size of the current speed and the expected speed. If the current speed is less than the expected speed, the acceleration takes a positive value to accelerate the manipulator arms; if the current speed is greater than the expected speed, the acceleration takes a negative value to decelerate the manipulator arms; in order to protect the safety of the motor and the system, the absolute value of the acceleration adjusted each time will not exceed a preset maximum value; when the difference between a certain intermediate speed and the expected speed is less than or equal to the difference threshold, the system will use the minimum acceleration again to fine-tune the speed of the manipulator arms so that it accurately reaches the expected speed.
[0214] This method achieves precise control of the speed of the robot's arms by gradually adjusting the acceleration of the robot's arms, which ensures both the rapidity of the adjustment and the stability and accuracy of the adjustment.
[0215] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any method described in the embodiments of the present invention or the functions of any device described in the embodiments of the present invention are implemented.
[0216] An embodiment of the present invention further provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed, it implements the steps of the method in the embodiment of the present invention or the functions of any device as described in the embodiment of the present invention. Its specific implementation method is consistent with the implementation method and the technical effect achieved recorded in the above-mentioned method embodiment, and some contents will not be repeated here.
[0217] In the present invention, a readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. The program product can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0218] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable storage medium may also be any readable medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or for use in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above. The program code for performing the operation of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as C language or similar programming languages. The program code may be executed entirely on a user computing device, partially on an associated device, as an independent software package, partially on a user computing device, partially on a remote computing device, or entirely on a remote computing device or server. Where a remote computing device is involved, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0219] Ginseng Figure 3As shown, an embodiment of the present invention further provides a radiotherapy device, including a treatment gantry, a particle accelerator for generating a particle beam, a treatment bed for carrying a patient, a scanning magnet (not shown), an ionization chamber (not shown), and a range adjuster (not shown). The radiotherapy device includes a control device for the rotational movement of the double arms of the aforementioned gantry, the treatment gantry includes mechanical arms on both sides and an intermediate arm located between the mechanical arms for fixing a particle accelerator, the particle accelerator may be a cyclotron accelerator, the radiotherapy device may be configured to have no beam transmission line, the particle accelerator is mounted on the treatment gantry and can rotate with the treatment gantry. The treatment gantry may also be referred to as a rotating gantry or simply a gantry, the mechanical arm may also be referred to as a machine arm, the intermediate arm may be a two-section cylindrical structure, and the particle accelerator is fixed between the two-section intermediate arms.
[0220] In some possible ways, the radiotherapy device is a proton therapy device, the particle accelerator can be a proton accelerator, the particle beam can be a proton beam, and the flowing particle beam is referred to as a particle beam. The particle beam transmission system is used to transmit the particle beam from the accelerator to the patient's body. The particle beam transmission system controls the magnetic field to accurately transmit the particle beam to the treatment position to ensure the accurate positioning and transmission of the particle beam. The particle beam transmission system may include components passed during the particle beam transmission process, such as scanning magnets, ionization chambers, adaptive gratings (Adaptive Aperture), etc. The scanning magnet allows the particle beam to move in the X direction and / or Y direction by appropriately changing the magnetic field, and the X direction and the Y direction are perpendicular to each other. The ionization chamber can be used to measure the dose size and / or position of the beam. The adaptive grating can also form an adaptive aperture, which can be adaptively adjusted according to the shape and size of the target area, so that the shape and size of the particle beam can match the morphology of the tumor. The advantage of this adaptive irradiation is that it can better adapt to irregularly shaped tumors and improve the personalization and pertinence of the irradiation plan. The combination of scanning magnets, ionization chambers, range adjusters (also known as range adjusters or range shifters) and adaptive gratings enables precise and flexible radiation therapy for patients.
[0221] The particle accelerator is installed on the treatment gantry and can rotate with it. This integrated design can reduce the complexity of the equipment because there is no need for a beam transmission line, thereby simplifying the structure of the equipment; this also improves the stability of the beam. Radiotherapy equipment does not require a beam transmission line, thereby reducing the maintenance cost and failure rate of the equipment and improving the stability and reliability of the equipment; the movement of the beam is more stable, which helps to maintain the stability of the particle beam and ensure accurate irradiation.
[0222] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, substitute and modify the above embodiments within the scope of the invention without departing from the principles and purpose of the present invention. All such changes should fall within the scope of protection of the claims of the present invention.
Claims
1. A control device for the rotational movement of double arms of a frame, characterized in that: The device comprises: A main control computer, a PLC module, a motor controller, a motion controller, a limit switch, a rotary encoder and multiple motors; the multiple motors are respectively arranged on the two arms of the robot; the motors include a motor encoder and a reduction box; the two arms of the robot are located on both sides of the frame; The main control computer is used to send control instructions to the motion controller through the PLC module; The limit switch is used to feedback signals to the PLC module and motion controller; The motor encoder and the rotary encoder are used to provide real-time feedback on the operating status of the two arms of the robot; The motion controller is configured to respond to control instructions from the main control computer and control the operation of the motor through a motor controller, wherein the operation of the motor includes: motor start and stop, regional speed control, and rotation.
2. The device according to claim 1, characterized in that Each side of the robotic arm includes two groups of motors. The rotational force directions of the two groups of motors on the same side of the robotic arm are opposite. Each group of motors corresponds to a motion controller, and the motors of the robotic arms on both sides are symmetrically arranged.
3. The control device according to claim 1, characterized in that: The PLC module is used to receive count input from a motor encoder, status input from a motion controller, temperature input, and limit switch input; the PLC module is also used to output an alarm signal.
4. The control device according to claim 1, characterized in that: The motion controller is also used for coordinating the movement of the two arms of the robot; the motion controller sends speed and direction instructions to the motor controller, and receives speed feedback and digital status from the motor controller. The status of the two arms of the robot includes: two-arm angle value, speed value and twist value.
5. The control device according to claim 1, characterized in that: The control device includes a plurality of limit switches; When the two arms of the robot touch the first limit switch, the first limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to decelerate; When the two arms of the robot touch the second limit switch, the second limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop; When the two arms of the robot touch the third limit switch, the third limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop and cuts off the power supply.
6. A method for controlling the rotational motion of a rack double arm, characterized in that: The method for controlling the motion of two arms of a robot arm using the control device according to any one of claims 1 to 5 comprises: In response to the rotation instruction of the main control computer, the motion controller communicates with the PLC module, the motor and the rotary encoder respectively through the communication interface to obtain the status information of the PLC module, the motor and the rotary encoder; The motion controller sends a command to the motor controller, and the motor controller drives the motor to rotate; Obtaining the operating state and position of the two arms of the robot; the operating state includes the angle value, speed value, and twist value of the rotation of the two arms; The operation of the motor is adjusted according to the operating state and the position.
7. The control method according to claim 6, characterized in that: The step of adjusting the operation of the motor according to the operating state and the position includes: When the two arms of the robot touch the first limit switch, the first limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to decelerate; When the two arms of the robot touch the second limit switch, the second limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop; When the two arms of the robot touch the third limit switch, the third limit switch feeds back a signal to the PLC module and the motion controller, and the motion controller controls the movement of the two arms to stop and cuts off the power supply.
8. The control method according to claim 6, characterized in that: The step of adjusting the operation of the motor according to the operating state and the position includes: Get the current position and movement information of both arms of the robot; When the two arms of the robot move toward the preset area, and the shortest distance between the current position and the preset area is less than or equal to the preset distance threshold, the operation of the motor is adjusted so that the two arms of the robot are adjusted to the preset area at a preset speed.
9. The control method according to claim 6, characterized in that: The method comprises: Feedback the operating status of the two arms of the robot to the PLC module and the motion controller in real time through the motor encoder and the rotary encoder; If the feedback results of the motor encoder and the rotary encoder are inconsistent at the same time point, the motion controller issues a stop command and the motor controller stops driving the motor.
10. The control method according to claim 6, characterized in that: The method further comprises: If the twist value of both arms of the robot exceeds the preset range; The motion controller issues a stop command, and the motor controller stops driving the motor.
11. The control method according to claim 6, characterized in that: Each side of the mechanical arm includes two groups of motors, the rotational force directions of the two groups of motors of the same side of the mechanical arm are opposite, each group of motors corresponds to a motion controller, and the motors of the mechanical arms on both sides are symmetrically arranged; the operation of the motors is adjusted according to the operating state and position, including: The motion controller is used to adjust the distribution of the rotational force of the two groups of motors on the same side to achieve the motion speed control of the two arms of the robot.
12. The control method according to claim 11, characterized in that: The method further comprises: Dynamically adjust the motor control strategy based on the real-time motion data of the robot's dual arms and environmental parameters.
13. The control method according to claim 12, characterized in that: The method of dynamically adjusting the control strategy of the motor according to the real-time motion data of the two arms of the robot and the environmental parameters includes: Collecting motion data of both arms of the robot and corresponding environmental parameters; the motion data includes load, speed, position, and vibration; the environmental parameters include temperature and humidity; Based on historical motion data, through machine learning, a speed mapping model of the robot's dual arms and a corresponding relationship model between the motor operating parameters and the speed of the robot's dual arms are established; The real-time motion data and environmental parameters are combined with the speed mapping model to obtain the expected speed value; according to the expected speed value and the corresponding relationship model between the motor operating parameters and the speed of the two arms of the robotic arm, the motor operating parameters are adjusted to adjust the two arms of the robotic arm to the expected speed; and the position of the two arms of the robotic arm is monitored at the same time.
14. The control method according to claim 13, characterized in that: The method comprises: Obtaining the absolute value of the difference between the current speed of the two arms of the robot and the expected speed as the first difference; If the first difference is greater than the difference threshold, the current speed of the two arms of the robot is adjusted to the second speed by the first acceleration; If the absolute value of the difference between the second speed and the expected speed is still greater than the difference threshold, the speed of the two arms of the robot arm is adjusted to the third speed through the second acceleration; The absolute value of the first acceleration is greater than the absolute value of the second acceleration.
15. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the function of any device described in claims 1-5 or the steps of any method described in claims 6-14 when executing the computer program.
16. A computer-readable storage medium, characterized in that: The storage medium stores computer instructions. When a computer reads the computer instructions, the computer implements the functions of the device described in any one of claims 1 to 5 or executes the steps of the method described in any one of claims 6 to 14.
17. A radiotherapy device, characterized in that: The radiotherapy equipment comprises the control device for the rotational movement of the double arms of the gantry according to any one of claims 1-5.
Citation Information
Patent Citations
Dwelling unmanned aerial vehicle with empennage components and slidable wings
CN111216886A
Control method of rotary rack of particle rotary treatment room
CN112612227A
Multi-manipulator cooperative control method and system
CN115570568A
Compliant control method and device for on-orbit assembly of double-arm robot
CN117182929A
Radiotherapy equipment, rotating device, and control device and method of rotating device
CN118079255A
