From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
在NI-Motion使用手冊上,對於breakpoints功能的描述如下(第12章,12-2頁):“藉由encoder電路的運作,目前的馬達位置會和指定的breakpoint位置進行比對,透過這樣的方式,產生的觸發訊號其遲滯時間可以小於100ns。”換言之,運動控制器上的FPGA電路會根據encoder輸入來決定何時輸出breakpoint訊號。由於使用FPGA來完成這樣的功能,因此可以讓735x具有高速的多點breakpoints功能。目前NI 運動控制器暫時不支援類比回饋訊號的的breakpoints功能,這是因為FPGA並沒有規劃相對應的電路來做搭配。另外若是在FPGA上有規劃和類比回饋訊號搭配的電路功能,也很難決定要何時輸出breakpoint訊號,因為類比回饋訊號並沒有跟數位訊號一樣有所謂的正緣或負緣的狀況,只單靠特定的電壓準位很難決定何時要輸出breakpoints。
可以使用下面的方法來解決上述的問題:在程式中執行計算並決定何時輸出breakpoints訊號。利用迴圈的方式來輪詢ADC的電壓值,並和所指定的電壓準位進行比較。當ADC電壓準位和指定的電壓值一致時,就透過trigger通道輸出數位訊號。不過這個方法的使用可能沒辦法達成高速的運動控制和同步功能。
另位也可以考慮使用analog-to-encoder 轉換器。使用這個轉換器,就可以獲得encoder訊號,如同擁有一個一般的encoder裝置來獲得位置的回饋資訊,因此可以達成breakpoint的功能。
|