[go: up one dir, main page]

CN102237836A - Servo driver and control method thereof - Google Patents

Servo driver and control method thereof Download PDF

Info

Publication number
CN102237836A
CN102237836A CN2010101693729A CN201010169372A CN102237836A CN 102237836 A CN102237836 A CN 102237836A CN 2010101693729 A CN2010101693729 A CN 2010101693729A CN 201010169372 A CN201010169372 A CN 201010169372A CN 102237836 A CN102237836 A CN 102237836A
Authority
CN
China
Prior art keywords
phase signals
phase
width
variable
phase signal
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.)
Granted
Application number
CN2010101693729A
Other languages
Chinese (zh)
Other versions
CN102237836B (en
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.)
Teco Electric and Machinery Co Ltd
Original Assignee
Teco Electric and Machinery 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 Teco Electric and Machinery Co Ltd filed Critical Teco Electric and Machinery Co Ltd
Priority to CN2010101693729A priority Critical patent/CN102237836B/en
Publication of CN102237836A publication Critical patent/CN102237836A/en
Application granted granted Critical
Publication of CN102237836B publication Critical patent/CN102237836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

伺服驱动器包括分周电路以及脉宽处理电路。分周电路用以接收马达编码器所输出的A相信号与B相信号,与输出分周A相信号与分周B相信号。脉宽处理电路内设有一默认值,用以接收马达编码器所输出的一Z相信号,且激活记录功能以纪录一Z相时程,并输出可变宽度Z相信号。当Z相时程等于默认值,脉宽处理电路停止输出可变宽度Z相信号至上位控制器。

Figure 201010169372

The servo driver includes a division circuit and a pulse width processing circuit. The division circuit is used to receive the A phase signal and the B phase signal output by the motor encoder, and output the division A phase signal and the division B phase signal. The pulse width processing circuit is provided with a default value, which is used to receive a Z phase signal output by the motor encoder, activate the recording function to record a Z phase schedule, and output a variable width Z phase signal. When the Z phase schedule is equal to the default value, the pulse width processing circuit stops outputting the variable width Z phase signal to the upper controller.

Figure 201010169372

Description

伺服驱动器及其控制方法Servo drive and its control method

【技术领域】【Technical field】

本发明是有关于一种驱动器,且特别是有关于一种伺服驱动器的控制方法及应用其的伺服驱动器。The present invention relates to a driver, and in particular to a control method of a servo driver and a servo driver using the same.

【背景技术】【Background technique】

一般而言,带动负载的马达需要一个能感应目前马达转速与位置的感测单元,一般称为马达编码器(Encoder)。常见的马达编码器(Encoder)是会输出A相信号、B相信号及Z相信号。其中,Z相信号用以表示马达原点信号,并于马达旋转一圈时出现一次。传统廉价的处理电路是将Z相信号直接输出至上位控制器。Generally speaking, a motor that drives a load needs a sensing unit that can sense the current speed and position of the motor, which is generally called a motor encoder (Encoder). A common motor encoder (Encoder) will output A-phase signal, B-phase signal and Z-phase signal. Wherein, the Z-phase signal is used to represent the origin signal of the motor, and appears once when the motor rotates one revolution. The traditional cheap processing circuit is to directly output the Z-phase signal to the host controller.

然而,随着应用场合转速提高并搭配较高分辨率的编码器,就会使得Z相信号出现的宽度变窄,则会产生上位控制器无法收到Z相信号的情况。此外,部份厂商的编码器规格,若Z相信号本身就过窄的情况下,如Z相信号的宽度仅为A相信号或B相信号的半幅宽的情况,则会更容易造成上位控制器收不到Z相信号。However, as the speed of the application increases and the encoder with a higher resolution is used, the width of the Z-phase signal will be narrowed, and the upper controller will not be able to receive the Z-phase signal. In addition, in the encoder specifications of some manufacturers, if the Z-phase signal itself is too narrow, such as the width of the Z-phase signal is only half the width of the A-phase signal or B-phase signal, it will be more likely to cause host control. The device cannot receive the Z-phase signal.

故,如何改善上位控制器因Z相信号过窄,而无法收到Z相信号的缺失,即为本发明主要改善的课题。Therefore, how to improve the lack of the Z-phase signal that the host controller cannot receive due to the Z-phase signal being too narrow is the main improvement subject of the present invention.

