[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

TWI664507B - Automatic control apparatus and automatic control method - Google Patents

Automatic control apparatus and automatic control method Download PDF

Info

Publication number
TWI664507B
TWI664507B TW107102155A TW107102155A TWI664507B TW I664507 B TWI664507 B TW I664507B TW 107102155 A TW107102155 A TW 107102155A TW 107102155 A TW107102155 A TW 107102155A TW I664507 B TWI664507 B TW I664507B
Authority
TW
Taiwan
Prior art keywords
output shaft
angle
automatic control
motor
motor device
Prior art date
Application number
TW107102155A
Other languages
Chinese (zh)
Other versions
TW201933008A (en
Inventor
董其昌
Original Assignee
金寶電子工業股份有限公司
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 金寶電子工業股份有限公司 filed Critical 金寶電子工業股份有限公司
Priority to TW107102155A priority Critical patent/TWI664507B/en
Application granted granted Critical
Publication of TWI664507B publication Critical patent/TWI664507B/en
Publication of TW201933008A publication Critical patent/TW201933008A/en

Links

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

本發明提出一種自動控制設備包括控制器以及馬達裝置。馬達裝置包括輸出軸。控制器驅動馬達裝置操作在非固定模式或固定模式。若馬達裝置操作在固定模式,則馬達裝置的輸出軸的旋轉角度維持在目標角度。當控制器判斷輸出軸的旋轉角度發生改變時,若控制器判斷當前角度與目標角度相差超過門檻角度,則控制器利用當前角度重新設定目標角度,以使輸出軸維持在經重新設定的目標角度。另外,一種自動控制方法亦被提出。The invention provides an automatic control device including a controller and a motor device. The motor device includes an output shaft. The controller drives the motor unit to operate in a non-fixed mode or a fixed mode. If the motor device is operated in the fixed mode, the rotation angle of the output shaft of the motor device is maintained at the target angle. When the controller determines that the rotation angle of the output shaft has changed, if the controller determines that the difference between the current angle and the target angle exceeds the threshold angle, the controller uses the current angle to reset the target angle to maintain the output shaft at the reset target angle . In addition, an automatic control method is also proposed.

Description

自動控制設備以及自動控制方法Automatic control equipment and automatic control method

本發明是有關於一種控制技術,且特別是有關於一種自動控制設備以及自動控制方法。The present invention relates to a control technology, and more particularly, to an automatic control device and an automatic control method.

隨著科技的進步,自動化控制的技術在生活中的應用越來越普及,尤其是藉由多軸控制器所組成的機器人或機械手臂。這種多軸控制系統有多關節連結並節允許在平面或三度空間進行運動或使用線性位移移動。構造上由機械主體、控制裝置、伺服機構和感應器所組成,並由程式根據作業需求設定其一定的指定動作。With the advancement of science and technology, the application of automatic control technology in life is becoming more and more popular, especially the robot or robot arm composed of multi-axis controllers. This multi-axis control system has multiple joints and joints that allow movement in flat or three-dimensional space or movement using linear displacement. The structure is composed of a mechanical body, a control device, a servo mechanism and a sensor, and a certain designated action is set by a program according to the operation requirements.

舉例而言,一般的機器人或機械手臂若要設定某個姿勢,機器人或機械手臂的控制器必須對於關節處的馬達裝置先執行放鬆操作。接著,使用者的扳動機器人或機械手臂至特定位置後,機器人或機械手臂的控制器讀取並記錄馬達裝置的旋轉角度。然而,若機器人或機械手臂具有多個關節處,則上述的操作將變得不易。換句話說,由於機器人或機械手臂會受到重力的影響而下垂,造成使用者不易維持機器人或機械手臂的姿勢。因此,如何設計一種自動控制設備可具有便利的姿勢調整功能,是本領域目前重要的課題之一。For example, if a general robot or robot arm is to set a certain posture, the controller of the robot or robot arm must first perform a relaxation operation on the motor device at the joint. Then, after the user pulls the robot or robot arm to a specific position, the controller of the robot or robot arm reads and records the rotation angle of the motor device. However, if the robot or robot arm has multiple joints, the above operation will not be easy. In other words, since the robot or the robotic arm sags under the influence of gravity, it is difficult for the user to maintain the posture of the robot or the robotic arm. Therefore, how to design an automatic control device that can have a convenient posture adjustment function is one of the important topics in the field.

本發明提供一種自動控制設備以及自動控制方法,可有效依據施加在馬達裝置的輸出軸的扭矩大小來對應調整輸出軸的旋轉角度。因此,本發明的自動控制設備可具有便利的姿勢調整功能。The invention provides an automatic control device and an automatic control method, which can effectively adjust the rotation angle of the output shaft according to the amount of torque applied to the output shaft of the motor device. Therefore, the automatic control device of the present invention can have a convenient posture adjustment function.

本發明的自動控制設備包括馬達裝置以及控制器。所述馬達裝置包括輸出軸。所述控制器耦接所述馬達裝置。所述控制器驅動所述馬達裝置操作在非固定模式或固定模式。當所述馬達裝置操作在所述非固定模式時,所述輸出軸為可任意旋轉狀態。當所述馬達裝置操作在所述固定模式時,所述輸出軸為非任意旋轉狀態。當所述馬達裝置操作在所述固定模式時,所述輸出軸的旋轉角度維持在目標角度。當所述控制器判斷所述輸出軸的所述旋轉角度發生改變時,若所述控制器判斷所述當前角度與所述目標角度相差超過門檻角度,則所述控制器利用所述當前角度重新設定所述目標角度,以使所述輸出軸維持在經重新設定的所述目標角度。The automatic control device of the present invention includes a motor device and a controller. The motor device includes an output shaft. The controller is coupled to the motor device. The controller drives the motor device to operate in a non-fixed mode or a fixed mode. When the motor device is operated in the non-fixed mode, the output shaft can be arbitrarily rotated. When the motor device is operated in the fixed mode, the output shaft is in a non-arbitrary rotation state. When the motor device is operated in the fixed mode, a rotation angle of the output shaft is maintained at a target angle. When the controller determines that the rotation angle of the output shaft has changed, if the controller determines that the difference between the current angle and the target angle exceeds a threshold angle, the controller uses the current angle to restart The target angle is set so that the output shaft is maintained at the target angle that is reset.

本發明的自動控制方法適用於自動控制設備。所述自動控制設備包括控制器以及馬達裝置。所述馬達裝置包括輸出軸。所述自動控制方法包括:藉由所述控制器驅動所述馬達裝置操作在非固定模式或固定模式,其中當所述馬達裝置操作在所述非固定模式時,所述馬達裝置的輸出軸為可任意旋轉狀態,其中當所述馬達裝置操作在所述固定模式時,所述輸出軸為非任意旋轉狀態;當所述馬達裝置操作在所述固定模式時,維持所述輸出軸的旋轉角度在目標角度;當所述控制器判斷所述輸出軸的所述旋轉角度發生改變時,若所述控制器判斷所述當前角度與所述目標角度相差超過門檻角度,則所述控制器利用所述當前角度重新設定所述目標角度,以使所述輸出軸維持在經重新設定的所述目標角度。The automatic control method of the present invention is applicable to automatic control equipment. The automatic control device includes a controller and a motor device. The motor device includes an output shaft. The automatic control method includes: driving the motor device to operate in a non-fixed mode or a fixed mode by the controller, wherein when the motor device is operated in the non-fixed mode, an output shaft of the motor device is Arbitrary rotation state, wherein when the motor device is operated in the fixed mode, the output shaft is in a non-arbitrary rotation state; when the motor device is operated in the fixed mode, the rotation angle of the output shaft is maintained At the target angle; when the controller determines that the rotation angle of the output shaft has changed, if the controller determines that the difference between the current angle and the target angle exceeds a threshold angle, the controller uses the The current angle is reset to the target angle so that the output shaft is maintained at the reset target angle.

基於上述,本發明的自動控制設備以及自動控制方法提供一種可依據使用者施加的力量大小所成的旋轉角度變化來決定是否微調馬達裝置的輸出軸的旋轉角度的操作方式,以使本發明的自動控制設備可提供便利的姿勢調整功能。Based on the above, the automatic control device and the automatic control method of the present invention provide an operation mode that can decide whether to fine-tune the rotation angle of the output shaft of the motor device according to the rotation angle change made by the user's applied force, so that Automatic control equipment provides convenient posture adjustment.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above features and advantages of the present invention more comprehensible, embodiments are hereinafter described in detail with reference to the accompanying drawings.

為了使本發明之內容可以被更容易明瞭,以下提出多個實施例來說明本發明,然而本發明不僅限於所例示的多個實施例。又實施例之間也允許有適當的結合。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟,係代表相同或類似部件。In order to make the content of the present invention easier to understand, the following presents multiple embodiments to describe the present invention, but the present invention is not limited to the illustrated multiple embodiments. Appropriate combinations are also allowed between embodiments. In addition, wherever possible, the same reference numbers are used in the drawings and embodiments to refer to the same or similar components.

圖1繪示本發明一實施例的自動控制設備的方塊圖。參考圖1,自動控制設備100包括控制器110以及馬達裝置120。馬達裝置120耦接控制器110。馬達裝置120包括輸出軸121、輸出軸編碼器123、控制模組125、馬達127以及齒輪模組129。在本實施例中,控制模組125耦接馬達127,以控制馬達127。馬達127組合於輸出軸121以及齒輪模組129,以驅動輸出軸121以及齒輪模組129。輸出軸編碼器123耦接輸出軸121。在一實施例中,輸出軸編碼器123例如包括具有角度範圍為300度的可變電阻。舉例來說,可變電阻的兩端可耦接5伏特(volt)電壓,並且當輸出軸121旋轉時,可變電阻的電阻值對應於輸出軸121的旋轉角度而改變。因此,輸出軸編碼器123藉由讀取可變電阻的電阻值來對應取得輸出軸121的旋轉角度。FIG. 1 is a block diagram of an automatic control device according to an embodiment of the present invention. Referring to FIG. 1, the automatic control apparatus 100 includes a controller 110 and a motor device 120. The motor device 120 is coupled to the controller 110. The motor device 120 includes an output shaft 121, an output shaft encoder 123, a control module 125, a motor 127, and a gear module 129. In this embodiment, the control module 125 is coupled to the motor 127 to control the motor 127. The motor 127 is combined with the output shaft 121 and the gear module 129 to drive the output shaft 121 and the gear module 129. The output shaft encoder 123 is coupled to the output shaft 121. In one embodiment, the output shaft encoder 123 includes, for example, a variable resistor having an angular range of 300 degrees. For example, the two ends of the variable resistor may be coupled to a voltage of 5 volts, and when the output shaft 121 rotates, the resistance value of the variable resistor changes corresponding to the rotation angle of the output shaft 121. Therefore, the output shaft encoder 123 obtains the rotation angle of the output shaft 121 correspondingly by reading the resistance value of the variable resistor.

在本實施例中,馬達裝置120可例如是一種智慧型伺服馬達(Smart servo motor),但本發明並不限於此。在本實施例中,馬達裝置120接收控制器110的命令而執行對應的操作。控制器110的命令例如是固定命令、放鬆命令、讀取旋轉角度命令以及設定目標角度命令。在本實施例中,固定命令可意指馬達裝置120的輸出軸121維持在目標角度。放鬆命令可意指馬達裝置120的輸出軸121可任意旋轉。讀取旋轉角度命令可意指控制器110讀取並記錄輸出軸的當前角度。設定目標角度命令可意指利用比例-積分-微分(Proportional-Integral-Derivative, PID)控制理論,使控制器110驅動輸出軸旋轉至目標角度,並且固定輸出軸在目標角度。In this embodiment, the motor device 120 may be, for example, a smart servo motor, but the present invention is not limited thereto. In this embodiment, the motor device 120 receives a command from the controller 110 and performs a corresponding operation. The commands of the controller 110 are, for example, a fixed command, a release command, a read rotation angle command, and a set target angle command. In this embodiment, the fixed command may mean that the output shaft 121 of the motor device 120 is maintained at a target angle. The release command may mean that the output shaft 121 of the motor device 120 can be arbitrarily rotated. The read rotation angle command may mean that the controller 110 reads and records the current angle of the output shaft. The set target angle command may mean that the controller 110 drives the output shaft to rotate to the target angle by using the Proportional-Integral-Derivative (PID) control theory, and fixes the output shaft at the target angle.

在本實施例中,控制器110例如是中央處理單元(Central Processing Unit, CPU)、系統單晶片(System on Chip, SOC)或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(Digital Signal Processor, DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits, ASIC)、可程式化邏輯裝置(Programmable Logic Device, PLD)、其他類似處理裝置或這些裝置的組合。In this embodiment, the controller 110 is, for example, a central processing unit (CPU), a system on chip (SOC), or other programmable general-purpose or special-purpose microprocessors. ), Digital Signal Processor (DSP), Programmable Controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD), other similar processing Device or a combination of these devices.

