CN112197802A - Communication fault processing method for absolute value encoder - Google Patents

Communication fault processing method for absolute value encoder Download PDF

Info

Publication number
CN112197802A
CN112197802A CN202011034222.7A CN202011034222A CN112197802A CN 112197802 A CN112197802 A CN 112197802A CN 202011034222 A CN202011034222 A CN 202011034222A CN 112197802 A CN112197802 A CN 112197802A
Authority
CN
China
Prior art keywords
encoder
communication
position increment
increment
communication fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011034222.7A
Other languages
Chinese (zh)
Inventor
刘清池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Vmmore Control Technology Co ltd
Original Assignee
Shenzhen Vmmore Control Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Vmmore Control Technology Co ltd filed Critical Shenzhen Vmmore Control Technology Co ltd
Priority to CN202011034222.7A priority Critical patent/CN112197802A/en
Publication of CN112197802A publication Critical patent/CN112197802A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The invention discloses a communication fault processing method of an absolute value encoder.A communication fault observer of the encoder judges whether the communication of the encoder has faults or not by monitoring the communication return data of the encoder, and judges a CRC check bit of a return data frame in a Morgan protocol; the motion state caching module saves the state of the encoder when the communication is normally operated; the encoder position increment prediction module plays a role in communication fault of an encoder, the default acceleration of the encoder is unchanged in fault, the current encoder position increment is predicted according to the acceleration of the previous moment and the position increment of the previous moment, and the encoder position increment prediction value can be used as the calculation basis of the rotating speed of the motor. The invention stores the motor running state by caching the position increment data when the encoder communication is normal, can predict the most probable encoder position increment when the encoder communication fails, and avoids the influence of the encoder communication failure caused by external interference on the servo, the speed jitter and even the mechanical failure.

Description

