TWI834071B - Multi-axis servo control system - Google Patents

Multi-axis servo control system Download PDF

Info

Publication number
TWI834071B
TWI834071B TW110139250A TW110139250A TWI834071B TW I834071 B TWI834071 B TW I834071B TW 110139250 A TW110139250 A TW 110139250A TW 110139250 A TW110139250 A TW 110139250A TW I834071 B TWI834071 B TW I834071B
Authority
TW
Taiwan
Prior art keywords
control
unit
drive
command
control unit
Prior art date
Application number
TW110139250A
Other languages
Chinese (zh)
Other versions
TW202318121A (en
Inventor
陳建達
蔡易軒
李佳樺
黃靖為
Original Assignee
台達電子工業股份有限公司
Filing date
Publication date
Application filed by 台達電子工業股份有限公司 filed Critical 台達電子工業股份有限公司
Priority to TW110139250A priority Critical patent/TWI834071B/en
Publication of TW202318121A publication Critical patent/TW202318121A/en
Application granted granted Critical
Publication of TWI834071B publication Critical patent/TWI834071B/en

Links

Abstract

A multi-axis servo control system includes a plurality of motors and a plurality of drive control apparatuses. The drive control apparatuses are mutually connected through an external field bus. Each drive control apparatus includes a control unit and a plurality of drive units. The drive units and the control unit are connected in series by a plurality of local buses to form a series-connected communication path of sequentially transmitting data. Each drive unit controls at least one of the motors. The control unit receives multi-axis position commands through the external field bus, and the drive units correspondingly receive multi-axis commands through the local field buses so as to control the motors in a distribution manner.

Description

多軸伺服控制系統 Multi-axis servo control system

本發明係有關一種多軸伺服控制系統,尤指一種位置命令與電流命令分散控制的一種多軸伺服控制系統。 The present invention relates to a multi-axis servo control system, in particular to a multi-axis servo control system with decentralized control of position commands and current commands.

請參見圖1與圖2所示,其係分別為現有多軸伺服控制系統的第一種型式與第二種型式之架構示意圖。如圖1所示,所採用的第一種型式係為單台獨立伺服驅動器控制單軸馬達的轉動,意即一台伺服驅動器控制一台馬達轉動,如圖1所示,即為三台伺服驅動器100A與對應的三台馬達200A搭配使用。在此種型式的應用中,兩兩伺服驅動器100A之間透過通訊總線(field bus)300A連接,如此,每一台伺服驅動器100A可接收上位控制器(或上位機)的控制命令,進而對所對應的馬達200A進行控制。其中,通訊總線可以是EtherCAT、CANOpen、PROFINET…等等,然而不以此為限制。每一台伺服驅動器100A至少包含控制器與電源模組,其中,控制器用以規劃、控制馬達的轉速,電源模組用以提供驅動器的電流輸出。然而,此型式的控制系統,由於每一台馬達200A係由對應的伺服驅動器100A所控制,因此在多軸應用時,同步性受限於通訊總線的通訊週期,所以其同步性較差。 Please refer to Figures 1 and 2, which are schematic structural diagrams of the first type and the second type of the existing multi-axis servo control system respectively. As shown in Figure 1, the first type used is a single independent servo driver controlling the rotation of a single-axis motor, which means that one servo driver controls the rotation of one motor. As shown in Figure 1, it is three servo drives. The driver 100A is used with the corresponding three motors 200A. In this type of application, two servo drives 100A are connected through a communication bus (field bus) 300A. In this way, each servo drive 100A can receive control commands from the upper controller (or host computer), and then control all the control commands. The corresponding motor 200A is controlled. Among them, the communication bus can be EtherCAT, CANOpen, PROFINET, etc., but it is not limited to this. Each 100A servo drive contains at least a controller and a power module. The controller is used to plan and control the speed of the motor, and the power module is used to provide the current output of the drive. However, in this type of control system, since each motor 200A is controlled by the corresponding servo driver 100A, in multi-axis applications, synchronization is limited by the communication cycle of the communication bus, so its synchronization is poor.

如圖2所示,所採用的第二種型式係為單台獨立伺服驅動器控制多台馬達,如圖2所示,每一台伺服驅動器100A控制三台馬達200A,然而不以三台為限制,只要在伺服驅動器100A可以供應的輸出電流(功率)允許的範圍內,維持馬達200A正常運轉的數量都可被驅動與控制。同樣地,兩兩伺服驅動 器100A之間透過通訊總線300A連接,並且透過通訊總線300A接收來自上位控制器的控制命令。然而,由於輸出電流(功率)的限制,因此,馬達200A數量的上限或者馬達200A的額定輸出,在伺服驅動器100A設計好之初,就已經被限制,因此其擴充性與取代性(更換性)較差。 As shown in Figure 2, the second type used is a single independent servo driver controlling multiple motors. As shown in Figure 2, each servo driver 100A controls three motors 200A, but there is no limit to three. , as long as the output current (power) that the servo driver 100A can supply is within the allowable range, the number to maintain the normal operation of the motor 200A can be driven and controlled. Likewise, two servo drives The controllers 100A are connected through the communication bus 300A, and receive control commands from the upper controller through the communication bus 300A. However, due to the limitation of the output current (power), the upper limit of the number of motors 200A or the rated output of the motor 200A has been limited at the beginning of the servo drive 100A design, so its expandability and replaceability (replacement) Poor.

為此,如何設計出一種多軸伺服控制系統,尤指一種位置命令與電流命令分散控制的一種多軸伺服控制系統,解決現有技術所存在的問題與技術瓶頸,乃為本案發明人所研究的重要課題。 For this reason, how to design a multi-axis servo control system, especially a multi-axis servo control system with decentralized control of position commands and current commands, to solve the problems and technical bottlenecks of the existing technology is what the inventor of this case is studying. important topic.

本發明之目的在於提供一種多軸伺服控制系統,解決現有技術之問題。 The purpose of the present invention is to provide a multi-axis servo control system to solve the problems of the existing technology.

為達成前揭目的,本發明所提出的多軸伺服控制系統包含複數馬達與複數驅動控制裝置。複數驅動控制裝置透過一外部通訊總線相互連接。各該驅動控制裝置包含一控制單元與複數驅動單元。複數驅動單元與該控制單元係透過複數本地總線串聯連接,以形成可依序傳輸資料的一串聯通訊迴路。各該驅動單元用以控制該等馬達中的至少一者。該控制單元透過該外部通訊總線接收多軸位置命令,該等驅動單元接透過該本地總線對應地接收多軸命令,以分散式控制該等馬達。 In order to achieve the aforementioned purpose, the multi-axis servo control system proposed by the present invention includes a plurality of motors and a plurality of drive control devices. A plurality of drive control devices are connected to each other through an external communication bus. Each drive control device includes a control unit and a plurality of drive units. A plurality of drive units and the control unit are connected in series through a plurality of local buses to form a series communication loop that can transmit data sequentially. Each drive unit is used to control at least one of the motors. The control unit receives multi-axis position commands through the external communication bus, and the driving units receive multi-axis commands correspondingly through the local bus to control the motors in a distributed manner.

在一實施例中,該本地總線係為一高速的總線;該本地總線係以該控制單元的一輸出端為起始,以串聯方式依序連接該等驅動單元,最後回授至該控制單元的一輸入端為結束,以形成可依序傳輸資料的該串聯通訊迴路。 In one embodiment, the local bus is a high-speed bus; the local bus starts from an output end of the control unit, connects the driving units sequentially in series, and finally feeds back to the control unit. An input end is terminated to form a serial communication loop that can transmit data sequentially.

在一實施例中,各該驅動單元包含一處理器,該控制單元包含一處理器;該串聯通訊迴路係包含該控制單元的該處理器、該控制單元的該輸出端、 各該驅動單元的一輸入端、各該驅動單元的該處理器、各該驅動單元的一輸出端、該控制單元的該輸入端以及該控制單元的該處理器。 In one embodiment, each drive unit includes a processor, and the control unit includes a processor; the series communication loop includes the processor of the control unit, the output end of the control unit, An input terminal of each driving unit, the processor of each driving unit, an output terminal of each driving unit, the input terminal of the control unit and the processor of the control unit.

在一實施例中,該控制單元包含一命令處理器與一命令同步器。該命令同步器連接該命令處理器。 In one embodiment, the control unit includes a command processor and a command synchronizer. The command synchronizer is connected to the command processor.

在一實施例中,該控制單元包含一命令產生器、一命令處理器以及一命令同步器。該命令處理器連接該命令產生器。該命令同步器連接該命令處理器。 In one embodiment, the control unit includes a command generator, a command processor and a command synchronizer. The command processor is connected to the command generator. The command synchronizer is connected to the command processor.

在一實施例中,該控制單元為一從站控制器,提供一從站操作模式,用以控制同為該驅動控制裝置的該等驅動單元。 In one embodiment, the control unit is a slave controller, providing a slave operation mode for controlling the drive units that are also the drive control device.

在一實施例中,該控制單元為一主站控制器,提供一主站操作模式,用以控制同為該驅動控制裝置的該等驅動單元,以及其他驅動控制裝置的該等驅動單元的該控制單元與該等驅動單元。該驅動單元包含一電流迴路單元。該電流迴路單元接收一電流命令與一電流值,用以比較該電流命令與該電流值,以產生一電流控制信號。 In one embodiment, the control unit is a master station controller that provides a master station operation mode for controlling the drive units of the same drive control device and the drive units of other drive control devices. control unit and such drive units. The drive unit includes a current loop unit. The current loop unit receives a current command and a current value, and compares the current command and the current value to generate a current control signal.

在一實施例中,該驅動單元更包含一命令處理單元與一命令同步單元。該命令處理單元接收該電流命令,且對該電流命令進行處理。該命令同步單元,連接該命令處理單元,接收處理後的該電流命令,且對該電流命令進行同步化,以提供至該電流迴路單元。 In one embodiment, the driving unit further includes a command processing unit and a command synchronization unit. The command processing unit receives the current command and processes the current command. The command synchronization unit is connected to the command processing unit, receives the processed current command, and synchronizes the current command to provide it to the current loop unit.

在一實施例中,該驅動單元更包含一電流處理單元。該電流處理單元接收取樣後的該電流值,且對該電流值進行處理,以提供至該電流迴路單元。 In one embodiment, the driving unit further includes a current processing unit. The current processing unit receives the sampled current value and processes the current value to provide it to the current loop unit.

在一實施例中,該驅動單元更包含一回授處理單元。該回授處理單元接收複數回授命令,且對該等回授命令進行通訊封包處理,以提供至該本地總線的輸出。 In one embodiment, the driving unit further includes a feedback processing unit. The feedback processing unit receives a plurality of feedback commands and performs communication packet processing on the feedback commands to provide output to the local bus.

藉由所提出的多軸伺服控制系統實現技術功效:1、透過驅動單元對電流(扭力)命令的處理與控制以及控制單元對位置(速度)命令的處理與控制所實現的分散式運算,不僅可大幅地降低控制單元的運算量(由於電流(扭力)命令的處理與控制係透過驅動單元執行),即可選擇成本較佳、功能相對低階的控制器,亦可提高驅動控制裝置的擴充性與更換性;2、高速本地總線透過以背板的走線方式實現串聯回授的完整的通訊傳輸迴路,可避免資料的失真與衰減;3、經由控制單元的細緻化運算,使命令資料細分化,進而提供至控制每一軸馬達的驅動單元,使驅動單元能夠精細地控制每一軸馬達;4、控制單元可操作為從站模式與主站模式,因此提高控制單元使用的彈性與多樣性。 The technical effects achieved by the proposed multi-axis servo control system: 1. Distributed computing realized through the processing and control of current (torque) commands by the drive unit and the processing and control of position (speed) commands by the control unit, not only The calculation amount of the control unit can be greatly reduced (since the processing and control of current (torque) commands are executed through the drive unit), a controller with a better cost and relatively low-level functions can be selected, and the expansion of the drive control device can also be improved. stability and replaceability; 2. The high-speed local bus realizes a complete communication transmission loop of series feedback through the wiring method of the backplane, which can avoid data distortion and attenuation; 3. Through the detailed calculation of the control unit, the command data subdivision, and then provided to the drive unit that controls each axis motor, so that the drive unit can finely control each axis motor; 4. The control unit can be operated in slave mode and master mode, thus increasing the flexibility and diversity of the use of the control unit .

為了能更進一步瞭解本發明為達成預定目的所採取之技術、手段及功效,請參閱以下有關本發明之詳細說明與附圖,相信本發明之目的、特徵與特點,當可由此得一深入且具體之瞭解,然而所附圖式僅提供參考與說明用,並非用來對本發明加以限制者。 In order to further understand the technology, means and effects adopted by the present invention to achieve the intended purpose, please refer to the following detailed description and drawings of the present invention. It is believed that the purpose, features and characteristics of the present invention can be understood in depth and For specific understanding, however, the attached drawings are only for reference and illustration, and are not intended to limit the present invention.

100:驅動控制裝置 100: Drive control device

200:馬達 200: Motor

300:通訊總線 300: Communication bus

400:本地總線 400:Local bus

10:控制單元 10:Control unit

20:驅動單元 20:Drive unit

101:命令產生器 101:Command generator

102:命令處理器 102:Command processor

104:命令同步器 104:Command synchronizer

100A:伺服驅動器 100A: Servo drive

200A:馬達 200A: Motor

300A:通訊總線 300A: Communication bus

圖1:係為現有多軸伺服控制系統的第一種型式之架構示意圖。 Figure 1: It is a schematic diagram of the architecture of the first type of existing multi-axis servo control system.

圖2:係為現有多軸伺服控制系統的第二種型式之架構示意圖。 Figure 2: It is a schematic structural diagram of the second type of existing multi-axis servo control system.

圖3:係為本發明多軸伺服控制系統的架構示意圖。 Figure 3 is a schematic diagram of the architecture of the multi-axis servo control system of the present invention.

圖4:係為本發明高速本地總線的設計之示意圖。 Figure 4 is a schematic diagram of the design of the high-speed local bus of the present invention.

圖5:係為本發明控制單元的控制方式之示意圖。 Figure 5: is a schematic diagram of the control method of the control unit of the present invention.

圖6:係為本發明驅動單元的控制方式之示意圖。 Figure 6 is a schematic diagram of the control method of the drive unit of the present invention.

圖7:係為本發明控制單元作為從站之示意圖。 Figure 7: is a schematic diagram of the control unit of the present invention as a slave station.

圖8:係為本發明控制單元作為主站之示意圖。 Figure 8: It is a schematic diagram of the control unit of the present invention serving as the master station.

茲有關本發明之技術內容及詳細說明,配合圖式說明如下。 The technical content and detailed description of the present invention are as follows with reference to the drawings.

請參見圖3所示,其係為本發明多軸伺服控制系統的架構示意圖。所述多軸伺服控制系統包含複數馬達200與複數驅動控制裝置100。複數驅動控制裝置100透過一外部通訊總線(field bus)300相互連接。如圖3所示,係以兩組驅動控制裝置100為例,然本發明不以此為限制。其中,在本發明中,多軸馬達200係應用,然不以此限制於,輸送搬運裝置、上下料(pick and place)裝置、表面黏著技術(SMT)、視覺檢測的定位裝置、點焊和往復測量等等之機械自動化操作、機械手臂作業之領域。 Please refer to Figure 3, which is a schematic diagram of the architecture of the multi-axis servo control system of the present invention. The multi-axis servo control system includes multiple motors 200 and multiple drive control devices 100 . A plurality of drive control devices 100 are connected to each other through an external communication bus (field bus) 300 . As shown in FIG. 3 , two sets of drive control devices 100 are taken as an example, but the present invention is not limited thereto. Among them, in the present invention, the multi-axis motor 200 is applied, but it is not limited to conveying and handling devices, pick and place devices, surface adhesive technology (SMT), positioning devices for visual inspection, spot welding and The field of mechanical automation operations and robotic arm operations such as reciprocating measurement.

各該驅動控制裝置100包含一控制單元10與複數驅動單元20。複數驅動單元20彼此之間,以及驅動單元20與該控制單元10係透過複數本地總線(local bus)400串聯連接,以形成可依序傳輸資料的一串聯通訊迴路。各該驅動單元20用以控制該等馬達200中的至少一者,然而各該驅動單元20控制馬達200的數量與形態並非以圖3所示的狀況為限制。 Each drive control device 100 includes a control unit 10 and a plurality of drive units 20 . The plurality of driving units 20 are connected in series to each other, and the driving units 20 and the control unit 10 through a plurality of local buses 400 to form a series communication loop that can transmit data sequentially. Each driving unit 20 is used to control at least one of the motors 200 . However, the number and form of the motors 200 controlled by each driving unit 20 are not limited to the situation shown in FIG. 3 .

該控制單元10透過該外部通訊總線300接收多軸位置命令(或多軸速度命令),該等驅動單元20透過該本地總線400對應地接收多軸命令,以分散式控制該等馬達200,具體詳述將在後文說明。 The control unit 10 receives multi-axis position commands (or multi-axis speed commands) through the external communication bus 300, and the driving units 20 correspondingly receive multi-axis commands through the local bus 400 to control the motors 200 in a distributed manner. Specifically, Details will be explained later.

如圖3所示,本發明提供一種多軸伺服控制系統(多軸馬達控制的伺服驅動設計),將傳統多軸馬達控制分散化,由控制單元10、驅動單元(或稱伺服單元、伺服驅動單元)20、本地總線400、馬達200分別獨立組成,並且維持單一外部通訊總線300的連接方式。此控制系統架構的特點為: As shown in Figure 3, the present invention provides a multi-axis servo control system (servo drive design for multi-axis motor control), which decentralizes traditional multi-axis motor control and consists of a control unit 10 and a drive unit (or servo unit, servo drive). The unit) 20, the local bus 400, and the motor 200 are independently composed, and maintain the connection method of a single external communication bus 300. The characteristics of this control system architecture are:

1、高速的本地總線400採輸入(input)與輸出(output)連接,容後詳述。 1. The high-speed local bus 400 adopts input and output connections, which will be described in detail later.

2、控制單元10負責各軸馬達200的位置和速度之同步控制以及各軸運動流程,容後詳述。 2. The control unit 10 is responsible for synchronous control of the position and speed of each axis motor 200 and the motion process of each axis, which will be described in detail later.

3、驅動單元20負責馬達200的電流控制、電流取樣以及位置回授。其中,一個驅動單元20控制一個以上的馬達200;因此,只要透過更換即可提供更大輸出功率的驅動單元20,並可驅動控制更多或更大額定功率的馬達200,且不會影響整機的運轉,因此擴充性與取代性(更換性)較佳。 3. The drive unit 20 is responsible for current control, current sampling and position feedback of the motor 200 . Among them, one driving unit 20 controls more than one motor 200; therefore, by simply replacing the driving unit 20 with a larger output power, it can drive and control motors 200 with more or larger rated power without affecting the overall performance. The operation of the machine is better, so the expandability and replaceability (replacement) are better.

4、控制單元10可以當成主站(master)與從站(slave)兩種模式,提供命令控制各軸馬達200。當主站時,可透過外部通訊總線300主動地控制其它台伺服驅動器(即驅動控制裝置100)和本身多個伺服驅動所連線的多個馬達200;當從站時則控制本身多個伺服驅動所連線的多個馬達200,被動接收外部總線命令,容後詳述。 4. The control unit 10 can be used in two modes: master and slave, providing commands to control each axis motor 200. When it is a master station, it can actively control other servo drives (i.e., the drive control device 100) and multiple motors 200 connected to its multiple servo drives through the external communication bus 300; when it is a slave station, it can control its own multiple servo drives. The multiple connected motors 200 are driven and passively receive external bus commands, which will be described in detail later.