舉例而言,在本實施例中,控制器110用以驅動馬達裝置120,以使馬達裝置120操作在非固定模式或固定模式。在本實施例中,馬達127會受控於控制器110所提供的驅動信號而驅動齒輪模組129,以透過齒輪模組129轉動輸出軸121。也就是說,當馬達127運作時,馬達127帶動齒輪模組129以及輸出軸121轉動,以使連接至輸出軸121的受控件可隨著輸出軸121的轉動而沿特定軸向運動。並且,在一實施例中,輸出軸編碼器123耦接輸出軸121。輸出軸編碼器123用以提供輸出軸121的旋轉角度至控制器110,以使控制器110記錄輸出軸121的當前的旋轉角度,或是依據當前的旋轉角度執行某些判斷操作。然而,關於本實施例的各個馬達內部元件可依據可以由所屬技術領域的通常知識獲致足夠的教示、建議與實施說明,因此不再贅述。For example, in this embodiment, the controller 110 is used to drive the motor device 120 so that the motor device 120 operates in a non-fixed mode or a fixed mode. In this embodiment, the motor 127 is controlled by the driving signal provided by the controller 110 to drive the gear module 129 to rotate the output shaft 121 through the gear module 129. That is, when the motor 127 operates, the motor 127 drives the gear module 129 and the output shaft 121 to rotate, so that the controlled component connected to the output shaft 121 can move along a specific axis as the output shaft 121 rotates. In one embodiment, the output shaft encoder 123 is coupled to the output shaft 121. The output shaft encoder 123 is used to provide the rotation angle of the output shaft 121 to the controller 110 so that the controller 110 records the current rotation angle of the output shaft 121 or performs certain judgment operations based on the current rotation angle. However, the internal components of the motors of this embodiment can be obtained through sufficient teaching, suggestions, and implementation descriptions based on the general knowledge in the technical field, so they will not be described again.

