WO2016165091A1 - Apparatus and method for processing signal of absolute value encoder - Google Patents
Apparatus and method for processing signal of absolute value encoder Download PDFInfo
- Publication number
- WO2016165091A1 WO2016165091A1 PCT/CN2015/076690 CN2015076690W WO2016165091A1 WO 2016165091 A1 WO2016165091 A1 WO 2016165091A1 CN 2015076690 W CN2015076690 W CN 2015076690W WO 2016165091 A1 WO2016165091 A1 WO 2016165091A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- signal
- circuit
- absolute value
- output
- value encoder
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING 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
- G01D5/00—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable
- G01D5/12—Mechanical means for transferring the output of a sensing member; Means for converting the output of a sensing member to another variable where the form or nature of the sensing member does not constrain the means for converting; Transducers not specially adapted for a specific variable using electric or magnetic means
Definitions
- the present invention relates to the field of electronic communication technologies, and in particular, to an absolute value encoder signal processing apparatus and method.
- the absolute encoder has the advantages of absolutely unique position, anti-interference, no power-down memory, no need to find a reference point and no need to count all the time. It has been widely used in angle, length measurement and positioning in various industrial systems. Controlled.
- the reading and data processing of the traditional absolute encoder position is realized by using a FPGA (Field-Programmable Gate Array) chip according to the protocol between the absolute value encoder and the special bus. Relevant data is provided to subsequent processing devices.
- the adoption of such a scheme is generally affected by the price of the FPGA chip, and the system cost is high.
- An absolute value encoder signal processing apparatus for processing a position signal output by an absolute value encoder, comprising: a reading circuit for connecting with the absolute value encoder and acquiring the output of the absolute value encoder a position signal and verification information; a pulse counting circuit for connecting to the absolute value encoder and performing pulse counting according to the waveform signal output by the absolute value encoder; and a position processing circuit, and the reading circuit and the The pulse counting circuit is connected to determine whether the position signal is correct according to the verification information; the position processing circuit is further configured to update the position information when the position signal is correct and the count value of the pulse counting circuit Cleared; the position processing circuit is further configured to: according to current position information and the pulse counting circuit when the position signal is wrong The count value updates the position information after calculating the correct position signal and clears the count value of the pulse count circuit.
- the formula of the position processing circuit calculating the correct position signal based on the current position information and the count value of the pulse counting circuit is: P now is the correct position signal, P old is the current position signal, K is the count value, P A is the change amount of the position signal after the absolute value encoder rotates one week, and K A is the absolute value encoder rotation one week. The amount of change in the count value of the pulse counting circuit is described later.
- the signal processing circuit is further configured to convert the correct position signal into an angle signal, and then generate two orthogonal sinusoidal signal instantaneous values according to the angle signal; convert the correct position signal into an angle signal.
- the method further includes: a conversion control circuit coupled to the position processing circuit for generating an analog quantity control signal according to a correct position signal; an analog quantity generating circuit coupled to the conversion control circuit for The correct position signal is converted into an analog signal according to the analog quantity control signal and output.
- the analog quantity generating circuit is a pulse width modulation circuit; and the analog quantity control signal is used to adjust a duty ratio of a pulse signal output by the pulse width modulation circuit.
- the method further includes: an output circuit connected to the analog quantity generating circuit, configured to output the analog quantity signal to a subsequent processing device; a sampling and verifying circuit, and an output of the analog quantity generating circuit The output end of the output circuit is connected to compare the signal at the output end of the output circuit with the signal at the output end of the analog generating circuit to determine whether the two are the same, and output error information when the two are different. .
- a communication circuit is further included, and is connected to the sampling and verification circuit. And outputting the error information to a subsequent processing device.
- the communication circuit is further connected to the position processing circuit for outputting the position information to the subsequent processing device.
- the read circuit, the pulse count circuit, and the position processing circuit are integrated in a digital processing chip.
- the read circuit includes a read interface and an interface drive circuit; the read interface is for connecting to the absolute value encoder and is connected to the interface drive circuit; A circuit is also coupled to the position processing circuit.
- the read interface is a serial peripheral interface.
- a storage circuit is further coupled to the position processing circuit for storing the position information.
- An absolute value encoder signal processing method for processing a position signal output by an absolute value encoder comprising the steps of: reading a position signal output by the absolute value encoder and verifying information; Determining whether the position signal is correct; if yes, updating the position information and clearing the count value of the pulse counting circuit; if not, calculating the correct value based on the current position information and the count value of the pulse counting circuit The position information is updated after the position signal and the count value of the pulse counting circuit is cleared.
- the step of updating the position information and clearing the count value of the pulse counting circuit further comprises the steps of: generating an analog quantity control signal according to the correct position signal; generating the control signal according to the analog quantity
- the analog signal is output to the subsequent processing device through the output circuit; the signal at the output end of the output circuit is detected and it is determined whether the signal at the output end of the output circuit is identical to the generated analog signal; if otherwise, the error information is output.
- the step of generating an analog quantity control signal according to the correct position signal comprises: converting the calculated position signal into an angle signal and generating two orthogonal sinusoidal signal instantaneous values according to the angle signal. Generating an analog control signal based on the generated two orthogonal sinusoidal signal instantaneous values.
- the step of updating the position information and clearing the count value of the pulse counting circuit further comprises the step of storing the updated position information.
- the step of determining whether the location signal is correct according to the verification information is specifically: calculating a verification code according to the read position signal; determining the calculated verification code and the calibration Whether the check code in the information is consistent; if yes, the position signal is correct, and if not, the position signal is wrong.
- the calculation formula for calculating the correct position signal based on the current position information and the count value of the pulse counting circuit is: P now is the correct position signal, P old is the current position signal, K is the count value, P A is the change amount of the position signal after the absolute value encoder rotates one week, and K A is the absolute value encoder rotation one week. The amount of change in the count value of the pulse counting circuit is described later.
- the above-mentioned absolute value encoder signal processing device and method can realize the processing of the position signal outputted by the absolute value encoder through the reading circuit, the pulse counting circuit and the position processing circuit, and the processing process does not need to use a special FPGA chip, and the production cost is relatively high. low.
- FIG. 1 is a block diagram showing the structure of an absolute value encoder signal processing apparatus in an embodiment
- FIG. 2 is a block diagram showing the structure of an absolute value encoder signal processing apparatus in another embodiment
- FIG. 3 is a flow chart of an absolute value encoder signal processing method in an embodiment
- FIG. 4 is a flow chart of an absolute value encoder signal processing method in another embodiment.
- An absolute value encoder signal processing apparatus for processing a position signal output by an absolute value encoder for supply to a subsequent processing system.
- 1 is a schematic structural diagram of an absolute value encoder signal processing apparatus in an embodiment, including a read circuit 110, a pulse count circuit 120, and a position processing circuit 130.
- the read circuit 110 and the pulse count circuit 120 are respectively connected to the position processing circuit 130.
- the read circuit 110 is for connecting to an absolute encoder to receive a position signal of its output and verification information.
- the verification information output by the absolute encoder is a check code obtained by verifying the output position signal by the internal verification circuit.
- the read circuit 110 includes a read interface 112 and an interface drive circuit 114.
- the read interface 112 is connected to the interface driving circuit 114, and is connected to the absolute value encoder through the DATA+, DATA-, CLK+, and CLK-ends of the absolute value encoder.
- the read interface 112 uses a Serial Peripheral Interface (SPI), and the absolute value encoder is an EnDat absolute encoder. Therefore, the read interface 112 performs the reading of the absolute value encoder position signal and the check information according to the protocol between it and the EnDat absolute value encoder (ie, the EnDat protocol), thereby obtaining the position signal and the check information.
- SPI Serial Peripheral Interface
- the pulse counting circuit 120 is for connecting to an absolute value encoder and performing pulse counting based on a waveform signal output from the absolute value encoder.
- the absolute value encoder signal processing apparatus further includes an analog quantity processing circuit 140.
- the analog processing circuit 140 is coupled to the analog sinusoidal signal outputs A+, A-, B+, and B- of the absolute encoder to receive the analog sinusoidal signal carried by the absolute encoder itself.
- the analog processing circuit 140 processes the received analog sinusoidal signal into a square wave signal and outputs it to the pulse counting circuit 120 for pulse counting.
- the pulse counting circuit 120 is a Quadrature Encoder Pulse (QEP).
- the position processing circuit 130 is configured to receive the position signal read by the reading circuit 110 and the verification signal. And judge whether the read position signal is correct according to the received verification information. Specifically, the position processing circuit 130 calculates a check value according to the received position signal, thereby comparing the check value with the check value obtained in the check information. If the two match, the verification is correct, so that the position signal is judged to be the correct position signal, otherwise the position signal is incorrect. The position processing circuit 130 is further configured to update the position information when the position signal is correct, that is, replace the current correct position signal with the position signal in the original position information. At the same time, the position processing circuit 130 also clears the count value of the pulse count circuit 120 for the next position signal reading.
- the absolute value encoder signal processing apparatus further includes a storage circuit for storing the updated position information, that is, the position information in the storage unit is the position information at the start of the counting by the pulse counting unit 120 before being updated. (ie the initial position of the absolute encoder).
- the position processing circuit 130 is further configured to calculate a correct position signal according to the current position information and the count value of the pulse counting circuit 120 when determining that the position signal is incorrect, thereby updating the position information and obtaining the pulse after obtaining the correct position signal.
- the count of the counting circuit 120 is cleared.
- the position processing circuit 130 processes the position signal when the circuit is disturbed to cause a position signal error, thereby preventing the wrong position signal from having a large influence on the subsequent processing device and improving the anti-interference ability of the system.
- the formula for the position processing circuit 130 to calculate the correct position signal is as follows:
- P old is the current position signal, which can be directly read from the position information
- K is the count value
- P A is the absolute value of the position signal change after one rotation of the encoder
- K A is the amount of change in the count value of the pulse counting circuit after one revolution of the absolute value encoder.
- it may be determined first whether the count value K of the pulse counting circuit 120 is zero. If it is zero, it indicates that the position of the absolute value encoder has not changed, and the position information is not updated. When the count value K is greater than zero, the correct position signal is obtained by the above formula.
- the amount of change P A of the position signal of the absolute value encoder is 65536
- the amount of change K A of the count value of the pulse counting circuit 120 after one rotation is 8192. Therefore, the formula (1) is:
- the above-mentioned absolute value encoder signal processing device can realize the processing of the position signal output by the absolute value encoder through the reading circuit 110, the pulse counting circuit 120 and the position processing circuit 130, and the processing process does not require the use of a special FPGA chip, and the production cost Lower. Moreover, the above device may calculate a correct position signal according to the count value of the pulse counting circuit 120 and the current position information when the data verification fails (ie, the verification information is incorrect), thereby avoiding a sudden change of the position signal when the verification fails. Improve the reliability of the system.
- FIG. 2 is a structural block diagram of an absolute value encoder signal processing apparatus in another embodiment, which includes an interface circuit 212, an interface driving circuit 214, a pulse counting circuit 220, a position processing circuit 230, and an analog processing circuit 240, and includes a conversion.
- the interface circuit 212, the interface driving circuit 214, the pulse counting circuit 220, the position processing circuit 230, and the analog processing circuit 240 have been described in detail in the foregoing embodiments, and are not described herein.
- the position processing circuit 230 is further configured to convert the calculated position signal into an angle signal, and the conversion formula is: T is the converted angle signal.
- the position processing circuit 230 is further configured to generate two orthogonal sinusoidal signal instantaneous values according to the angle signal T (one phase is C phase and one channel is D phase), and the calculation formula is as follows:
- C is the instantaneous value of the first sinusoidal signal and D is the instantaneous value of the second sinusoidal signal.
- the period in which the two orthogonal sinusoidal signals generated by the position processing circuit 230 change is matched with the period in which the absolute encoder rotates one revolution. Since the instantaneous value of the sinusoidal signal generated by the position processing circuit 230 is a digital signal, it needs to be converted into an analog quantity and then output.
- the conversion control circuit 255 is coupled to the position processing circuit 230 for sinusoidal according to two orthogonal directions The instantaneous value of the signal generates an analog control signal.
- the analog quantity generating circuit 260 is connected to the conversion control circuit 255 for outputting the position signal into an analog quantity signal according to the analog quantity control signal output from the conversion control circuit 255.
- the analog quantity generating circuit 260 is a PWM pulse width modulation circuit. Therefore, the analog control signal is used to adjust the duty cycle of the pulse signal to control the output analog signal.
- the analog control signal can be calculated according to the following formula:
- the corresponding C and D phases are negative maximum values; when the duty ratio is 50%, the corresponding C and D phases are zero values; when the duty ratio is 100%, the corresponding C and D phases are positive. Maximum value.
- the absolute value position signal can be converted into two analog signals of the actual position, and then outputted to the subsequent processing device for further signal processing through the output circuit 265, without using a dedicated bus to realize data transmission, The requirements for subsequent processing equipment are reduced, and the compatibility is good.
- output circuit 265 is a DA interface.
- the absolute value encoder signal processing device also performs sampling and verification on the output analog signal to ensure the accuracy of the output.
- the sample verifying circuit 270 is connected to the output of the analog quantity generating circuit 260 and the output of the output circuit 265.
- the sample verifying circuit 270 is configured to sample the signal at the output of the output circuit 265, and compare the sampled value with the analog signal generated by the analog quantity generating circuit 260 to determine whether the two are the same. It can be understood that when the deviation of the two is within the error tolerance range, the two can be considered to be the same.
- the communication circuit 275 is coupled to the sample verification circuit 270 for outputting error information to subsequent processing devices. By sampling and verifying the output analog signal, the accuracy of the output can be improved, and the reliability of the system can be further improved.
- the communication circuit 275 is also coupled to the position processing circuit 230 for use in the school The condition of the verification information is sent to the subsequent processing device so that the subsequent processing device knows the operation of the absolute value encoder.
- the interface driving circuit 214, the pulse counting circuit 220, the position processing circuit 230, the conversion control circuit 255, the analog quantity generating circuit 260, the sampling and verifying circuit 270, and the communication circuit 275 are all integrated in a digital signal processing (Digital In the Signal Processing (DSP) chip, the FPGA chip is replaced to realize the processing of the position signal output by the absolute encoder, which reduces the production cost and improves the integration of the device.
- DSP Digital In the Signal Processing
- FIG. 3 is a flow chart of an absolute value encoder signal processing method in an embodiment, including the following steps:
- the position signal and the verification information are read from the DATA+, DATA-, CLK+, and CLK- terminals of the absolute encoder.
- the check code is calculated according to the read position signal, and it is judged whether the calculated check code is consistent with the check code in the check information, and if they match, the position signal is correct. Conversely, if the check codes are inconsistent, the verification fails and the position signal is incorrect. If the position signal is correct, step S340 is directly performed; otherwise, step S330 and subsequent steps are performed.
- P old is the current position signal, which can be directly read from the position information in the position processing circuit
- K is the count value
- P A is the position signal after the encoder rotates for one week.
- the amount of change, K A is the amount of change in the count value of the pulse counting circuit after one revolution of the absolute value encoder.
- the amount of change P A of the position signal of the absolute value encoder is 65536
- the amount of change K A of the count value of the pulse counting circuit 120 after one rotation is 8192. Therefore, the above formula translates to:
- the position information is updated, that is, the correct position signal is replaced with the original position signal in the position information, and the count value of the pulse counting circuit is cleared to facilitate the next time. Processing of position signals.
- the updated location information is also stored after the location information is updated.
- the above-mentioned absolute value encoder signal processing method does not require a special FPGA chip, and the production cost is low. Moreover, when the data verification fails (ie, the verification information is wrong), the correct position signal is calculated according to the count value of the pulse counting circuit and the current position information, thereby avoiding a situation where the position signal is abrupt when the verification fails, and the system is improved. reliability.
- the above-mentioned absolute value encoding encoder signal processing method further includes steps S350-390, as shown in FIG.
- T is the converted angle signal
- P A is the amount of change in the position signal after one revolution of the absolute encoder.
- S360 Generate an analog quantity control signal according to the generated two orthogonal sinusoidal signal instantaneous values.
- the digital sinusoidal signal value is converted to the analog signal by the PWM pulse width modulation circuit, so the analog control signal is used to control the pulse outputted by the PWM pulse width modulation circuit (analog output circuit).
- the duty cycle of the signal can be calculated according to the following formula:
- the corresponding C and D phases are negative maximum values; when the duty ratio is 50%, the corresponding C and D phases are zero values; when the duty ratio is 100%, the corresponding C and D phases are positive. Maximum value.
- the absolute value position signal By converting the absolute value position signal into two analog signals of the actual position of the reaction, it can be directly output to the subsequent processing device for further signal processing without using a dedicated bus to realize data transmission, thereby reducing the requirements for subsequent processing equipment.
- the compatibility of the device is good.
- S370 Generate an analog signal according to the analog quantity control signal, and output it to the subsequent processing device through the output circuit.
- the PWM pulse width modulation circuit adjusts the duty ratio of the output signal under the control of the analog control signal so that the output analog signal can reflect the actual position of the absolute value encoder.
- S380 Detect a signal at an output end of the output circuit and determine whether the signal at the output of the output circuit is the same as the generated analog signal.
- step S390 is performed.
- the error information is output to the subsequent processing device, so that the subsequent processing device knows the operation of the absolute value encoder.
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Transmission And Conversion Of Sensor Element Output (AREA)
Abstract
Description
本发明涉及电子通信技术领域,特别是涉及一种绝对值编码器信号处理装置及方法。The present invention relates to the field of electronic communication technologies, and in particular, to an absolute value encoder signal processing apparatus and method.
绝对值编码器具有每一个位置绝对唯一、抗干扰、无需掉电记忆、无需找参考点而且不用一直计数的优点,已经越来越广泛地应用于各种工业系统中的角度、长度测量以及定位控制中。传统的绝对值编码器位置的读取以及数据处理是利用FPGA(Field-Programmable Gate Array,现场可编程门阵列)芯片按照与绝对值编码器之间的协议来实现的,并需要利用专门总线将相关数据提供给后续处理设备。采用这种方案一般受FPGA芯片价格等影响,系统成本较高。The absolute encoder has the advantages of absolutely unique position, anti-interference, no power-down memory, no need to find a reference point and no need to count all the time. It has been widely used in angle, length measurement and positioning in various industrial systems. Controlled. The reading and data processing of the traditional absolute encoder position is realized by using a FPGA (Field-Programmable Gate Array) chip according to the protocol between the absolute value encoder and the special bus. Relevant data is provided to subsequent processing devices. The adoption of such a scheme is generally affected by the price of the FPGA chip, and the system cost is high.
发明内容Summary of the invention
基于此,有必要提供一种成本较低的绝对值编码器信号处理装置。Based on this, it is necessary to provide a lower cost absolute value encoder signal processing device.
一种绝对值编码器信号处理装置,用于对绝对值编码器输出的位置信号进行处理,包括:读取电路,用于与所述绝对值编码器连接并获取所述绝对值编码器输出的位置信号以及校验信息;脉冲计数电路,用于与所述绝对值编码器连接并根据所述绝对值编码器输出的波形信号进行脉冲计数;以及位置处理电路,与所述读取电路、所述脉冲计数电路连接,用于根据所述校验信息判断所述位置信号是否正确;所述位置处理电路还用于在所述位置信号正确时更新位置信息并将所述脉冲计数电路的计数值清零;所述位置处理电路还用于在所述位置信号错误时根据当前的位置信息以及所述脉冲计数电路 的计数值计算出正确的位置信号后更新所述位置信息并将所述脉冲计数电路的计数值清零。An absolute value encoder signal processing apparatus for processing a position signal output by an absolute value encoder, comprising: a reading circuit for connecting with the absolute value encoder and acquiring the output of the absolute value encoder a position signal and verification information; a pulse counting circuit for connecting to the absolute value encoder and performing pulse counting according to the waveform signal output by the absolute value encoder; and a position processing circuit, and the reading circuit and the The pulse counting circuit is connected to determine whether the position signal is correct according to the verification information; the position processing circuit is further configured to update the position information when the position signal is correct and the count value of the pulse counting circuit Cleared; the position processing circuit is further configured to: according to current position information and the pulse counting circuit when the position signal is wrong The count value updates the position information after calculating the correct position signal and clears the count value of the pulse count circuit.
在其中一个实施例中,所述位置处理电路根据当前的位置信息以及所述脉冲计数电路的计数值计算出正确的位置信号的公式为:其中,Pnow为正确的位置信号,Pold为当前的位置信号,K为计数值,PA为绝对值编码器旋转一周后位置信号的变化量,KA为所述绝对值编码器旋转一周后所述脉冲计数电路的计数值的变化量。In one embodiment, the formula of the position processing circuit calculating the correct position signal based on the current position information and the count value of the pulse counting circuit is: P now is the correct position signal, P old is the current position signal, K is the count value, P A is the change amount of the position signal after the absolute value encoder rotates one week, and K A is the absolute value encoder rotation one week. The amount of change in the count value of the pulse counting circuit is described later.
在其中一个实施例中,所述信号处理电路还用于将正确的位置信号转换为角度信号后根据所述角度信号生成两路正交的正弦信号瞬时值;将正确的位置信号转换为角度信号的公式为根据所述角度信号生成两路正交的正弦信号瞬时值的计算公式为C=sinT,D=cosT;其中,C为第一正弦信号瞬时值,D为第二正弦信号瞬时值;T为角度信号。In one embodiment, the signal processing circuit is further configured to convert the correct position signal into an angle signal, and then generate two orthogonal sinusoidal signal instantaneous values according to the angle signal; convert the correct position signal into an angle signal. The formula is Calculating the instantaneous value of the two orthogonal sinusoidal signals according to the angle signal is C=sinT, D=cosT; wherein C is the instantaneous value of the first sinusoidal signal, D is the instantaneous value of the second sinusoidal signal; T is the angle signal.
在其中一个实施例中,还包括:转换控制电路,与所述位置处理电路连接,用于根据正确的位置信号生成模拟量控制信号;模拟量生成电路,与所述转换控制电路连接,用于根据所述模拟量控制信号将所述正确的位置信号转换为模拟量信号后输出。In one embodiment, the method further includes: a conversion control circuit coupled to the position processing circuit for generating an analog quantity control signal according to a correct position signal; an analog quantity generating circuit coupled to the conversion control circuit for The correct position signal is converted into an analog signal according to the analog quantity control signal and output.
在其中一个实施例中,所述模拟量生成电路为脉冲宽度调制电路;所述模拟量控制信号用于调节所述脉冲宽度调制电路输出的脉冲信号的占空比。In one embodiment, the analog quantity generating circuit is a pulse width modulation circuit; and the analog quantity control signal is used to adjust a duty ratio of a pulse signal output by the pulse width modulation circuit.
在其中一个实施例中,还包括:输出电路,与所述模拟量生成电路连接,用于将所述模拟量信号输出给后续处理设备;采样校验电路,与所述模拟量生成电路的输出端、所述输出电路的输出端连接,用于将所述输出电路输出端的信号与所述模拟量生成电路输出端的信号进行比较后判断二者是否相同,并在二者不相同时输出报错信息。In one embodiment, the method further includes: an output circuit connected to the analog quantity generating circuit, configured to output the analog quantity signal to a subsequent processing device; a sampling and verifying circuit, and an output of the analog quantity generating circuit The output end of the output circuit is connected to compare the signal at the output end of the output circuit with the signal at the output end of the analog generating circuit to determine whether the two are the same, and output error information when the two are different. .
在其中一个实施例中,还包括通讯电路,与所述采样校验电路连接,用 于将所述报错信息输出给后续处理设备。In one embodiment, a communication circuit is further included, and is connected to the sampling and verification circuit. And outputting the error information to a subsequent processing device.
在其中一个实施例中,所述通讯电路还与所述位置处理电路连接,用于将所述位置信息是否正确的情况输出给后续处理设备。In one embodiment, the communication circuit is further connected to the position processing circuit for outputting the position information to the subsequent processing device.
在其中一个实施例中,所述读取电路、所述脉冲计数电路以及所述位置处理电路集成在一数字处理芯片内。In one of the embodiments, the read circuit, the pulse count circuit, and the position processing circuit are integrated in a digital processing chip.
在其中一个实施例中,所述读取电路包括读取接口以及接口驱动电路;所述读取接口用于与所述绝对值编码器连接,并与所述接口驱动电路连接;所述接口驱动电路还与所述位置处理电路连接。In one embodiment, the read circuit includes a read interface and an interface drive circuit; the read interface is for connecting to the absolute value encoder and is connected to the interface drive circuit; A circuit is also coupled to the position processing circuit.
在其中一个实施例中,所述读取接口为串行外设接口。In one of the embodiments, the read interface is a serial peripheral interface.
在其中一个实施例中,还包括存储电路,与所述位置处理电路连接,用于存储所述位置信息。In one of the embodiments, a storage circuit is further coupled to the position processing circuit for storing the position information.
一种绝对值编码器信号处理方法,用于对绝对值编码器输出的位置信号进行处理,包括以下步骤:读取所述绝对值编码器输出的位置信号以及校验信息;根据所述校验信息判断所述位置信号是否正确;若是,则更新位置信息并将所述脉冲计数电路的计数值清零;若否,则根据当前的位置信息以及所述脉冲计数电路的计数值计算出正确的位置信号后更新所述位置信息并将所述脉冲计数电路的计数值清零。An absolute value encoder signal processing method for processing a position signal output by an absolute value encoder, comprising the steps of: reading a position signal output by the absolute value encoder and verifying information; Determining whether the position signal is correct; if yes, updating the position information and clearing the count value of the pulse counting circuit; if not, calculating the correct value based on the current position information and the count value of the pulse counting circuit The position information is updated after the position signal and the count value of the pulse counting circuit is cleared.
在其中一个实施例中,更新所述位置信息并将所述脉冲计数电路的计数值清零的步骤之后还包括步骤:根据正确的位置信号生成模拟量控制信号;根据所述模拟量控制信号生成模拟量信号后通过输出电路输出给后续处理设备;检测所述输出电路输出端的信号并判断所述输出电路输出端的信号与生成的模拟量信号是否相同;若否则输出报错信息。In one embodiment, the step of updating the position information and clearing the count value of the pulse counting circuit further comprises the steps of: generating an analog quantity control signal according to the correct position signal; generating the control signal according to the analog quantity The analog signal is output to the subsequent processing device through the output circuit; the signal at the output end of the output circuit is detected and it is determined whether the signal at the output end of the output circuit is identical to the generated analog signal; if otherwise, the error information is output.
在其中一个实施例中,所述根据正确的位置信号生成模拟量控制信号的步骤具体包括:将计算得到的位置信号转换为角度信号并根据所述角度信号生成两路正交的正弦信号瞬时值;根据生成的两路正交的正弦信号瞬时值生成模拟量控制信号。In one embodiment, the step of generating an analog quantity control signal according to the correct position signal comprises: converting the calculated position signal into an angle signal and generating two orthogonal sinusoidal signal instantaneous values according to the angle signal. Generating an analog control signal based on the generated two orthogonal sinusoidal signal instantaneous values.
在其中一个实施例中,所述检测所述输出电路输出端的信号并判断所述 输出电路输出端的信号与生成的模拟量信号是否相同的步骤中,若输出电路输出的信号与生成的模拟量信号相同则结束操作。In one embodiment, the detecting a signal at an output of the output circuit and determining the In the step of synchronizing the signal at the output of the output circuit with the generated analog signal, if the signal output from the output circuit is the same as the generated analog signal, the operation is terminated.
在其中一个实施例中,更新位置信息并将所述脉冲计数电路的计数值清零的步骤之后还包括步骤:存储更新后的位置信息。In one of the embodiments, the step of updating the position information and clearing the count value of the pulse counting circuit further comprises the step of storing the updated position information.
在其中一个实施例中,所述根据所述校验信息判断所述位置信号是否正确的步骤具体为:根据读取到的位置信号计算校验码;判断计算得到的校验码与所述校验信息中的校验码是否一致;若是,则所述位置信号正确,若否,则所述位置信号错误。In one embodiment, the step of determining whether the location signal is correct according to the verification information is specifically: calculating a verification code according to the read position signal; determining the calculated verification code and the calibration Whether the check code in the information is consistent; if yes, the position signal is correct, and if not, the position signal is wrong.
在其中一个实施例中,根据当前的位置信息以及所述脉冲计数电路的计数值计算出正确的位置信号的计算公式为:其中,Pnow为正确的位置信号,Pold为当前的位置信号,K为计数值,PA为绝对值编码器旋转一周后位置信号的变化量,KA为所述绝对值编码器旋转一周后所述脉冲计数电路的计数值的变化量。In one of the embodiments, the calculation formula for calculating the correct position signal based on the current position information and the count value of the pulse counting circuit is: P now is the correct position signal, P old is the current position signal, K is the count value, P A is the change amount of the position signal after the absolute value encoder rotates one week, and K A is the absolute value encoder rotation one week. The amount of change in the count value of the pulse counting circuit is described later.
上述绝对值编码器信号处理装置以及方法,通过读取电路、脉冲计数电路以及位置处理电路即可实现对绝对值编码器输出的位置信号的处理,处理过程无需使用专门的FPGA芯片,生产成本较低。The above-mentioned absolute value encoder signal processing device and method can realize the processing of the position signal outputted by the absolute value encoder through the reading circuit, the pulse counting circuit and the position processing circuit, and the processing process does not need to use a special FPGA chip, and the production cost is relatively high. low.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他实施例的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and those skilled in the art can obtain drawings of other embodiments according to the drawings without any creative work.
图1为一实施例中的绝对值编码器信号处理装置的结构框图;1 is a block diagram showing the structure of an absolute value encoder signal processing apparatus in an embodiment;
图2为另一实施例中的绝对值编码器信号处理装置的结构框图;2 is a block diagram showing the structure of an absolute value encoder signal processing apparatus in another embodiment;
图3为一实施例中的绝对值编码器信号处理方法的流程图; 3 is a flow chart of an absolute value encoder signal processing method in an embodiment;
图4为另一实施例中的绝对值编码器信号处理方法的流程图。4 is a flow chart of an absolute value encoder signal processing method in another embodiment.
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
一种绝对值编码器信号处理装置,用于对绝对值编码器输出的位置信号进行处理以便提供给后续处理系统。图1为一实施例中的绝对值编码器信号处理装置的结构示意图,包括读取电路110、脉冲计数电路120以及位置处理电路130。其中,读取电路110、脉冲计数电路120分别与位置处理电路130连接。An absolute value encoder signal processing apparatus for processing a position signal output by an absolute value encoder for supply to a subsequent processing system. 1 is a schematic structural diagram of an absolute value encoder signal processing apparatus in an embodiment, including a
读取电路110用于与绝对值编码器连接以接收其输出的位置信号以及校验信息。绝对值编码器输出的校验信息是指其内部校验电路对输出的位置信号进行校验获得的校验码。具体地,读取电路110包括读取接口112以及接口驱动电路114。其中,读取接口112与接口驱动电路114连接,并通过绝对值编码器的DATA+、DATA-、CLK+以及CLK-端与绝对值编码器连接。在本实施例中,读取接口112采用串行外设接口(Serial Peripheral Interface,SPI),绝对值编码器为EnDat绝对值编码器。因此,读取接口112根据其与EnDat绝对值编码器之间的协议(即EnDat协议)进行绝对值编码器位置信号以及校验信息的读取,从而获得位置信号以及校验信息。The
脉冲计数电路120用于与绝对值编码器连接并根据绝对值编码器输出的波形信号进行脉冲计数。在本实施例中,绝对值编码器信号处理装置还包括模拟量处理电路140。模拟量处理电路140通过与绝对值编码器的模拟量正弦信号输出端A+、A-、B+以及B-连接,从而接收绝对值编码器自身带有的模拟量正弦信号。模拟量处理电路140将接收到的模拟量正弦信号处理为方波信号后输出给脉冲计数电路120进行脉冲计数。在本实施例中,脉冲计数电路120为正交编码脉冲计数电路(Quadrature Encoder Pulse,QEP)。The
位置处理电路130用于接收读取电路110读取到的位置信号以及校验信
息,并根据接收的校验信息判断读取到的位置信号是否正确。具体地,位置处理电路130会根据接收到的位置信号计算得到一个校验值,从而将该校验值与校验信息中获取到的校验值进行比较。若二者一致则表示校验正确,从而判断该位置信号为正确的位置信号,反之则该位置信号不正确。位置处理电路130还用于在位置信号正确时更新位置信息,即将当前正确的位置信号替换掉原有的位置信息中的位置信号。同时,位置处理电路130还会将脉冲计数电路120的计数值清零,以便进行下一次的位置信号读取。在一实施例中,绝对值编码器信号处理装置还包括存储电路,用于存储更新后的位置信息,即在未更新之前,存储单元中的位置信息为脉冲计数单元120计数开始时的位置信息(即绝对值编码器的初始位置)。The
位置处理电路130还用于在判断出位置信号不正确时,根据当前的位置信息以及脉冲计数电路120的计数值计算得到正确的位置信号,从而在获得正确的位置信号后更新位置信息并对脉冲计数电路120的计数清零。位置处理电路130会在电路受到干扰导致位置信号错误时对位置信号进行处理,从而避免错误的位置信号对后续处理设备产生较大的影响,提高了系统的抗干扰能力。具体地,位置处理电路130计算正确的位置信号的公式如下:The position processing circuit 130 is further configured to calculate a correct position signal according to the current position information and the count value of the pulse counting circuit 120 when determining that the position signal is incorrect, thereby updating the position information and obtaining the pulse after obtaining the correct position signal. The count of the counting circuit 120 is cleared. The position processing circuit 130 processes the position signal when the circuit is disturbed to cause a position signal error, thereby preventing the wrong position signal from having a large influence on the subsequent processing device and improving the anti-interference ability of the system. Specifically, the formula for the position processing circuit 130 to calculate the correct position signal is as follows:
其中,Pnow表示正确的位置信号,Pold为当前的位置信号,从位置信息中可以直接读取获得,K为计数值,PA为绝对值编码器旋转一周后位置信号的变化量,KA为所述绝对值编码器旋转一周后所述脉冲计数电路的计数值的变化量。在一实施例中,也可以先判断脉冲计数电路120的计数值K是否为零,若为零,则表示绝对值编码器的位置未发生变化,不会对位置信息进行更新。在计数值K大于零时才通过上述公式进行计算得到正确的位置信号。在本实施例中,绝对值编码器旋转一周其位置信号的变化量PA为65536,其旋转一周后脉冲计数电路120的计数值的变化量KA为8192。因此,公式(1)为: Among them, P now represents the correct position signal, P old is the current position signal, which can be directly read from the position information, K is the count value, P A is the absolute value of the position signal change after one rotation of the encoder, K A is the amount of change in the count value of the pulse counting circuit after one revolution of the absolute value encoder. In an embodiment, it may be determined first whether the count value K of the pulse counting circuit 120 is zero. If it is zero, it indicates that the position of the absolute value encoder has not changed, and the position information is not updated. When the count value K is greater than zero, the correct position signal is obtained by the above formula. In the present embodiment, the amount of change P A of the position signal of the absolute value encoder is 65536, and the amount of change K A of the count value of the pulse counting circuit 120 after one rotation is 8192. Therefore, the formula (1) is:
经过上述处理后,可以避免因为校验信息错误时位置信号突变的情况发生,提高了系统的可靠性。After the above processing, it is possible to avoid the occurrence of a sudden change in the position signal when the verification information is incorrect, thereby improving the reliability of the system.
上述绝对值编码器信号处理装置,通过读取电路110、脉冲计数电路120以及位置处理电路130即可实现对绝对值编码器输出的位置信号的处理,处理过程无需使用专门的FPGA芯片,生产成本较低。并且,上述装置会在数据校验失败(即校验信息错误)时根据脉冲计数电路120的计数值以及当前位置信息计算得到正确的位置信号,从而避免校验失败时位置信号突变的情况发生,提高了系统的可靠性。The above-mentioned absolute value encoder signal processing device can realize the processing of the position signal output by the absolute value encoder through the
图2为另一实施例中的绝对值编码器信号处理装置的结构框图,其包括接口电路212、接口驱动电路214、脉冲计数电路220、位置处理电路230以及模拟量处理电路240,还包括转换控制电路255、模拟量生成电路260、输出电路265、采样校验电路270以及通讯电路275。其中,接口电路212、接口驱动电路214、脉冲计数电路220、位置处理电路230以及模拟量处理电路240在前述实施例中已经详细介绍的部分,此处不赘述。2 is a structural block diagram of an absolute value encoder signal processing apparatus in another embodiment, which includes an
在本实施例中,位置处理电路230还用于将计算得到的位置信号转换为角度信号,其转换公式为:T为转换后的角度信号。位置处理电路230还用于根据该角度信号T生成两路正交的正弦信号瞬时值(一路为C相,一路为D相),计算公式如下:In this embodiment, the position processing circuit 230 is further configured to convert the calculated position signal into an angle signal, and the conversion formula is: T is the converted angle signal. The
C=sinT,D=cosT;C=sinT, D=cosT;
其中,C为第一正弦信号瞬时值,D为第二正弦信号瞬时值。Where C is the instantaneous value of the first sinusoidal signal and D is the instantaneous value of the second sinusoidal signal.
位置处理电路230产生的两路正交的正弦信号变化一周的周期与绝对值编码器转一圈的周期匹配。由于位置处理电路230产生的正弦信号瞬时值为数字量信号,需要转换为模拟量后输出。The period in which the two orthogonal sinusoidal signals generated by the
转换控制电路255与位置处理电路230连接,用于根据两路正交的正弦 信号瞬时值生成模拟量控制信号。模拟量生成电路260与转换控制电路255连接,用于根据转换控制电路255输出的模拟量控制信号将位置信号转换为模拟量信号后输出。在本实施例中,模拟量生成电路260为PWM脉冲宽度调制电路。因此,模拟量控制信号用于对脉冲信号的占空比进行调整,从而对输出的模拟量信号进行控制。具体地,模拟量控制信号可以根据以下公式计算获得:The conversion control circuit 255 is coupled to the position processing circuit 230 for sinusoidal according to two orthogonal directions The instantaneous value of the signal generates an analog control signal. The analog quantity generating circuit 260 is connected to the conversion control circuit 255 for outputting the position signal into an analog quantity signal according to the analog quantity control signal output from the conversion control circuit 255. In the present embodiment, the analog quantity generating circuit 260 is a PWM pulse width modulation circuit. Therefore, the analog control signal is used to adjust the duty cycle of the pulse signal to control the output analog signal. Specifically, the analog control signal can be calculated according to the following formula:
其中,占空比为0时对应C、D相为负向最大值;占空比为50%时对应C、D相为零值;占空比为100%时对应C、D相为正向最大值。Wherein, when the duty ratio is 0, the corresponding C and D phases are negative maximum values; when the duty ratio is 50%, the corresponding C and D phases are zero values; when the duty ratio is 100%, the corresponding C and D phases are positive. Maximum value.
通过上述电路可以将绝对值位置信号转换为反应实际位置的两路模拟量信号后通过输出电路265即可直接输出给后续处理设备进行进一步的信号处理,而无需使用专门总线来实现数据的传输,降低了对后续处理设备的要求,兼容性较好。在一实施例中,输出电路265为DA接口。Through the above circuit, the absolute value position signal can be converted into two analog signals of the actual position, and then outputted to the subsequent processing device for further signal processing through the
在本实施例中,绝对值编码器信号处理装置还会对输出的模拟量信号进行采样校验,从而确保输出的准确性。采样校验电路270与模拟量生成电路260的输出端以及输出电路265的输出端连接。采样校验电路270用于对输出电路265输出端的信号进行采样,并将采样值与模拟量生成电路260生成的模拟量信号进行比较,判断二者是否相同。可以理解,当二者的偏差在误差允许范围内时,可以认为二者为相同。采样校验电路270在判断出采样值与模拟量生成电路260生成的模拟量信号不相同时,输出报错信息,提示模拟量生成电路260后的电路可能出现问题,并保存该报错信息。通讯电路275与采样校验电路270连接,用于将报错信息输出给后续处理设备。通过对输出的模拟量信号进行采样校验可以提高输出的准确性,进一步提高系统的可靠性。在一实施例中,通讯电路275还与位置处理电路230连接,用于将校
验信息的情况发送给后续处理设备,以便后续处理设备知晓绝对值编码器的工作情况。In this embodiment, the absolute value encoder signal processing device also performs sampling and verification on the output analog signal to ensure the accuracy of the output. The
在一实施例中,接口驱动电路214、脉冲计数电路220、位置处理电路230、转换控制电路255、模拟量生成电路260、采样校验电路270以及通讯电路275均集成在一数字信号处理(Digital Signal Processing,DSP)芯片中,从而替代FPGA芯片来实现对绝对值编码器输出的位置信号的处理,降低了生产成本同时提高了装置的集成度。In an embodiment, the
图3为一实施例中的绝对值编码器信号处理方法的流程图,包括以下步骤:3 is a flow chart of an absolute value encoder signal processing method in an embodiment, including the following steps:
S310,读取绝对值编码器输出的位置信号以及校验信息。S310, reading the position signal output by the absolute encoder and the verification information.
从绝对值编码器的DATA+、DATA-、CLK+以及CLK-端读取其位置信号以及校验信息。The position signal and the verification information are read from the DATA+, DATA-, CLK+, and CLK- terminals of the absolute encoder.
S320,根据校验信息判断位置信号是否正确。S320. Determine, according to the verification information, whether the location signal is correct.
根据读取到的位置信号计算校验码,并判断计算得到的校验码与校验信息中的校验码是否一致,若一致则表示位置信号正确。反之,如果校验码不一致,表示校验失败,位置信号错误。若位置信号正确则直接执行步骤S340,反之则执行步骤S330及其后续步骤。The check code is calculated according to the read position signal, and it is judged whether the calculated check code is consistent with the check code in the check information, and if they match, the position signal is correct. Conversely, if the check codes are inconsistent, the verification fails and the position signal is incorrect. If the position signal is correct, step S340 is directly performed; otherwise, step S330 and subsequent steps are performed.
S330,根据当前的位置信息以及脉冲计数电路的计数值计算出正确的位置信号。S330, calculating a correct position signal according to the current position information and the count value of the pulse counting circuit.
计算正确的位置信号的公式如下:The formula for calculating the correct position signal is as follows:
其中,Pnow表示正确的位置信号,Pold为当前的位置信号,从位置处理电路中的位置信息中可以直接读取获得,K为计数值,PA为绝对值编码器旋转一周后位置信号的变化量,KA为所述绝对值编码器旋转一周后所述脉冲计数电路的计数值的变化量。在本实施例中,绝对值编码器旋转一周其位置信号的变化量PA为65536,其旋转一周后脉冲计数电路120的计数值的变化量KA 为8192。因此,上述公式转化为:Among them, P now represents the correct position signal, P old is the current position signal, which can be directly read from the position information in the position processing circuit, K is the count value, and P A is the position signal after the encoder rotates for one week. The amount of change, K A , is the amount of change in the count value of the pulse counting circuit after one revolution of the absolute value encoder. In the present embodiment, the amount of change P A of the position signal of the absolute value encoder is 65536, and the amount of change K A of the count value of the pulse counting circuit 120 after one rotation is 8192. Therefore, the above formula translates to:
经过上述处理后,可以避免因为校验信息错误时位置信号突变的情况发生,提高了系统的可靠性。After the above processing, it is possible to avoid the occurrence of a sudden change in the position signal when the verification information is incorrect, thereby improving the reliability of the system.
S340,更新位置信息并将脉冲计数电路的计数值清零。S340, updating the position information and clearing the count value of the pulse counting circuit.
在判断出位置信号正确或者计算出正确的位置信号后对位置信息进行更新,即将正确的位置信号替换掉位置信息中原有的位置信号,同时将脉冲计数电路的计数值进行清零,便于下一次位置信号的处理。在本实施例中,在更新位置信息后还会将更新后的位置信息进行存储。After determining that the position signal is correct or calculating the correct position signal, the position information is updated, that is, the correct position signal is replaced with the original position signal in the position information, and the count value of the pulse counting circuit is cleared to facilitate the next time. Processing of position signals. In this embodiment, the updated location information is also stored after the location information is updated.
上述绝对值编码器信号处理方法,处理过程无需使用专门的FPGA芯片,生产成本较低。并且,在数据校验失败(即校验信息错误)时根据脉冲计数电路的计数值以及当前位置信息计算得到正确的位置信号,从而避免校验失败时位置信号突变的情况发生,提高了系统的可靠性。The above-mentioned absolute value encoder signal processing method does not require a special FPGA chip, and the production cost is low. Moreover, when the data verification fails (ie, the verification information is wrong), the correct position signal is calculated according to the count value of the pulse counting circuit and the current position information, thereby avoiding a situation where the position signal is abrupt when the verification fails, and the system is improved. reliability.
在一实施例中,上述绝对值编码编码器信号处理方法中还包括步骤S350~390,如图4所示。In an embodiment, the above-mentioned absolute value encoding encoder signal processing method further includes steps S350-390, as shown in FIG.
S350,将计算得到的位置信号转换为角度信号并根据所述角度信号生成两路正交的正弦信号瞬时值。S350. Convert the calculated position signal into an angle signal and generate two orthogonal sinusoidal signal instantaneous values according to the angle signal.
转换过程的计算公式为::T即为转换后的角度信号;PA为绝对值编码器旋转一周后位置信号的变化量。两路正交的正弦信号瞬时值(一路为C相,一路为D相),计算公式如下:C=sinT,D=cosT。其中,C为第一正弦信号瞬时值,D为第二正弦信号瞬时值。The calculation formula for the conversion process is: T is the converted angle signal; P A is the amount of change in the position signal after one revolution of the absolute encoder. The instantaneous value of the two orthogonal sinusoidal signals (one for the C phase and one for the D phase) is calculated as follows: C = sinT, D = cosT. Where C is the instantaneous value of the first sinusoidal signal and D is the instantaneous value of the second sinusoidal signal.
S360,根据生成的两路正交的正弦信号瞬时值生成模拟量控制信号。S360: Generate an analog quantity control signal according to the generated two orthogonal sinusoidal signal instantaneous values.
在本实施例中,是通过PWM脉冲宽度调制电路来实现数字量的正弦信号值到模拟量信号的转变,因此模拟量控制信号用于控制PWM脉冲宽度调制电路(模拟量输出电路)输出的脉冲信号的占空比。具体地,模拟量控制 信号可以根据以下公式计算获得:In this embodiment, the digital sinusoidal signal value is converted to the analog signal by the PWM pulse width modulation circuit, so the analog control signal is used to control the pulse outputted by the PWM pulse width modulation circuit (analog output circuit). The duty cycle of the signal. Specifically, analog control The signal can be calculated according to the following formula:
其中,占空比为0时对应C、D相为负向最大值;占空比为50%时对应C、D相为零值;占空比为100%时对应C、D相为正向最大值。Wherein, when the duty ratio is 0, the corresponding C and D phases are negative maximum values; when the duty ratio is 50%, the corresponding C and D phases are zero values; when the duty ratio is 100%, the corresponding C and D phases are positive. Maximum value.
通过将绝对值位置信号转换为反应实际位置的两路模拟量信号后可以直接输出给后续处理设备进行进一步的信号处理,而无需使用专门总线来实现数据的传输,降低了对后续处理设备的要求,装置的兼容性较好。By converting the absolute value position signal into two analog signals of the actual position of the reaction, it can be directly output to the subsequent processing device for further signal processing without using a dedicated bus to realize data transmission, thereby reducing the requirements for subsequent processing equipment. The compatibility of the device is good.
S370,根据模拟量控制信号生成模拟量信号后通过输出电路输出给后续处理设备。S370: Generate an analog signal according to the analog quantity control signal, and output it to the subsequent processing device through the output circuit.
PWM脉冲宽度调制电路在模拟量控制信号的控制下对输出信号的占空比进行调整从而使得输出的模拟量信号能够反映绝对值编码器的实际位置。The PWM pulse width modulation circuit adjusts the duty ratio of the output signal under the control of the analog control signal so that the output analog signal can reflect the actual position of the absolute value encoder.
S380,检测输出电路输出端的信号并判断输出电路输出端的信号与生成的模拟量信号是否相同。S380: Detect a signal at an output end of the output circuit and determine whether the signal at the output of the output circuit is the same as the generated analog signal.
通过判断输出电路输出的信号与生成的模拟量信号是否相同来判断模拟量信号的后续处理电路如输出电路等是否存在问题,从而确保输出信号的准确性,提高系统的可靠性。如果二者相同,则不用进行任何操作,结束操作;如果不相同,则表示后续电路可能出现问题,执行步骤S390。By judging whether the signal outputted by the output circuit and the generated analog signal are the same, it is determined whether there is a problem in the subsequent processing circuit such as the output circuit of the analog signal, thereby ensuring the accuracy of the output signal and improving the reliability of the system. If the two are the same, the operation is ended without any operation; if not, it indicates that there may be a problem with the subsequent circuit, and step S390 is performed.
S390,输出报错信息。S390, outputting error information.
将报错信息输出给后续处理设备,以便后续处理设备知晓绝对值编码器的工作情况。The error information is output to the subsequent processing device, so that the subsequent processing device knows the operation of the absolute value encoder.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详 细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above described embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed. It is not to be construed as limiting the scope of the invention patent. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.
Claims (19)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2015/076690 WO2016165091A1 (en) | 2015-04-16 | 2015-04-16 | Apparatus and method for processing signal of absolute value encoder |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2015/076690 WO2016165091A1 (en) | 2015-04-16 | 2015-04-16 | Apparatus and method for processing signal of absolute value encoder |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016165091A1 true WO2016165091A1 (en) | 2016-10-20 |
Family
ID=57125561
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/076690 Ceased WO2016165091A1 (en) | 2015-04-16 | 2015-04-16 | Apparatus and method for processing signal of absolute value encoder |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2016165091A1 (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110727216A (en) * | 2019-09-23 | 2020-01-24 | 重庆智能机器人研究院 | Data reading method and device of encoder and data reading device |
| CN111366176A (en) * | 2018-12-25 | 2020-07-03 | 北京精雕科技集团有限公司 | A multi-protocol and multi-type sine-cosine encoder signal processing device |
| CN111857009A (en) * | 2020-07-31 | 2020-10-30 | 西安爱生技术集团公司 | A redundant hand-cranked antenna control panel with self-calibration function |
| CN112378425A (en) * | 2020-11-03 | 2021-02-19 | 通用电气(武汉)自动化有限公司 | Initial value setting method and device for multi-turn absolute value encoder and storage medium |
| CN113091774A (en) * | 2021-03-17 | 2021-07-09 | 陈权 | Sine and cosine coding method based on absolute value encoder |
| CN113847935A (en) * | 2021-09-24 | 2021-12-28 | 深圳市灵犀自动化技术有限公司 | Position determination method and device of hybrid encoder |
| CN114578725A (en) * | 2022-01-18 | 2022-06-03 | 湖南航天机电设备与特种材料研究所 | Data acquisition system and acquisition method |
| CN119002349A (en) * | 2024-08-08 | 2024-11-22 | 湖南航天磁电有限责任公司 | ARM-based SSI absolute value encoder |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050012481A1 (en) * | 2003-07-16 | 2005-01-20 | Samsung Electronics Co., Ltd. | Method and apparatus for processing the output signal of an encoder |
| CN101782405A (en) * | 2010-01-26 | 2010-07-21 | 中国科学院光电技术研究所 | Hardware real-time verification method and system based on pseudo-random coding displacement sensor |
| CN102132126A (en) * | 2008-08-26 | 2011-07-20 | 株式会社尼康 | Encoder system, signal processing method, and transmission signal generation and output device |
| CN102928004A (en) * | 2012-11-01 | 2013-02-13 | 中国科学院上海技术物理研究所 | Encoder signal real-time processing system and method |
| JP2015049769A (en) * | 2013-09-03 | 2015-03-16 | 株式会社ニコン | COMMUNICATION DEVICE, ENCODER DEVICE, AND SERIAL COMMUNICATION METHOD |
| CN104852743A (en) * | 2015-04-16 | 2015-08-19 | 深圳市海浦蒙特科技有限公司 | Device and method for signal processing of absolute value encoder |
| CN204666167U (en) * | 2015-04-16 | 2015-09-23 | 深圳市海浦蒙特科技有限公司 | Absolute value encoder signal processing apparatus |
-
2015
- 2015-04-16 WO PCT/CN2015/076690 patent/WO2016165091A1/en not_active Ceased
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20050012481A1 (en) * | 2003-07-16 | 2005-01-20 | Samsung Electronics Co., Ltd. | Method and apparatus for processing the output signal of an encoder |
| CN102132126A (en) * | 2008-08-26 | 2011-07-20 | 株式会社尼康 | Encoder system, signal processing method, and transmission signal generation and output device |
| CN101782405A (en) * | 2010-01-26 | 2010-07-21 | 中国科学院光电技术研究所 | Hardware real-time verification method and system based on pseudo-random coding displacement sensor |
| CN102928004A (en) * | 2012-11-01 | 2013-02-13 | 中国科学院上海技术物理研究所 | Encoder signal real-time processing system and method |
| JP2015049769A (en) * | 2013-09-03 | 2015-03-16 | 株式会社ニコン | COMMUNICATION DEVICE, ENCODER DEVICE, AND SERIAL COMMUNICATION METHOD |
| CN104852743A (en) * | 2015-04-16 | 2015-08-19 | 深圳市海浦蒙特科技有限公司 | Device and method for signal processing of absolute value encoder |
| CN204666167U (en) * | 2015-04-16 | 2015-09-23 | 深圳市海浦蒙特科技有限公司 | Absolute value encoder signal processing apparatus |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111366176A (en) * | 2018-12-25 | 2020-07-03 | 北京精雕科技集团有限公司 | A multi-protocol and multi-type sine-cosine encoder signal processing device |
| CN110727216A (en) * | 2019-09-23 | 2020-01-24 | 重庆智能机器人研究院 | Data reading method and device of encoder and data reading device |
| CN111857009A (en) * | 2020-07-31 | 2020-10-30 | 西安爱生技术集团公司 | A redundant hand-cranked antenna control panel with self-calibration function |
| CN111857009B (en) * | 2020-07-31 | 2024-06-04 | 西安爱生技术集团公司 | Manual antenna control panel with self-checking function |
| CN112378425A (en) * | 2020-11-03 | 2021-02-19 | 通用电气(武汉)自动化有限公司 | Initial value setting method and device for multi-turn absolute value encoder and storage medium |
| CN112378425B (en) * | 2020-11-03 | 2022-03-25 | 通用电气(武汉)自动化有限公司 | Initial value setting method and device for multi-turn absolute value encoder and storage medium |
| CN113091774A (en) * | 2021-03-17 | 2021-07-09 | 陈权 | Sine and cosine coding method based on absolute value encoder |
| CN113847935A (en) * | 2021-09-24 | 2021-12-28 | 深圳市灵犀自动化技术有限公司 | Position determination method and device of hybrid encoder |
| CN114578725A (en) * | 2022-01-18 | 2022-06-03 | 湖南航天机电设备与特种材料研究所 | Data acquisition system and acquisition method |
| CN114578725B (en) * | 2022-01-18 | 2024-04-05 | 湖南航天机电设备与特种材料研究所 | Data acquisition system and acquisition method |
| CN119002349A (en) * | 2024-08-08 | 2024-11-22 | 湖南航天磁电有限责任公司 | ARM-based SSI absolute value encoder |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2016165091A1 (en) | Apparatus and method for processing signal of absolute value encoder | |
| JP6163874B2 (en) | Rotation angle detection device, image processing device, and rotation angle detection method | |
| CN104218865B (en) | Permanent magnet motor rotor position calculation method | |
| US10756655B2 (en) | Resolver management device, resolver system including the same, and operating method thereof | |
| CN104297717A (en) | Electric energy meter correction method and system and electric energy meter | |
| CN106301105A (en) | Based on incremental optical-electricity encoder multipolar dynamo method for detecting magnetic pole position | |
| CN111964707B (en) | Angle calibration method of absolute magnetic encoder based on cursor code channel | |
| CN204666167U (en) | Absolute value encoder signal processing apparatus | |
| CN104122936A (en) | MCU chip frequency division clock correcting device and method | |
| CN110440846A (en) | A kind of collecting method of encoder, system, terminal and storage medium | |
| CN106645780B (en) | DSP-based rotating speed detection method and system | |
| CN108445735A (en) | A Calibration Method of Hierarchical TDC Using Delay Chain Structure | |
| CN104852743B (en) | Absolute value encoder signal processing apparatus and method | |
| CN102739085B (en) | Inverter phase sequence detection phase locking device and phase locking and phase sequence identifying method | |
| CN104917428B (en) | Motor control apparatus | |
| JP2007315856A (en) | Compensation method and angle detection apparatus using the same in resolver angle detection | |
| JP2005257565A (en) | Resolver digital angle conversion device, method, and program | |
| CN108551282B (en) | Two-channel resolver solution correction method, module and motor control system | |
| CN112117994B (en) | A decoding method for incremental encoder | |
| CN105092036B (en) | Synchronous triggering calibrating method and device in rotary device type spectroscopic ellipsometers | |
| CN119642882A (en) | Method, apparatus and storage medium for calibrating position of encoder | |
| CN101592468B (en) | Ring addressing method and system for pseudo-random code displacement sensor | |
| CN116896306A (en) | How to obtain the installation deviation angle of an orthogonal encoder | |
| JP4782434B2 (en) | Rotation detection device signal processing device | |
| JP4519183B2 (en) | AB phase signal generator, RD converter and angle detection device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15888796 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2017/13004 Country of ref document: TR |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15888796 Country of ref document: EP Kind code of ref document: A1 |