TWI736106B - Servo motor control device - Google Patents

Servo motor control device Download PDF

Info

Publication number
TWI736106B
TWI736106B TW109101537A TW109101537A TWI736106B TW I736106 B TWI736106 B TW I736106B TW 109101537 A TW109101537 A TW 109101537A TW 109101537 A TW109101537 A TW 109101537A TW I736106 B TWI736106 B TW I736106B
Authority
TW
Taiwan
Prior art keywords
command value
value
command
servo motor
processing unit
Prior art date
Application number
TW109101537A
Other languages
Chinese (zh)
Other versions
TW202046627A (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 日商日立產機系統股份有限公司
Publication of TW202046627A publication Critical patent/TW202046627A/en
Application granted granted Critical
Publication of TWI736106B publication Critical patent/TWI736106B/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02PCONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
    • H02P29/00Arrangements for regulating or controlling electric motors, appropriate for both AC and DC motors
    • H02P29/40Regulating or controlling the amount of current drawn or delivered by the motor for controlling the mechanical load

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Control Of Electric Motors In General (AREA)

Abstract

本發明使具有伺服馬達之應用系統中之誤動作之產生降低。 伺服馬達控制裝置基於自上位裝置100輸入之輸入指令值而進行伺服馬達之控制。伺服馬達控制裝置具備:控制處理部20,其將輸入指令值與指令限制值加以比較而產生比較後指令值,且基於比較後指令值而產生電流指令值及電壓指令值;及電力轉換器,其基於電流指令值及電壓指令值而對伺服馬達M供給電力。控制處理部20於輸入指令值為指令限制值之範圍內之情形時,將輸入指令值作為比較後指令值,於輸入指令值為指令限制值之範圍外之情形時,將指令限制值作為比較後指令值。The invention reduces the occurrence of misoperation in the application system with the servo motor. The servo motor control device controls the servo motor based on the input command value input from the host device 100. The servo motor control device includes: a control processing unit 20 that compares an input command value with a command limit value to generate a compared command value, and generates a current command value and a voltage command value based on the compared command value; and a power converter, It supplies electric power to the servo motor M based on the current command value and the voltage command value. When the input command value is within the range of the command limit value, the control processing unit 20 uses the input command value as the compared command value, and when the input command value is outside the command limit value range, the command limit value is used as the comparison After the instruction value.

Description

伺服馬達控制裝置Servo motor control device

本發明係關於一種伺服馬達控制裝置。The invention relates to a servo motor control device.

專利文獻1中,揭示一種馬達之控制裝置,其於來自上位裝置之指令值不正確之情形時,覆寫指令值。根據專利文獻1,馬達之端子電壓之抑制係藉由以變流器之最大輸出電壓不超過永久磁鐵式同步馬達之端子電壓之方式於d軸流動負電流而進行。Patent Document 1 discloses a motor control device that overwrites the command value when the command value from the upper device is incorrect. According to Patent Document 1, the suppression of the terminal voltage of the motor is performed by flowing a negative current on the d-axis so that the maximum output voltage of the converter does not exceed the terminal voltage of the permanent magnet synchronous motor.

具體而言,將輸入至變流器之電壓指令值與基於變流器之最大輸出電壓而設定之端子電壓上限值加以比較,於電壓指令值超過端子電壓上限值之情形時,將d軸電流分量向於負方向增大之方向切換,於電壓指令值為端子電壓上限值以下之情形時,將d軸電流分量向於負方向減少之方向切換。 [先前技術文獻] [專利文獻]Specifically, the voltage command value input to the converter is compared with the terminal voltage upper limit set based on the maximum output voltage of the converter, and when the voltage command value exceeds the terminal voltage upper limit, d The axis current component is switched to the direction of increasing in the negative direction. When the voltage command value is below the upper limit of the terminal voltage, the d-axis current component is switched to the direction of decreasing in the negative direction. [Prior Technical Literature] [Patent Literature]

[專利文獻1]國際公開第2005/093943號[Patent Document 1] International Publication No. 2005/093943

[發明所欲解決之問題][The problem to be solved by the invention]

通常,伺服馬達控制裝置基於來自上位裝置之指令而進行伺服馬達之控制。然而,因與上位裝置之通信錯誤或上位裝置內之漏洞之產生等而有如下情形,即,通常不會有的異常指令值輸出至伺服馬達控制裝置。此種情形時,無法於伺服馬達控制裝置側判斷所輸入之指令值是否為正確之值,且是否應按照輸入值而動作。Generally, the servo motor control device controls the servo motor based on the command from the upper device. However, due to communication errors with the upper device or the generation of loopholes in the upper device, etc., there are situations in which abnormal command values that are not normally present are output to the servo motor control device. In this case, it is impossible to judge on the side of the servo motor control device whether the input command value is the correct value, and whether it should act according to the input value.

專利文獻1中,亦將來自上位裝置之指令值設為正確,進行於變流器內部產生之電壓指令值與用以保護變流器之最大輸出電壓之比較。專利文獻1中,即便因某些原因而導致自上位裝置輸入之指令值錯誤之情形時,亦會產生保護變流器之電流、電壓指令值,但有使搭載馬達之處之應用系統(壓製裝置等)產生誤動作之虞。因誤動作而有產生搭載馬達之裝置破損、裝置中使用之構件(模具等)破損之虞。In Patent Document 1, the command value from the upper device is also set to be correct, and the voltage command value generated inside the converter is compared with the maximum output voltage used to protect the converter. In Patent Document 1, even if the command value input from the host device is wrong due to some reasons, the current and voltage command values to protect the converter will be generated. However, there is an application system where the motor is installed (suppression Device, etc.) may cause malfunction. There is a risk of damage to the device equipped with the motor or damage to the components (molds, etc.) used in the device due to malfunction.

因此,本發明之目的在於提供一種使具有伺服馬達之應用系統中之誤動作之產生降低的伺服馬達控制裝置。 [解決問題之技術手段]Therefore, the object of the present invention is to provide a servo motor control device that reduces the occurrence of malfunctions in an application system with a servo motor. [Technical means to solve the problem]

本案所揭示之發明中,對代表性發明之概要之簡單說明為如下所述。Among the inventions disclosed in this case, a brief description of the outline of representative inventions is as follows.

本發明之代表性實施形態之伺服馬達控制裝置基於自上位裝置輸入之輸入指令值而進行伺服馬達之控制。伺服馬達控制裝置具備:控制處理部,其將輸入指令值與指令限制值加以比較而產生指令值,且基於指令值而產生電流指令值及電壓指令值;及電力轉換器,其基於電流指令值及電壓指令值而對伺服馬達供給電力。控制處理部於輸入指令值為指令限制值之範圍內之情形時,將輸入指令值作為指令值,於輸入指令值為指令限制值之範圍外之情形時,將指令限制值作為指令值。 [發明之效果]The servo motor control device of the representative embodiment of the present invention controls the servo motor based on the input command value input from the host device. The servo motor control device includes: a control processing unit that compares an input command value with a command limit value to generate a command value, and generates a current command value and a voltage command value based on the command value; and a power converter based on the current command value And the voltage command value to supply power to the servo motor. The control processing unit uses the input command value as the command value when the input command value is within the range of the command limit value, and uses the command limit value as the command value when the input command value is outside the range of the command limit value. [Effects of Invention]

本案所揭示之發明中,對藉由代表性發明取得之效果之簡單說明為如下所述。Among the inventions disclosed in this application, a brief description of the effects obtained by the representative inventions is as follows.

即,根據本發明之代表性實施形態,能夠使具有伺服馬達之應用系統中之誤動作之產生降低。That is, according to the representative embodiment of the present invention, it is possible to reduce the occurrence of malfunctions in an application system with a servo motor.

以下,參照圖式說明本發明之實施形態。以下說明之各實施形態為用以實現本發明之一例,並非限定本發明之技術範圍。再者,於實施例中,對於具有相同功能之構件標註相同之符號,除特別需要之情形外省略其重複之說明。 (實施形態1) <伺服馬達控制裝置之構成>Hereinafter, embodiments of the present invention will be described with reference to the drawings. Each embodiment described below is an example for realizing the present invention, and does not limit the technical scope of the present invention. Furthermore, in the embodiments, components with the same function are marked with the same symbols, and repeated descriptions thereof are omitted except for special needs. (Embodiment 1) <Constitution of servo motor control device>

圖1係表示本發明之實施形態1之伺服馬達控制裝置之構成之一例的方塊圖。如圖1所示,伺服馬達控制裝置1具備指令值輸入電路10、控制處理部20、電力轉換機30、及閘極驅動器70。 《指令值輸入電路》Fig. 1 is a block diagram showing an example of the configuration of a servo motor control device according to the first embodiment of the present invention. As shown in FIG. 1, the servo motor control device 1 includes a command value input circuit 10, a control processing unit 20, a power converter 30, and a gate driver 70. "Command value input circuit"

自上位裝置100將輸入指令值輸入至指令值輸入電路10。輸入指令值係用以控制伺服馬達M之參數。對指令值輸入電路10依序輸入與具有伺服馬達M之應用系統之運轉模式對應之輸入指令值。本實施形態中,將速度指令值作為輸入指令值而輸入。速度指令值係與伺服馬達M之旋轉速度相關之參數,以旋轉軸之角速度等表示。The input command value is input to the command value input circuit 10 from the host device 100. The input command value is used to control the parameter of the servo motor M. The input command value corresponding to the operation mode of the application system with the servo motor M is sequentially input to the command value input circuit 10. In this embodiment, the speed command value is input as the input command value. The speed command value is a parameter related to the rotation speed of the servo motor M, expressed by the angular speed of the rotating shaft, etc.

輸入指令值例如作為類比電壓等類比信號而輸入至指令值輸入電路10。所輸入之類比信號藉由AD(analog to digital,類比-數位)轉換電路11轉換成數位信號,並輸出至控制處理部20。The input command value is input to the command value input circuit 10 as an analog signal such as an analog voltage, for example. The input analog signal is converted into a digital signal by an AD (analog to digital) conversion circuit 11, and is output to the control processing unit 20.

又,指令值輸入電路10例如亦可經由RT-485或Ethernet(註冊商標)等網路等而與上位裝置100連接。該情形時,於指令值輸入電路10與上位裝置100之間進行數位信號之收發。In addition, the command value input circuit 10 may be connected to the host device 100 via a network such as RT-485 or Ethernet (registered trademark), for example. In this case, a digital signal is sent and received between the command value input circuit 10 and the host device 100.

《控制處理部》 圖2係表示本發明之實施形態1之控制處理部之構成之一例的方塊圖。再者,圖2中,省略上位裝置100、控制處理部20、及指令值輸入電路10。"Control Processing Department" Fig. 2 is a block diagram showing an example of the configuration of the control processing unit in the first embodiment of the present invention. In addition, in FIG. 2, the upper-level device 100, the control processing unit 20, and the command value input circuit 10 are omitted.

控制處理部20係基於自上位裝置100輸入之輸入指令值而產生用以控制伺服馬達M之電流指令值及電壓指令值之功能塊。如圖2所示,控制處理部20具備速度指令值判定處理部23、速度控制處理部24、轉矩指令值判定處理部25、轉矩控制處理部26、及限制值表29。The control processing unit 20 generates a function block for controlling the current command value and the voltage command value of the servo motor M based on the input command value input from the host device 100. As shown in FIG. 2, the control processing unit 20 includes a speed command value determination processing unit 23, a speed control processing unit 24, a torque command value determination processing unit 25, a torque control processing unit 26, and a limit value table 29.

控制處理部20具有處理器及記憶體等。記憶體中儲存有使伺服馬達控制裝置1動作之程式、應用系統之運轉模式等。藉由處理器執行自記憶體讀出之程式而實現控制處理部20所包含之各功能塊。又,控制處理部20亦可由實現上述各功能塊之ASIC(application specific integrated circuit,特殊應用積體電路)、FPGA(field-programmable gate array,場可程式化閘陣列)等構成。The control processing unit 20 has a processor, a memory, and the like. The memory stores the programs for operating the servo motor control device 1, the operation mode of the application system, and the like. Each functional block included in the control processing unit 20 is realized by the processor executing the program read from the memory. In addition, the control processing unit 20 may also be composed of an ASIC (application specific integrated circuit), an FPGA (field-programmable gate array, field-programmable gate array), etc., which implement the above-mentioned functional blocks.

速度指令值判定處理部23係進行所輸入之速度指令值是否為正常值之判定之功能塊。具體而言,速度指令值判定處理部23將所輸入之速度指令值與儲存於限制值表29之速度指令限制值加以比較。速度指令值判定處理部23根據運轉模式而將成為各期間之比較對象之速度指令限制值進行切換。The speed command value judgment processing unit 23 is a functional block that judges whether the input speed command value is a normal value. Specifically, the speed command value determination processing unit 23 compares the input speed command value with the speed command limit value stored in the limit value table 29. The speed command value determination processing unit 23 switches the speed command limit value to be compared in each period according to the operation mode.

速度指令值判定處理部23於速度指令值為選作比較對象之速度指令限制值之範圍內之情形時,判斷為正常值,且將速度指令值作為比較後速度指令值而輸出至速度控制處理部24。When the speed command value is within the range of the speed command limit value selected as the comparison target, the speed command value judgment processing unit 23 judges it as a normal value, and outputs the speed command value as the compared speed command value to the speed control process Department 24.

相對於此,速度指令值判定處理部23於速度指令值為所選擇之速度指令限制值之範圍外之情形時,判斷速度指令值為異常值,且將速度指令限制值作為比較後速度指令值而輸出至速度控制處理部24。此時,速度指令值判定處理部23將表示所輸入之速度指令值為異常值之異常通知輸出至上位裝置100。異常通知中亦可包含特定出運轉模式中之異常產生期間之資訊。In contrast, when the speed command value is out of the range of the selected speed command limit value, the speed command value determination processing unit 23 determines that the speed command value is an abnormal value, and uses the speed command limit value as the compared speed command value And output to the speed control processing unit 24. At this time, the speed command value determination processing unit 23 outputs an abnormality notification indicating that the input speed command value is an abnormal value to the host device 100. The abnormality notification may also include information about the period during which the abnormality occurred in the specific operation mode.

對速度指令值判定處理部23輸入由位置檢測器EN檢測之伺服馬達M之位置資訊。速度指令值判定處理部23能夠基於伺服馬達M之位置資訊而切換速度指令限制值。The position information of the servo motor M detected by the position detector EN is input to the speed command value determination processing unit 23. The speed command value determination processing unit 23 can switch the speed command limit value based on the position information of the servo motor M.

又,對速度指令值判定處理部23輸入由感測器AS檢測之應用系統之感測器資訊。速度指令值判定處理部23能夠使用感測器資訊而切換速度指令限制值。感測器資訊中例如包含由伺服馬達M驅動之應用系統內之構件之位置資訊等。作為構件,例如可列舉搭載於壓製機之滑件及安裝於滑件之模具等。藉由感測器AS檢測之構件之位置資訊而能夠特定出運轉模式中之各期間。In addition, the sensor information of the application system detected by the sensor AS is input to the speed command value determination processing unit 23. The speed command value determination processing unit 23 can use the sensor information to switch the speed command limit value. The sensor information includes position information of components in the application system driven by the servo motor M, for example. As the member, for example, a slider mounted on a pressing machine and a mold attached to the slider can be cited. The position information of the component detected by the sensor AS can identify each period in the operation mode.

速度控制處理部24係基於比較後速度指令值而產生轉矩指令值之功能塊。具體而言,速度控制處理部24算出與自速度指令值判定處理部23輸入之比較後速度指令值對應之轉矩。具體而言,速度控制處理部24算出以使伺服馬達M之旋轉速度成為由比較後速度指令值(速度指令值或速度指令限制值)所規定之速度之方式施加至馬達旋轉軸之轉矩。速度控制處理部24將所算出之轉矩作為轉矩指令值而輸出至轉矩指令值判定處理部25。The speed control processing unit 24 is a functional block that generates a torque command value based on the compared speed command value. Specifically, the speed control processing unit 24 calculates the torque corresponding to the compared speed command value input from the speed command value determination processing unit 23. Specifically, the speed control processing unit 24 calculates the torque applied to the motor shaft so that the rotation speed of the servo motor M becomes the speed specified by the compared speed command value (speed command value or speed command limit value). The speed control processing unit 24 outputs the calculated torque as a torque command value to the torque command value determination processing unit 25.

自速度指令值判定處理部23對速度控制處理部24依序輸入與運轉模式中之各期間對應之比較後速度指令值。然後,速度控制處理部24基於輸入之比較後速度指令值,將對應之轉矩指令值依序輸出至轉矩指令值判定處理部25。The speed command value determination processing unit 23 sequentially inputs the speed command value after comparison corresponding to each period in the operation mode to the speed control processing unit 24. Then, the speed control processing unit 24 sequentially outputs the corresponding torque command values to the torque command value determination processing unit 25 based on the input compared speed command values.

轉矩指令值判定處理部25係進行所輸入之轉矩指令值是否為正常值之判定之功能塊。具體而言,轉矩指令值判定處理部25將所輸入之轉矩指令值與儲存於限制值表29之轉矩指令限制值加以比較。轉矩指令值判定處理部25根據運轉模式而將成為比較對象之轉矩指令限制值進行切換。The torque command value determination processing unit 25 is a functional block that determines whether the input torque command value is a normal value. Specifically, the torque command value determination processing unit 25 compares the input torque command value with the torque command limit value stored in the limit value table 29. The torque command value determination processing unit 25 switches the torque command limit value to be compared in accordance with the operation mode.

轉矩指令值判定處理部25於轉矩指令值為選作比較對象之轉矩指令上限值之範圍內之情形時,判斷為正常值,將轉矩指令值作為比較後轉矩指令值而輸出至轉矩控制處理部26。When the torque command value is within the range of the torque command upper limit value selected as the comparison target, the torque command value determination processing unit 25 determines that it is a normal value, and uses the torque command value as the compared torque command value. It is output to the torque control processing unit 26.

相對於此,轉矩指令值判定處理部25於轉矩指令值為選作比較對象之轉矩指令限制值之範圍外之情形時,判斷轉矩指令值為異常值,將轉矩指令限制值作為比較後轉矩指令值而輸出至轉矩控制處理部26。此時,轉矩指令值判定處理部25將表示所輸入之轉矩指令值為異常值之異常通知輸出至上位裝置100。自轉矩指令值判定處理部25輸出之異常通知中亦可包含特定出運轉模式中之異常產生期間之資訊。In contrast, when the torque command value is out of the range of the torque command limit value selected as the comparison target, the torque command value determination processing unit 25 determines that the torque command value is an abnormal value, and sets the torque command limit value It is output to the torque control processing unit 26 as a torque command value after comparison. At this time, the torque command value determination processing unit 25 outputs an abnormality notification indicating that the input torque command value is an abnormal value to the host device 100. The abnormality notification output from the torque command value determination processing unit 25 may also include information specifying the period during which the abnormality occurred in the operation mode.

對轉矩指令值判定處理部25亦輸入由位置檢測器EN檢測之伺服馬達M之位置資訊。轉矩指令值判定處理部25能夠基於伺服馬達M之位置資訊而切換轉矩指令限制值。The torque command value determination processing unit 25 also inputs the position information of the servo motor M detected by the position detector EN. The torque command value determination processing unit 25 can switch the torque command limit value based on the position information of the servo motor M.

又,對轉矩指令值判定處理部25亦輸入由感測器AS檢測之應用系統之感測器資訊。轉矩指令值判定處理部25亦能夠使用感測器資訊而切換轉矩指令限制值。In addition, the torque command value determination processing unit 25 also inputs sensor information of the application system detected by the sensor AS. The torque command value determination processing unit 25 can also use the sensor information to switch the torque command limit value.

轉矩控制處理部26係基於比較後轉矩指令值而產生電流指令值及電壓指令值之功能塊。具體而言,轉矩控制處理部26算出以使施加至伺服馬達M之旋轉軸之轉矩成為由比較後轉矩指令值(轉矩指令值或轉矩指令限制值)規定之轉矩之方式供給至伺服馬達M之電流及電壓。轉矩控制處理部26將所算出之電流及電壓作為電流指令值及電壓指令值而輸出至閘極驅動器70。The torque control processing unit 26 is a functional block that generates a current command value and a voltage command value based on the compared torque command value. Specifically, the torque control processing unit 26 calculates such that the torque applied to the rotating shaft of the servo motor M becomes the torque specified by the compared torque command value (torque command value or torque command limit value) The current and voltage supplied to the servo motor M. The torque control processing unit 26 outputs the calculated current and voltage to the gate driver 70 as a current command value and a voltage command value.

自轉矩指令值判定處理部25對轉矩控制處理部26依序輸入與運轉模式中之各期間對應之比較後轉矩指令值。然後,轉矩控制處理部26基於輸入之比較後轉矩指令值,將對應之電流指令值及電壓指令值依序輸出至閘極驅動器70。The torque command value determination processing unit 25 sequentially inputs the torque command value after comparison corresponding to each period in the operation mode to the torque control processing unit 26. Then, the torque control processing unit 26 sequentially outputs the corresponding current command value and voltage command value to the gate driver 70 based on the input compared torque command value.

限制值表29係儲存速度指令限制值、轉矩指令限制值等與伺服馬達M之控制相關之各種參數之表。速度指令限制值、轉矩指令限制值係以抑制具有伺服馬達M之應用系統中之誤動作之產生的方式,根據運轉模式而設定。The limit value table 29 is a table that stores various parameters related to the control of the servo motor M, such as the speed command limit value, the torque command limit value, and so on. The speed command limit value and the torque command limit value are set according to the operation mode in a way to suppress the occurrence of malfunction in the application system with the servo motor M.

《電力轉換機》 如圖1所示,電力轉換機30具有轉換器40、平滑電路50、變流器60、及閘極驅動器70。轉換器40係將自外部電源110供給之交流電源轉換為直流電源之電路。於轉換器40使用周知之電路。轉換器40例如由半波整流電路或全波整流電路等構成。平滑電路50係使利用轉換器40產生之直流電源平滑之電路。於平滑電路50使用例如具備電容器或線圈之周知之電路。"Power Conversion Machine" As shown in FIG. 1, the power converter 30 has a converter 40, a smoothing circuit 50, a converter 60, and a gate driver 70. The converter 40 is a circuit that converts the AC power supplied from the external power source 110 into a DC power source. The converter 40 uses a well-known circuit. The converter 40 is constituted by, for example, a half-wave rectifier circuit, a full-wave rectifier circuit, or the like. The smoothing circuit 50 is a circuit that smoothes the DC power generated by the converter 40. For the smoothing circuit 50, for example, a well-known circuit equipped with a capacitor or a coil is used.

變流器60係將經平滑電路50平滑後之直流電源轉換為3相交流電源之電路。於變流器60中設置有與交流電源之3相之各者對應之脈衝調變電路。脈衝調變電路例如由脈衝寬度調變(PAM:Pulse Amplitude Modulation)電路或脈衝振幅調變(PWM:Pulse Width Modulation)電路而構成。各相之脈衝調變電路由自下述閘極驅動器70輸入之控制信號而控制。藉此,變流器60將基於電流指令值及電壓指令值之電力供給至伺服馬達M。The converter 60 is a circuit that converts the DC power smoothed by the smoothing circuit 50 into a 3-phase AC power. The converter 60 is provided with a pulse modulation circuit corresponding to each of the three phases of the AC power source. The pulse modulation circuit is composed of, for example, a pulse width modulation (PAM: Pulse Amplitude Modulation) circuit or a pulse amplitude modulation (PWM: Pulse Width Modulation) circuit. The pulse modulation circuit of each phase is controlled by the control signal input from the gate driver 70 described below. Thereby, the converter 60 supplies electric power based on the current command value and the voltage command value to the servo motor M.

閘極驅動器70係產生基於自轉矩控制處理部26輸出之電流指令值及電壓指令值之控制信號之電路塊。具體而言,若輸入電流指令值及電壓指令值,則閘極驅動器70產生控制脈衝調變電路之各相控制信號並輸出至變流器60。The gate driver 70 is a circuit block that generates a control signal based on the current command value and the voltage command value output from the torque control processing unit 26. Specifically, if the current command value and the voltage command value are input, the gate driver 70 generates control signals for each phase of the pulse modulation circuit and outputs them to the converter 60.

自轉矩控制處理部26對閘極驅動器70依序輸入與運轉模式之各期間對應之電流指令值及電壓指令值。然後,閘極驅動器70基於輸入之電流指令值及電壓指令值,將對應之各相之控制信號依序輸出至變流器60。再者,閘極驅動器70亦可設置於電力轉換機30之外側。The torque control processing unit 26 sequentially inputs the current command value and the voltage command value corresponding to each period of the operation mode to the gate driver 70. Then, the gate driver 70 sequentially outputs the control signals of the corresponding phases to the converter 60 based on the input current command value and voltage command value. Furthermore, the gate driver 70 may also be installed outside the power converter 30.

《應用系統》 伺服馬達M例如組裝於壓製機等各種應用系統,藉由自變流器60供給之3相電源而動作,使應用系統發揮功能。於伺服馬達M附近設置有位置檢測器EN。位置檢測器EN藉由每當伺服馬達M例如旋轉1圈時就輸出脈衝而向控制處理部20供給位置資訊。控制處理部20能夠根據輸入之位置資訊而算出伺服馬達M之位置或旋轉速度等。"operating system" The servo motor M is assembled in various application systems such as a press machine, and is operated by the 3-phase power supplied from the self-converter 60 to make the application system function. A position detector EN is installed near the servo motor M. The position detector EN supplies position information to the control processing unit 20 by outputting a pulse every time the servo motor M makes one revolution, for example. The control processing unit 20 can calculate the position or rotation speed of the servo motor M based on the input position information.

感測器AS例如感測由伺服馬達M驅動之應用系統內之構件之位置等,並作為感測器資訊輸出至控制處理部20。感測器資訊中,例如包含由伺服馬達M驅動之應用系統內之構件之位置資訊等。控制處理部20能夠藉由感測器資訊而識別應用系統內之狀況,且根據狀況而切換速度指令限制值、轉矩指令限制值。The sensor AS, for example, senses the position of a component in the application system driven by the servo motor M, and outputs it to the control processing unit 20 as sensor information. The sensor information includes position information of components in the application system driven by the servo motor M, for example. The control processing unit 20 can recognize the situation in the application system based on the sensor information, and switch the speed command limit value and the torque command limit value according to the situation.

<伺服馬達之控制方法> 其次,列舉具體例對伺服馬達M之控制方法進行說明。圖3係表示本發明之實施形態1之伺服馬達之控制方法之一例的圖。圖3中分別圖示有作為輸入指令值之速度指令值、轉矩指令值、伺服馬達M之當前位置之時序圖。速度指令值、轉矩指令值之時序圖中,亦分別圖示有各期間中之速度指令限制值、轉矩指令限制值。速度指令值之時序圖對應於本實施形態之運轉模式。根據速度指令值之運轉模式例如可用於設置於壓製機等之伺服馬達之控制。<Control method of servo motor> Next, the control method of the servo motor M will be described with a specific example. Fig. 3 is a diagram showing an example of the control method of the servo motor according to the first embodiment of the present invention. Fig. 3 shows a timing chart of the speed command value, the torque command value, and the current position of the servo motor M as the input command value. The timing chart of the speed command value and torque command value also shows the speed command limit value and torque command limit value in each period. The timing chart of the speed command value corresponds to the operation mode of this embodiment. The operation mode based on the speed command value can be used, for example, to control a servo motor installed in a press machine.

壓製機中,滑件及安裝於滑件之模具藉由自上死點朝固定於滑件下方之模具下降至下死點而進行壓製加工及模墊之加壓/再生。其後,滑件及模具自下死點上升至上死點。壓製機反覆進行此種滑件及模具之上下運動(往復運動)。In the press, the slider and the mold mounted on the slider are pressed from the top dead center toward the bottom dead center of the mold fixed below the slider to perform compression processing and pressurization/regeneration of the mold cushion. After that, the slider and the mold rise from the bottom dead center to the top dead center. The pressing machine repeatedly performs the up and down movement (reciprocating movement) of the slide and the mold.

首先,於時刻t0-t1之期間,速度指令值自0線性增加至V0為止。該期間之轉矩指令值為T0。於該期間內,伺服馬達M之位置自P0移動至P1為止。該期間之速度指令限制值為VL0,轉矩指令限制值為TL0。First, during the time t0-t1, the speed command value linearly increases from 0 to V0. The torque command value during this period is T0. During this period, the position of the servo motor M moves from P0 to P1. The speed command limit value during this period is VL0, and the torque command limit value is TL0.

於時刻t1-t2之期間,速度指令值為V0。該期間之轉矩指令值為T1。於該期間內,伺服馬達M之位置自P1移動至P2。該期間之速度指令限制值為VL0,轉矩指令限制值為TL1。During the period from t1 to t2, the speed command value is V0. The torque command value during this period is T1. During this period, the position of the servo motor M moves from P1 to P2. The speed command limit value during this period is VL0, and the torque command limit value is TL1.

於時刻t2-t3之期間,速度指令值自V0線性減少至V1為止。該期間之轉矩指令值為T2。於該期間內,伺服馬達M之位置自P2移動至P3為止。該期間之速度指令限制值為VL0,轉矩指令限制值為TL2。轉矩指令限制值TL2為小於0之值,將轉矩指令值設定為不小於轉矩指令限制值TL2。During the time t2-t3, the speed command value linearly decreases from V0 to V1. The torque command value during this period is T2. During this period, the position of the servo motor M moves from P2 to P3. The speed command limit value during this period is VL0, and the torque command limit value is TL2. The torque command limit value TL2 is a value less than 0, and the torque command value is set to not less than the torque command limit value TL2.

於時刻t3-t7之期間,速度指令值為V1。該期間之轉矩指令值以T1(t3-t4)、T3(t4-t5)、T4(t5-t6)、T1(t6-t7)之順序變動。於時刻t3-t7之期間內,伺服馬達M之位置自P3依序移動至P7為止。該期間之速度指令限制值為VL0。該期間之轉矩指令限制值為TL1(t3-t4)、TL3(t4-t5)、TL4(t5-t6)、及TL1(t6-t7)。During the period from t3 to t7, the speed command value is V1. The torque command value during this period changes in the order of T1(t3-t4), T3(t4-t5), T4(t5-t6), T1(t6-t7). During the period from time t3 to t7, the position of the servo motor M moves sequentially from P3 to P7. The speed command limit value during this period is VL0. The torque command limit values during this period are TL1 (t3-t4), TL3 (t4-t5), TL4 (t5-t6), and TL1 (t6-t7).

於時刻t7-t8之期間,速度指令值自V1線性增加至V0為止。該期間之轉矩指令值為T0。於該期間內,伺服馬達M之位置自P7移動至P8。該期間之速度指令限制值為VL0,轉矩指令限制值為TL0。During the period from t7 to t8, the speed command value linearly increases from V1 to V0. The torque command value during this period is T0. During this period, the position of the servo motor M moves from P7 to P8. The speed command limit value during this period is VL0, and the torque command limit value is TL0.

於時刻t8-t9之期間,速度指令值為V0。該期間之轉矩指令值為T1。於該期間內,伺服馬達M之位置自P8移動至P9為止。該期間之速度指令限制值為VL0,轉矩指令限制值為TL1。During the period from t8 to t9, the speed command value is V0. The torque command value during this period is T1. During this period, the position of the servo motor M moves from P8 to P9. The speed command limit value during this period is VL0, and the torque command limit value is TL1.

於時刻t9-t10之期間,速度指令值自V0線性減少至V0為止。該期間之轉矩指令值為T2。於該期間內,伺服馬達M之位置自P9移動至P10為止。該期間之速度指令限制值為VL0,轉矩指令限制值為TL2。During the period from t9 to t10, the speed command value linearly decreases from V0 to V0. The torque command value during this period is T2. During this period, the position of the servo motor M moves from P9 to P10. The speed command limit value during this period is VL0, and the torque command limit value is TL2.

壓製機中,滑件及模具例如於時刻t0-t3之期間以速度指令值V0下降至下死點附近。然後,滑件及模具於時刻t3-t7之期間以速度指令值V1進行壓製加工及模墊之加壓/再生。然後,滑件及模具於時刻t7-t10之期間以速度指令值V0上升至上死點。In the press, the slider and the mold are lowered to the vicinity of the bottom dead center at the speed command value V0 during the period from time t0 to t3, for example. Then, the slider and the mold perform pressing and pressurization/regeneration of the mold pad at the speed command value V1 during the period from time t3 to t7. Then, the slider and the mold rise to the top dead center at the speed command value V0 during the period from time t7 to t10.

若將轉矩指令適用於壓製機,則於時刻t0-t1、t7-t8之各期間,轉矩指令值為加速轉矩T0。於時刻t2-t3,t9-t10之各期間,轉矩指令值為減速轉矩T2。於時刻t4-t5之期間,轉矩指令值為加壓轉矩T3。於時刻t5-t6之期間,轉矩指令值為再生轉矩T4。於時刻t1-t2、t3-t4、t6-t7、及t8-t9之各期間,轉矩指令值為摩擦轉矩T1。If the torque command is applied to the press, the torque command value will be the acceleration torque T0 during each period of time t0-t1 and t7-t8. In each period of time t2-t3 and t9-t10, the torque command value is the deceleration torque T2. During the time t4-t5, the torque command value is the pressure torque T3. During the time t5-t6, the torque command value is the regenerative torque T4. In each period of time t1-t2, t3-t4, t6-t7, and t8-t9, the torque command value is the friction torque T1.

該等速度指令值及轉矩指令值可預先計算或於正式運轉前之試運轉時設定。因此,可將使該等值加上容限後所得之值設定為速度指令限制值及轉矩指令限制值。These speed command values and torque command values can be pre-calculated or set during trial operation before formal operation. Therefore, the value obtained by adding the tolerance to these values can be set as the speed command limit value and the torque command limit value.

圖4係表示與圖3對應之限制值表之一例之圖。圖4之限制值表中,除各期間之速度指令限制值及轉矩指令限制值外,亦儲存有表示伺服馬達M之狀態之旋轉方向及位置資訊。藉由於限制值表中亦預先儲存各期間之伺服馬達M之狀態,可基於位置檢測器EN所檢測之伺服馬達M之位置資訊而特定出運轉模式中之各期間。再者,伺服馬達M之旋轉方向係基於位置檢測器EN所檢測之位置資訊而檢測。例如,若設為伺服馬達M每旋轉120°便自位置檢測器EN輸出位置資訊,則可容易地檢測伺服馬達M之旋轉方向。Fig. 4 is a diagram showing an example of a limit value table corresponding to Fig. 3. In the limit value table in Fig. 4, in addition to the speed command limit value and torque command limit value in each period, the rotation direction and position information indicating the state of the servo motor M are also stored. Since the status of the servo motor M in each period is also pre-stored in the limit value table, each period in the operation mode can be specified based on the position information of the servo motor M detected by the position detector EN. Furthermore, the rotation direction of the servo motor M is detected based on the position information detected by the position detector EN. For example, if the position information is output from the position detector EN every time the servo motor M rotates 120°, the rotation direction of the servo motor M can be easily detected.

藉此,可容易地選擇成為比較對象之速度指令限制值及轉矩指令限制值,可快速地執行速度指令值判定處理部23及轉矩指令值判定處理部25之比較處理。Thereby, the speed command limit value and the torque command limit value to be compared can be easily selected, and the comparison process of the speed command value determination processing unit 23 and the torque command value determination processing unit 25 can be quickly executed.

<本實施形態之主要效果> 根據本實施形態,控制處理部20於輸入指令值為指令限制值之範圍內之情形時,將輸入指令值作為比較後指令值,於輸入指令值為指令限制值之範圍外之情形時,將指令限制值作為比較後指令值。<Main effects of this embodiment> According to this embodiment, when the input command value is within the range of the command limit value, the control processing unit 20 uses the input command value as the command value after comparison, and when the input command value is outside the range of the command limit value, it The command limit value is used as the command value after comparison.

根據該構成,即便於判定輸入指令值(速度指令值)為異常值之情形時,亦可將指令值覆寫為作為比較對象之指令限制值(速度指令限制值)。藉此,可抑制由於由上位裝置100中之運算故障導致之過大之指令值或由干擾導致之負荷增大等而產生輸入指令值超出指令限制值的狀況,故能夠使具有伺服馬達M之應用系統中之誤動作之產生降低。According to this configuration, even when it is determined that the input command value (speed command value) is an abnormal value, the command value can be overwritten with the command limit value (speed command limit value) to be compared. By this, it is possible to suppress the situation that the input command value exceeds the command limit value due to the excessive command value caused by the operation failure in the upper device 100 or the load increase caused by interference, etc., so that the application with the servo motor M can be used The occurrence of malfunctions in the system is reduced.

又,根據本實施形態,轉矩指令值判定處理部25將於速度控制處理部24產生之轉矩指令值與轉矩指令限制值加以比較而產生比較後轉矩指令值。根據該構成,即便於藉由控制處理部20之運算而產生異常之轉矩指令值之情形時亦可將轉矩指令值覆寫為轉矩指令限制值,故能夠使因控制處理部20導致之應用系統中之誤動作之產生降低。Furthermore, according to the present embodiment, the torque command value determination processing unit 25 compares the torque command value generated by the speed control processing unit 24 with the torque command limit value to generate a compared torque command value. According to this configuration, even when an abnormal torque command value is generated by the calculation of the control processing unit 20, the torque command value can be overwritten to the torque command limit value, so that the control processing unit 20 can cause Misoperation in the application system is reduced.

又,根據本實施形態,根據具有伺服馬達M之應用系統之運轉模式之各期間而將成為比較對象之指令限制值進行切換。根據該構成,能夠追隨於應用系統之動作而適當選擇指令限制值。藉此,能夠適當設定指令限制值相對於輸入指令值之容限。Furthermore, according to the present embodiment, the command limit value to be compared is switched according to each period of the operation mode of the application system with the servo motor M. According to this configuration, the command limit value can be appropriately selected following the operation of the application system. Thereby, the tolerance of the command limit value relative to the input command value can be appropriately set.

又,根據本實施形態,基於由位置檢測器EN檢測之伺服馬達M之位置資訊而切換速度指令限制值及轉矩指令限制值。根據該構成,不僅對速度指令值,而且對在控制處理部20產生之轉矩指令值,亦能夠適當選擇成為比較對象之轉矩指令限制值。Furthermore, according to this embodiment, the speed command limit value and the torque command limit value are switched based on the position information of the servo motor M detected by the position detector EN. According to this configuration, not only the speed command value, but also the torque command value generated by the control processing unit 20, the torque command limit value to be compared can be appropriately selected.

又,根據本實施形態,於判定輸入指令值(速度指令值)及轉矩指令值之至少任一者為異常值之情形時,將異常通知輸出至上位裝置100。根據該構成,控制處理部20可通知於速度指令值或轉矩指令值中存在異常。Furthermore, according to the present embodiment, when it is determined that at least one of the input command value (speed command value) and the torque command value is an abnormal value, an abnormality notification is output to the upper device 100. According to this configuration, the control processing unit 20 can notify that there is an abnormality in the speed command value or the torque command value.

(實施形態2) 其次,對實施形態2進行說明。再者,以下,對於與上述實施形態重複之處原則上省略其說明。本實施形態中,自上位裝置100對指令值輸入電路10輸入位置指令值作為輸入指令值。輸入指令值例如藉由網路或脈波串輸入等而輸入至指令值輸入電路10。指令值輸入電路10將所輸入之位置指令值輸出至控制處理部20。(Embodiment 2) Next, the second embodiment will be described. In addition, in the following, descriptions of overlapping points with the above-mentioned embodiment are omitted in principle. In this embodiment, the position command value is input to the command value input circuit 10 from the host device 100 as the input command value. The input command value is input to the command value input circuit 10 through, for example, a network or pulse string input. The command value input circuit 10 outputs the input position command value to the control processing unit 20.

圖5係表示本發明之實施形態2之控制處理部之構成之一例的方塊圖。圖5之控制處理部20具備位置指令值判定處理部21、位置控制處理部22、速度指令值判定處理部23、速度控制處理部24、轉矩指令值判定處理部25、轉矩控制處理部26、及限制值表29。Fig. 5 is a block diagram showing an example of the configuration of the control processing unit in the second embodiment of the present invention. The control processing section 20 of FIG. 5 includes a position command value determination processing section 21, a position control processing section 22, a speed command value determination processing section 23, a speed control processing section 24, a torque command value determination processing section 25, and a torque control processing section 26, and limit value table 29.

位置指令值判定處理部21係進行所輸入之位置指令值是否為正常值之判定之功能塊。具體而言,位置指令值判定處理部21將所輸入之位置指令值與儲存於限制值表29之位置指令限制值加以比較。位置指令值判定處理部21根據運轉模式而將成為各期間中之比較對象之速度指令限制值進行切換。The position command value judgment processing unit 21 is a functional block that judges whether the input position command value is a normal value. Specifically, the position command value determination processing unit 21 compares the input position command value with the position command limit value stored in the limit value table 29. The position command value determination processing unit 21 switches the speed command limit value to be compared in each period according to the operation mode.

位置指令值判定處理部21於位置指令值為選作比較對象之位置指令限制值之範圍內之情形時,判斷為正常值,且將位置指令值作為比較後位置指令值而輸出至位置控制處理部22。When the position command value is within the range of the position command limit value selected as the comparison target, the position command value judgment processing unit 21 judges it as a normal value, and outputs the position command value as the compared position command value to the position control process部22.

相對於此,位置指令值判定處理部21於位置指令值為所選擇之位置指令限制值之範圍外之情形時,判斷位置指令值為異常值,且將位置指令限制值作為比較後位置指令值而輸出至位置控制處理部22。此時,位置指令值判定處理部21將表示所輸入之位置指令值為異常值之異常通知輸出至上位裝置100。異常通知中,亦可包含特定出運轉模式中之異常產生期間之資訊。In contrast, when the position command value is out of the range of the selected position command limit value, the position command value determination processing unit 21 determines that the position command value is an abnormal value, and uses the position command limit value as the compared position command value It is output to the position control processing unit 22. At this time, the position command value determination processing unit 21 outputs an abnormality notification indicating that the input position command value is an abnormal value to the host device 100. The abnormality notification may also include information about the period during which the abnormality occurred in the specific operation mode.

於位置指令值判定處理部21中,輸入由位置檢測器EN檢測之伺服馬達M之位置資訊。位置指令值判定處理部21能夠基於伺服馬達M之位置資訊而切換位置指令限制值。In the position command value determination processing unit 21, the position information of the servo motor M detected by the position detector EN is input. The position command value determination processing unit 21 can switch the position command limit value based on the position information of the servo motor M.

又,於位置指令值判定處理部21中,輸入由感測器AS檢測之應用系統之感測器資訊。位置指令值判定處理部21能夠使用感測器資訊特定出運轉模式中之各期間,並切換位置指令限制值。In addition, in the position command value determination processing unit 21, sensor information of the application system detected by the sensor AS is input. The position command value determination processing unit 21 can use the sensor information to identify each period in the operation mode and switch the position command limit value.

位置控制處理部22係基於比較後位置指令值而產生速度指令值之功能塊。具體而言,位置控制處理部22算出與自位置指令值判定處理部21輸入之比較後位置指令值對應之速度。具體而言,位置控制處理部22以使特定時刻之伺服馬達M之位置成為由比較後位置指令值(位置指令值或位置指令限制值)規定之位置之方式算出馬達旋轉軸之速度。位置控制處理部22將所算出之速度作為速度指令值而輸出至速度指令值判定處理部23。The position control processing unit 22 is a functional block that generates a speed command value based on the compared position command value. Specifically, the position control processing unit 22 calculates the speed corresponding to the compared position command value input from the position command value determination processing unit 21. Specifically, the position control processing unit 22 calculates the speed of the motor rotating shaft so that the position of the servo motor M at a specific time becomes the position specified by the compared position command value (position command value or position command limit value). The position control processing unit 22 outputs the calculated speed as a speed command value to the speed command value determination processing unit 23.

自位置指令值判定處理部21對位置控制處理部22依序輸入與運轉模式之各期間對應之比較後位置指令值。然後,位置控制處理部22基於輸入之比較後位置指令值,將對應之速度指令值依序輸出至速度指令值判定處理部23。The position command value determination processing unit 21 sequentially inputs the position command value after comparison corresponding to each period of the operation mode to the position control processing unit 22. Then, the position control processing unit 22 sequentially outputs the corresponding speed command values to the speed command value determination processing unit 23 based on the input compared position command values.

本實施形態中,速度指令值判定處理部23將於位置控制處理部22產生之速度指令值與儲存於限制值表29之速度指令限制值加以比較,進行所輸入之速度指令值是否為正常值之判定。其他處理與實施形態1相同。In this embodiment, the speed command value judgment processing unit 23 compares the speed command value generated by the position control processing unit 22 with the speed command limit value stored in the limit value table 29, and determines whether the input speed command value is a normal value. The judgment. The other processing is the same as in the first embodiment.

<伺服馬達之控制方法> 其次,對本實施形態之伺服馬達之控制方法進行說明。圖6係表示本發明之實施形態2之伺服馬達之控制方法之一例的圖。圖6中分別圖示有作為輸入指令值之位置指令值、速度指令值、轉矩指令值、及感測器輸入1、2、3之時序圖。於位置指令值、速度指令值、及轉矩指令值之時序圖中,亦分別圖示有各期間中之位置指令限制值、速度指令限制值、及轉矩指令限制值。位置指令值之時序圖對應於本實施形態之運轉模式。根據位置指令值之運轉模式例如可用於設置於NC(numerical control,數值控制)工具機等之伺服馬達之控制。<Control method of servo motor> Next, the control method of the servo motor of this embodiment will be described. Fig. 6 is a diagram showing an example of a control method of a servo motor according to the second embodiment of the present invention. Fig. 6 shows the position command value, speed command value, torque command value, and sensor input 1, 2, and 3 timing diagrams as input command values, respectively. In the timing chart of position command value, speed command value, and torque command value, the position command limit value, speed command limit value, and torque command limit value in each period are also shown respectively. The timing chart of the position command value corresponds to the operation mode of this embodiment. The operation mode based on the position command value can be used, for example, to control the servo motor installed in NC (numerical control) machine tools.

首先,於時刻t0-t1之期間,位置指令值自0增加至P0為止。該期間之速度指令值自0線性增加至V0為止。該期間之轉矩指令值為T0。該期間之位置限制值為PL0,速度指令限制值為VL0,轉矩指令限制值為TL0。First, during the time t0-t1, the position command value increases from 0 to P0. The speed command value during this period increases linearly from 0 to V0. The torque command value during this period is T0. During this period, the position limit value is PL0, the speed command limit value is VL0, and the torque command limit value is TL0.

於時刻t1-t2之期間,位置指令值自P0線性增加至P1為止。該期間之速度指令值為V0。該期間之轉矩指令值為T1。該期間之位置指令限制值為PL1,速度指令限制值為VL0,轉矩指令限制值為TL1。During the period from t1 to t2, the position command value linearly increases from P0 to P1. The speed command value during this period is V0. The torque command value during this period is T1. During this period, the position command limit value is PL1, the speed command limit value is VL0, and the torque command limit value is TL1.

於時刻t2-t3之期間,位置指令值自P1增加至P2為止。但是,該期間之後半之增加率較前半緩慢。該期間之速度指令值自V0線性減少至0為止。該期間之轉矩指令值為T2。該期間之位置指令限制值為PL2,速度指令限制值為VL0,轉矩指令限制值為TL2。轉矩指令限制值TL2為小於0之值,將轉矩指令值設定為不小於轉矩指令限制值TL2。During the time t2-t3, the position command value increases from P1 to P2. However, the rate of increase in the second half of the period was slower than that in the first half. The speed command value during this period decreases linearly from V0 to 0. The torque command value during this period is T2. During this period, the position command limit value is PL2, the speed command limit value is VL0, and the torque command limit value is TL2. The torque command limit value TL2 is a value less than 0, and the torque command value is set to not less than the torque command limit value TL2.

於時刻t3-t4之期間,位置指令值自P2減少至P1為止。但是,該期間之前半之減少率較後半緩慢。該期間之速度指令值自0線性減少至V1為止。該期間之轉矩指令值為T2。該期間之位置指令限制值為PL3。該期間之速度指令限制值為VL1。該期間之轉矩指令限制值為TL2。During the time t3-t4, the position command value decreases from P2 to P1. However, the rate of decrease in the first half of the period was slower than that in the second half. The speed command value during this period decreases linearly from 0 to V1. The torque command value during this period is T2. The position command limit value during this period is PL3. The speed command limit value during this period is VL1. The torque command limit value during this period is TL2.

於時刻t4-t5之期間,位置指令值自P1線性減少至P0為止。該期間之速度指令值為V1。該期間之轉矩指令值為T3。該期間之位置指令限制值為PL4,速度指令限制值為VL1,轉矩指令限制值為TL3。During the time t4-t5, the position command value linearly decreases from P1 to P0. The speed command value during this period is V1. The torque command value during this period is T3. During this period, the position command limit value is PL4, the speed command limit value is VL1, and the torque command limit value is TL3.

於時刻t5-t6之期間,位置指令值自P0減少至0為止。該期間之速度指令值自V1線性增加至0為止。該期間之轉矩指令值為T0。該期間之位置指令限制值為PL5,速度指令限制值為VL1,轉矩指令限制值為TL0。During the period from t5 to t6, the position command value decreases from P0 to 0. The speed command value during this period linearly increases from V1 to 0. The torque command value during this period is T0. During this period, the position command limit value is PL5, the speed command limit value is VL1, and the torque command limit value is TL0.

於如圖6所示之位置指令值之運轉模式下,NC工具機等之伺服馬達自0旋轉至P2為止後返回至原位置。具體而言,基於位置指令值而於控制處理部20之內部產生之速度指令值於時刻t0-t3之期間,使伺服馬達正向旋轉。另一方面,時刻t3-t6之期間之速度指令值使伺服馬達反向旋轉。In the operation mode of the position command value as shown in Fig. 6, the servo motor of NC machine tool rotates from 0 to P2 and then returns to the original position. Specifically, the speed command value generated inside the control processing unit 20 based on the position command value causes the servo motor to rotate forward during the period from time t0 to t3. On the other hand, the speed command value in the period from time t3 to t6 causes the servo motor to rotate in the reverse direction.

根據速度指令值而於控制處理部20之內部產生之轉矩指令值於時刻t0-t1之期間產生正向旋轉時之加速轉矩。時刻t1-t2之期間之轉矩指令值產生正向之摩擦轉矩。時刻t2-t3之期間之轉矩指令值產生正向旋轉時之減速轉矩。時刻t3-t4之期間之轉矩指令值產生反向旋轉時之加速轉矩。時刻t4-t5之期間之轉矩指令值產生反向之摩擦轉矩。時刻t5-t6之期間之轉矩指令值產生反向旋轉時之減速轉矩。The torque command value generated inside the control processing unit 20 according to the speed command value generates an acceleration torque during forward rotation during the period from time t0 to t1. The torque command value during the time t1-t2 produces a positive friction torque. The torque command value in the period from t2 to t3 produces the deceleration torque when rotating in the forward direction. The torque command value in the period from t3 to t4 produces the acceleration torque during reverse rotation. The torque command value in the period from t4 to t5 produces a reverse friction torque. The torque command value in the period from t5 to t6 produces the deceleration torque during reverse rotation.

NC加工機等之伺服馬達之位置、速度、及轉矩可預先計算或於正式運轉前之試運轉時設定。因此,可將使該等值加上容限後所得之值設定為位置指令限制值、速度指令限制值、及轉矩指令限制值。The position, speed, and torque of the servo motor of the NC processing machine can be pre-calculated or set during the trial operation before the actual operation. Therefore, the value obtained by adding the tolerance to these values can be set as the position command limit value, the speed command limit value, and the torque command limit value.

圖7係表示與圖6對應之限制值表之一例之圖。圖7之限制值表中,除各期間之位置指令限制值、速度指令限制值、及轉矩指令限制值外,亦儲存有感測器輸入1、2、3之狀態(接通、斷開)。感測器AS檢測包含伺服馬達之應用系統之動作,且根據所檢測之動作而切換感測器輸入1、2、3之狀態(接通、斷開)。Fig. 7 is a diagram showing an example of the limit value table corresponding to Fig. 6. In the limit value table in Fig. 7, in addition to the position command limit value, speed command limit value, and torque command limit value in each period, the status of sensor inputs 1, 2, and 3 (on, off) are also stored. ). The sensor AS detects the action of the application system including the servo motor, and switches the state of the sensor input 1, 2, and 3 (on, off) according to the detected action.