然而,值得注意的是,在一實施例中,自動控制設備100可例如是具有多個可旋轉的關節機構的機械人,並且每一個可旋轉的關節機構可由一個或多個馬達裝置120組成。因此,當自動控制設備100包括多個馬達裝置120時,控制器110可透過序列埠耦接這些馬達裝置120,並且控制器110可依序或同時驅動這些馬達裝置120,以使這些馬達裝置120的每一個可各別獨立地執行(依序或同時)本發明各實施例所述的自動控制方法。It is worth noting, however, that in one embodiment, the automatic control device 100 may be, for example, a robot having a plurality of rotatable joint mechanisms, and each rotatable joint mechanism may be composed of one or more motor devices 120. Therefore, when the automatic control device 100 includes a plurality of motor devices 120, the controller 110 may couple the motor devices 120 through a serial port, and the controller 110 may sequentially or simultaneously drive the motor devices 120 so that the motor devices 120 Each of them can independently execute (sequentially or simultaneously) the automatic control methods described in the embodiments of the present invention.

圖2A繪示本發明一實施例的馬達裝置的正面示意圖。圖2B繪示本發明一實施例的馬達裝置的側面示意圖。參考圖2A以及圖2B,馬達裝置220的裝置本體包括輸出軸221以及受控件222。在圖2A中,輸出軸221是沿著方向Y的方向延伸,並且輸出軸221以及受控件222是在由方向X以及方向Z所形成的平面旋轉。在圖2B中,馬達裝置220相對於受控件222為固定狀態,並且受控件222為可旋轉狀態。2A is a schematic front view of a motor device according to an embodiment of the present invention. 2B is a schematic side view of a motor device according to an embodiment of the present invention. 2A and 2B, the device body of the motor device 220 includes an output shaft 221 and a control component 222. In FIG. 2A, the output shaft 221 extends in the direction of the direction Y, and the output shaft 221 and the controlled object 222 rotate in a plane formed by the directions X and Z. In FIG. 2B, the motor device 220 is in a fixed state with respect to the controlled object 222, and the controlled object 222 is in a rotatable state.

在本實施例中,輸出軸221與受控件222結合,以使受控件222與輸出軸221的旋轉動作為連動。在本實施例中,馬達裝置220的輸出軸221的旋轉範圍θ為0度至300度,但本發明並不限於此。也就是說,輸出軸221的旋轉範圍θ可如圖2A所示。旋轉範圍θ為由旋轉邊界A至旋轉邊界A’的範圍。並且,在本實施例中,馬達裝置具有1024個步進數的解析度,但本發明也不限於此。在一實施例中,輸出軸221的旋轉範圍也可例如是0度至360度或其他旋轉範圍,並且馬達裝置的解析度也可例如是512、1024、2048個步進數等。In this embodiment, the output shaft 221 is combined with the controlled object 222 so that the rotation of the controlled object 222 and the output shaft 221 is linked. In this embodiment, the rotation range θ of the output shaft 221 of the motor device 220 is 0 degrees to 300 degrees, but the present invention is not limited thereto. That is, the rotation range θ of the output shaft 221 may be as shown in FIG. 2A. The rotation range θ is a range from the rotation boundary A to the rotation boundary A '. Furthermore, in this embodiment, the motor device has a resolution of 1024 steps, but the present invention is not limited to this. In an embodiment, the rotation range of the output shaft 221 may also be, for example, 0 degrees to 360 degrees or other rotation ranges, and the resolution of the motor device may be, for example, 512, 1024, 2048 steps, or the like.