Communication fault processing method for absolute value encoder
Technical Field
The invention relates to the technical field of motor driving and motion control, in particular to a communication fault processing method for an absolute value encoder.
Background
In order to realize high-performance control of the servo motor, encoder data of the motor needs to be acquired, and absolute position and rotating speed information of the motor is acquired by processing the encoder data and is used as feedback of each control loop of the servo motor. The servo motor encoder commonly used at present has an incremental encoder and an absolute value encoder, wherein the absolute value encoder is more and more widely used due to the advantages that the position can be memorized by real-time position detection and power failure, and the like.
The absolute value encoder communication protocols used in the market at present include BISS, HIPERFAC, Morgan protocols and the like, wherein the Morgan protocols are widely used at present because of the advantages of long reliable communication distance, high supported encoder resolution, reliable verification and the like, and most of the servo supports the encoder protocols. The patent is directed to the technical problem of absolute value encoders to be solved, taking the multiple Mochuan encoder protocol as an example.
In the prior art, the following problems exist:
absolute value communication type encoders have certain problems in use. The servo reads the current position of the encoder from the encoder by taking the carrier as a period, and calculates the electrical angle and the motor speed according to the current position, and the position can also be used as the feedback of a position loop to participate in calculation. At this time, if the position of the encoder in a certain carrier period is not correctly obtained due to external electromagnetic interference or the like, the current position of the encoder required for calculating the carrier period is the position of the previous carrier period. At the moment, the calculation of the rotor electrical angle generates deviation, but the current loop control does not generate great influence; the position loop calculation is not greatly influenced due to the existence of the retention pulse; however, the motor speed is calculated by relying on the difference between the two encoder positions, and the calculated motor speed drops directly to zero. If the problem is not processed, the servo operation is jittered, abnormal sound can be generated when the servo operates at low speed, an alarm can be caused when the servo operates at high speed, and machine damage or safety accidents can be even caused in severe cases.
The servo can reduce the effect of this problem by filtering the velocity feedback, but it cannot eliminate it completely, and the filtering itself also has an effect on the velocity loop performance, so it is not the best solution.
Disclosure of Invention
The invention aims to provide a communication fault processing method of an absolute value encoder, which is characterized in that an encoder communication fault observer is arranged, and whether the communication of the current encoder generates faults or not is judged by monitoring whether the communication frame of the encoder is fed back normally (judging CRC check bits in a Morgan protocol). A motion state cache module is designed, and comprises an encoder position increment cache and an acceleration cache and is used for storing the motion state of the current motor. An encoder position increment prediction module is designed, the encoder position increment during communication failure is predicted by taking the current motion state as the basis, the shaking and even failure caused by servo operation are avoided, and the problems in the background art can be solved.
In order to achieve the purpose, the invention provides the following technical scheme:
a communication fault processing method for an absolute value encoder comprises an encoder communication fault observer, a motion state caching module and an encoder position increment prediction module, and comprises the following steps:
step 1: the encoder communication fault observer judges whether the encoder communication has faults by monitoring encoder communication return data, and judges a CRC check bit of a return data frame in the Morgan protocol;
step 2: the motion state caching module stores the state of the encoder during normal operation, including the position increment and the acceleration of the encoder, and the physical quantities represent the real operation state of the motor rotor at the moment;
and step 3: the encoder position increment prediction module is used for playing a role in communication fault of an encoder, the default acceleration of the encoder is unchanged when the encoder fails, the current encoder position increment is predicted according to the acceleration of the previous moment and the position increment of the previous moment, the encoder position increment prediction value can be used as the calculation basis of the rotating speed of the motor, and the current absolute position can be predicted according to the prediction value and the absolute position of the encoder of the previous moment and used as the feedback of a position ring and the rotor electrical angle of a torque ring; while caching the position increment prediction value.
Further, the encoder communication fault observer determines whether to call the motion state caching module or the encoder position increment predicting module according to the state.
Further, the motion state caching module calculates a position increment according to the absolute position of the encoder at the previous moment and the absolute position of the current encoder, adds the position increment to the cache, and calculates corresponding acceleration.
Further, the resulting absolute encoder position and increment are calculated as reliable data in a three-loop calculation.
Compared with the prior art, the invention has the beneficial effects that:
1. taking the Morgan protocol as an example, the communication fault of the encoder is judged to be reliable through CRC check.
2. When the communication of the encoder is seriously failed or even is disconnected, the servo can give an alarm, so that unpredictable actions of the servo motor can not be generated due to excessive position increment prediction, and the safety can be ensured.
3. The motion state cache module only needs 3 32-bit data to perform state cache, and does not consume more memory space.
4. The motion state caching action and the encoder position increment predicting action only need to carry out addition and subtraction operation of 32-bit shaping data for several times, do not relate to floating point numbers and multiplication and division, and have very little calculation consumption on servo.
Drawings
FIG. 1 is an algorithmic flow diagram of an embodiment of the present invention;
FIG. 2 is a schematic diagram of the motion state buffer module and the encoder position increment prediction module according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a method for processing communication faults of an absolute value encoder includes an encoder communication fault observer, a motion state cache module and an encoder position increment prediction module, and includes the following steps:
step 1: the encoder communication fault observer judges whether the encoder communication has faults by monitoring encoder communication return data, and judges a CRC check bit of a return data frame in the Morgan protocol; the encoder communication fault observer judges the communication state by monitoring the encoder communication return data, and determines whether to call the motion state cache module or the encoder position increment prediction module according to the state.
Step 2: the motion state caching module stores the state of the encoder during normal operation, including the position increment and the acceleration of the encoder, and the physical quantities represent the real operation state of the motor rotor at the moment; and the motion state caching module calculates position increment according to the absolute position of the encoder at the previous moment and the absolute position of the current encoder, adds the position increment to the cache, and calculates corresponding acceleration. As shown in fig. 2, the calculation formula of the motion state buffer module is as follows:
AK=ΔKK-1
ΔK-2=ΔK-1
ΔK-1=ΔK
AK-1=AK
where Δ represents a position increment, a represents acceleration, k represents a current carrier period, k-1 represents a previous carrier period, and so on.
And step 3: the encoder position increment prediction module is used for playing a role in communication fault of an encoder, the default acceleration of the encoder is unchanged when the encoder fails, the current encoder position increment is predicted according to the acceleration of the previous moment and the position increment of the previous moment, the encoder position increment prediction value can be used as the calculation basis of the rotating speed of the motor, and the current absolute position can be predicted according to the prediction value and the absolute position of the encoder of the previous moment and used as the feedback of a position ring and the rotor electrical angle of a torque ring; while caching the position increment prediction value. The calculation formula of the encoder position increment prediction module is as follows:
AK=AK-1
ΔK=ΔK-1+AK
ΔK-2=ΔK-1
ΔK-1=ΔK
where Δ represents a position increment, a represents acceleration, k represents a current carrier period, k-1 represents a previous carrier period, and so on.
The resulting absolute encoder position and increment are used as reliable data for a three-loop calculation.
The motor running state is stored by caching position increment data when the encoder communication is normal, the most possible encoder position increment can be predicted when the encoder communication fails, and the influence of the encoder communication failure caused by external interference on the servo and the speed jitter and even the mechanical failure are avoided.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be able to cover the technical solutions and the inventive concepts of the present invention within the technical scope of the present invention.