【发明内容】【Content of invention】

本发明系有关于一种伺服驱动器及其控制方法,用以解决在高转速应用场合时,上位控制器读取不到Z相信号的问题。The invention relates to a servo driver and its control method, which are used to solve the problem that the upper controller cannot read the Z-phase signal in high-speed applications.

根据本发明的一方面,提出一种伺服驱动器的控制方法。伺服驱动器的控制方法至少包括如下步骤:脉宽处理电路接收马达编码器所输出的Z相信号,并内设默认值;当脉宽处理电路接收到Z相信号时,激活纪录功能以记录一Z相时程,并输出一可变宽度Z相信号;以及当Z相时程等于默认值,脉宽处理电路停止输出可变宽度Z相信号至上位控制器。According to one aspect of the present invention, a control method of a servo driver is proposed. The control method of the servo drive at least includes the following steps: the pulse width processing circuit receives the Z-phase signal output by the motor encoder, and sets a default value; when the pulse width processing circuit receives the Z-phase signal, activates the recording function to record a Z-phase and output a variable-width Z-phase signal; and when the Z-phase time is equal to a default value, the pulse width processing circuit stops outputting the variable-width Z-phase signal to the host controller.

根据本发明的另一方面,提出一种伺服驱动器。伺服驱动器包括分周电路以及脉宽处理电路。分周电路用以接收马达编码器所输出的A相信号与B相信号,与输出分周A相信号与分周B相信号。脉宽处理电路内设有一默认值,用以接收马达编码器所输出的一Z相信号,且激活纪录功能以记录一Z相时程,并输出一可变宽度Z相信号。当Z相时程等于默认值,脉宽处理电路停止输出可变宽度Z相信号至上位控制器。According to another aspect of the present invention, a servo drive is provided. The servo drive includes a cycle circuit and a pulse width processing circuit. The cycle circuit is used for receiving the A-phase signal and the B-phase signal output by the motor encoder, and outputting the cycle-by-phase A signal and the cycle-B phase signal. A default value is set in the pulse width processing circuit to receive a Z-phase signal output by the motor encoder, activate the recording function to record a Z-phase time course, and output a variable-width Z-phase signal. When the Z-phase duration is equal to the default value, the pulse width processing circuit stops outputting the variable-width Z-phase signal to the host controller.

为让本发明的上述内容能更明显易懂,下文特举一较佳实施例,并配合所附图式,作详细说明如下:In order to make the above content of the present invention more obvious and understandable, a preferred embodiment is specifically cited below, together with the accompanying drawings, and described in detail as follows:

【附图说明】【Description of drawings】

图1绘示系为伺服驱动器的局部示意图。FIG. 1 shows a partial schematic diagram of the servo driver.

图2绘示系为伺服驱动器的信号波形图。Fig. 2 shows the signal waveform diagram of the servo driver.

图3绘示系为依照本发明第一实施例的一种伺服驱动器的控制方法的流程图。FIG. 3 is a flowchart of a control method of a servo driver according to the first embodiment of the present invention.

图4绘示系为依照本发明第二实施例的一种伺服驱动器的控制方法的流程图。FIG. 4 is a flowchart of a control method of a servo driver according to a second embodiment of the present invention.

图5绘示系为依照本发明第二实施例的一种伺服驱动器。FIG. 5 shows a servo driver according to the second embodiment of the present invention.

图6绘示系为依照本发明第三实施例的信号波形图。FIG. 6 is a signal waveform diagram according to a third embodiment of the present invention.

【主要组件符号说明】[Description of main component symbols]

10:马达编码器10: Motor encoder

20:上位控制器20: Host controller

30、40:伺服驱动器30, 40: Servo drive

310:分周电路310: Weekly circuit

330:脉宽处理电路330: Pulse width processing circuit

SA:A相信号SA: Phase A signal

SB:B相信号SB: Phase B signal

SZ、Z:Z相信号SZ, Z: Z phase signal

PA:分周A相信号PA: A-phase signal divided into cycles

PB:分周B相信号PB: cycle B phase signal

ZW、ZW1、ZW2、ZW3:可变宽度Z相信号ZW, ZW1, ZW2, ZW3: variable width Z-phase signal

410、440、450、460、470、480、510、540、550、560:步骤410, 440, 450, 460, 470, 480, 510, 540, 550, 560: steps