此外,在本實施例中,受控件222在相反於方向Y的一側可與其他機構件結合。也就是說,受控件222與輸出軸221的旋轉動作為連動,並與其他機構件結合,以組成例如是機械手臂或機器人等,諸如此類的自動控制設備。另外,在本實施例中,當馬達裝置220操作在非固定模式時,輸出軸221為可任意旋轉狀態。當馬達裝置220操作在固定模式時,輸出軸221為非任意旋轉狀態。需說明的是,可任意旋轉狀態可意指輸出軸221可依據外力影響而在旋轉範圍θ內任意旋轉。非任意旋轉狀態可意指輸出軸221可依據施加於輸出軸221的扭矩所造成的旋轉角度變化是否超過門檻角度來決定是否使輸出軸221固定於旋轉後的位置。In addition, in this embodiment, the controlled object 222 may be combined with other mechanism members on the side opposite to the direction Y. That is, the rotation of the controlled component 222 and the output shaft 221 are linked and combined with other mechanism parts to form an automatic control device such as a robot arm or a robot. In addition, in this embodiment, when the motor device 220 is operated in the non-fixed mode, the output shaft 221 is in an arbitrarily rotatable state. When the motor device 220 is operated in the fixed mode, the output shaft 221 is in a non-arbitrary rotation state. It should be noted that the arbitrary rotation state can mean that the output shaft 221 can rotate arbitrarily within the rotation range θ according to the influence of the external force. The non-arbitrary rotation state may mean that the output shaft 221 may decide whether to fix the output shaft 221 at a rotated position according to whether the rotation angle change caused by the torque applied to the output shaft 221 exceeds a threshold angle.

圖3A以及圖3B繪示本發明一實施例的自動控制設備的示意圖。參考圖3A以及圖3B,自動控制設備300包括馬達裝置320以及機構件323。在本實施例中,馬達裝置320的裝置本體包括輸出軸(未繪示)以及受控件322,並且馬達裝置320還可包括上述圖1實施例所述的控制器110以及各個內部元件。在本實施例中,機構件323與受控件322結合,以使機構件323與受控件322的旋轉動作為連動。3A and 3B are schematic diagrams of an automatic control device according to an embodiment of the present invention. Referring to FIGS. 3A and 3B, the automatic control device 300 includes a motor device 320 and a mechanism member 323. In this embodiment, the device body of the motor device 320 includes an output shaft (not shown) and a control component 322, and the motor device 320 may further include the controller 110 and various internal components described in the embodiment of FIG. 1. In this embodiment, the mechanism member 323 is combined with the controlled object 322 so that the rotation of the mechanism member 323 and the controlled object 322 is linked.

然而,在一實施例中,自動控制設備300可例如是機械手臂或機器人,因此自動控制設備300也可是由各自獨立運作的多個馬達裝置320所組成,並且這些馬達裝置320各自獨立運作或由控制器110整合依序運作的這些馬達裝置320,可各別實現本發明各實施例所述的自動控制方法。However, in an embodiment, the automatic control device 300 may be, for example, a robot arm or a robot. Therefore, the automatic control device 300 may also be composed of a plurality of motor devices 320 that operate independently, and each of these motor devices 320 operates independently or consists of The controller 110 integrates these motor devices 320 that operate in sequence, and can individually implement the automatic control methods described in the embodiments of the present invention.

圖4繪示本發明一實施例的自動控制方法的流程圖。參考圖3A、圖3B以及圖4,在圖3A中,假設馬達裝置320操作在非固定模式,馬達裝置320的輸出軸為可任意旋轉狀態。在使用者未施加外力的情況下,機構件323維持在旋轉位置B,其中輸出軸的旋轉角度為預先設定好的目標角度θ1(從旋轉邊界A至旋轉位置B)。然而,當使用者朝Z方向施加力量F於機構件323時,若力量F造成的旋轉角度變化超過門檻角度,則機構件323以及輸出軸發生旋轉。在本實施例中,力量F的單位例如是牛頓(N)。並且,在本實施例中,自動控制設備300執行圖4的自動控制方法,以使機構件323可依據使用者的施力而自動調整輸出軸的目標角度。FIG. 4 is a flowchart of an automatic control method according to an embodiment of the present invention. Referring to FIG. 3A, FIG. 3B, and FIG. 4, in FIG. 3A, it is assumed that the motor device 320 is operated in a non-fixed mode, and the output shaft of the motor device 320 can be arbitrarily rotated. When the user does not apply external force, the mechanism member 323 is maintained at the rotation position B, and the rotation angle of the output shaft is a preset target angle θ1 (from the rotation boundary A to the rotation position B). However, when the user applies a force F to the mechanism member 323 in the Z direction, if the rotation angle change caused by the force F exceeds the threshold angle, the mechanism member 323 and the output shaft rotate. In the present embodiment, the unit of the force F is, for example, Newton (N). Moreover, in this embodiment, the automatic control device 300 executes the automatic control method of FIG. 4 so that the mechanism member 323 can automatically adjust the target angle of the output shaft according to the force applied by the user.