Claims (4)

1. A communication fault processing method for an absolute value encoder comprises an encoder communication fault observer, a motion state caching module and an encoder position increment prediction module, and is characterized by comprising the following steps:
step 1: the encoder communication fault observer judges whether the encoder communication has faults by monitoring encoder communication return data, and judges a CRC check bit of a return data frame in the Morgan protocol;
step 2: the motion state caching module stores the state of the encoder during normal operation, including the position increment and the acceleration of the encoder, and the physical quantities represent the real operation state of the motor rotor at the moment;
and step 3: the encoder position increment prediction module is used for playing a role in communication fault of an encoder, the default acceleration of the encoder is unchanged when the encoder fails, the current encoder position increment is predicted according to the acceleration of the previous moment and the position increment of the previous moment, the encoder position increment prediction value can be used as the calculation basis of the rotating speed of the motor, and the current absolute position can be predicted according to the prediction value and the absolute position of the encoder of the previous moment and used as the feedback of a position ring and the rotor electrical angle of a torque ring; while caching the position increment prediction value.
2. The absolute value encoder communication fault handling method of claim 1, wherein an encoder communication fault observer determines whether to invoke the motion state caching module or the encoder position increment prediction module according to the state.
3. The method as claimed in claim 1, wherein the motion state buffer module calculates a position increment according to the absolute position of the encoder at the previous moment and the absolute position of the current encoder, adds the position increment to the buffer, and calculates the corresponding acceleration.
4. The absolute value encoder communication failure handling method of claim 1, wherein the resulting absolute encoder position and increment are calculated as reliable data in a three-loop calculation.
CN202011034222.7A 2020-09-27 2020-09-27 Communication fault processing method for absolute value encoder Pending CN112197802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011034222.7A CN112197802A (en) 2020-09-27 2020-09-27 Communication fault processing method for absolute value encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011034222.7A CN112197802A (en) 2020-09-27 2020-09-27 Communication fault processing method for absolute value encoder

Publications (1)

Publication Number Publication Date
CN112197802A true CN112197802A (en) 2021-01-08

Family

ID=74006766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011034222.7A Pending CN112197802A (en) 2020-09-27 2020-09-27 Communication fault processing method for absolute value encoder

Country Status (1)