【具体实施方式】【Detailed ways】

为了解决上位控制器读取不到Z相信号的问题,下述实施例提供一种伺服驱动器及其控制方法。伺服驱动器包括分周电路以及脉宽处理电路。分周电路用以接收马达编码器所输出的A相信号与B相信号,与输出分周A相信号与分周B相信号。脉宽处理电路内设有一默认值,用以接收马达编码器所输出的一Z相信号,且激活记录功能以记录一Z相时程,并输出可变宽度Z相信号。当Z相时程等于默认值,脉宽处理电路停止输出可变宽度Z相信号至上位控制器。In order to solve the problem that the host controller cannot read the Z-phase signal, the following embodiments provide a servo drive and a control method thereof. The servo drive includes a cycle circuit and a pulse width processing circuit. The cycle circuit is used for receiving the A-phase signal and the B-phase signal output by the motor encoder, and outputting the cycle-by-phase A signal and the cycle-B phase signal. A default value is set in the pulse width processing circuit to receive a Z-phase signal output by the motor encoder, and activate the recording function to record a Z-phase time course, and output a variable-width Z-phase signal. When the Z-phase duration is equal to the default value, the pulse width processing circuit stops outputting the variable-width Z-phase signal to the host controller.

伺服驱动器的控制方法至少包括如下步骤:脉宽处理电路接收马达编码器所输出的Z相信号,并内设默认值;脉宽处理电路激活记录功能以记录一Z相时程,并输出一可变宽度Z相信号;以及当Z相时程等于默认值,脉宽处理电路停止输出可变宽度Z相信号至上位控制器。实施方式中所提及的「信号」,其意包含英文中的「signal」、日文&简体字中的「信号」。The control method of the servo driver at least includes the following steps: the pulse width processing circuit receives the Z-phase signal output by the motor encoder, and sets a default value; the pulse width processing circuit activates the recording function to record a Z-phase time course, and outputs a A variable-width Z-phase signal; and when the Z-phase duration is equal to a default value, the pulse width processing circuit stops outputting the variable-width Z-phase signal to the host controller. The "signal" mentioned in the embodiments includes "signal" in English and "signal" in Japanese & simplified Chinese.

第一实施例first embodiment

请同时参照图1及图2,图1绘示系为依照本发明第一实施例的一种伺服驱动器的局部示意图,图2绘示系为依照本发明第一实施例的信号波形图。伺服驱动器30系耦接于马达编码器10及上位控制器20的间,而上位控制器20例如为可程控器(Programmable Logic Controller,PLC)。伺服驱动器30包括分周电路310及脉宽处理电路330。分周电路310又称为除频电路,分周电路310接收马达编码器10的信息,并传送信息至上位控制器20。分周电路310根据一分周比将A相信号SA分周为分周A相信号PA并根据分周比将B相信号SB分周为分周B相信号PB,并将分周A相信号PA及分周B相信号PB输出至上位控制器20。Please refer to FIG. 1 and FIG. 2 at the same time. FIG. 1 is a partial schematic diagram of a servo driver according to the first embodiment of the present invention, and FIG. 2 is a signal waveform diagram according to the first embodiment of the present invention. The servo driver 30 is coupled between the motor encoder 10 and the host controller 20, and the host controller 20 is, for example, a Programmable Logic Controller (PLC). The servo driver 30 includes a cycle circuit 310 and a pulse width processing circuit 330 . The cycle dividing circuit 310 is also called a frequency dividing circuit. The cycle dividing circuit 310 receives the information from the motor encoder 10 and transmits the information to the host controller 20 . The division circuit 310 divides the A-phase signal SA into a division A-phase signal PA according to a division ratio, divides the B-phase signal SB into a division B-phase signal PB according to a division ratio, and divides the A-phase signal PA and the divided cycle B-phase signal PB are output to the host controller 20 .