具體而言,在步驟S410中,自動控制設備300判斷輸出軸的當前角度與目標角度是否相差超過門檻角度。若是,自動控制設備300執行步驟S420。若否,自動控制設備300結束判斷。在步驟S420中,自動控制設備300利用當前角度重新設定目標角度。此外,本實施例的自動控制方法可間隔時間長度T以反覆執行步驟S410、S420。在一實施例中,間隔時間長度T例如是1秒、500毫秒、100毫秒等。間隔時間長度T可依據不同的設備需求或靈敏度設計來決定之,本發明並不加以限制。Specifically, in step S410, the automatic control device 300 determines whether the difference between the current angle of the output shaft and the target angle exceeds a threshold angle. If yes, the automatic control device 300 executes step S420. If not, the automatic control device 300 ends the determination. In step S420, the automatic control device 300 resets the target angle using the current angle. In addition, in the automatic control method of this embodiment, steps S410 and S420 may be repeatedly performed at intervals T. In one embodiment, the interval T is, for example, 1 second, 500 milliseconds, 100 milliseconds, or the like. The interval time length T can be determined according to different equipment requirements or sensitivity designs, which is not limited in the present invention.

也就是說,自動控制設備300判斷輸出軸的旋轉角度是否發生改變。如圖3B,若自動控制設備300判斷輸出軸的當前角度θ1+α與目標角度θ1相差超過門檻角度,則自動控制設備300利用當前角度θ1+α重新設定目標角度θ1,以使輸出軸在未受使用者施加的力量F的情況下可維持在經重新設定的目標角度θ2(從旋轉邊界A至旋轉位置B’)。換句話說,由於輸出軸增加的旋轉角度α超過門檻角度,因此輸出軸將維持在經重新設定的目標角度θ2(θ2=θ1+α),並且機構件323維持在旋轉位置B’。反之,在一實施例中,若自動控制設備300判斷輸出軸的當前角度θ1+α與目標角度θ1未相差超過門檻角度,則自動控制設備300不重新設定的目標角度。因此,當使用者停止施加的力量F時,機構件323將由當前角度θ1+α與回復至目標角度θ1,以使機構件323維持在旋轉位置B。That is, the automatic control device 300 determines whether the rotation angle of the output shaft has changed. As shown in FIG. 3B, if the automatic control device 300 determines that the current angle θ1 + α of the output shaft and the target angle θ1 differ by more than a threshold angle, the automatic control device 300 uses the current angle θ1 + α to reset the target angle θ1 so that the output shaft In the case of the force F applied by the user, the target angle θ2 (from the rotation boundary A to the rotation position B ′) can be maintained. In other words, since the increased rotation angle α of the output shaft exceeds the threshold angle, the output shaft will be maintained at the reset target angle θ2 (θ2 = θ1 + α), and the mechanism member 323 is maintained at the rotation position B '. Conversely, in an embodiment, if the automatic control device 300 determines that the current angle θ1 + α of the output shaft does not differ from the target angle θ1 by more than a threshold angle, the automatic control device 300 does not reset the target angle. Therefore, when the user stops applying the force F, the mechanism member 323 will return from the current angle θ1 + α and the target angle θ1 to maintain the mechanism member 323 at the rotation position B.

然而,值得注意的是,上述的門檻角度的大小對應於機構件323受到重力影響而設計,以使機構件323在未受使用者的施力的情況下,機構件323可維持在當前目標角度θ1的位置。也就是說,機構件323受到重力影響而造成的旋轉角度不會超過上述的門檻角度,因此當馬達裝置320操作在固定模式時,在機構件323未受使用者的施力的情況下,機構件323以及輸出軸可維持在預先設定好的目標角度θ1的位置。此外,上述的門檻角度可例如是輸出軸旋轉4個步進數的角度變化量。也就是說,以馬達裝置具有1024個步進數的解析度,並且旋轉範圍為300度為例,輸出軸旋轉4個步進數的角度變化量大約等於1.17度((300/1024)×4≈1.17),但本發明並不限於此,However, it is worth noting that the magnitude of the threshold angle is designed to correspond to the influence of gravity on the mechanism member 323, so that the mechanism member 323 can be maintained at the current target angle without the force of the user. The position of θ1. That is, the rotation angle of the mechanism member 323 caused by the influence of gravity will not exceed the above-mentioned threshold angle. Therefore, when the motor device 320 is operated in the fixed mode, the mechanism is not under the force of the user. The piece 323 and the output shaft can be maintained at a preset target angle θ1. In addition, the aforementioned threshold angle may be, for example, an amount of change in the angle by which the output shaft rotates by 4 steps. In other words, if the motor device has a resolution of 1024 steps and the rotation range is 300 degrees, for example, the angular change of the output shaft by 4 steps is approximately equal to 1.17 degrees ((300/1024) × 4 ≈1.17), but the present invention is not limited to this,

圖5繪示本發明另一實施例的自動控制方法的流程圖。參考圖3A、圖3B以及圖5,圖5的自動控制方法可例如適用於圖3A以及圖3B的自動控制設備300。在步驟S510中,自動控制設備300藉由控制器驅動馬達裝置320操作在非固定模式或固定模式。當馬達裝置320操作在非固定模式時,馬達裝置320的輸出軸為可任意旋轉狀態。當馬達裝置320操作在固定模式時,輸出軸為非任意旋轉狀態。在步驟S520,當馬達裝置320操作在固定模式時,維持輸出軸的旋轉角度在目標角度θ1。在步驟S530中,當自動控制設備300藉由控制器判斷輸出軸的旋轉角度發生改變實,若控制器判斷當前角度θ1+α與目標角度θ1相差超過門檻角度,則控制器利用當前角度θ1+α重新設定目標角度θ1,以使輸出軸維持在經重新設定的目標角度θ2(θ2=θ1+α)。因此,當馬達裝置320操作固定狀態時,本實施例的自動控制設備300可有效依據施加在馬達裝置320的輸出軸的扭矩所造成的旋轉角度變化程度來決定是否將輸出軸固定至旋轉後的位置。FIG. 5 is a flowchart of an automatic control method according to another embodiment of the present invention. Referring to FIGS. 3A, 3B, and 5, the automatic control method of FIG. 5 may be applied to the automatic control device 300 of FIGS. 3A and 3B, for example. In step S510, the automatic control device 300 is operated in the non-fixed mode or the fixed mode by the controller driving the motor device 320. When the motor device 320 is operated in a non-fixed mode, the output shaft of the motor device 320 can be arbitrarily rotated. When the motor device 320 is operated in a fixed mode, the output shaft is in a non-arbitrary rotation state. In step S520, when the motor device 320 is operated in the fixed mode, the rotation angle of the output shaft is maintained at the target angle θ1. In step S530, when the automatic control device 300 determines that the rotation angle of the output shaft is changed by the controller, if the controller determines that the difference between the current angle θ1 + α and the target angle θ1 exceeds the threshold angle, the controller uses the current angle θ1 + α resets the target angle θ1 so that the output shaft is maintained at the reset target angle θ2 (θ2 = θ1 + α). Therefore, when the motor device 320 is operating in a fixed state, the automatic control device 300 of this embodiment can effectively determine whether to fix the output shaft to the rotated position according to the degree of rotation angle change caused by the torque applied to the output shaft of the motor device 320. position.