Country Link
CN (1) CN112197802A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035502A (en) * 2021-11-29 2022-02-11 黑龙江建龙钢铁有限公司 Method for continuing equipment running without stopping after position encoder fails

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105305921A (en) * 2015-11-12 2016-02-03 上海新时达电气股份有限公司 Position feedback self-adaption correction method of motor encoder and servo driver of motor encoder
US20170263643A1 (en) * 2012-07-11 2017-09-14 Samsung Electronics Co., Ltd. Semiconductor devices and methods of fabricating the same
CN107528519A (en) * 2016-06-21 2017-12-29 中车株洲电力机车研究所有限公司 The method and device that a kind of communication error code to motor encoder is modified
CN108663080A (en) * 2018-05-21 2018-10-16 广东伊莱斯电机有限公司 Absolute value encoder method for diagnosing faults in a kind of servo drive system
CN109579880A (en) * 2018-12-26 2019-04-05 上海英威腾工业技术有限公司 Magnetic coder with adaptive equalization function
CN111025960A (en) * 2019-11-22 2020-04-17 深圳市微秒控制技术有限公司 Communication type encoder feedback position estimation method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170263643A1 (en) * 2012-07-11 2017-09-14 Samsung Electronics Co., Ltd. Semiconductor devices and methods of fabricating the same
CN105305921A (en) * 2015-11-12 2016-02-03 上海新时达电气股份有限公司 Position feedback self-adaption correction method of motor encoder and servo driver of motor encoder
CN107528519A (en) * 2016-06-21 2017-12-29 中车株洲电力机车研究所有限公司 The method and device that a kind of communication error code to motor encoder is modified
CN108663080A (en) * 2018-05-21 2018-10-16 广东伊莱斯电机有限公司 Absolute value encoder method for diagnosing faults in a kind of servo drive system
CN109579880A (en) * 2018-12-26 2019-04-05 上海英威腾工业技术有限公司 Magnetic coder with adaptive equalization function
CN111025960A (en) * 2019-11-22 2020-04-17 深圳市微秒控制技术有限公司 Communication type encoder feedback position estimation method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035502A (en) * 2021-11-29 2022-02-11 黑龙江建龙钢铁有限公司 Method for continuing equipment running without stopping after position encoder fails

Similar Documents

Publication Publication Date Title
CN108663080B (en) Fault diagnosis method for absolute value encoder in servo drive system
JP2008232648A (en) Abnormality detecting device of rotary type absolute encoder
CN105659491A (en) Motor control device
CN112197802A (en) Communication fault processing method for absolute value encoder
CN106020059B (en) Coding compensation method and device and servo driver
CN110700997A (en) Method for monitoring rotating speed of impeller of wind power pitch control system
EP2339416B1 (en) System and method for controlling a machine
CN110031757A (en) A method of for quickly detecting motor closed-loop system stall
US20030223374A1 (en) Sensor apparatus and monitoring method of control system using detected data from sensor apparatus
CN113391551A (en) Motor electrical angle compensation method and device, electronic equipment and storage medium
US20170070382A1 (en) Parallel fieldbus network-based motor control system
CN108803462B (en) Fault detection method for servo system position feedback
CN111537879A (en) Synchronous motor step-out diagnosis method and system
CN111537005A (en) Method for processing signal loss of incremental photoelectric encoder
JP2013205144A (en) Encoder device and method of generating position data
CN112235172A (en) EtherCAT bus position compensation method
JP4240195B2 (en) Bit error detection / estimation method of encoder detection position data, AC servo driver with encoder bit error detection / estimation function, and motor
JP4498730B2 (en) Elevator abnormal vibration detection device
JP2001249154A (en) Disconnection detecting device for encoder and method for disconnection detection
CN110905328A (en) Quick access door control method and quick access door control device
CN111997888A (en) Fault judgment method, magnetic suspension compressor, air conditioning unit and readable storage medium
CN111006697B (en) Position data processing and transmission control system, method and application of encoder
JP5043639B2 (en) Rotary encoder
CN110579997A (en) digital profiling control system and method based on programmable logic device
JP2006048203A (en) Servo controller

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210108

RJ01 Rejection of invention patent application after publication