脉宽处理电路330接收马达编码器10所输出的Z相信号SZ,且激活记录功能以记录一Z相时程。默认值与Z相时程例如为分周A相信号PA及分周B相信号PB的边缘个数或一时间值。脉宽处理电路330输出可变宽度Z相信号ZW。当Z相时程等于默认值时,脉宽处理电路330停止输出可变宽度Z相信号ZW至上位控制器20。当脉宽处理电路330停止输出可变宽度Z相信号ZW至上位控制器20,脉宽处理电路330同时停止记录功能,并将该Z相时程归零。The pulse width processing circuit 330 receives the Z-phase signal SZ output by the motor encoder 10 , and activates the recording function to record a Z-phase time course. The default value and the Z-phase duration are, for example, the number of edges of the phase-A signal PA and the phase-B signal PB or a time value. The pulse width processing circuit 330 outputs a variable width Z-phase signal ZW. When the Z-phase duration is equal to the default value, the pulse width processing circuit 330 stops outputting the variable-width Z-phase signal ZW to the host controller 20 . When the pulse width processing circuit 330 stops outputting the variable-width Z-phase signal ZW to the host controller 20 , the pulse width processing circuit 330 stops recording function at the same time, and resets the Z-phase duration to zero.

由于脉宽处理电路330能调整可变宽度Z相信号ZW的脉波宽度,因此能解决上位控制器20因Z相信号SZ的脉波宽度过小而读取不到Z相信号SZ的问题。该可变宽度Z相信号ZW,可如图2中的可变宽度Z相信号ZW1、可变宽度Z相信号ZW2或可变宽度Z相信号ZW3,换言的,该默认值不仅限于单一参数,其亦可包含复数参数,可供使用者依其需求进行设定。当前述默认值为1时,该可变宽度Z相信号ZW如图2绘示的可变宽度Z相信号ZW1,其宽度会包含一次的边缘个数,该边缘个数系指分周A相信号或分周B相信号的边缘个数,而当接收到第二次的边缘个数,即停止输出该可变宽度Z相信号ZW1;当前述默认值为2时,该可变宽度Z相信号ZW如图2绘示的可变宽度Z相信号ZW2,其宽度会包含二次的边缘个数,以图2而言,当接收到第三次的边缘个数,实时停止输出该可变宽度Z相信号ZW2,使该可变宽度Z相信号ZW2的宽度至少跨越二次边缘个数;当前述默认值为3时,该可变宽度Z相信号ZW如图2绘示的可变宽度Z相信号ZW3,其宽度会包含三次的边缘个数,亦即,当接收到第四次的边缘个数,实时停止输出该可变宽度Z相信号ZW3,使该可变宽度Z相信号ZW3的宽度至少跨越三次边缘个数。Since the pulse width processing circuit 330 can adjust the pulse width of the variable-width Z-phase signal ZW, it can solve the problem that the host controller 20 cannot read the Z-phase signal SZ because the pulse width of the Z-phase signal SZ is too small. The variable-width Z-phase signal ZW can be the variable-width Z-phase signal ZW1, the variable-width Z-phase signal ZW2 or the variable-width Z-phase signal ZW3 in Figure 2. In other words, the default value is not limited to a single parameter , which can also contain multiple parameters, which can be set by users according to their needs. When the aforementioned default value is 1, the variable-width Z-phase signal ZW shown in Figure 2 is the variable-width Z-phase signal ZW1, and its width will include the number of edges once. signal or the number of edges of the B-phase signal, and when the second edge number is received, the output of the variable-width Z-phase signal ZW1 is stopped; when the aforementioned default value is 2, the variable-width Z-phase The signal ZW shown in Figure 2 is the variable width Z-phase signal ZW2, whose width will include the second number of edges. As shown in Figure 2, when the third edge number is received, the output of the variable width will be stopped in real time. The width of the Z-phase signal ZW2, so that the width of the variable-width Z-phase signal ZW2 spans at least the number of secondary edges; when the aforementioned default value is 3, the variable-width Z-phase signal ZW has a variable width as shown in Figure 2 The width of the Z-phase signal ZW3 will include the number of edges three times, that is, when the fourth edge number is received, the output of the variable-width Z-phase signal ZW3 will be stopped in real time, so that the variable-width Z-phase signal ZW3 The width spans at least three times the number of edges.

请同时参照图1及图3,图3绘示系为依照本发明第一实施例的一种伺服驱动器的控制方法的流程图。伺服驱动器的控制方法包括如下步骤:Please refer to FIG. 1 and FIG. 3 at the same time. FIG. 3 is a flowchart of a control method of a servo driver according to a first embodiment of the present invention. The control method of the servo drive includes the following steps:

首先如步骤410所示。脉宽处理电路330接收马达编码器10所输出的Z相信号SZ。接着如步骤440所示,脉宽处理电路330激活记录功能以记录一Z相时程,并输出可变宽度Z相信号ZW。其中Z相时程系为分周A相信号PA及分周B相信号PB的边缘个数。接着如步骤450所示,脉宽处理电路330检测分周A相信号PA或分周B相信号PB的边缘。First, as shown in step 410 . The pulse width processing circuit 330 receives the Z-phase signal SZ output by the motor encoder 10 . Next, as shown in step 440 , the pulse width processing circuit 330 activates the recording function to record a Z-phase time course, and outputs a variable-width Z-phase signal ZW. The Z-phase time course is the number of edges of the cycle-by-cycle A-phase signal PA and the cycle-by-cycle B-phase signal PB. Next, as shown in step 450 , the pulse width processing circuit 330 detects the edge of the divided phase A signal PA or the divided phase B signal PB.

然后如步骤460所示,累加Z相时程。接着如步骤470所示,判断Z相时程是否等于默认值。其中默认值例如等于3。若Z相时程等于默认值,则执行步骤480。于步骤480中,脉宽处理电路330停止输出可变宽度Z相信号ZW至上位控制器20。当脉宽处理电路330停止输出可变宽度Z相信号ZW至上位控制器20,脉宽处理电路330同时停止记录功能,并将该Z相时程归零。当步骤480执行完毕后,即重复执行步骤410。Then, as shown in step 460, the Z-phase time history is accumulated. Then, as shown in step 470, it is judged whether the Z-phase time course is equal to the default value. Wherein the default value is equal to 3, for example. If the Z-phase duration is equal to the default value, go to step 480 . In step 480 , the pulse width processing circuit 330 stops outputting the variable-width Z-phase signal ZW to the host controller 20 . When the pulse width processing circuit 330 stops outputting the variable-width Z-phase signal ZW to the host controller 20 , the pulse width processing circuit 330 stops recording function at the same time, and resets the Z-phase duration to zero. After step 480 is executed, step 410 is repeatedly executed.

第二实施例second embodiment

请同时参照图4及图5,图4绘示系为依照本发明第二实施例的一种伺服驱动器的控制方法的流程图,图5绘示系为依照本发明第二实施例的一种伺服驱动器。此实施例的伺服驱动器40与第一实施例不同的处在于:此实施例中默认值与Z相时程系为时间值。此实施例的伺服驱动器其控制方法包括如下步骤:Please refer to FIG. 4 and FIG. 5 at the same time. FIG. 4 shows a flow chart of a control method of a servo driver according to the second embodiment of the present invention, and FIG. 5 shows a flow chart of a control method according to the second embodiment of the present invention. server Driver. The difference between the servo drive 40 of this embodiment and the first embodiment is that: in this embodiment, the default value and the Z-phase time course are time values. Its control method of the servo drive of this embodiment comprises the following steps:

首先如步骤510所示。脉宽处理电路330接收马达编码器10所输出的Z相信号SZ。接着如步骤540所示,脉宽处理电路330激活记录功能以记录一Z相时程,并输出可变宽度Z相信号ZW。其中默认值系为一时间值,而Z相时程则是记录运转时间。接着如步骤550所示,判断Z相时程是否等于默认值。若Z相时程等于默认值,则执行步骤560。于步骤560中,脉宽处理电路330停止输出可变宽度Z相信号ZW至上位控制器20。当脉宽处理电路330停止输出可变宽度Z相信号ZW至上位控制器20,脉宽处理电路330同时停止记录功能,并将该Z相时程归零。当步骤560执行完毕后,即重复执行步骤510。First, as shown in step 510 . The pulse width processing circuit 330 receives the Z-phase signal SZ output by the motor encoder 10 . Next, as shown in step 540 , the pulse width processing circuit 330 activates the recording function to record a Z-phase time course, and outputs a variable-width Z-phase signal ZW. The default value is a time value, and the Z-phase time history is to record the running time. Next, as shown in step 550, it is judged whether the Z-phase time course is equal to the default value. If the Z-phase duration is equal to the default value, go to step 560 . In step 560 , the pulse width processing circuit 330 stops outputting the variable-width Z-phase signal ZW to the host controller 20 . When the pulse width processing circuit 330 stops outputting the variable-width Z-phase signal ZW to the host controller 20 , the pulse width processing circuit 330 stops recording function at the same time, and resets the Z-phase duration to zero. After step 560 is executed, step 510 is repeatedly executed.