請參見圖4所示,其係為本發明高速本地總線的設計示意圖。本發明的高速本地總線400搭配硬體設計(例如,在本實施例係以背板的走線方式實現),採用串聯回授方式(左方驅動控制裝置100內的本地總線400係為右方驅動控制裝置100內的本地總線400的展開),以控制單元10為起始站,將資料傳到第一個串接驅動單元20的輸入端in(或稱輸入模組in)。所接收的資料經處理器402處理後,透過輸出端out(或稱輸出模組out),將資料傳到第二個串接驅動單元20的輸入端in。如此依序到最後一個串接驅動單元20的輸入端in。最後再經由最後一個串接驅動單元20的輸出端out輸出到上一個驅動單元20的另外一個輸入端in,依序返回到控制單元10的另一個輸入端,如此形成一個完整的通訊傳輸迴路。藉此,透過串聯回授方式對資料進行通訊傳輸,可避免資料的失真與衰減。 Please refer to Figure 4, which is a schematic diagram of the design of the high-speed local bus of the present invention. The high-speed local bus 400 of the present invention is designed with hardware (for example, in this embodiment, it is implemented by backplane wiring) and adopts a series feedback method (the local bus 400 in the drive control device 100 on the left is on the right The expansion of the local bus 400 in the drive control device 100 takes the control unit 10 as the starting station and transmits data to the input terminal in (or input module in) of the first serially connected drive unit 20. After the received data is processed by the processor 402, the data is transmitted to the input terminal in of the second serial drive unit 20 through the output terminal out (or output module out). In this way, the input terminal in of the last series-connected driving unit 20 is reached. Finally, it is output to another input terminal in of the previous driving unit 20 through the output terminal out of the last serially connected driving unit 20, and then returned to the other input terminal of the control unit 10 in sequence, thus forming a complete communication transmission loop. In this way, the data is communicated and transmitted through the series feedback method to avoid data distortion and attenuation.

請參見圖5所示,其係為本發明控制單元的控制方式之示意圖。控制單元10接受到外部通訊總線300傳送的多軸命令資料(即給第一軸的命令、給第二軸的命令…給第N軸的命令),其中,多軸命令資料係由上位控制器所提供,並且命令資料包含位置、速度、扭力…等。在本實施例中,控制單元10包含命令處理器102與命令同步器104。控制單元10接收到該些多軸命令資料後,透過命令處理器102對多軸命令資料進行處理,包含命令平滑的處理、命令插值的處理…等。然後,再經過命令同步器104對處理後的命令資料進行同步後,透過高速的本地總線400將同步後的命令資料傳送至第一個驅動單元20,並且依序地透過本地總線400對每個驅動單元20的命令資料進行傳送,最終將命令資料傳回至控制單元10。然後,控制單元10處理各軸的狀態資訊,並且將處理後的資訊回傳到通訊總線300。換言之,每一軸馬達200控制的時間排程係由控制單元10所執行。因此,從上位控制器提供的多軸命令資料,經由控制單元10的命令處理器102與命令同步器104的細緻化運算,使秒(second)或毫秒(ms)等級的命令資料細分化為微秒(us)甚至是奈秒(ns)等級的命令,並且提供至控制每一軸馬達200的驅動單元20,使驅動單元20能夠精密(精細)地控制每一軸馬達200。在本實施例中,控制單元10只需要負責處理命令資料,而各軸馬達200的電流控制則由所對應的各個驅動單元20負責,以達到分散式運算功效。 Please refer to FIG. 5 , which is a schematic diagram of the control method of the control unit of the present invention. The control unit 10 receives the multi-axis command data transmitted by the external communication bus 300 (i.e., the command for the first axis, the command for the second axis...the command for the Nth axis), where the multi-axis command data is transmitted by the upper controller. Provided, and the command data includes position, speed, torque...etc. In this embodiment, the control unit 10 includes a command processor 102 and a command synchronizer 104. After receiving the multi-axis command data, the control unit 10 processes the multi-axis command data through the command processor 102, including command smoothing processing, command interpolation processing, etc. Then, after the command synchronizer 104 synchronizes the processed command data, the synchronized command data is transmitted to the first drive unit 20 through the high-speed local bus 400, and each drive unit 20 is sequentially connected through the local bus 400. The command data of the driving unit 20 is transmitted, and finally the command data is transmitted back to the control unit 10 . Then, the control unit 10 processes the status information of each axis and transmits the processed information back to the communication bus 300 . In other words, the time schedule controlled by each axis motor 200 is executed by the control unit 10 . Therefore, through the detailed operation of the command processor 102 and the command synchronizer 104 of the control unit 10, the multi-axis command data provided by the upper controller subdivides the command data at the second (second) or millisecond (ms) level into micro Seconds (us) or even nanoseconds (ns) level commands are provided to the driving unit 20 that controls each axis motor 200 , so that the driving unit 20 can control each axis motor 200 precisely (finely). In this embodiment, the control unit 10 only needs to be responsible for processing command data, and the current control of each axis motor 200 is responsible for the corresponding driving unit 20 to achieve distributed computing effects.

值得一提,控制單元10具有位置命令控制與電流命令控制,其中位置命令相應於速度命令,而電流命令相應於扭力命令。在現有傳統的控制機制,位置(速度)命令控制與電流(扭力)命令控制通常在相同的處理器或控制器處理。然而,在本發明中,對於電流(扭力)命令的處理與控制係透過驅動單元20執行,而位置(速度)命令的處理與控制則透過控制單元10執行。換言之,由於本發明模組化的優勢,因此,對於電流(扭力)命令與位置(速度)命令可分別在不同(即驅動單元20與控制單元10)處理器或控制器執行。藉此,不僅可大幅地降低控制 單元10的運算量(由於電流(扭力)命令的處理與控制係透過驅動單元20執行),即可選擇成本較佳、功能相對低階的控制器,亦可提高驅動控制裝置100的擴充性與更換性。 It is worth mentioning that the control unit 10 has position command control and current command control, where the position command corresponds to the speed command and the current command corresponds to the torque command. In existing traditional control mechanisms, position (speed) command control and current (torque) command control are usually processed in the same processor or controller. However, in the present invention, the processing and control of the current (torque) command is performed through the drive unit 20 , while the processing and control of the position (speed) command is performed through the control unit 10 . In other words, due to the modularity advantage of the present invention, the current (torque) command and the position (speed) command can be executed in different (ie, the drive unit 20 and the control unit 10 ) processors or controllers respectively. This not only significantly reduces the control The calculation amount of the unit 10 (since the processing and control of the current (torque) command is executed through the drive unit 20), a controller with better cost and relatively low-level functions can be selected, and the scalability and scalability of the drive control device 100 can also be improved. Replaceability.

請參見圖6所示,其係為本發明驅動單元的控制方式之示意圖。在一實施例中,驅動單元20可透過控制晶片(control chip)完成電流環控制。在本發明的驅動單元20係包含電流取樣單元21、電流處理單元22、命令處理單元23、命令同步單元24、電流迴路單元25、脈波寬度調變信號(PWM)單元26以及回授處理單元27。電流取樣單元21接收電流回授信號,並對該電流回授信號進行取樣處理,例如透過Delta-Sigma(△-Σ)的調變方式進行信號取樣。電流處理單元22接收取樣後的電流回授信號,用以對電流回授進行處理。命令處理單元23接收本地總線400輸入的命令資料,用以提供本地的高速命令資料處理。命令同步單元24為命令同步對時機制,對命令資料進行同步化。電流迴路單元25接收命令同步單元24所提供的同步命令資料以及電流處理單元22提供的回授電流資訊,進行電流環控制。PWM單元26根據電流迴路單元25的電流環控制,產生控制的PWM信號輸出,控制馬達200的實際電流。回授處理單元27用以接收編碼器回授(encoder feedback)、末端編碼器回授(end optical ruler feedback)以及壓力(力量)感測器回授(force sensor feedback)進行編碼器的通訊封包處理。 Please refer to FIG. 6 , which is a schematic diagram of the control method of the drive unit of the present invention. In one embodiment, the driving unit 20 can implement current loop control through a control chip. The driving unit 20 of the present invention includes a current sampling unit 21, a current processing unit 22, a command processing unit 23, a command synchronization unit 24, a current loop unit 25, a pulse width modulation signal (PWM) unit 26 and a feedback processing unit. 27. The current sampling unit 21 receives the current feedback signal and performs sampling processing on the current feedback signal, for example, performing signal sampling through a Delta-Sigma (Δ-Σ) modulation method. The current processing unit 22 receives the sampled current feedback signal to process the current feedback. The command processing unit 23 receives command data input from the local bus 400 to provide local high-speed command data processing. The command synchronization unit 24 is a command synchronization timing mechanism to synchronize command data. The current loop unit 25 receives the synchronization command data provided by the command synchronization unit 24 and the feedback current information provided by the current processing unit 22 to perform current loop control. The PWM unit 26 generates a controlled PWM signal output according to the current loop control of the current loop unit 25 to control the actual current of the motor 200 . The feedback processing unit 27 is used to receive encoder feedback (encoder feedback), end encoder feedback (end optical ruler feedback) and pressure (force) sensor feedback (force sensor feedback) to perform encoder communication packet processing. .

具體地,驅動單元20接收由控制單元10傳過來命令資料,進行馬達200的位置控制迴路、速度控制迴路以及編碼器位置處理。其中,命令資料包含但不限於電流命令、電氣角、速度和通訊延遲補償量等,傳輸與接受具備錯誤偵測與糾正機制。 Specifically, the driving unit 20 receives the command data transmitted from the control unit 10 and performs position control loop, speed control loop and encoder position processing of the motor 200 . Among them, the command data includes but is not limited to current command, electrical angle, speed and communication delay compensation amount, etc. The transmission and reception have error detection and correction mechanisms.

因為驅動單元20每次中斷會將電流命令、電氣角和通訊延遲補償量傳給其它軸的驅動單元20,因此需要命令同步單元24對時處理模塊,將各 軸驅動單元20進行對時機制,確保多軸之間的編碼器取樣、電流回授取樣和PWM生效時間同步。 Because the drive unit 20 will transmit the current command, electrical angle and communication delay compensation amount to the drive units 20 of other axes each time it is interrupted, it is necessary to command the synchronization unit 24 to synchronize the timing processing module to transfer each The axis drive unit 20 performs a time synchronization mechanism to ensure that encoder sampling, current feedback sampling, and PWM effective time are synchronized among multiple axes.

透過電流回授取樣,將回授資料透過電流處理單元22解碼後,搭配自行設計的同步濾波器(Sync Filter)架構,將電流回授資訊傳回電流環進行控制,電流取樣方法包含但不限於Delta-Sigma(△-Σ)、ADC等。 Through current feedback sampling, the feedback data is decoded by the current processing unit 22, and then used with a self-designed Sync Filter architecture to transmit the current feedback information back to the current loop for control. The current sampling method includes but is not limited to Delta-Sigma(Δ-Σ), ADC, etc.

電流迴路單元25的電流環控制包含PI(微分-積分)控制、d-q軸(直-交軸)電流轉換、SVPWM控制、電壓解耦合以及dead time補償。電流迴路單元25的電流環控制透過SVPWM控制計算出的比較數值,透過PWM單元26實現IGBT的六橋控制。 The current loop control of the current loop unit 25 includes PI (differential-integral) control, d-q axis (direct-quadrature axis) current conversion, SVPWM control, voltage decoupling, and dead time compensation. The current loop control of the current loop unit 25 controls the comparison value calculated by SVPWM, and realizes the six-bridge control of the IGBT through the PWM unit 26.

回授處理單元27接收編碼器回授訊號、末端編碼器訊號和壓力感測器訊號,這些通訊格式都包含ECC(error correcting code)功能。回授處理單元27解完通訊封包後,透過本地總線400通訊將資料傳回至控制單元10,進而進行位置和扭矩的全閉環控制。 The feedback processing unit 27 receives encoder feedback signals, terminal encoder signals and pressure sensor signals. These communication formats all include ECC (error correcting code) functions. After the feedback processing unit 27 decodes the communication packet, it transmits the data back to the control unit 10 through local bus 400 communication, thereby performing full closed-loop control of position and torque.

在本發明中,控制單元10的操作角色可分別兩種模式:從站(slave)模式與主站(master)模式。請參見圖7所示,其係為本發明控制單元作為從站之示意圖。當控制單元10作為從站角色時,多軸命令資料係透過上位控制器、可程式邏輯控制器(programmable logic controller,PLC)或者運動控制器所提供。因此,驅動單元20接收該些多軸命令資料,可進一步地對每一軸的馬達200進行驅動與控制。在從站(slave)模式操作下,控制單元10被動地接收上位控制器提供的多軸命令資料,並且透過命令處理器102與命令同步器104細緻化運算命令資料,使得驅動單元20能夠精密(精細)地控制每一軸馬達200。 In the present invention, the operating role of the control unit 10 can be divided into two modes: slave mode and master mode. Please refer to Figure 7, which is a schematic diagram of the control unit of the present invention serving as a slave station. When the control unit 10 acts as a slave, multi-axis command data is provided through a host controller, a programmable logic controller (PLC) or a motion controller. Therefore, the driving unit 20 receives the multi-axis command data and can further drive and control the motor 200 of each axis. In slave mode operation, the control unit 10 passively receives multi-axis command data provided by the upper controller, and refines the command data through the command processor 102 and the command synchronizer 104, so that the drive unit 20 can accurately ( Finely) control each axis motor 200.

圖7右方所示的主站裝置(可以是第三方上位主站控制器)。第三方上位主站控制器(master device)規劃各軸的命令,透過通訊總線300傳送給各個從站裝置(slave device)。相關從站資訊也會透過通訊總線300回傳到第三方上 位主站控制器。對於從站裝置而言,每一個從站裝置會把多軸命令資訊提供給第三方從站裝置,讓第三方從站裝置可以分別控制從站裝置內的每一軸馬達200。 The master station device shown on the right side of Figure 7 (can be a third-party upper master station controller). The third-party upper master controller (master device) plans the commands of each axis and transmits them to each slave device (slave device) through the communication bus 300. Relevant slave station information will also be sent back to the third party through the communication bus 300. master station controller. For the slave device, each slave device will provide multi-axis command information to the third-party slave device, so that the third-party slave device can control each axis motor 200 in the slave device respectively.

請參見圖8所示,其係為本發明控制單元作為主站之示意圖。在主站(master)模式下,控制單元10具有主站控制器的功能,意即控制單元10除了可控制本地的驅動單元20之外,亦能夠透過命令產生器101產生命令資訊透過通訊總線300傳送至其他的從站裝置,進而控制其他從站裝置。換言之,當控制單元10本身可以作為主站控制器時,則不需要第三方上位主站控制器,因此,各軸命令資料的規劃、插值,與同步處理都可在控制單元10完成。在一實施例中,透過程序編程,可以提供使用者進行外部軸或內部軸控制的程序編程,並且可透過將編程的程序下載至控制單元10,如此,作為主站模式操作的控制單元10則針對編程的程序進行對外部軸和/或內部軸的馬達200進行控制。 Please refer to Figure 8, which is a schematic diagram of the control unit of the present invention serving as the master station. In the master mode, the control unit 10 has the function of a master controller, which means that in addition to controlling the local drive unit 20 , the control unit 10 can also generate command information through the communication bus 300 through the command generator 101 Transmitted to other slave devices to control other slave devices. In other words, when the control unit 10 itself can serve as the master controller, there is no need for a third-party upper master controller. Therefore, the planning, interpolation, and synchronization processing of each axis command data can be completed in the control unit 10 . In one embodiment, through program programming, the user can be provided with program programming for external axis or internal axis control, and the programmed program can be downloaded to the control unit 10. In this way, the control unit 10 operating as a master mode The motor 200 of the external axis and/or the internal axis is controlled according to the programmed program.

綜上所述,本發明係具有以下之特徵與優點: To sum up, the present invention has the following features and advantages:

1、透過驅動單元20對電流(扭力)命令的處理與控制以及控制單元10對位置(速度)命令的處理與控制所實現的分散式運算,不僅可大幅地降低控制單元10的運算量(由於電流(扭力)命令的處理與控制係透過驅動單元20執行),即可選擇成本較佳、功能相對低階的控制器,亦可提高驅動控制裝置100的擴充性與更換性。 1. The distributed computing implemented through the processing and control of the current (torque) command by the drive unit 20 and the processing and control of the position (speed) command by the control unit 10 can not only greatly reduce the calculation amount of the control unit 10 (due to The processing and control of current (torque) commands are performed through the drive unit 20), which allows the selection of a controller with lower cost and relatively low-level functions, and also improves the expandability and replaceability of the drive control device 100.

2、高速本地總線透過以背板的走線方式實現串聯回授的完整的通訊傳輸迴路,可避免資料的失真與衰減。 2. The high-speed local bus uses backplane wiring to achieve a complete communication transmission loop with series feedback, which can avoid data distortion and attenuation.

3、經由控制單元10的細緻化運算,使命令資料細分化,進而提供至控制每一軸馬達200的驅動單元20,使驅動單元20能夠精細地控制每一軸馬達200。 3. Through the detailed calculation of the control unit 10, the command data is subdivided and then provided to the drive unit 20 that controls each axis motor 200, so that the drive unit 20 can control each axis motor 200 in a precise manner.

4、控制單元10可操作為從站模式與主站模式,因此提高控制單元10使用的彈性與多樣性。 4. The control unit 10 can operate in slave mode and master mode, thus improving the flexibility and diversity of use of the control unit 10.

以上所述,僅為本發明較佳具體實施例之詳細說明與圖式,惟本發明之特徵並不侷限於此,並非用以限制本發明,本發明之所有範圍應以下述之申請專利範圍為準,凡合於本發明申請專利範圍之精神與其類似變化之實施例,皆應包含於本發明之範疇中,任何熟悉該項技藝者在本發明之領域內,可輕易思及之變化或修飾皆可涵蓋在以下本案之專利範圍。 The above are only detailed descriptions and drawings of the preferred embodiments of the present invention. However, the characteristics of the present invention are not limited thereto and are not used to limit the present invention. The entire scope of the present invention should be determined by the following patent application scope. Subject to the present invention, all embodiments that are within the spirit of the patentable scope of the present invention and similar changes thereof shall be included in the scope of the present invention. Any person familiar with the art can easily think of such changes or modifications in the field of the present invention. Modifications may be covered by the following patent scope of this case.

100:驅動控制裝置 100: Drive control device

200:馬達 200: Motor

300:通訊總線 300: Communication bus

400:本地總線 400:Local bus

10:控制單元 10:Control unit

20:驅動單元 20:Drive unit

Claims (11)

一種多軸伺服控制系統,包含:複數馬達;及複數驅動控制裝置,透過一外部通訊總線相互連接,各該驅動控制裝置包含:一控制單元;及複數驅動單元,與該控制單元係透過複數本地總線串聯連接,以形成可依序傳輸資料的一串聯通訊迴路;各該驅動單元用以控制該等馬達中的至少一者;其中,該等控制單元透過該外部通訊總線彼此連接,且透過該外部通訊總線接收多軸位置命令;其中,任一該控制單元可將多軸命令提供給所屬該驅動控制裝置的該等驅動單元或其他驅動控制裝置的該等驅動單元,使得該等驅動單元透過該本地總線對應地接收多軸命令,以分散式控制該等馬達。 A multi-axis servo control system includes: a plurality of motors; and a plurality of drive control devices, which are connected to each other through an external communication bus. Each of the drive control devices includes: a control unit; and a plurality of drive units, and the control unit is connected to the control unit through a plurality of local The bus is connected in series to form a series communication loop that can transmit data sequentially; each drive unit is used to control at least one of the motors; wherein the control units are connected to each other through the external communication bus, and through the The external communication bus receives multi-axis position commands; any one of the control units can provide multi-axis commands to the drive units belonging to the drive control device or the drive units of other drive control devices, so that the drive units can pass The local bus accordingly receives multi-axis commands to control the motors in a distributed manner. 如請求項1所述之多軸伺服控制系統,其中該本地總線係為一高速的總線;該本地總線係以該控制單元的一輸出端為起始,以串聯方式依序連接該等驅動單元,最後回授至該控制單元的一輸入端為結束,以形成可依序傳輸資料的該串聯通訊迴路。 The multi-axis servo control system as described in claim 1, wherein the local bus is a high-speed bus; the local bus starts from an output end of the control unit and connects the drive units in series. , and finally ends by feeding back to an input end of the control unit, so as to form the serial communication loop that can transmit data sequentially. 如請求項2所述之多軸伺服控制系統,其中各該驅動單元包含一處理器,該控制單元包含一處理器; 該串聯通訊迴路係包含該控制單元的該處理器、該控制單元的該輸出端、各該驅動單元的一輸入端、各該驅動單元的該處理器、各該驅動單元的一輸出端、該控制單元的該輸入端以及該控制單元的該處理器。 The multi-axis servo control system as claimed in claim 2, wherein each drive unit includes a processor, and the control unit includes a processor; The series communication loop includes the processor of the control unit, the output end of the control unit, an input end of each drive unit, the processor of each drive unit, an output end of each drive unit, the The input of the control unit and the processor of the control unit. 如請求項1所述之多軸伺服控制系統,其中該控制單元包含:一命令處理器;及一命令同步器,連接該命令處理器。 The multi-axis servo control system as claimed in claim 1, wherein the control unit includes: a command processor; and a command synchronizer connected to the command processor. 如請求項1所述之多軸伺服控制系統,其中該控制單元包含:一命令產生器;一命令處理器,連接該命令產生器;及一命令同步器,連接該命令處理器。 The multi-axis servo control system of claim 1, wherein the control unit includes: a command generator; a command processor connected to the command generator; and a command synchronizer connected to the command processor. 如請求項1所述之多軸伺服控制系統,其中,該控制單元為一從站控制器,提供一從站操作模式,用以控制同為該驅動控制裝置的該等驅動單元。 The multi-axis servo control system as claimed in claim 1, wherein the control unit is a slave controller that provides a slave operation mode for controlling the drive units that are also the drive control device. 如請求項1所述之多軸伺服控制系統,其中,該控制單元為一主站控制器,提供一主站操作模式,用以控制同為該驅動控制裝置的該等驅動單元,以及其他驅動控制裝置的該等驅動單元的該控制單元與該等驅動單元。 The multi-axis servo control system as described in claim 1, wherein the control unit is a master station controller that provides a master station operation mode to control the drive units that are also the drive control device and other drives. The control unit and the driving units of the driving units of the control device. 如請求項1所述之多軸伺服控制系統,其中該驅動單元包含:一電流迴路單元,接收一電流命令與一電流值,用以比較該電流命令與該電流值,以產生一電流控制信號。 The multi-axis servo control system as claimed in claim 1, wherein the drive unit includes: a current loop unit that receives a current command and a current value to compare the current command and the current value to generate a current control signal. . 如請求項8所述之多軸伺服控制系統,其中該驅動單元更包含:一命令處理單元,接收該電流命令,且對該電流命令進行處理;及 一命令同步單元,連接該命令處理單元,接收處理後的該電流命令,且對該電流命令進行同步化,以提供至該電流迴路單元。 The multi-axis servo control system of claim 8, wherein the drive unit further includes: a command processing unit that receives the current command and processes the current command; and A command synchronization unit is connected to the command processing unit, receives the processed current command, and synchronizes the current command to provide it to the current loop unit. 如請求項8所述之多軸伺服控制系統,其中該驅動單元更包含:一電流處理單元,接收取樣後的該電流值,且對該電流值進行處理,以提供至該電流迴路單元。 The multi-axis servo control system of claim 8, wherein the drive unit further includes: a current processing unit that receives the sampled current value and processes the current value to provide it to the current loop unit. 如請求項8所述之多軸伺服控制系統,其中該驅動單元更包含:一回授處理單元,接收複數回授命令,且對該等回授命令進行通訊封包處理,以提供至該本地總線的輸出。 The multi-axis servo control system as described in claim 8, wherein the drive unit further includes: a feedback processing unit that receives a plurality of feedback commands and performs communication packet processing on the feedback commands to provide them to the local bus. output.
TW110139250A 2021-10-22 Multi-axis servo control system TWI834071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110139250A TWI834071B (en) 2021-10-22 Multi-axis servo control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110139250A TWI834071B (en) 2021-10-22 Multi-axis servo control system

Publications (2)

Publication Number Publication Date
TW202318121A TW202318121A (en) 2023-05-01
TWI834071B true TWI834071B (en) 2024-03-01

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998013156A1 (en) 1996-09-27 1998-04-02 General Electro Mechanical Corporation Control system and method for fastening machines

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1998013156A1 (en) 1996-09-27 1998-04-02 General Electro Mechanical Corporation Control system and method for fastening machines

Similar Documents

Publication Publication Date Title
CN107229240B (en) EtherCAT-based multi-axis synchronous control device and method
US8400791B2 (en) Power layer generation of inverter gate drive signals
CN106411184B (en) The multi-axle motor sync control device and method of a kind of networking
CN101907882B (en) Multi-shaft DC servo motor control system and method based on EPA (Ethernet for Plant Automation) field bus
CN104290096B (en) A kind of joint of mechanical arm motor control method based on CANopen and system
CN108279630B (en) Bus-based distributed motion control system and method
CN112910593B (en) Synchronous control system and method applied to servo motor driver
CN108453733A (en) Robot, kinetic control system, method with feedback control function and medium
CN108481322B (en) Robot, control parts of motion, method and medium with accurate control function
US20230131842A1 (en) Multi-axis servo control system
JP2004523972A (en) Application of switchable data networks for real-time and non-real-time communications
TWI834071B (en) Multi-axis servo control system
US11689439B2 (en) Method and apparatus for communication with a motor or load mounted device in motion applications
JP2011134050A (en) Drive device, driving method and apparatus
CN110515358B (en) Control method of automatic production line parallel control system based on integrated controller
TW202318121A (en) Multi-axis servo control system
JP2005014150A (en) Robot system
JP4980292B2 (en) Numerical control system that communicates with multiple amplifiers at different communication cycles
CN111158285A (en) Control system based on EtherCAT bus
CN109955247A (en) Multi-robot self-determination control system
CN115685886A (en) Linkage laser marking control card based on EtherCAT network communication
CN113885407A (en) Control device and method for multi-shaft transferring equipment of quick-wear part
JP4118695B2 (en) Numerical control system
JP2018018131A (en) Motion control system
CN108170102B (en) Motion control system