於限制值表中亦預先登錄有感測器AS之輸入模式,藉此能夠使用由感測器AS檢測之應用系統之感測器資訊而切換指令限制值。具體而言,控制處理部20例如基於感測器輸入1、2、3之輸入模式而特定出運轉模式中之期間,且分別選擇所特定出之期間之位置指令限制值、速度指令限制值、及轉矩指令限制值。The input mode of the sensor AS is also pre-registered in the limit value table, so that the sensor information of the application system detected by the sensor AS can be used to switch the command limit value. Specifically, the control processing unit 20, for example, specifies the period in the operation mode based on the input modes of sensor inputs 1, 2, and 3, and selects the position command limit value, the speed command limit value, And torque command limit value.

再者,關於位置指令值,不僅可將存儲於限制值表之位置指令限制值,亦可將基於前一時序之位置指令值等而產生之位置修正值用作位置指令限制。例如,於圖6之時刻t1-t2之期間,於時刻t1附近,位置指令值與位置指令限制值之差分變大。該情形時,控制處理部20例如產生將特定之修正值加上時刻t1附近之位置指令值(P0等)所得之位置修正值,且將位置指令值與位置修正值加以比較而產生比較後位置指令值。而且,亦可連續進行該處理,直至位置指令值與位置指令限制值之差分成為特定閾值之範圍內為止。根據該構成,可減小位置指令值與位置指令限制值之差分,故能夠使伺服馬達及應用系統更安全地動作。Furthermore, regarding the position command value, not only the position command limit value stored in the limit value table, but also the position correction value generated based on the position command value of the previous sequence, etc. can be used as the position command limit. For example, in the period from time t1 to t2 in FIG. 6, near time t1, the difference between the position command value and the position command limit value becomes larger. In this case, the control processing unit 20 generates, for example, a position correction value obtained by adding a specific correction value to a position command value (P0, etc.) near time t1, and compares the position command value with the position correction value to generate the compared position Instruction value. Furthermore, this process may be continuously performed until the difference between the position command value and the position command limit value becomes within the range of the specific threshold value. According to this structure, the difference between the position command value and the position command limit value can be reduced, so that the servo motor and the application system can be operated more safely.

<本實施形態之主要效果> 根據本實施形態,除上述實施形態之各效果外,還可獲得以下效果。根據本實施形態,控制處理部20基於所輸入之位置指令值而產生速度指令值,且基於速度指令值而產生轉矩指令值。<Main effects of this embodiment> According to this embodiment, in addition to the effects of the above-mentioned embodiment, the following effects can be obtained. According to this embodiment, the control processing unit 20 generates a speed command value based on the input position command value, and generates a torque command value based on the speed command value.

根據該構成,於輸入有位置指令值之情形時,亦能夠使具有伺服馬達M之應用系統中之誤動作之產生降低。又,根據該構成,可控制伺服馬達之位置,能夠抑制誤動作之產生,並且進行利用應用系統之精密加工處理。According to this structure, even when the position command value is input, the occurrence of malfunctions in the application system with the servo motor M can be reduced. Furthermore, according to this structure, the position of the servo motor can be controlled, the occurrence of malfunctions can be suppressed, and precision processing using the application system can be performed.

又,根據本實施形態,基於由位置檢測器EN檢測之伺服馬達M之位置資訊而切換位置指令限制值、速度指令限制值、及轉矩指令限制值。根據該構成,對位置指令值、速度指令值、及轉矩指令值,亦能夠適當選擇成為比較對象之位置指令限制值、速度指令限制值、及轉矩指令限制值。Furthermore, according to this embodiment, the position command limit value, the speed command limit value, and the torque command limit value are switched based on the position information of the servo motor M detected by the position detector EN. According to this configuration, it is possible to appropriately select the position command limit value, the speed command limit value, and the torque command limit value to be compared with respect to the position command value, the speed command value, and the torque command value.

又,根據本實施形態,即便於判定輸入指令值(位置指令值)為異常值之情形時,亦可將異常通知輸出至上位裝置100。根據該構成,可將位置指令值中存在異常之信息通知給上位裝置100。Furthermore, according to this embodiment, even when it is determined that the input command value (position command value) is an abnormal value, an abnormality notification can be output to the upper device 100. According to this configuration, it is possible to notify the higher-level device 100 that there is an abnormality in the position command value.

又,根據本實施形態,使用由感測器AS檢測之應用系統之感測器資訊切換位置指令限制值、速度指令限制值、及轉矩指令限制值。根據該構成,可基於輸入模式而特定出運轉模式中之期間,能夠適當選擇位置指令限制值、速度指令限制值、及轉矩指令限制值。Furthermore, according to this embodiment, the position command limit value, the speed command limit value, and the torque command limit value are switched using the sensor information of the application system detected by the sensor AS. According to this structure, the period in the operation mode can be specified based on the input mode, and the position command limit value, the speed command limit value, and the torque command limit value can be appropriately selected.

再者,本發明包含各種變化例而並非限定於上述實施形態。又,能夠將某實施形態之構成之一部分置換成其他實施形態之構成,又,亦能夠對某實施形態之構成添加其他實施形態之構成。例如,感測器AS之輸入模式下之伺服馬達之控制亦能夠應用於實施形態1。In addition, the present invention includes various modifications and is not limited to the above-mentioned embodiment. In addition, a part of the configuration of a certain embodiment can be replaced with a configuration of another embodiment, and it is also possible to add a configuration of another embodiment to the configuration of a certain embodiment. For example, the control of the servo motor in the input mode of the sensor AS can also be applied to the first embodiment.

又,能夠對各實施形態之構成之一部分進行其他構成之追加、刪除、及置換。再者,圖式中記載之各構件或相對尺寸係為了容易理解地說明本發明而簡化、理想化,於安裝上有成為更複雜之形狀之情形。In addition, it is possible to add, delete, and replace other configurations to a part of the configuration of each embodiment. Furthermore, the various components or relative dimensions described in the drawings are simplified and idealized for easy understanding of the present invention, and may become more complicated shapes in installation.

1:伺服馬達控制裝置 10:指令值輸入電路 11:AD轉換電路 20:控制處理部 21:位置指令值判定處理部 22:位置控制處理部 23:速度指令值判定處理部 24:速度控制處理部 25:轉矩指令值判定處理部 26:轉矩控制處理部 29:限制值表 30:電力轉換機 40:轉換器 50:平滑電路 60:變流器 70:閘極驅動器 100:上位裝置 AS:感測器 EN:位置檢測器 t0:時刻 t1:時刻 t2:時刻 t3:時刻 t4:時刻 t5:時刻 t6:時刻 t7:時刻 t8:時刻 t9:時刻 t10:時刻 M:伺服馬達1: Servo motor control device 10: Command value input circuit 11: AD conversion circuit 20: Control Processing Department 21: Position command value judgment processing unit 22: Position control processing unit 23: Speed command value judgment processing unit 24: Speed control processing section 25: Torque command value judgment processing unit 26: Torque control processing unit 29: Limit value table 30: Power conversion machine 40: converter 50: Smoothing circuit 60: converter 70: Gate driver 100: Upper device AS: Sensor EN: position detector t0: time t1: moment t2: moment t3: moment t4: moment t5: moment t6: moment t7: moment t8: moment t9: moment t10: moment M: Servo motor

圖1係表示發明之實施形態1之伺服馬達控制裝置之構成之一例的方塊圖。 圖2係表示本發明之實施形態1之控制處理部之構成之一例的方塊圖。 圖3係表示本發明之實施形態1之伺服馬達之控制方法之一例的圖。 圖4係表示與圖3對應之限制值表之一例之圖。 圖5係表示本發明之實施形態2之控制處理部之構成之一例的方塊圖。 圖6係表示本發明之實施形態2之伺服馬達之控制方法之一例的圖。 圖7係表示與圖6對應之限制值表之一例的圖。Fig. 1 is a block diagram showing an example of the configuration of a servo motor control device according to the first embodiment of the invention. Fig. 2 is a block diagram showing an example of the configuration of the control processing unit in the first embodiment of the present invention. Fig. 3 is a diagram showing an example of the control method of the servo motor according to the first embodiment of the present invention. Fig. 4 is a diagram showing an example of a limit value table corresponding to Fig. 3. Fig. 5 is a block diagram showing an example of the configuration of the control processing unit in the second embodiment of the present invention. Fig. 6 is a diagram showing an example of a control method of a servo motor according to the second embodiment of the present invention. Fig. 7 is a diagram showing an example of a limit value table corresponding to Fig. 6.

20:控制處理部 20: Control Processing Department

23:速度指令值判定處理部 23: Speed command value judgment processing unit

24:速度控制處理部 24: Speed control processing section

25:轉矩指令值判定處理部 25: Torque command value judgment processing unit

26:轉矩控制處理部 26: Torque control processing unit

29:限制值表 29: Limit value table

60:變流器 60: converter

70:閘極驅動器 70: Gate driver

100:上位裝置 100: Upper device

AS:感測器 AS: Sensor

EN:位置檢測器 EN: position detector

M:伺服馬達 M: Servo motor

Claims (8)

一種伺服馬達控制裝置,其係基於自上位裝置輸入之輸入指令值而進行伺服馬達之控制者,且具備:控制處理部,其將上述輸入指令值與指令限制值加以比較而產生比較後指令值,且基於上述比較後指令值而產生電流指令值及電壓指令值;及電力轉換器,其基於上述電流指令值及上述電壓指令值而對上述伺服馬達供給電力;且上述控制處理部於上述輸入指令值為上述指令限制值之範圍內之情形時,將上述輸入指令值作為上述比較後指令值,於上述輸入指令值為上述指令限制值之範圍外之情形時,將上述指令限制值作為上述比較後指令值;上述控制處理部根據具有上述伺服馬達之應用系統之運轉模式中之期間而將成為比較對象之上述指令限制值進行切換。 A servo motor control device that controls the servo motor based on the input command value input from the upper device, and includes: a control processing unit that compares the input command value with the command limit value to generate a compared command value , And based on the comparison command value to generate a current command value and a voltage command value; and a power converter, which supplies power to the servo motor based on the current command value and the voltage command value; and the control processing unit inputs the When the command value is within the range of the above-mentioned command limit value, the above-mentioned input command value is regarded as the above-mentioned comparative command value. When the above-mentioned input command value is outside the above-mentioned command limit value range, the above-mentioned command limit value is regarded as the above Command value after comparison; the control processing unit switches the command limit value that becomes the comparison target according to the period in the operation mode of the application system with the servo motor. 如請求項1之伺服馬達控制裝置,其中上述輸入指令值為速度指令值,上述控制處理部將上述速度指令值與速度指令限制值加以比較而產生比較後速度指令值,且基於上述比較後速度指令值而產生轉矩指令值,將上述轉矩指令值與轉矩指令限制值加以比較而產生比較後轉矩指令值,且基於上述比較後轉矩指令值而產生上述電流指令值及上述電壓指令值。 For example, the servo motor control device of claim 1, wherein the input command value is a speed command value, and the control processing unit compares the speed command value with the speed command limit value to generate a compared speed command value based on the compared speed The torque command value is generated by the command value, the torque command value is compared with the torque command limit value to generate a compared torque command value, and the current command value and the voltage are generated based on the compared torque command value Instruction value. 如請求項2之伺服馬達控制裝置,其中上述控制處理部基於由位置檢測器檢測之上述伺服馬達之位置資訊而切換上述速度指令限制值及上述轉矩指令限制值。 Such as the servo motor control device of claim 2, wherein the control processing unit switches the speed command limit value and the torque command limit value based on the position information of the servo motor detected by a position detector. 如請求項2之伺服馬達控制裝置,其中上述控制處理部於判定上述速度指令值及上述轉矩指令值之至少任一者為異常值之情形時,將異常通知輸出至上述上位裝置。 For example, the servo motor control device of claim 2, wherein the control processing unit outputs an abnormality notification to the upper device when determining that at least one of the speed command value and the torque command value is an abnormal value. 一種伺服馬達控制裝置,其係基於自上位裝置輸入之輸入指令值而進行伺服馬達之控制者,且具備:控制處理部,其將上述輸入指令值與指令限制值加以比較而產生比較後指令值,且基於上述比較後指令值而產生電流指令值及電壓指令值;及電力轉換器,其基於上述電流指令值及上述電壓指令值而對上述伺服馬達供給電力;且上述控制處理部於上述輸入指令值為上述指令限制值之範圍內之情形時,將上述輸入指令值作為上述比較後指令值,於上述輸入指令值為上述指令限制值之範圍外之情形時,將上述指令限制值作為上述比較後指令值;上述輸入指令值為位置指令值,上述控制處理部將上述位置指令值與位置指令限制值加以比較而產生比較後位置指令值,且基於上述比較後位置指令值而產生速度指令值,將上述速度指令值與速度指令限制值加以比較而產生比較後速度指令值,且基於上述比較後速度指令值而產生轉矩指令值,將上述轉矩指令值與轉 矩指令限制值加以比較而產生比較後轉矩指令值,且基於上述比較後轉矩指令值而產生上述電流指令值及上述電壓指令值。 A servo motor control device that controls the servo motor based on the input command value input from the upper device, and includes: a control processing unit that compares the input command value with the command limit value to generate a compared command value , And based on the comparison command value to generate a current command value and a voltage command value; and a power converter, which supplies power to the servo motor based on the current command value and the voltage command value; and the control processing unit inputs the When the command value is within the range of the above-mentioned command limit value, the above-mentioned input command value is regarded as the above-mentioned comparative command value. When the above-mentioned input command value is outside the above-mentioned command limit value range, the above-mentioned command limit value is regarded as the above Command value after comparison; the input command value is a position command value, and the control processing unit compares the position command value with the position command limit value to generate a position command value after comparison, and generates a speed command based on the position command value after comparison Value, the above-mentioned speed command value is compared with the speed command limit value to generate the compared speed command value, and the torque command value is generated based on the above-mentioned compared speed command value, and the torque command value is compared with the torque command value. The torque command limit values are compared to generate a compared torque command value, and the current command value and the voltage command value are generated based on the compared torque command value. 如請求項5之伺服馬達控制裝置,其中上述控制處理部使用由位置檢測器檢測之上述伺服馬達之位置資訊,切換上述位置指令限制值、上述速度指令限制值、及上述轉矩指令限制值。 For example, the servo motor control device of claim 5, wherein the control processing unit uses the position information of the servo motor detected by a position detector to switch the position command limit value, the speed command limit value, and the torque command limit value. 如請求項5之伺服馬達控制裝置,其中上述控制處理部於判定上述位置指令值、上述速度指令值及上述轉矩指令值之至少任一者為異常值之情形時,將異常通知輸出至上述上位裝置。 For example, the servo motor control device of claim 5, wherein the control processing unit outputs an abnormality notification to the above when determining that at least any one of the position command value, the speed command value, and the torque command value is an abnormal value Upper device. 一種伺服馬達控制裝置,其係基於自上位裝置輸入之輸入指令值而進行伺服馬達之控制者,且具備:控制處理部,其將上述輸入指令值與指令限制值加以比較而產生比較後指令值,且基於上述比較後指令值而產生電流指令值及電壓指令值;及電力轉換器,其基於上述電流指令值及上述電壓指令值而對上述伺服馬達供給電力;且上述控制處理部於上述輸入指令值為上述指令限制值之範圍內之情形時,將上述輸入指令值作為上述比較後指令值,於上述輸入指令值為上述指令限制值之範圍外之情形時,將上述指令限制值作為上述比較後指令值; 上述控制處理部使用由感測器檢測之具有上述伺服馬達之應用系統之感測器資訊而切換上述指令限制值。 A servo motor control device that controls the servo motor based on the input command value input from the upper device, and includes: a control processing unit that compares the input command value with the command limit value to generate a compared command value , And based on the comparison command value to generate a current command value and a voltage command value; and a power converter, which supplies power to the servo motor based on the current command value and the voltage command value; and the control processing unit inputs the When the command value is within the range of the above-mentioned command limit value, the above-mentioned input command value is regarded as the above-mentioned comparative command value. When the above-mentioned input command value is outside the above-mentioned command limit value range, the above-mentioned command limit value is regarded as the above Command value after comparison; The control processing unit uses the sensor information of the application system with the servo motor detected by the sensor to switch the command limit value.
TW109101537A 2019-06-13 2020-01-16 Servo motor control device TWI736106B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2019110203A JP7386001B2 (en) 2019-06-13 2019-06-13 Servo motor control device
JP2019-110203 2019-06-13