需特别说明的是,第二实施例的默认值系取决于马达最高转速及马达编码器10的分辨率。马达最高转速的倒数与分辨率的比值等于一时脉周期。默认值可预设为小于此时脉周期或是预设为小于此时脉周期的二分的一,该二分的1时脉周期=60/(分辨率*最高转速),然不以此为限。It should be noted that the default value of the second embodiment depends on the maximum rotational speed of the motor and the resolution of the motor encoder 10 . The ratio of the reciprocal of the maximum motor speed to the resolution is equal to one clock period. The default value can be preset to be less than this clock period or to be less than one-half of this clock period, the clock period of this half = 60/(resolution*maximum speed), but not limited to this .

第三实施例third embodiment

请参照图6,图6绘示系为依照本发明第三实施例的信号波形图。前述第一实施例及第二实施例的伺服驱动器的控制方法系当Z相时程等于默认值时,停止输出可变宽度Z相信号ZW。然而,当马达编码器10所输出的Z相信号SZ的宽度大于脉宽处理电路330所设定的可变宽度Z相信号ZW时,则脉宽处理电路330不对Z相信号SZ进行处理,而直接输出Z相信号SZ至上位控制器20。其中,默认值与Z相时程可为分周A相信号PA及分周B相信号PB的边缘个数或一时间值。Please refer to FIG. 6 . FIG. 6 is a signal waveform diagram according to a third embodiment of the present invention. The control method of the servo driver in the first embodiment and the second embodiment is to stop outputting the variable-width Z-phase signal ZW when the Z-phase duration is equal to the default value. However, when the width of the Z-phase signal SZ output by the motor encoder 10 is greater than the variable width Z-phase signal ZW set by the pulse width processing circuit 330, the pulse width processing circuit 330 does not process the Z-phase signal SZ, but Directly output the Z-phase signal SZ to the host controller 20 . Wherein, the default value and the Z-phase duration may be the number of edges of the phase-A signal PA and the phase-B signal PB or a time value.

当前述默认值为1时,其可变宽度Z相信号ZW如图6绘示的可变宽度Z相信号ZW1;当前述默认值为2时,其可变宽度Z相信号ZW如图6绘示的可变宽度Z相信号ZW2;当前述默认值为3时,其可变宽度Z相信号ZW如图6绘示的可变宽度Z相信号ZW3。When the aforementioned default value is 1, its variable width Z-phase signal ZW is shown in Figure 6 as the variable width Z-phase signal ZW1; when the aforementioned default value is 2, its variable width Z-phase signal ZW is shown in Figure 6 The variable width Z-phase signal ZW2 shown; when the aforementioned default value is 3, the variable width Z-phase signal ZW is the variable width Z-phase signal ZW3 shown in FIG. 6 .

举例来说,图1及图5绘示的Z相信号SZ于图6系以Z相信号Z表示。当Z相信号Z的宽度大于可变宽度Z相信号ZW1时,则脉宽处理电路330直接输出Z相信号Z至上位控制器20。相似地,当Z相信号Z的宽度大于可变宽度Z相信号ZW2时,则脉宽处理电路330直接输出Z相信号Z至上位控制器20。相反地,当Z相信号Z的宽度小于可变宽度Z相信号ZW3时,脉宽处理电路330持续输出可变宽度Z相信号ZW3直到Z相时程等于默认值。For example, the Z-phase signal SZ shown in FIG. 1 and FIG. 5 is represented by the Z-phase signal Z in FIG. 6 . When the width of the Z-phase signal Z is greater than the variable-width Z-phase signal ZW1 , the pulse width processing circuit 330 directly outputs the Z-phase signal Z to the host controller 20 . Similarly, when the width of the Z-phase signal Z is greater than the variable-width Z-phase signal ZW2 , the pulse width processing circuit 330 directly outputs the Z-phase signal Z to the host controller 20 . Conversely, when the width of the Z-phase signal Z is smaller than the variable-width Z-phase signal ZW3 , the pulse width processing circuit 330 continues to output the variable-width Z-phase signal ZW3 until the Z-phase duration is equal to the default value.

