Motor safety control system and control method
By introducing servo drives and safety encoders into the motion control system, the motor speed and position information is obtained and safety instructions are fed back, which solves the problem of the inability to monitor the motor deceleration and shutdown processes in the existing technology, and achieves safe control and production of motor operation. Improvement of efficiency.
Patent Information
- Application Number
- CN202110451140.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-26
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-04-26
AI Technical Summary
The existing motion control system cannot effectively monitor the motor deceleration and shutdown processes, resulting in insufficient safety and unable to ensure safe control of the motor during shutdown or deceleration.
Design a motor safety control system, including a servo driver and a safety encoder. By obtaining the current speed and position information of the motor, it is sent to the host computer to feedback safety function instructions, and the motor is safely controlled according to the instructions to ensure that the motor is stopped or Safety when decelerating.
It realizes real-time monitoring and safety control of the motor's operation process, reduces unnecessary downtime, improves production efficiency, and meets the requirements of safety integrity level.
Smart Images

Figure CN113193811B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of motion control systems, and in particular to a motor safety control system and a control method. Background Art
[0002] As the industrial field environment continues to upgrade, the safety requirements for industrial application sites are getting higher and higher. Functional safety is becoming more and more important. Functional safety means that there is no unreasonable risk caused by dangers caused by the failure of electronic and electrical systems. When performing relevant functional safety designs in the field of motion control, monitoring the motor deceleration process, reducing the motor feed distance, and ensuring the safe state of production can improve production efficiency. Therefore, monitoring the motor speed is a relatively important safety function.
[0003] In current applications, some motion control systems only have a motor safe torque off (STO) design, which can achieve safe shutdown of the motor torque in dangerous conditions of the servo system. However, it cannot guarantee that the motor is safely controlled during deceleration or during shutdown, and lacks monitoring of the operation process and deceleration process.
[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present invention is to provide a motor safety control system and control method, aiming to solve the technical problem that the existing motion control system cannot effectively perform safety detection on the motor shutdown or deceleration process.
[0006] To achieve the above object, the present invention provides a motor safety control system, the system comprising: a servo drive and a safety encoder; wherein:
[0007] The safety encoder is used to obtain the current speed information and the current position information of the servo motor, and output the current speed information and the current position information to the servo driver;
[0008] The servo driver is used to send the current speed information and the current position information to the host computer, so that the host computer feeds back corresponding safety function instructions according to the current speed information and the current position information;
[0009] The servo driver is further used to receive the safety function instruction and perform safety control on the servo motor according to the safety function instruction.
[0010] Optionally, the servo driver includes a drive board, a control board and a safety module board; wherein,
[0011] The safety module board is used to receive the current speed information and the current position information, perform data verification on the current speed information and the current position information, and send the verified current speed information and the current position information to the host computer, so that the host computer feeds back safety function instructions according to the current speed information and the current position information;
[0012] The safety module board is further used to receive the safety function instruction, generate instruction information according to the safety function instruction, and send the instruction information to the control board;
[0013] The control board is used to generate a driving electrical signal according to the instruction information, and output the driving electrical signal to the driving board, so that the driving board can safely control the servo motor.
[0014] Optionally, the control board includes a safety torque unit and a memory; the controlled end of the safety torque unit is connected to the control end of the external safety switch, and the output end of the safety torque unit is connected to the controlled end of the driving board;
[0015] The memory is used to store function code information corresponding to each safety function instruction;
[0016] The safety torque unit is used to receive the instruction information sent by the external safety switch or the safety module board, and search for the corresponding target function code in all function code information according to the instruction information;
[0017] The safety torque unit is further used to output a target drive electrical signal to the drive board according to the instruction information and the target function code, so that the drive board can safely control the servo motor according to the target drive electrical signal.
[0018] Optionally, the safety torque unit is further used to output a shutdown control signal to the drive board when the instruction information corresponds to a safety torque off function code of the servo motor, so that the drive board controls the servo motor to stop according to the shutdown control signal.
[0019] Optionally, the safety encoder includes a light detection unit, a signal conversion unit and a calculation unit; wherein,
[0020] The optical detection unit is used to detect the current rotation position of the servo motor through an optical signal to obtain a position electrical signal, and output the position electrical signal to the signal conversion unit;
[0021] The signal conversion unit is used to perform signal processing on the position electrical signal and output the processed position electrical signal to the calculation unit;
[0022] The calculation unit is used to obtain the current speed information and the current position information of the servo motor according to the processed position electrical signal, and send the current speed information and the current position information to the control board.
[0023] Optionally, the computing unit includes a first micro control unit and a second micro control unit;
[0024] The first micro control unit is used to obtain first speed information and first position information according to the processed position electrical signal;
[0025] The second micro control unit is used to obtain second speed information and second position information according to the processed position electrical signal, and output the second speed information and the second position information to the first micro control unit;
[0026] The first micro control unit is also used to verify the speed information and the position information respectively, and use the verification results as the current speed information and the current position information of the servo motor, and send the current speed information and the current position information to the control board through the 485 interface.
[0027] Optionally, the light detection unit includes an LED lamp, a photoelectric encoder and a photocell; the photoelectric encoder is arranged on the rotor shaft of the servo motor, the receiving end of the photocell faces the irradiation direction of the LED lamp, and the output end of the photocell is connected to the signal conversion unit;
[0028] The photoelectric encoder is driven to rotate by the rotor shaft of the servo motor;
[0029] The LED lamp is used to emit light when the rotor shaft rotates, so as to illuminate the photoelectric encoder disk;
[0030] The photocell is used to receive the optical signal passing through the photoelectric encoder, convert the optical signal into an electrical position signal, and output the position signal to the signal conversion unit.
[0031] Optionally, the servo drive and the safety encoder are further used to perform self-detection after power-on, and when the self-detection result is no fault and the safety function is invalid, enter the safety function removal operation state;
[0032] The servo driver is further used to stop outputting a drive signal to the servo motor when receiving an external configuration request in a safety function removal operation state, and to obtain configuration information according to the external configuration request and write the configuration information into a memory.
[0033] In addition, to achieve the above-mentioned purpose, the present invention further proposes a motor safety control system control method, the control method is based on the motor safety control system as described above, the motor safety control method comprises:
[0034] The safety encoder acquires current speed information and current position information of the servo motor, and outputs the current speed information and the current position information to the servo driver;
[0035] The servo driver sends the current speed information and the current position information to the host computer, so that the host computer feeds back corresponding safety function instructions according to the current speed information and the current position information;
[0036] The servo driver receives the safety function instruction and performs safety control on the servo motor according to the safety function instruction.
[0037] Optionally, the safety function instruction includes a first safety function instruction; and the method further includes:
[0038] When receiving the first safety function instruction, the servo driver controls the servo motor to decelerate, and cuts off the output to the servo motor when the current speed information meets the first preset condition.
[0039] Optionally, the safety function instruction includes a second safety function instruction; and the method further includes:
[0040] When receiving the second safety function instruction, the servo driver controls the servo motor to decelerate, and when the current speed information meets the second preset condition, controls the servo motor to stop at the position specified by the second safety function instruction, and continuously outputs torque to resist external force so that the servo motor remains in a stopped state.
[0041] Optionally, the method further includes: when the current speed information exceeds a preset value, the servo driver stops outputting to the servo motor.
[0042] Optionally, the method further includes: when the current speed information exceeds a preset range, the servo driver outputs a safety signal to the host computer.
[0043] Optionally, the method further comprises: the servo drive and the safety encoder perform self-detection after power-on, and when the self-detection result is no fault and the safety function is invalid, enter the safety function removal operation state;
[0044] When the servo driver receives an external configuration request in the safety function removed running state, it stops outputting a drive signal to the servo motor, obtains configuration information according to the external configuration request, and writes the configuration information into a memory.
[0045] The present invention sets up a motor safety control system, the system includes: a servo driver and a safety encoder; wherein the safety encoder is used to obtain the current speed information and current position information of the servo motor, and output the current speed information and the current position information to the servo driver; the servo driver is used to send the current speed information and the current position information to the host computer, so that the host computer can feedback the corresponding safety function instruction according to the current speed information and the current position information; the servo driver is also used to receive the safety function instruction, and perform safety control on the servo motor according to the safety function instruction. The present invention controls the motor speed through the above system by combining software and hardware, greatly improves the production efficiency of the industrial site, reduces unnecessary downtime, can control the speed and direction of the motor in real time during operation, ensure that the running state of the motor is in the monitorable safety state range in real time, and can meet the safety integrity level requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 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. The drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0047] Figure 1 It is a first structural schematic diagram of an embodiment of a motor safety control system of the present invention;
[0048] Figure 2 A second structural schematic diagram of an embodiment of a motor safety control system of the present invention;
[0049] Figure 3 A schematic diagram of the structure of a safety encoder of an embodiment of a motor safety control system of the present invention;
[0050] Figure 4 FIG. 1 is a flow chart of a first embodiment of a motor safety control method according to the present invention.
[0051] Description of Figure Numbers:
[0052] Label name Label name 100 Servo Drives MCU1~MCU5 First to fifth micro control units 200 Safety encoder D LED Light M Servo Motor A Operational Amplifier 101 Driver board C Comparator 102 Control Panel Cell Photocell 103 Safety module board Disk Photoelectric encoder PLC Logic Controller LDO1~LDO2 First to second low dropout linear regulator SS External safety switch FPGA Field Programmable Gate Array 1021 Memory 201 Computational Unit 1022 Safe torque unit 202 Light detection unit 000 Motor safety control system 203 Signal conversion unit
[0053] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0054] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0055] Reference Figure 1 , Figure 1 It is a first structural schematic diagram of an embodiment of a motor safety control system of the present invention;
[0056] To achieve the above object, the present invention provides a motor safety control system, the system comprising: a servo driver 100 and a safety encoder 200; wherein,
[0057] The safety encoder 200 is used to obtain current speed information and current position information of the servo motor M, and output the current speed information and the current position information to the servo driver 100 .
[0058] It should be noted that, in the present embodiment, the safety encoder 200 is a photoelectric encoder, but the safety encoder 200 is not limited thereto, and can also be, for example, a magnetic encoder, a rotary transformer, etc., as long as it can achieve the acquisition of the current speed information and current position information of the servo motor M. Here, only the photoelectric encoder is used as an example for explanation. It should also be noted that both the absolute encoder and the incremental encoder can be arbitrarily selected as needed. The detection end of the safety encoder 200 detects the servo motor M through an optical signal, and converts the optical signal into an electrical signal, and calculates the real-time position information and speed information of the servo motor M according to the electrical signal. The safety encoder 200 is connected to the servo driver 100 through, for example, a 485 interface (a 485 communication interface, using balanced transmission and differential reception, with the function of suppressing common-mode interference), and outputs the current speed information and the current position information to the servo driver 100 through a specific communication protocol (such as the Huitong communication protocol, a communication protocol between an encoder and a driver).
[0059] The servo driver 100 is used to send the current speed information and the current position information to a host computer (for example, a logic controller PLC, Programmable Logic Controller, see Figure 1 , Figure 1 The host computer is a logic controller PLC. This embodiment is described by taking the host computer as a logic controller as an example. In the specific implementation, the type of host computer can be selected according to actual needs, and this embodiment does not limit this), so that the logic controller PLC can feedback corresponding safety function instructions according to the current speed information and the current position information.
[0060] It should be noted that the servo driver 100 also has a computing function, which obtains the motor position information from the safety encoder 200 in real time, performs calculation and verification to ensure accurate motor position and speed information, and monitors in real time whether there is any external command input.
[0061] The servo driver 100 is further configured to receive the safety function instruction and perform safety control on the servo motor M according to the safety function instruction.
[0062] It is easy to understand that the safety function instruction can be input by the logic controller PLC, or can be issued directly by the user through an external safety switch (Safety Switch). The logic controller PLC and the servo driver 100 are connected together through, for example, the EtherCAT functional safety protocol (FSOE, Fail Safe over EtherCAT). When receiving the safety function instruction that triggers functions such as SS1, SS2, SLS, SDI, SSM, etc., the servo driver 100 performs logical judgment and processing on the safety function instruction to obtain the corresponding instruction information, and performs the shutdown processing or speed and running direction control corresponding to the safety function instruction on the motor according to the instruction information.
[0063] Further, refer to Figure 2 , Figure 2 The second structural diagram of an embodiment of the motor safety monitoring system of the present invention; the servo driver 100 includes a drive board 101, a control board 102 and a safety module board 103; wherein,
[0064] The safety module board 103 is used to receive the current speed information and the current position information, perform data verification on the current speed information and the current position information, and send the verified current speed information and current position information to the logic controller PLC, so that the logic controller PLC can feedback safety function instructions according to the current speed information and the current position information.
[0065] The safety module board 103 includes a third microcontroller unit MCU3, a fourth microcontroller unit MCU4 and a microcontroller unit peripheral circuit. The two microcontroller units communicate with each other through a serial communication interface protocol (Serial Communication Interface, SCI), and communicate with the outside through a DIDO port (Digital in, DI, digital input port; Digital out, DO, digital output port). A dual-chip architecture is formed inside the safety module board, and a 5V power supply is provided by the control board 102. The first microcontroller unit MCU1 and the safety encoder 200 transmit data through the Huitong communication protocol.
[0066] The safety module board 103 is further used to receive the safety function instruction, generate instruction information according to the safety function instruction, and send the instruction information to the control board 102;
[0067] It is easy to understand that when the logic controller PLC inputs a safety function instruction, the first micro control unit MCU1 processes the safety function instruction, obtains instruction information, and outputs the instruction information to the control board 102 .
[0068] The control board 102 is used to generate a driving electrical signal according to the instruction information, and output the driving electrical signal to the driving board 101, so that the driving board 101 can safely control the servo motor M.
[0069] The control board 102 includes a safety torque unit 1022 and a memory 1021; the controlled end of the safety torque unit 1022 is connected to the control end of the external safety switch SS, and the output end of the safety torque unit 1022 is connected to the controlled end of the driving board 101;
[0070] The memory 1021 is used to store function code information corresponding to each safety function instruction; the memory 1021 can be an electrically erasable programmable read only memory (EEPROM) for storing function codes and external instruction information related to safety functions.
[0071] The safety torque unit 1022 is used to receive the instruction information sent by the external safety switch SS or the safety module board 103, and search for the corresponding target function code in all function code information according to the instruction information;
[0072] The safety torque unit 1022 is further used to output a target drive electrical signal to the drive board 101 according to the instruction information and the target function code, so that the drive board 101 can safely control the servo motor M according to the target drive electrical signal.
[0073] It should be noted that the safety torque unit 1022 includes an STO input module and an STO buffer module, which are used to generate a control signal related to the STO state and send it to the driving board 101 .
[0074] The safety torque unit 1022 is further used to output a shutdown control signal to the drive board 101 when the instruction information corresponds to the safety torque off function code of the servo motor M, so that the drive board 101 controls the servo motor M to stop according to the shutdown control signal.
[0075] It is easy to understand that the driving board 101 also includes a Braking module, which mainly controls whether the servo motor M chooses to enter a braking state (braking state) after the corresponding SS1 or SS2 function is triggered.
[0076] It should also be noted that the control board 102 also includes a fifth microcontroller unit MCU5 and a field programmable gate array (FPGA), which act as a black channel to receive data input by the security encoder 200, but do not process the data accordingly, but forward the data to the third and fourth microcontroller units in the security module board 103 for processing. The third and fourth microcontroller units send the processed data to the black channel and forward it to the control board 102.
[0077] It should be noted that the safety request information of the logic controller PLC is also transmitted to the safety module board 103 through the black channel, and the corresponding debugging parameters of the background software are also transmitted to the safety module board 103 through the fifth microcontroller unit MCU5 on the control board 102 for debugging and parameter setting of related functions.
[0078] Furthermore, to accurately obtain the real-time motor speed and position, refer to Figure 3 , Figure 3 The safety encoder structure diagram of an embodiment of the motor safety control system of the present invention is shown in FIG. 2 ; the safety encoder 200 includes a light detection unit 202 , a signal conversion unit 203 and a calculation unit 201 ; wherein,
[0079] The optical detection unit 202 is used to detect the current rotation position of the servo motor M through an optical signal to obtain a position electrical signal, and output the position electrical signal to the signal conversion unit 203;
[0080] The signal conversion unit 203 is used to perform signal processing on the position electrical signal and output the processed position electrical signal to the calculation unit 201;
[0081] The calculation unit 201 is used to obtain the current speed information and the current position information of the servo motor M according to the processed position electrical signal, and send the current speed information and the current position information to the control board 102 .
[0082] The computing unit 201 includes a first micro control unit MCU1 and a second micro control unit MCU2;
[0083] The first micro control unit MCU1 is used to obtain first speed information and first position information according to the processed position electrical signal;
[0084] The second micro control unit MCU2 is used for acquiring second speed information and second position information according to the processed position electrical signal, and outputting the second speed information and the second position information to the first micro control unit MCU1;
[0085] The first micro control unit MCU1 is also used to verify the speed information and the position information respectively, and use the verification results as the current speed information and the current position information of the servo motor M, and send the current speed information and the current position information to the control board 102 through the 485 interface.
[0086] It should be noted that the first microcontroller unit MCU1 and the second microcontroller unit MCU2 are respectively supplied with power by different low voltage drop linear regulators. At the same time, the first microcontroller unit MCU1 and the second microcontroller unit MCU2 also monitor their corresponding low voltage drop linear regulators. The servo driver 100 provides 5V power supply for the safety encoder 200.
[0087] The light detection unit 202 includes an LED lamp D, a photoelectric encoder disk Disk and a photocell Cell; the photoelectric encoder disk Disk is arranged on the rotor shaft of the servo motor M, the receiving end of the photocell Cell faces the irradiation direction of the LED lamp D, and the output end of the photocell Cell is connected to the signal conversion unit 203;
[0088] The photoelectric code disk Disk is driven to rotate by the rotor shaft of the servo motor M; Figure 4 It can be seen that the photoelectric code disk Disk is engraved with multiple concentric code tracks, and each code track has light-transmitting and light-impermeable parts arranged according to a preset rule.
[0089] The LED lamp D is used to emit light when the rotor shaft rotates, so as to illuminate the photoelectric encoder disk Disk;
[0090] It should be noted that when the photoelectric code disk Disk is driven to rotate, the light emitted by the LED lamp D is blocked. The faster the rotor shaft rotates, the better the blocking effect, and the weaker the light signal collected by the photocell Cell. Based on this principle, the rotation angle of the rotor shaft can be obtained, thereby obtaining the position information of the servo motor M.
[0091] The photocell Cell is used to receive the optical signal passing through the photoelectric encoder disk Disk, convert the optical signal into an electrical position signal, and output the position signal to the signal conversion unit 203 .
[0092] The signal conversion unit 203 includes an operational amplifier A and a comparator C, which are used to enhance the received signal to improve the accuracy of the monitoring result.
[0093] The servo driver 100 and the safety encoder 200 are also used to perform self-detection after power-on, and when the self-detection result is no fault and the safety function is invalid, enter the safety function removal operation state;
[0094] The servo driver 100 is further configured to stop outputting a drive signal to the servo motor M when receiving an external configuration request in the safety function removal operation state, and to obtain configuration information according to the external configuration request and write the configuration information into the memory 1021 .
[0095] It should be noted that after the system is powered on, the control board 102 and the safety module board 103 are initialized. After the initialization is successful, if there is no internal fault, the system enters the ready state. At this time, the system is in the STO state and the motor cannot run. In this state, the power supply and device faults are detected by each microcontroller unit in the system. After all the tests are normal, the servo drive 100 can enter the running state. The running state contains two states, safe operation and normal operation.
[0096] It is easy to understand that when the safety function is effective, the system enters the normal operating state; when the safety function is removed from the operating state, the system enters the safe operating state. At this time, if the system has an external configuration request, the system will cut off the pulse width modulation signal of the servo motor M, write the corresponding configuration information into the memory, and store the relevant parameters; if the system enters the STO state, the entire system will stop working until the system power is cut off.
[0097] This embodiment uses the above-mentioned system to control the motor speed by combining software and hardware, which greatly improves the production efficiency of industrial sites and reduces unnecessary downtime. It can control the speed and direction of the motor in real time during operation, ensure that the operating state of the motor is within a monitorable safe state range in real time, and meet the safety integrity level requirements.
[0098] In addition, to achieve the above purpose, the present invention also proposes a motor safety control method. Figure 4 FIG. 1 is a flow chart of a first embodiment of a motor safety control method according to the present invention.
[0099] The control method is based on the motor safety control system as described above, and the method comprises:
[0100] Step S10: the safety encoder acquires the current speed information and the current position information of the servo motor, and outputs the current speed information and the current position information to the servo driver;
[0101] It is easy to understand that the types of safety functions and corresponding functions have been explained in the above embodiments and will not be described in detail here.
[0102] It should be noted that the detection end of the safety encoder 200 detects the servo motor M through an optical signal, converts the optical signal into an electrical signal, and calculates the real-time position information and speed information of the servo motor M based on the electrical signal. The safety encoder 200 is connected to the servo driver 100 through a 485 interface, and outputs the current speed information and the current position information to the servo driver 100 through the Huitong communication protocol.
[0103] Step S20: the servo driver sends the current speed information and the current position information to the logic controller, so that the logic controller feeds back corresponding safety function instructions according to the current speed information and the current position information;
[0104] It should be noted that the servo driver 100 also has a computing function, which obtains the motor position information from the safety encoder in real time, performs calculation and verification to ensure accurate motor position and speed information, and monitors in real time whether there is any external command input.
[0105] Step S30: the servo driver receives the safety function instruction, and performs safety control on the servo motor according to the safety function instruction.
[0106] It is easy to understand that the safety function instruction can be input by the logic controller PLC (Programmable Logic Controller) or issued by the user directly through an external safety switch (SafetySwitch). The logic controller PLC and the servo driver 100 are connected together through the EtherCAT functional safety protocol (FSOE, Fail Safe over EtherCAT). When receiving the safety function instruction that triggers functions such as SS1, SS2, SLS, SDI, SSM, etc., the servo driver 100 performs logical judgment and processing on the safety function instruction to obtain the corresponding instruction information, and performs the shutdown processing or speed and running direction control corresponding to the safety function instruction on the motor according to the instruction information.
[0107] The method further comprises:
[0108] The servo drive and the safety encoder perform self-detection after power-on, and when the self-detection result is no fault and the safety function is invalid, enter the safety function removal operation state;
[0109] When the servo driver receives an external configuration request in the safety function removed running state, it stops outputting a drive signal to the servo motor, obtains configuration information according to the external configuration request, and writes the configuration information into a memory.
[0110] It should be noted that after the system is powered on, the control board 102 and the safety module board 103 are initialized. After the initialization is successful, if there is no internal fault, the system enters the ready state. At this time, the system is in the STO state and the motor cannot run. In this state, the power supply and device faults are detected by each microcontroller unit in the system. After all the tests are normal, the servo drive 100 can enter the running state. The running state contains two states, safe operation and normal operation.
[0111] It is easy to understand that when the safety function is effective, the system enters the normal operating state; when the safety function is removed from the operating state, the system enters the safe operating state. At this time, if the system has an external configuration request, the system will cut off the pulse width modulation signal of the servo motor M, write the corresponding configuration information into the memory, and store the relevant parameters; if the system enters the STO state, the entire system will stop working until the system power is cut off.
[0112] Further, the safety function instruction includes a first safety function instruction; and the method further includes:
[0113] When receiving the first safety function instruction, the servo driver controls the servo motor to decelerate, and cuts off the output to the servo motor when the current speed information meets the first preset condition.
[0114] It should be noted that the first preset condition can be that when the current speed information reaches a preset value, the output to the servo motor is cut off, so that the motor stops and the system enters a safe state. The preset value is set according to the actual needs of the motor, and this is not limited in this embodiment.
[0115] Further, the safety function instruction includes a second safety function instruction; and the method further includes:
[0116] When receiving the second safety function instruction, the servo driver controls the servo motor to decelerate, and when the current speed information meets the second preset condition, controls the servo motor to stop at the position specified by the second safety function instruction, and continuously outputs torque to resist external force so that the servo motor remains in a stopped state.
[0117] It should be noted that the second preset condition may be that when the motor speed reaches 0 or the delay arrives, the system enters the motor safe torque off state (Safe Torque Off, STO), the motor output torque is reliably shut off, and the system enters a safe state.
[0118] Furthermore, the method further includes: when the current speed information exceeds a preset value, the servo driver stops outputting to the servo motor.
[0119] It should be noted that the preset value is different from the preset value mentioned above and is set according to the actual requirements of the motor, which is not limited in this embodiment.
[0120] Furthermore, the method further includes: when the current speed information exceeds a preset range, the servo driver outputs a safety signal to the host computer.
[0121] It should be noted that in the process of monitoring the direction of motor operation, when the motor operation direction is inconsistent with the preset direction, the motor safety monitoring system will feed back the fault information to the host computer; when the current speed information of the motor exceeds the preset range, a safety signal will be output to the host computer to inform the host computer of the motor fault; the preset range is set according to the actual needs of the motor, and this is not limited in this embodiment.
[0122] This embodiment uses the above-mentioned control method to monitor the motor speed by combining software and hardware, which greatly improves the production efficiency of industrial sites and reduces unnecessary downtime. It can monitor the speed and direction of the motor during operation in real time to ensure that the operating status of the motor is within the monitorable safe state range in real time and can meet the safety integrity level requirements.
[0123] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0124] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0125] In addition, for technical details that are not described in detail in this embodiment, reference can be made to the motor safety control system provided in any embodiment of the present invention, and will not be repeated here.
[0126] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0127] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0129] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A motor safety control system, characterized in that: The system comprises: a servo drive and a safety encoder; wherein, The safety encoder is used to obtain the current speed information and the current position information of the servo motor, and output the current speed information and the current position information to the servo driver; The servo driver is used to send the current speed information and the current position information to the host computer, so that the host computer feeds back corresponding safety function instructions according to the current speed information and the current position information; The servo driver is further used to receive the safety function instruction and perform safety control on the servo motor according to the safety function instruction; The servo driver is also used to control the servo motor to decelerate when receiving a second safety function instruction, and when the speed corresponding to the current speed information reaches zero, control the servo motor to stop at the position specified by the second safety function instruction, and continuously output torque to resist external force so that the servo motor remains in a stopped state.
2. The motor safety control system according to claim 1, characterized in that: The servo driver includes a drive board, a control board and a safety module board; wherein, The safety module board is used to receive the current speed information and the current position information, perform data verification on the current speed information and the current position information, and send the verified current speed information and the current position information to the host computer, so that the host computer feeds back safety function instructions according to the current speed information and the current position information; The safety module board is further used to receive the safety function instruction, generate instruction information according to the safety function instruction, and send the instruction information to the control board; The control board is used to generate a driving electrical signal according to the instruction information, and output the driving electrical signal to the driving board, so that the driving board can safely control the servo motor.
3. The motor safety control system according to claim 2, characterized in that: The control board includes a safety torque unit and a memory; the controlled end of the safety torque unit is connected to the control end of the external safety switch, and the output end of the safety torque unit is connected to the controlled end of the driving board; The memory is used to store function code information corresponding to each safety function instruction; The safety torque unit is used to receive the instruction information sent by the external safety switch or the safety module board, and search for the corresponding target function code in all function code information according to the instruction information; The safety torque unit is further used to output a target drive electrical signal to the drive board according to the instruction information and the target function code, so that the drive board can safely control the servo motor according to the target drive electrical signal.
4. The motor safety control system according to claim 3, characterized in that: The safety torque unit is further used to output a shutdown control signal to the drive board when the instruction information corresponds to a safety torque off function code of the servo motor, so that the drive board controls the servo motor to stop according to the shutdown control signal.
5. The motor safety control system according to claim 1, characterized in that: The safety encoder includes a light detection unit, a signal conversion unit and a calculation unit; wherein, The optical detection unit is used to detect the current rotation position of the servo motor through the optical signal to obtain the position electrical signal, and output the position electrical signal to the signal conversion unit; The signal conversion unit is used to perform signal processing on the position electrical signal and output the processed position electrical signal to the calculation unit; The calculation unit is used to obtain the current speed information and the current position information of the servo motor according to the processed position electrical signal, and send the current speed information and the current position information to the servo driver.
6. The motor safety control system according to claim 5, characterized in that: The computing unit includes a first microcontroller unit and a second microcontroller unit; The first micro control unit is used to obtain first speed information and first position information according to the processed position electrical signal; The second micro control unit is used to obtain second speed information and second position information according to the processed position electrical signal, and output the second speed information and the second position information to the first micro control unit; The first micro control unit is also used to verify the speed information and the position information respectively, and use the verification results as the current speed information and the current position information of the servo motor, and send the current speed information and the current position information to the control board through the 485 interface.
7. The motor safety control system according to claim 6, characterized in that: The light detection unit includes an LED lamp, a photoelectric encoder and a photocell; the photoelectric encoder is arranged on the rotor shaft of the servo motor, the receiving end of the photocell faces the irradiation direction of the LED lamp, and the output end of the photocell is connected to the signal conversion unit; The photoelectric encoder is driven to rotate by the rotor shaft of the servo motor; The LED lamp is used to emit light when the rotor shaft rotates, so as to illuminate the photoelectric encoder disk; The photocell is used to receive the optical signal passing through the photoelectric encoder, convert the optical signal into an electrical position signal, and output the position signal to the signal conversion unit.
8. The motor safety control system according to claim 7, characterized in that: The servo drive and safety encoder are also used to perform self-detection after power-on, and when the self-detection result is no fault and the safety function is invalid, enter the safety function removal operation state; The servo driver is further used to stop outputting a drive signal to the servo motor when receiving an external configuration request in a safety function removal operation state, and to obtain configuration information according to the external configuration request and write the configuration information into a memory.
9. A motor safety control method, characterized in that: The control method is based on the motor safety control system according to any one of claims 1 to 8, and the motor safety control method comprises: The safety encoder obtains the current speed information and the current position information of the servo motor, and outputs the current speed information and the current position information to the servo driver; The servo driver sends the current speed information and the current position information to the host computer, so that the host computer feeds back corresponding safety function instructions according to the current speed information and the current position information; The servo driver receives the safety function instruction and performs safety control on the servo motor according to the safety function instruction; When receiving the second safety function instruction, the servo driver controls the servo motor to decelerate, and when the speed corresponding to the current speed information reaches zero, controls the servo motor to stop at the position specified by the second safety function instruction, and continuously outputs torque to resist external force so that the servo motor remains in a stopped state.
10. The motor safety control method according to claim 9, characterized in that: The safety function instruction includes a first safety function instruction; the method further includes: When receiving the first safety function instruction, the servo driver controls the servo motor to decelerate, and cuts off the output to the servo motor when the speed corresponding to the current speed information reaches a preset value.
11. The motor safety control method according to claim 9, characterized in that: The method further includes: when the current speed information exceeds a preset value, the servo driver stops outputting to the servo motor.
12. The motor safety control method according to claim 9, characterized in that: The method further includes: when the current speed information exceeds a preset range, the servo driver outputs a safety signal to the host computer.
13. The motor safety control method according to claim 9, characterized in that: The method further includes: the servo drive and the safety encoder perform self-detection after power-on, and when the self-detection result is no fault and the safety function is invalid, enter the safety function removal operation state; When the servo driver receives an external configuration request in the safety function removed running state, it stops outputting a drive signal to the servo motor, obtains configuration information according to the external configuration request, and writes the configuration information into a memory.