Publications (2)

Publication Number Publication Date
TW202046627A TW202046627A (en) 2020-12-16
TWI736106B true TWI736106B (en) 2021-08-11

Family

ID=73742864

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109101537A TWI736106B (en) 2019-06-13 2020-01-16 Servo motor control device

Country Status (3)

Country Link
JP (1) JP7386001B2 (en)
TW (1) TWI736106B (en)
WO (1) WO2020250474A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113681558B (en) * 2021-08-17 2022-09-16 珠海格力电器股份有限公司 Motor band-type brake abnormity control method and device of multi-joint robot and robot

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487263A (en) * 2010-12-03 2012-06-06 三菱电机株式会社 Controlling device
CN105103437A (en) * 2013-03-29 2015-11-25 松下知识产权经营株式会社 Servo adjustment method for motor drive device
CN105144575A (en) * 2013-04-11 2015-12-09 松下知识产权经营株式会社 Motor drive device
TW201820769A (en) * 2016-09-05 2018-06-01 日商東芝股份有限公司 Inverter control device and motor drive system
WO2019102539A1 (en) * 2017-11-22 2019-05-31 三菱電機株式会社 Rotating electric machine control device and electric vehicle

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62242209A (en) * 1986-04-14 1987-10-22 Hitachi Ltd Controlling method for servomotor
JP4536272B2 (en) * 2001-01-24 2010-09-01 東芝エレベータ株式会社 Elevator control device
JP4425237B2 (en) * 2006-04-13 2010-03-03 日本リライアンス株式会社 Motor control device
JP2008148449A (en) * 2006-12-11 2008-06-26 Matsushita Electric Ind Co Ltd Motor position control method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102487263A (en) * 2010-12-03 2012-06-06 三菱电机株式会社 Controlling device
CN105103437A (en) * 2013-03-29 2015-11-25 松下知识产权经营株式会社 Servo adjustment method for motor drive device
CN105144575A (en) * 2013-04-11 2015-12-09 松下知识产权经营株式会社 Motor drive device
TW201820769A (en) * 2016-09-05 2018-06-01 日商東芝股份有限公司 Inverter control device and motor drive system
WO2019102539A1 (en) * 2017-11-22 2019-05-31 三菱電機株式会社 Rotating electric machine control device and electric vehicle

Also Published As

Publication number Publication date
JP2020202717A (en) 2020-12-17
WO2020250474A1 (en) 2020-12-17
TW202046627A (en) 2020-12-16
JP7386001B2 (en) 2023-11-24

Similar Documents

Publication Publication Date Title
TWI243532B (en) Inverter device and current limiting method therefor
JP5077348B2 (en) Motor drive device, motor device, and integrated circuit device
KR20110049711A (en) Power conversion device
US20180183363A1 (en) Control device and method for controlling the same
JP3760153B2 (en) Method for dynamically controlling the torque of a motor drive by feeding back the temperature of the power switching device
TWI736106B (en) Servo motor control device
KR20140141503A (en) Motor control apparatus and construction machine having the same
JP6426782B2 (en) Servo motor control device for controlling servo motor and servo motor control system including the same
WO2016121113A1 (en) Inverter device
TWI513174B (en) Apparatus for controlling amotor and method for controlling a motor
KR100817116B1 (en) Apparatus and method thereof for suppressing inertia load
JP6400617B2 (en) Motor control device having torque command limiter
KR101210022B1 (en) Method for continuously driving an inverter for driving an induction motor
TWI383574B (en) Method and apparatus of field weakening for ac motor drives
JP2017200264A (en) Motor control device having a plurality of power failure detection sensitivities
JP2017192225A (en) Motor drive device for suppressing voltage fluctuation of dc link capacitor
JPH08228490A (en) Power converter
JP5659330B2 (en) Power converter
WO2020044945A1 (en) Drive circuit for switch
WO2017046964A1 (en) Inverter device and method for controlling inverter device
WO2019163320A1 (en) Control circuit for electric tool
JP4662245B2 (en) Power converter
KR100283912B1 (en) Reduction Device of Induction Motor
JPH0837796A (en) Inverter device
JPH05219771A (en) Voltage type inverter device