本发明上述实施例所揭露的伺服驱动器及其控制方法能解决上位控制器读取不到Z相信号的问题,以确保马达的正常工作。The servo drive and its control method disclosed in the above embodiments of the present invention can solve the problem that the host controller cannot read the Z-phase signal, so as to ensure the normal operation of the motor.

另,于实施例中揭露,应用此提案技术的马达驱动器可与各式编码器相配合,可应用于常见的通讯型马达编码器、脉波型马达编码器等。In addition, as disclosed in the embodiments, the motor driver applying this proposed technology can cooperate with various encoders, and can be applied to common communication type motor encoders, pulse wave type motor encoders, and the like.

综上所述,虽然本发明已以一较佳实施例揭露如上,然其并非用以限定本发明。本发明所属技术领域中具有通常知识者,在不脱离本发明的精神和范围内,当可作各种的更动与润饰。因此,本发明的保护范围当视后附的申请专利范围所界定者为准。In summary, although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Those skilled in the art of the present invention can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the scope of the appended patent application.

Claims (10)

1. the control method of a servo-driver comprises:
The pulsewidth treatment circuit receives the Z phase signals that a motor encoder is exported, and in establish a default value;
This pulsewidth treatment circuit activation record function to be writing down a Z phase time-histories, and exports a variable-width Z phase signals; And
When this Z phase time-histories equals this default value, this pulsewidth treatment circuit stops to export level controller on this variable-width Z phase signals to.
2. Z phase signals method of adjustment according to claim 1 is characterized in that, when this pulsewidth treatment circuit stops to export this variable-width Z phase signals, and stops writing function simultaneously, and this Z phase time-histories is made zero.
3. Z phase signals method of adjustment according to claim 2 is characterized in that, more comprises:
All according to one minute than an A phase signals being divided Zhou Weiyi divide all A phase signals and all than dividing Zhou Weiyi to divide all B phase signals one B phase signals according to this branch; And
Detecting this divides all A phase signals maybe this divides the edge of all B phase signals; And
Maybe this divides the edge of all B phase signals to be detected when this divides all A phase signals, and this Z phase time-histories adds up;
Wherein this default value system is smaller or equal to 3.
4. Z phase signals method of adjustment according to claim 1 is characterized in that this default value depends on a resolution of a motor maximum speed and this motor encoder;
Wherein the ratio of the inverse of this motor maximum speed and resolution equals a clock pulse cycle;
Wherein this default value is less than this clock pulse cycle;
Wherein this Z phase time-histories is the record duration of runs.
5. Z phase signals method of adjustment according to claim 1 is characterized in that, when the width of this Z phase signals greater than this variable-width Z phase signals, this pulsewidth treatment circuit is exported this Z phase signals to going up level controller.
6. servo-driver comprises:
One fen all circuit is in order to receive A phase signals and the B phase signals that motor encoder is exported, with one fen all A phase signals of output and one fen all B phase signals; And
Be provided with a default value in the one pulsewidth treatment circuit, in order to receive the Z phase signals that motor encoder is exported, and the activation record function is to note down a Z phase time-histories, and export this variable-width Z phase signals, when this Z phase time-histories equals this default value, the pulsewidth treatment circuit stops to export level controller on this variable-width Z phase signals to.
7. servo-driver according to claim 6 is characterized in that, when this pulsewidth treatment circuit stops to export this variable-width Z phase signals, and stops writing function simultaneously, and this Z phase time-histories is made zero.
8. servo-driver according to claim 7, it is characterized in that, this divides all circuit all than an A phase signals being divided Zhou Weiyi divide all A phase signals and all than dividing Zhou Weiyi to divide all B phase signals one B phase signals according to this branch according to one minute, this pulsewidth treatment circuit is judged and this is divided all A phase signals maybe whether this divides the edge of all B phase signals to be detected, maybe this divides the edge of all B phase signals to be detected when this divides all A phase signals, and this Z phase time-histories adds up;
Wherein this default value system is smaller or equal to 3.
9. servo-driver according to claim 6 is characterized in that, this default value depends on a resolution of a motor maximum speed and this motor encoder;
Wherein the ratio of the inverse of this motor maximum speed and resolution equals a clock pulse cycle;
Wherein this default value is less than this clock pulse cycle;
Wherein this Z phase time-histories is the record duration of runs.
10. servo-driver according to claim 6 is characterized in that, when the width of this Z phase signals greater than this variable-width Z phase signals, this pulsewidth treatment circuit is exported this Z phase signals to going up level controller.
CN2010101693729A 2010-04-26 2010-04-26 Servo driver and control method thereof Active CN102237836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101693729A CN102237836B (en) 2010-04-26 2010-04-26 Servo driver and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101693729A CN102237836B (en) 2010-04-26 2010-04-26 Servo driver and control method thereof

