TW202230057A - Motor command output module with debugging function and motor command debugging method including a central processing unit and a field programmable gate array unit - Google Patents
Motor command output module with debugging function and motor command debugging method including a central processing unit and a field programmable gate array unit Download PDFInfo
- Publication number
- TW202230057A TW202230057A TW110103535A TW110103535A TW202230057A TW 202230057 A TW202230057 A TW 202230057A TW 110103535 A TW110103535 A TW 110103535A TW 110103535 A TW110103535 A TW 110103535A TW 202230057 A TW202230057 A TW 202230057A
- Authority
- TW
- Taiwan
- Prior art keywords
- command
- motor
- circuit
- pulse
- position data
- Prior art date
Links
Images
Landscapes
- Control Of Electric Motors In General (AREA)
- Control Of Multiple Motors (AREA)
Abstract
Description
本發明係提供一種具有偵錯功能之馬達命令輸出模組及馬達命令偵錯方法,尤指一種以數位差分法產生馬達脈波命令之馬達命令輸出模組及馬達命令偵錯方法。The present invention provides a motor command output module with error detection function and a motor command error detection method, especially a motor command output module and a motor command error detection method for generating motor pulse command by digital difference method.
精密馬達運動定位控制在許多產業機械和工業應用上是非常基本且重要的核心技術。一般常見之開迴路運動控制架構可由工業電腦、運動控制器、驅動器、馬達和機台組成。工業電腦用於下達不同運動命令例如直線或圓弧運動給運動控制器。運動控制器則根據電腦給予的運動命令以及限制條件計算出位置命令和時間週期後再透過數位差分法(Digital Differential Analyzer;DDA)產生一連串均勻脈波命令給驅動器使馬達驅使機台能在特定時間移動到特定位置。DDA演算法所提供的脈波命令輸出是工業應用常見的馬達控制訊號,使用者可以自行設定DDA的週期(DDA Cycle Time),並搭配馬達速度轉換成在一個DDA週期內所需要的脈波數,運動控制器就可將在此DDA週期內將所規劃的脈波量均勻的送給驅動器,使馬達在每一個DDA週期內做等速運動。Precision motor motion positioning control is a very basic and important core technology in many industrial machinery and industrial applications. A common open-loop motion control architecture consists of an industrial computer, a motion controller, a driver, a motor, and a machine. Industrial computers are used to issue different motion commands such as linear or circular motion to the motion controller. The motion controller calculates the position command and time period according to the motion commands and constraints given by the computer, and then uses the Digital Differential Analyzer (DDA) to generate a series of uniform pulse commands to the driver to enable the motor to drive the machine at a specific time. Move to a specific location. The pulse command output provided by the DDA algorithm is a common motor control signal in industrial applications. Users can set the DDA cycle time by themselves, and convert the pulse number required in a DDA cycle with the motor speed. , the motion controller can evenly send the planned pulse wave amount to the driver in this DDA cycle, so that the motor can move at a constant speed in each DDA cycle.
機台定位不準是本技術領域常見的問題,除了有安全疑慮外,也會降低機台加工品質和生產效率。過去常見確認定位的方法為透過接收驅動器回傳的實際位置訊號以確認機台偏移到目標位置後,再從機構設計或控制迴路調整等調查可能原因。然而,因機台定位不準之問題可能是因為運動控制器給出的命令有誤或是機構設計、控制迴路調整所致,需要較多的排查時間才能確認真正原因。Inaccurate machine positioning is a common problem in the technical field. In addition to safety concerns, it also reduces machine processing quality and production efficiency. In the past, the common method of confirming the positioning was to receive the actual position signal returned by the driver to confirm that the machine was shifted to the target position, and then investigate the possible causes from the mechanism design or control loop adjustment. However, the problem of inaccurate positioning of the machine may be caused by the wrong command given by the motion controller or the adjustment of the mechanism design and control loop. It takes more time to check to confirm the real cause.
發明人遂竭其心智悉心研究,進而研發出一種具有偵錯功能之馬達命令輸出模組及馬達命令偵錯方法,可在定位出現誤差時先確認馬達命令輸出模組所給出的馬達命令是否有誤,藉此可節省發生機台定位不準時之所耗費的排查時間。The inventors have exhausted their minds to study carefully, and then developed a motor command output module with error detection function and a motor command error detection method, which can first confirm whether the motor command given by the motor command output module is correct when there is an error in positioning. If there is an error, it can save the time spent on checking the machine when the positioning of the machine is not punctual.
本發明的第一態樣係提供一種具有偵錯功能之馬達命令輸出模組。該馬達命令輸出模組包括一中央處理單元以及一現場可程式化邏輯閘陣列單元。該中央處理單元包含一運動控制電路以及電連接於該運動控制電路的一錯誤偵測電路,該運動控制電路配置為根據一運動命令計算出一馬達位置命令以及一馬達速度命令。該現場可程式化邏輯閘陣列單元係電連接於該中央處理單元且包括一數位差分法脈波產生電路、一脈波命令解碼電路、一第一緩衝電路、一第二緩衝電路、一高速比較電路、一鎖存電路、一位置命令計數電路以及一時間計數電路。該數位差分法脈波產生電路配置為依據該馬達位置命令及該馬達速度命令,透過數位差分演算法產生一馬達脈波命令。該運動控制電路更配置為將該馬達位置命令及該馬達速度命令轉化為對應該馬達脈波命令的每一差分週期的脈波數給該錯誤偵測電路。該錯誤偵測電路配置為依據各該脈波數計算出複數預定經過位置資料,並將該些預定經過位置資料依序設定到該第一緩衝電路中。該脈波命令解碼電路配置為解碼該馬達脈波命令,該位置命令計數電路配置為依據該解碼後之馬達脈波命令產生複數馬達目前位置資料。該高速比較電路配置為依序比較該些預定經過位置資料與該些馬達目前位置資料,當各該馬達目前位置資料達到各該預定經過位置時,觸發該鎖存電路。該時間計數電路配置為持續更新系統時間值。該鎖存電路被觸發後配置為依序將達到各該預定經過位置之各該馬達目前位置資料以及該時間計數電路的系統時間值寫入該第二緩衝電路中。該錯誤偵測電路更配置為依序讀取該第二緩衝電路中的各該馬達目前位置資料以及所對應之系統時間值並加以計算,從而判斷該數位差分法脈波產生電路所產生之馬達脈波命令是否正確。A first aspect of the present invention provides a motor command output module with a debug function. The motor command output module includes a central processing unit and a field programmable logic gate array unit. The central processing unit includes a motion control circuit and an error detection circuit electrically connected to the motion control circuit. The motion control circuit is configured to calculate a motor position command and a motor speed command according to a motion command. The field programmable logic gate array unit is electrically connected to the central processing unit and includes a digital differential pulse generation circuit, a pulse command decoding circuit, a first buffer circuit, a second buffer circuit, and a high-speed comparator circuit, a latch circuit, a position command counting circuit and a time counting circuit. The digital differential method pulse wave generating circuit is configured to generate a motor pulse wave command through a digital differential algorithm according to the motor position command and the motor speed command. The motion control circuit is further configured to convert the motor position command and the motor speed command into a pulse number corresponding to each differential cycle of the motor pulse command to the error detection circuit. The error detection circuit is configured to calculate a plurality of predetermined passing position data according to each of the pulse numbers, and sequentially set the predetermined passing position data into the first buffer circuit. The pulse command decoding circuit is configured to decode the motor pulse command, and the position command counting circuit is configured to generate a plurality of motor current position data according to the decoded motor pulse command. The high-speed comparison circuit is configured to sequentially compare the predetermined passing position data and the current position data of the motors, and trigger the latch circuit when the current position data of each motor reaches each predetermined passing position. The time counting circuit is configured to continuously update the system time value. After the latch circuit is triggered, it is configured to sequentially write the current position data of the motor reaching the predetermined passing positions and the system time value of the time counting circuit into the second buffer circuit. The error detection circuit is further configured to sequentially read the current position data of the motors and the corresponding system time values in the second buffer circuit and calculate them, thereby judging the motors generated by the digital differential method pulse generating circuit Whether the pulse command is correct.
本發明的第二態樣係提供一種馬達命令偵錯方法,應用於上述馬達命令輸出模組,包含下列步驟: a.提供一運動命令給該運動控制電路,該運動控制電路根據該運動命令計算出一馬達位置命令以及一馬達速度命令; b.該數位差分法脈波產生電路依據該馬達位置命令及該馬達速度命令,透過數位差分演算法產生一馬達脈波命令; c.該運動控制電路將該馬達位置命令及該馬達速度命令轉化為對應該馬達脈波命令的每一差分週期的脈波數給該錯誤偵測電路; d.該錯誤偵測電路依據各該脈波數計算出複數預定經過位置資料,並將該些預定經過位置資料依序設定到該第一緩衝電路中; e.該脈波命令解碼電路解碼該馬達脈波命令; f.該位置命令計數電路依據該解碼後之馬達脈波命令產生複數馬達目前位置資料; g.該高速比較電路依序比較該些預定經過位置資料與該些馬達目前位置資料,當各該馬達目前位置資料達到各該預定經過位置時,觸發該鎖存電路; h.該鎖存電路依序將達到各該預定經過位置之各該馬達目前位置資料以及該時間計數電路的系統時間值寫入該第二緩衝電路中;以及 i.該錯誤偵測電路依序讀取該第二緩衝電路中的各該馬達目前位置資料以及所對應之系統時間值並加以計算,從而判斷該數位差分法脈波產生電路所產生之馬達脈波命令是否正確。 A second aspect of the present invention provides a motor command error detection method, applied to the above motor command output module, comprising the following steps: a. Provide a motion command to the motion control circuit, and the motion control circuit calculates a motor position command and a motor speed command according to the motion command; b. The digital differential method pulse wave generating circuit generates a motor pulse wave command through a digital differential algorithm according to the motor position command and the motor speed command; c. The motion control circuit converts the motor position command and the motor speed command into a pulse number corresponding to each differential cycle of the motor pulse command to the error detection circuit; d. The error detection circuit calculates a plurality of predetermined passing position data according to each of the pulse numbers, and sequentially sets the predetermined passing position data into the first buffer circuit; e. The pulse command decoding circuit decodes the motor pulse command; f. The position command counting circuit generates a plurality of motor current position data according to the decoded motor pulse command; g. The high-speed comparison circuit sequentially compares the predetermined passing position data and the current position data of the motors, and triggers the latch circuit when the current position data of each motor reaches each predetermined passing position; h. The latch circuit sequentially writes the current position data of the motor reaching the predetermined passing positions and the system time value of the time counting circuit into the second buffer circuit; and i. The error detection circuit sequentially reads the current position data of the motors and the corresponding system time values in the second buffer circuit and calculates them, thereby judging the motor pulse generated by the digital differential pulse generation circuit Whether the wave command is correct.
在一實施例中,該現場可程式化邏輯閘陣列單元更包含一中斷控制電路,該錯誤偵測電路配置為在該數位差分法脈波產生電路發出不正確的馬達脈波命令時,令該中斷控制電路發出一中斷訊號。In one embodiment, the field programmable logic gate array unit further includes an interrupt control circuit, and the error detection circuit is configured to cause the digital differential method pulse generation circuit to issue an incorrect motor pulse command The interrupt control circuit sends out an interrupt signal.
在一實施例中,馬達命令偵錯方法更包含一步驟:該錯誤偵測電路在該馬達脈波命令數位差分法脈波產生電路發出不正確的馬達脈波命令時,令該中斷控制電路下一命令以發出一中斷訊號。In one embodiment, the motor command error detection method further includes a step: the error detection circuit makes the interrupt control circuit turn off when the motor pulse command digital differential method pulse generation circuit sends out an incorrect motor pulse command. A command to issue an interrupt signal.
在一實施例中,具有偵錯功能之馬達命令輸出模組更包含一基板,該中央處理單元及該現場可程式化邏輯閘陣列單元分別為設置於該基板上的積體電路。In one embodiment, the motor command output module with a debug function further includes a substrate, and the central processing unit and the field programmable logic gate array unit are respectively integrated circuits disposed on the substrate.
在一實施例中,該中央處理單元為一數位訊號處理器。In one embodiment, the central processing unit is a digital signal processor.
在一實施例中,該基板包含一電連接部。In one embodiment, the substrate includes an electrical connection.
在一實施例中,該第一緩衝電路及該第二緩衝電路分別為一先進先出儲存器。In one embodiment, the first buffer circuit and the second buffer circuit are respectively a first-in, first-out storage.
在一實施例中,該高速比較電路是傳送一邊緣觸發訊號給該鎖存電路,以觸發該鎖存電路。In one embodiment, the high-speed comparison circuit transmits an edge-triggered signal to the latch circuit to trigger the latch circuit.
藉此,本發明具有偵錯功能之馬達命令輸出模組及馬達命令偵錯方法可在確認機台位置是否正確之前先確認所給出的馬達脈波命令是否正確,以節省發生機台定位不準時之所耗費的排查時間。Thereby, the motor command output module and the motor command error detection method with error detection function of the present invention can confirm whether the given motor pulse command is correct before confirming whether the position of the machine is correct, so as to save the occurrence of incorrect positioning of the machine. Time spent on checking.
為充分瞭解本發明之目的、特徵及功效,茲藉由下述具體之實施例,並配合所附之圖式,對本發明做一詳細說明,說明如後:In order to fully understand the purpose, features and effects of the present invention, hereby, the present invention is described in detail by the following specific embodiments and in conjunction with the accompanying drawings, and the description is as follows:
請參考圖1及圖2,本發明的第一態樣係提供一種具有偵錯功能之馬達命令輸出模組1,配置於一電腦(圖未示)中,該馬達命令輸出模組1包含一中央處理單元10以及一現場可程式化邏輯閘陣列單元(FPGA)11。該中央處理單元可為一數位訊號處理器,其包括一運動控制電路101以及電連接於該運動控制電路101的一錯誤偵測電路102,該運動控制電路101配置為根據該電腦提供的一運動命令計算出一馬達位置命令以及一馬達速度命令。該馬達位置命令中的馬達位置係指馬達轉子之轉動位置,而馬達速度命令中的馬達速度係指馬達轉子之轉速。該現場可程式化邏輯閘陣列單元11係電連接於該中央處理單元10且包括一數位差分法脈波產生電路111、一脈波命令解碼電路113、一第一緩衝電路114、一第二緩衝電路115、一高速比較電路116、一鎖存電路117、一位置命令計數電路118以及一時間計數電路119。Please refer to FIG. 1 and FIG. 2 , a first aspect of the present invention provides a motor
如圖1及圖2所示,該數位差分法脈波產生電路111配置為依據該馬達位置命令及該馬達速度命令,透過數位差分演算法產生一馬達脈波命令。該運動控制電路101更配置為將該馬達位置命令及該馬達速度命令轉化為對應該馬達脈波命令的每一差分週期的脈波數給該錯誤偵測電路102。該錯誤偵測電路102配置為依據各該脈波數計算出複數預定經過位置資料,並將該些預定經過位置資料依序設定到該第一緩衝電路114中。該脈波命令解碼電路113配置為解碼該馬達脈波命令,該位置命令計數電路118配置為依據該解碼後之馬達脈波命令產生複數馬達目前位置資料。該高速比較電路116配置為依序比較該些預定經過位置資料與該些馬達目前位置資料,當各該馬達目前位置資料達到各該預定經過位置時,觸發該鎖存電路117。該時間計數電路119配置為持續更新系統時間值。該鎖存電路117被觸發後配置為依序將達到各該預定經過位置之各該馬達目前位置資料以及該時間計數電路119的系統時間值寫入該第二緩衝電路115中。該錯誤偵測電路102更配置為依序讀取該第二緩衝電路115中的各該馬達目前位置資料以及所對應之系統時間值並加以計算,從而判斷該數位差分法脈波產生電路111所產生之馬達脈波命令是否正確。As shown in FIG. 1 and FIG. 2 , the digital differential method pulse
如圖1至圖3所示,本發明的第二態樣係提供一種馬達命令偵錯方法,應用於上述馬達命令輸出模組1,包含下列步驟: 步驟S101:提供一運動命令給該運動控制電路101,該運動控制電路101根據該運動命令計算出一馬達位置命令以及一馬達速度命令; 步驟S102:該數位差分法脈波產生電路111依據該馬達位置命令及該馬達速度命令,透過數位差分演算法產生一馬達脈波命令; 步驟S103:該運動控制電路101將該馬達位置命令及該馬達速度命令轉化為對應該馬達脈波命令的每一差分週期的脈波數給該錯誤偵測電路102; 步驟S104:該錯誤偵測電路102依據各該脈波數計算出複數預定經過位置資料,並將該些預定經過位置資料依序設定到該第一緩衝電路114中; 步驟S105:該脈波命令解碼電路113解碼該馬達脈波命令; 步驟S106:該位置命令計數電路118依據該解碼後之馬達脈波命令產生複數馬達目前位置資料; 步驟S107:該高速比較電路116依序比較該些預定經過位置資料與該些馬達目前位置資料,當各該馬達目前位置資料達到各該預定經過位置時,觸發該鎖存電路117; 步驟S108:該鎖存電路117依序將達到各該預定經過位置之各該馬達目前位置資料以及該時間計數電路119的系統時間值寫入該第二緩衝電路115中;以及 步驟S109:該錯誤偵測電路102依序讀取該第二緩衝電路中的各該馬達目前位置資料以及所對應之系統時間值並加以計算,從而判斷該數位差分法脈波產生電路所產生之馬達脈波命令是否正確。 As shown in FIG. 1 to FIG. 3 , a second aspect of the present invention provides a motor command error detection method, which is applied to the above-mentioned motor command output module 1 and includes the following steps: Step S101: providing a motion command to the motion control circuit 101, and the motion control circuit 101 calculates a motor position command and a motor speed command according to the motion command; Step S102 : the digital differential method pulse wave generating circuit 111 generates a motor pulse wave command through the digital differential algorithm according to the motor position command and the motor speed command; Step S103: the motion control circuit 101 converts the motor position command and the motor speed command into a pulse number corresponding to each differential cycle of the motor pulse command to the error detection circuit 102; Step S104 : the error detection circuit 102 calculates a plurality of predetermined passing position data according to each of the pulse numbers, and sequentially sets the predetermined passing position data into the first buffer circuit 114 ; Step S105: the pulse command decoding circuit 113 decodes the motor pulse command; Step S106: the position command counting circuit 118 generates a plurality of motor current position data according to the decoded motor pulse command; Step S107 : the high-speed comparison circuit 116 compares the predetermined passing position data and the motor current position data in sequence, and triggers the latch circuit 117 when each motor current position data reaches each predetermined passing position; Step S108 : the latch circuit 117 sequentially writes the current position data of the motor reaching the predetermined passing positions and the system time value of the time counting circuit 119 into the second buffer circuit 115 ; and Step S109 : The error detection circuit 102 sequentially reads the current position data of the motors and the corresponding system time values in the second buffer circuit and calculates them, thereby judging the error generated by the digital differential method pulse generation circuit. Whether the motor pulse command is correct.
藉此,本發明具有偵錯功能之馬達命令輸出模組1及馬達命令偵錯方法可在確認機台位置是否正確之前先確認所給出的馬達脈波命令是否正確,以縮短發生機台定位不準時之所耗費的排查時間。Thereby, the motor
如圖1及圖2所示,在一實施例中,該現場可程式化邏輯閘陣列單元11可更包含一中斷控制電路112。該錯誤偵測電路102配置為在該數位差分法脈波產生電路111發出不正確的馬達脈波命令時,令該中斷控制電路112發出一中斷訊號給電腦。As shown in FIG. 1 and FIG. 2 , in one embodiment, the field programmable logic
如圖1至圖3所示,在一實施例中,本發明之馬達命令偵錯方法可更包含一步驟:
S110:該錯誤偵測電路102在該數位差分法脈波產生電路111發出不正確的馬達脈波命令時,令該中斷控制電路112發出一中斷訊號。
As shown in FIG. 1 to FIG. 3 , in one embodiment, the motor command error detection method of the present invention may further include a step:
S110: The
如圖1及圖2所示,在一實施例中,本發明具有偵錯功能之馬達命令輸出模組1可更包含一基板13,該中央處理單元10及該現場可程式化邏輯閘陣列單元11分別為設置於該基板13上的積體電路。該現場可程式化邏輯閘陣列單元11具有可修改與編輯的特性,該數位差分法脈波產生電路111、該中斷控制電路112、該脈波命令解碼電路113、該第一緩衝電路114、該第二緩衝電路115、該高速比較電路116、該鎖存電路117、該位置命令計數電路118以及該時間計數電路119可為該現場可程式化邏輯閘陣列單元11中相連接的複數邏輯塊。該基板13包含一電連接部131,以電連接於該電腦之主機板(圖未示)。該電連接部131可為一周邊組件互連匯流排(PCI BUS),但並不僅限於此。As shown in FIG. 1 and FIG. 2 , in one embodiment, the motor
如圖1及圖2所示,在一實施例中,該運動控制電路101可設定數位差分法脈波數以及週期給該數位差分法脈波產生電路111,以產生該馬達脈波命令。As shown in FIG. 1 and FIG. 2 , in one embodiment, the
如圖1及圖2所示,在一實施例中,該錯誤偵測電路102可判斷該馬達脈波命令每一差分週期的脈波數以及脈波頻率是否正確,若判斷馬達脈波命令有誤時,該運動控制電路101可緊急停止該數位差分法脈波產生電路111發出馬達脈波命令,同時該中斷控制電路112可透過該電連接部131通知電腦中的軟體。例如,當錯誤偵測電路102確認一個數位差分週期中的速度資料或位置資料不正確時,可透過寫入一暫存電路(圖未示)對中斷控制電路112下命令,以發出一中斷訊號(interrupt signal)透過電連接部131給電腦所裝設的驅動程式。而驅動程式接到中斷訊號後會自動進入一中斷副函式(interrupt service routine, ISR)執行預先指定的程式,例如通知電腦中的上層軟體。但本發明並不僅限於此。As shown in FIG. 1 and FIG. 2 , in one embodiment, the
如圖1及圖2所示,在一實施例中,該脈波命令解碼電路113可支援多種模式的高速訊號解碼,藉此該位置命令計數電路118可依解碼結果產生馬達目前位置資料,但本發明並不僅限於此。As shown in FIG. 1 and FIG. 2 , in one embodiment, the pulse
如圖1及圖2所示,在一實施例中,該時間計數電路119可具有高解析度之時間計數功能,以供該錯誤偵測電路102計算各差分週期的速度資料,但本發明並不僅限於此。As shown in FIG. 1 and FIG. 2 , in one embodiment, the
如圖1、圖2、圖4及圖5所示,在一實施例中,該第一緩衝電路114及該第二緩衝電路115分別為一先進先出(FIFO)儲存器。由於該錯誤偵測電路102會將每一差分週期的脈波數轉化為複數預定經過位置資料P0、P1……Pn,而這些預定經過位置資料P0、P1……Pn必須依先後順序排列後才能與馬達目前位置進行比較,因此需先將位置資料寫入第一緩衝電路114。同樣的,該錯誤偵測電路102也必須依序讀取各該馬達目前位置資料P10、P11……P1n,才可正確地計算出各該差分週期之速度資料,所以必須先由第二緩衝電路115將馬達目前位置資料P10、P11……P1n做排序。該高速比較電路116是以表格模式逐一進行該些位置資料與該些馬達目前位置資料間的比較,若馬達目前位置資料P10之數值達到位置資料P0時,則傳送一邊緣觸發(edge-triggered)訊號給該鎖存電路117,以觸發該鎖存電路117。該鎖存電路117收到觸發訊號後,便藉由該時間計數電路119將馬達目前位置資料P10結合系統時間T0後寫入該第二緩衝電路115。類似地,依序將馬達目前位置資料P11、P12……P1n分別結合系統時間值T1、T2……Tn寫入該第二緩衝電路115。As shown in FIG. 1 , FIG. 2 , FIG. 4 and FIG. 5 , in one embodiment, the
如圖1及圖2所示,在一實施例中,該馬達命令輸出模組1之數位差分法脈波產生電路111可電連接於一接線板3,而接線板3可電連接於一驅動裝置4。驅動裝置4可電連接於一機台5。驅動裝置4可透過接線板3接收馬達脈波命令以驅動機台5運作。驅動裝置4包含一驅動介面41、一控制迴路42以及一馬達43。驅動介面41可為電連接於該接線板3的一轉接電路板,以將馬達脈波命令轉成可供該控制回路42使用的命令而驅動該馬達43。脈波命令解碼電路113所進行解碼的馬達脈波命令可來自於該接線板3,但並不僅限於此,也可直接來自數位差分法脈波產生電路111。當機台5發生定位不準的問題時,透過本發明具有偵錯功能之馬達命令輸出模組1及馬達命令偵錯方法可先確認馬達脈波命令是否有誤,而確認馬達脈波命令有誤後,就可檢查是否接線板3或驅動裝置4的驅動介面41發生故障。As shown in FIG. 1 and FIG. 2 , in one embodiment, the digital differential
本發明在上文中已以較佳實施例揭露,然熟習本項技術者應理解的是,該實施例僅用於描繪本發明,而不應解讀為限制本發明之範圍。應注意的是,舉凡與該實施例等效之變化與置換,均應設為涵蓋於本發明之範疇內。因此,本發明之保護範圍當以申請專利範圍所界定者為準。The present invention has been disclosed above with preferred embodiments, but those skilled in the art should understand that the embodiments are only used to describe the present invention, and should not be construed as limiting the scope of the present invention. It should be noted that all changes and substitutions equivalent to this embodiment should be considered to be included within the scope of the present invention. Therefore, the protection scope of the present invention should be defined by the scope of the patent application.
1:馬達命令輸出模組 10:中央處理單元 101:運動控制電路 102:錯誤偵測電路 11:現場可程式化邏輯閘陣列單元 111:數位差分法脈波產生電路 112:中斷控制電路 113:脈波命令解碼電路 114:第一緩衝電路 115:第二緩衝電路 116:高速比較電路 117:鎖存電路 118:位置命令計數電路 119:時間計數電路 13:基板 131:電連接部 3:接線板 4:驅動器 41:驅動介面 42:控制迴路 43:馬達 5:機台 P0~Pn:預定經過位置資料 P10~P1n:馬達目前位置資料 T0~Tn:系統時間值 S101:步驟 S102:步驟 S103:步驟 S104:步驟 S105:步驟 S106:步驟 S107:步驟 S108:步驟 S109:步驟 S110:步驟 1: Motor command output module 10: Central Processing Unit 101: Motion Control Circuits 102: Error detection circuit 11: Field programmable logic gate array unit 111: Digital differential pulse generation circuit 112: Interrupt control circuit 113: Pulse command decoding circuit 114: first buffer circuit 115: Second buffer circuit 116: High-speed comparison circuit 117: Latch circuit 118: Position command counting circuit 119: Time counting circuit 13: Substrate 131: Electrical connection part 3: Terminal board 4: Drive 41: Driver interface 42: Control loop 43: Motor 5: Machine P0~Pn: Scheduled passing location data P10~P1n: Motor current position data T0~Tn: system time value S101: Steps S102: Steps S103: Steps S104: Steps S105: Steps S106: Steps S107: Steps S108: Steps S109: Steps S110: Steps
[圖1]係本發明具體實施例之具有偵錯功能之馬達命令輸出模組的方塊示意圖。 [圖2]係本發明具體實施例之具有偵錯功能之馬達命令輸出模組、電腦、驅動器以及機台之方塊示意圖。 [圖3]係本發明具體實施例之馬達命令偵錯方法之流程示意圖。 [圖4]係本發明具體實施例之錯誤偵測電路、第一緩衝電路及高速比較電路之方塊示意圖。 [圖5]係本發明具體實施例之鎖存電路、第二緩衝電路及錯誤偵測電路之方塊示意圖。 1 is a block diagram of a motor command output module with a debug function according to an embodiment of the present invention. [Fig. 2] is a block diagram of a motor command output module, a computer, a driver and a machine with a debug function according to a specific embodiment of the present invention. FIG. 3 is a schematic flowchart of a motor command error detection method according to a specific embodiment of the present invention. 4 is a block diagram of an error detection circuit, a first buffer circuit and a high-speed comparison circuit according to an embodiment of the present invention. 5 is a block diagram of a latch circuit, a second buffer circuit and an error detection circuit according to an embodiment of the present invention.
1:馬達命令輸出模組 1: Motor command output module
10:中央處理單元 10: Central Processing Unit
101:運動控制電路 101: Motion Control Circuits
102:錯誤偵測電路 102: Error detection circuit
11:現場可程式化邏輯閘陣列單元 11: Field programmable logic gate array unit
111:數位差分法脈波產生電路 111: Digital differential pulse generation circuit
112:中斷控制電路 112: Interrupt control circuit
113:脈波命令解碼電路 113: Pulse command decoding circuit
114:第一緩衝電路 114: first buffer circuit
115:第二緩衝電路 115: Second buffer circuit
116:高速比較電路 116: High-speed comparison circuit
117:鎖存電路 117: Latch circuit
118:位置命令計數電路 118: Position command counting circuit
119:時間計數電路 119: Time counting circuit
13:基板 13: Substrate
131:電連接部 131: Electrical connection part
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110103535A TWI763287B (en) | 2021-01-29 | 2021-01-29 | Motor command output module with error detection function and motor command error detection method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110103535A TWI763287B (en) | 2021-01-29 | 2021-01-29 | Motor command output module with error detection function and motor command error detection method |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI763287B TWI763287B (en) | 2022-05-01 |
TW202230057A true TW202230057A (en) | 2022-08-01 |
Family
ID=82594055
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110103535A TWI763287B (en) | 2021-01-29 | 2021-01-29 | Motor command output module with error detection function and motor command error detection method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI763287B (en) |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102269579B (en) * | 2010-06-04 | 2014-07-16 | 鸿富锦精密工业(深圳)有限公司 | Motor displacement measuring machine and motor displacement measuring system and method |
TWI451109B (en) * | 2010-06-17 | 2014-09-01 | Hon Hai Prec Ind Co Ltd | Motor displacement measuring device, system and method for measuring displacements of motors |
US9022177B2 (en) * | 2010-11-29 | 2015-05-05 | Lincoln Industrial Corporation | Pump having stepper motor and overdrive control |
CN203534846U (en) * | 2013-06-18 | 2014-04-09 | 四川农业大学 | Motor multiparameter real-time data acquisition system |
EP3239728B1 (en) * | 2014-12-26 | 2020-06-17 | Mitsubishi Electric Corporation | Diagnosis device for electric motor |
JPWO2017126093A1 (en) * | 2016-01-22 | 2018-10-18 | 株式会社日立産機システム | Motor control device |
JP6380432B2 (en) * | 2016-03-14 | 2018-08-29 | オムロン株式会社 | Motor control system, motor control device, program, and recording medium |
EP3489700B1 (en) * | 2016-07-25 | 2020-08-19 | Mitsubishi Electric Corporation | Electric motor diagnosis device |
-
2021
- 2021-01-29 TW TW110103535A patent/TWI763287B/en active
Also Published As
Publication number | Publication date |
---|---|
TWI763287B (en) | 2022-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6904471B2 (en) | Programmable logic controller customized function call method, system and apparatus | |
WO2021169260A1 (en) | System board card power supply test method, apparatus and device, and storage medium | |
CN113334112A (en) | Workpiece alignment method and device for secondary clamping of machine tool and computer storage medium | |
CN116049249A (en) | Error information processing method, device, system, equipment and storage medium | |
CN102375775B (en) | Computer system unrecoverable error indication signal detection circuit | |
JP5970757B2 (en) | Power electronics control circuit device | |
TWI763287B (en) | Motor command output module with error detection function and motor command error detection method | |
JP2024077600A (en) | Security control method and apparatus for integrated circuit, storage medium, and electronic device | |
CN117477991A (en) | Servo motor zeroing method and system based on PLC, storage medium and PLC | |
CN111522757A (en) | I2C bus-based interrupt reading and clearing control method | |
CN102541705B (en) | Testing method for computer and tooling plate | |
WO2023206963A1 (en) | Data processing method and system, and related components | |
US7590781B2 (en) | Signal processing system for electronic systems having different types of input/output controllers | |
CN115047920A (en) | Motor command output module with debugging function and command debugging method thereof | |
US11847077B2 (en) | Serial peripheral interface integrated circuit and operation method thereof | |
CN111143145B (en) | Method for manufacturing errors in SATA error processing debugging and electronic equipment | |
TWI637177B (en) | System and method for testing semiconductor elements | |
CN107168897B (en) | Device for realizing I2C repeated read-write control | |
JP5337661B2 (en) | Memory control device and control method of memory control device | |
TWI810984B (en) | Power sequence control system and electronic device having the same | |
JP4817646B2 (en) | Custom IC verification apparatus and verification method | |
Huang et al. | Research on 1553B Communication Faults Resolution Methods | |
CN113535490B (en) | Error detecting device and operation method thereof | |
US20220205875A1 (en) | Method for motion test and control host of movable machinery | |
CN118535402A (en) | Memory test method, device, test equipment and system |