另外,關於本實施例的自動控制設備以及馬達裝置的其他裝置特徵以及實施方式可依據上述圖1至圖3B實施例,而獲致足夠的教示、建議以及實施說明,因此不再贅述。In addition, regarding the automatic control equipment and other device features and implementations of the motor device of this embodiment, sufficient teachings, suggestions, and implementation descriptions can be obtained according to the above-mentioned embodiments of FIG. 1 to FIG. 3B, and therefore will not be described again.

綜上所述,本發明的自動控制設備以及自動控制方法提供一種可有效微調馬達裝置的輸出軸的旋轉角度的操作方式。當馬達裝置操作在固定模式時,馬達裝置的輸出軸可維持在目標角度的位置。在馬達裝置操作在固定模式的狀態下,若使用者施加力量於馬達裝置的輸出軸,則馬達裝置的輸出軸可經由使用者施加的外力而發生旋轉,並且當旋轉角度超過預設的門檻角度時,本發明的馬達裝置的輸出軸可維持在經調整後的旋轉角度的位置。據此,本發明的自動控制設備可提供便利的姿勢調整功能。In summary, the automatic control device and the automatic control method of the present invention provide an operation mode capable of effectively fine-tuning the rotation angle of the output shaft of the motor device. When the motor device is operated in the fixed mode, the output shaft of the motor device can be maintained at the target angle position. When the motor device is operated in a fixed mode, if the user applies force to the output shaft of the motor device, the output shaft of the motor device can be rotated by the external force applied by the user, and when the rotation angle exceeds a preset threshold angle At this time, the output shaft of the motor device of the present invention can be maintained at the adjusted rotation angle position. Accordingly, the automatic control device of the present invention can provide a convenient posture adjustment function.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed as above with the examples, it is not intended to limit the present invention. Any person with ordinary knowledge in the technical field can make some modifications and retouching without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be determined by the scope of the attached patent application.

100、300‧‧‧自動控制設備100, 300‧‧‧ automatic control equipment

110‧‧‧控制器 110‧‧‧controller

120、220、320‧‧‧馬達裝置 120, 220, 320‧‧‧ Motor devices

121、221‧‧‧輸出軸 121, 221‧‧‧ output shaft

123‧‧‧輸出軸編碼器 123‧‧‧Output shaft encoder

125‧‧‧控制模組 125‧‧‧control module

127‧‧‧馬達 127‧‧‧ Motor

129‧‧‧齒輪模組 129‧‧‧Gear Module

222、322‧‧‧受控件 222, 322‧‧‧ Controlled

323‧‧‧機構件 323‧‧‧Institutional

A、A’‧‧‧旋轉邊界 A, A’‧‧‧ rotation boundary

B、B’‧‧‧旋轉位置 B, B’‧‧‧ rotation position

F‧‧‧力量 F‧‧‧Strength

S410、S420、S510、S520、S530‧‧‧步驟 S410, S420, S510, S520, S530‧‧‧ steps

X、Y、Z‧‧‧方向 X, Y, Z‧‧‧ directions

θ‧‧‧旋轉範圍 θ‧‧‧ rotation range

θ1、θ2、α‧‧‧角度 θ1, θ2, α‧‧‧ angle

圖1繪示本發明一實施例的自動控制設備的方塊圖。 圖2A繪示本發明一實施例的馬達裝置的正面示意圖。 圖2B繪示本發明一實施例的馬達裝置的側面示意圖。 圖3A以及圖3B繪示本發明一實施例的自動控制設備的示意圖。 圖4繪示本發明一實施例的自動控制方法的流程圖。 圖5繪示本發明另一實施例的自動控制方法的流程圖。FIG. 1 is a block diagram of an automatic control device according to an embodiment of the present invention. 2A is a schematic front view of a motor device according to an embodiment of the present invention. 2B is a schematic side view of a motor device according to an embodiment of the present invention. 3A and 3B are schematic diagrams of an automatic control device according to an embodiment of the present invention. FIG. 4 is a flowchart of an automatic control method according to an embodiment of the present invention. FIG. 5 is a flowchart of an automatic control method according to another embodiment of the present invention.

Claims (15)

一種自動控制設備,包括: 一馬達裝置,包括一輸出軸;以及 一控制器,耦接所述馬達裝置,用以驅動所述馬達裝置操作在一非固定模式或一固定模式,其中當所述馬達裝置操作在所述非固定模式時,所述輸出軸為一可任意旋轉狀態,其中當所述馬達裝置操作在所述固定模式時,所述輸出軸為一非任意旋轉狀態, 其中當所述馬達裝置操作在所述固定模式時,所述輸出軸的一旋轉角度維持在一目標角度, 其中當所述控制器判斷所述輸出軸的所述旋轉角度發生改變時,若所述控制器判斷當前角度與所述目標角度相差超過一門檻角度,則所述控制器利用所述當前角度重新設定所述目標角度,以使所述輸出軸維持在經重新設定的所述目標角度。An automatic control device includes: a motor device including an output shaft; and a controller coupled to the motor device for driving the motor device to operate in a non-fixed mode or a fixed mode, wherein when the When the motor device is operated in the non-fixed mode, the output shaft is in an arbitrarily rotatable state. When the motor device is operated in the fixed mode, the output shaft is in a non-arbitrary rotation state. When the motor device is operated in the fixed mode, a rotation angle of the output shaft is maintained at a target angle, and when the controller determines that the rotation angle of the output shaft has changed, if the controller It is determined that the difference between the current angle and the target angle exceeds a threshold angle, and the controller uses the current angle to reset the target angle so that the output shaft is maintained at the target angle that is reset. 如申請專利範圍第1項所述的自動控制設備,其中若所述控制器判斷所述當前角度未超過所述目標角度於所述門檻角度,則所述控制器驅動所述輸出軸回復至所述目標角度。The automatic control device according to item 1 of the scope of patent application, wherein if the controller determines that the current angle does not exceed the target angle to the threshold angle, the controller drives the output shaft to return to the The target angle is described. 如申請專利範圍第1項所述的自動控制設備,其中所述馬達裝置的所述輸出軸的一旋轉範圍為0度至300度。The automatic control device according to item 1 of the scope of patent application, wherein a rotation range of the output shaft of the motor device is 0 degrees to 300 degrees. 如申請專利範圍第1項所述的自動控制設備,其中所述馬達裝置具有1024個步進數,並且所述門檻角度為所述輸出軸旋轉4個步進數的角度變化量。The automatic control device according to item 1 of the scope of patent application, wherein the motor device has 1024 steps, and the threshold angle is an amount of change in the angle by which the output shaft rotates by 4 steps. 如申請專利範圍第1項所述的自動控制設備,其中當所述馬達裝置操作在所述固定模式時,所述控制器每間隔一時間長度重新判斷所述輸出軸的所述旋轉角度是否發生改變。The automatic control device according to item 1 of the scope of patent application, wherein when the motor device is operated in the fixed mode, the controller re-determines whether the rotation angle of the output shaft occurs every interval of time change. 如申請專利範圍第1項所述的自動控制設備,其中所述馬達裝置為單軸的一智慧型伺服馬達。The automatic control device according to item 1 of the scope of patent application, wherein the motor device is a smart servo motor with a single axis. 如申請專利範圍第1項所述的自動控制設備,更包括: 一機構件,結合於所述馬達裝置的所述輸出軸,並且連動於所述輸出軸,以使當所述機構件承受一外力時,產生一扭矩在所述輸出軸上。The automatic control equipment according to item 1 of the scope of patent application, further comprising: a mechanism member coupled to the output shaft of the motor device and linked to the output shaft so that when the mechanism member receives a When an external force is applied, a torque is generated on the output shaft. 如申請專利範圍第1項所述的自動控制設備,其中所述馬達裝置更包括: 一輸出軸編碼器,耦接所述輸出軸,用以取得所述輸出軸的所述旋轉角度; 一控制模組,耦接所述輸出軸編碼器; 一馬達,耦接所述控制模組,其中所述控制模組用以驅動所述馬達;以及 一齒輪模組,耦接所述馬達以及所述輸出軸,其中所述齒輪模組與所述輸出軸連動。The automatic control device according to item 1 of the scope of patent application, wherein the motor device further includes: an output shaft encoder coupled to the output shaft to obtain the rotation angle of the output shaft; a control A module coupled to the output shaft encoder; a motor coupled to the control module, wherein the control module is used to drive the motor; and a gear module coupled to the motor and the The output shaft, wherein the gear module is linked with the output shaft. 如申請專利範圍第1項所述的自動控制設備,更包括: 多個馬達裝置,透過一序列埠耦接所述控制器,其中所述控制器依序或同時驅動所述多個馬達裝置。The automatic control device according to item 1 of the patent application scope further includes: a plurality of motor devices, which are coupled to the controller through a serial port, wherein the controller drives the plurality of motor devices sequentially or simultaneously. 一種自動控制方法,適用於一自動控制設備,其中所述自動控制設備包括一控制器以及一馬達裝置,並且所述馬達裝置包括一輸出軸,所述自動控制方法包括: 藉由所述控制器驅動所述馬達裝置操作在一非固定模式或一固定模式,其中當所述馬達裝置操作在所述非固定模式時,所述馬達裝置的所述輸出軸為一可任意旋轉狀態,並其中當所述馬達裝置操作在所述固定模式時,所述輸出軸為一非任意旋轉狀態; 當所述馬達裝置操作在所述固定模式時,維持所述輸出軸的一旋轉角度在一目標角度;以及 當所述控制器判斷所述輸出軸的所述旋轉角度發生改變時,若所述控制器判斷所述當前角度與所述目標角度相差超過一門檻角度,則所述控制器利用所述當前角度重新設定所述目標角度,以使所述輸出軸維持在經重新設定的所述目標角度。An automatic control method is applicable to an automatic control device, wherein the automatic control device includes a controller and a motor device, and the motor device includes an output shaft, and the automatic control method includes: by the controller Driving the motor device to operate in a non-fixed mode or a fixed mode, wherein when the motor device is operated in the non-fixed mode, the output shaft of the motor device is in an arbitrarily rotatable state, and wherein When the motor device is operated in the fixed mode, the output shaft is in a non-arbitrary rotation state; when the motor device is operated in the fixed mode, a rotation angle of the output shaft is maintained at a target angle; And when the controller judges that the rotation angle of the output shaft changes, if the controller judges that the difference between the current angle and the target angle exceeds a threshold angle, the controller uses the current angle The target angle is reset by an angle, so that the output shaft is maintained at the target angle that is reset. 如申請專利範圍第10項所述的自動控制方法,更包括: 若所述控制器判斷所述當前角度未超過所述目標角度於所述門檻角度,則所述控制器驅動所述輸出軸回復至所述目標角度。The automatic control method according to item 10 of the scope of patent application, further comprising: if the controller determines that the current angle does not exceed the target angle to the threshold angle, the controller drives the output shaft to return To the target angle. 如申請專利範圍第10項所述的自動控制方法,其中所述馬達裝置的所述輸出軸的一旋轉範圍為0度至300度。The automatic control method according to item 10 of the scope of patent application, wherein a rotation range of the output shaft of the motor device is 0 degrees to 300 degrees. 如申請專利範圍第10項所述的自動控制方法,其中所述馬達裝置具有1024個步進數,並且所述門檻角度為所述輸出軸旋轉4個步進數的角度變化量。The automatic control method according to item 10 of the scope of patent application, wherein the motor device has a number of 1024 steps, and the threshold angle is an angle change amount in which the output shaft rotates by four steps. 如申請專利範圍第10項所述的自動控制方法,其中當所述馬達裝置操作在所述固定模式時,所述控制器每間隔一時間長度重新判斷所述輸出軸的所述旋轉角度是否發生改變。The automatic control method according to item 10 of the scope of patent application, wherein when the motor device is operated in the fixed mode, the controller re-determines whether the rotation angle of the output shaft occurs every interval of time. change. 如申請專利範圍第10項所述的自動控制方法,其中所述自動控制設備更包括多個馬達裝置,並且所述多個馬達裝置透過一序列埠耦接所述控制器,以使所述控制器依序或同時驅動所述多個馬達裝置。The automatic control method according to item 10 of the scope of patent application, wherein the automatic control device further includes a plurality of motor devices, and the plurality of motor devices are coupled to the controller through a serial port so that the control The plurality of motor devices are driven sequentially or simultaneously.
TW107102155A 2018-01-22 2018-01-22 Automatic control apparatus and automatic control method TWI664507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107102155A TWI664507B (en) 2018-01-22 2018-01-22 Automatic control apparatus and automatic control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107102155A TWI664507B (en) 2018-01-22 2018-01-22 Automatic control apparatus and automatic control method

Publications (2)

Publication Number Publication Date
TWI664507B true TWI664507B (en) 2019-07-01
TW201933008A TW201933008A (en) 2019-08-16

Family

ID=68049272

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107102155A TWI664507B (en) 2018-01-22 2018-01-22 Automatic control apparatus and automatic control method

Country Status (1)

Country Link
TW (1) TWI664507B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5103404A (en) * 1985-12-06 1992-04-07 Tensor Development, Inc. Feedback for a manipulator
CN1812868A (en) * 2003-04-28 2006-08-02 斯蒂芬·詹姆斯·克兰普顿 CMM arm with exoskeleton
CN101870112A (en) * 2006-01-13 2010-10-27 松下电器产业株式会社 Device for controlling robot arm
CN103081351A (en) * 2010-08-08 2013-05-01 日本电产三协株式会社 Motor control apparatus, motor control method, control system, and position estimation method to be used in control system
TW201610395A (en) * 2014-09-03 2016-03-16 明新科技大學 Calibration device for encoder positioning and calibration method thereof
TW201722658A (en) * 2015-11-24 2017-07-01 Kawasaki Heavy Ind Ltd Robot direct-teaching method
CN107106397A (en) * 2014-10-29 2017-08-29 村田机械株式会社 The modification method of trainer and strength twocomponent signal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5103404A (en) * 1985-12-06 1992-04-07 Tensor Development, Inc. Feedback for a manipulator
CN1812868A (en) * 2003-04-28 2006-08-02 斯蒂芬·詹姆斯·克兰普顿 CMM arm with exoskeleton
CN101870112A (en) * 2006-01-13 2010-10-27 松下电器产业株式会社 Device for controlling robot arm
CN103081351A (en) * 2010-08-08 2013-05-01 日本电产三协株式会社 Motor control apparatus, motor control method, control system, and position estimation method to be used in control system
TW201610395A (en) * 2014-09-03 2016-03-16 明新科技大學 Calibration device for encoder positioning and calibration method thereof
CN107106397A (en) * 2014-10-29 2017-08-29 村田机械株式会社 The modification method of trainer and strength twocomponent signal
TW201722658A (en) * 2015-11-24 2017-07-01 Kawasaki Heavy Ind Ltd Robot direct-teaching method

Also Published As

Publication number Publication date
TW201933008A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN108139747B (en) Determining input commands for a robot input by a force manually applied to the robot
ES2644939T3 (en) Method and system to determine at least one property of a manipulator
US9815202B2 (en) Control method for robot apparatus, computer readable recording medium, and robot apparatus
US9999972B2 (en) Robot arm mechanism and stepping motor control device
TWI654058B (en) Correction device, correction method and control device
US20140277720A1 (en) Robot system, method for controlling robot, and method for producing to-be-processed material
US20180207798A1 (en) Robot control apparatus, robot system, robot control method and assembly manufacturing method
US10792812B2 (en) Control device and robot system
US10195744B2 (en) Control device, robot, and robot system
US20180111266A1 (en) Control device, robot, and robot system
JP2017196704A5 (en)
JP7339806B2 (en) Control system, robot system and control method
US20220184810A1 (en) Robot arm safety system with runtime adaptable safety limits
CN110770671A (en) Cloud platform, control method thereof and movable platform
US20150343639A1 (en) Gear incorporation system and gear incorporation method
TWI664507B (en) Automatic control apparatus and automatic control method
EP3513915A1 (en) Automatic control apparatus and automatic control method
TWI311943B (en) Eye module
JP7293844B2 (en) robot
JP2021121451A (en) Teaching method and robot system
JP5401748B2 (en) Robot and teaching method thereof
WO2021117701A1 (en) Master/slave system and control method
JP7330876B2 (en) POSITION DETECTION METHOD, CONTROL DEVICE AND ROBOT SYSTEM
JP6511731B2 (en) ROBOT CONTROL DEVICE, ROBOT CONTROL METHOD, AND PROGRAM
WO2023013559A1 (en) Robot system, machining method of robot, and machining program