Publications (2)

Publication Number Publication Date
CN102237836A true CN102237836A (en) 2011-11-09
CN102237836B CN102237836B (en) 2013-09-04

Family

ID=44888149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101693729A Active CN102237836B (en) 2010-04-26 2010-04-26 Servo driver and control method thereof

Country Status (1)

Country Link
CN (1) CN102237836B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360736A (en) * 2015-02-25 2017-11-17 株式会社电装 Controller for motor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2203773Y (en) * 1994-08-09 1995-07-19 北京科技大学 Rotary direction arbiter of coding device with doubling circuit
CN1514207A (en) * 2003-08-21 2004-07-21 哈尔滨工业大学 Magneto-optical Encoder Applied in Servo System
CN200947041Y (en) * 2006-07-28 2007-09-12 武汉科技大学 An FPGA-based encoder signal separation device
CN201365221Y (en) * 2009-02-25 2009-12-16 哈尔滨瑞哈科技发展有限公司 Servo drive of intelligent high-power DC motor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2203773Y (en) * 1994-08-09 1995-07-19 北京科技大学 Rotary direction arbiter of coding device with doubling circuit
CN1514207A (en) * 2003-08-21 2004-07-21 哈尔滨工业大学 Magneto-optical Encoder Applied in Servo System
CN200947041Y (en) * 2006-07-28 2007-09-12 武汉科技大学 An FPGA-based encoder signal separation device
CN201365221Y (en) * 2009-02-25 2009-12-16 哈尔滨瑞哈科技发展有限公司 Servo drive of intelligent high-power DC motor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360736A (en) * 2015-02-25 2017-11-17 株式会社电装 Controller for motor
CN107360736B (en) * 2015-02-25 2019-12-06 株式会社电装 motor control unit

Also Published As

Publication number Publication date
CN102237836B (en) 2013-09-04

Similar Documents

Publication Publication Date Title
CN201018440Y (en) Angular position and rotary speed testing apparatus of switch reluctance motor rotor
CN101266284A (en) Switch reluctance machine rotor angular position and rotation speed detection device and method
CN107086835B (en) Permanent magnet synchronous motor rotation initial zero-potential angle calibration system and calibration method
CA2760427A1 (en) Position estimation at starting and lower speeds in three-phase switched reluctance machines
CN105281616A (en) Angle correction method based on Hall sensor, apparatus and permanent-magnet synchronous motor
KR101338707B1 (en) Excitation signal generating device and resolver sensing device
CN102237836B (en) Servo driver and control method thereof
CN101741304B (en) Multi-subdivision high-speed constant torque controller for two-phase hybrid stepping motor based on CPLD
CN206164296U (en) Motor and driving circuit thereof
CN105227164A (en) The control method of relay, control device and electromagnetic oven
US9684616B2 (en) Motor control apparatus and motor control method
CN104422883B (en) The detection method and detection device of a kind of motor desynchronizing
TWI403083B (en) Servo driver and controlling method thereof
CN203984286U (en) A kind of motor position sensor zero-bit automatic learning system
JP2001336951A (en) Rotational position detecting apparatus and method
CN106160588A (en) High-precision Motor Driving System And Method Thereof
JP3168861B2 (en) Rotary encoder receiving circuit
Wilkening et al. EnDat 3–Safety-Related Fully Digital Encoder Interface from the Application Point of View
US9455656B2 (en) Motor controllers
CN104767467A (en) Method for calibrating mechanical zero of motor
CN102447433B (en) speed estimation method
CN105915133A (en) Stepping motor driver and random subdivision algorithm therefor
CN105553383B (en) Servo-driver super large gear ratio drive control method
CN114518782A (en) Micro control unit, motor rotating speed measuring method and system and storage medium
CN113794414A (en) Permanent magnet synchronous motor Hall signal online correction method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant