我想找...

搜尋

分享

目錄

Motion86 函式庫

86Diuno IDE has added this library since Coding version 318, enabling 86Duino to become a simple multi-axis motion controller. Motion control is a part of automation technology. Industrial automation can increase production speed, reduce production cost, improve production quality, and enhance market competitiveness, so motion control is often used in packaging, printing, textile, semiconductor device manufacturing, and Production lines.

Motion86 函式庫使 86Duino 成為一個易於開發的運動控制器,具有適用於自動化應用的 Arduino 友善功能,從而加快了控制器開發並降低了開發成本。

Motion86 函式庫的主要功能如下:

  • 最多 9 軸步進和伺服馬達運動控制,脈衝輸出頻率高達 10MHz。
  • 最多 3 個獨立軸組。
  • 支援 G 代碼。
  • 多軸線性、圓弧和螺旋插補,0.5ms 精細插補週期。
  • 支援 JOG 功能。
  • 支援手輪 (MPG)。
  • 速度預讀程式可預讀 1024 個會話。
  • 進給率倍率,可立即回應。
  • 軸跟隨功能,帶電子齒輪比設定。

接線說明和範例

The Motion86 library supports up to three-axis groups, Machine0, Machine1, and Machine2, each of which can be connected to control an XYZ 3-axis right-angle coordinate system machine – for example, a 3-axis CNC engraving machine from SABLE CNC Studio.

Each Motion86 axis group provides six pins, X-DIR/X-Pulse, Y-DIR/Y-Pulse, and Z-DIR/Z-Pulse, which are connected to the X, Y, and Z-axis servo motors for direction and pulse input respectively. The pulse output of each axis provides three pulse modes, Pulse/DIR, CW/CCW, and A/B Pulse, which can be configured at the initialization stage by the config_PulseMode() function. The following is the pin mapping table for each axis group on different models of 86Duino development boards.

Axis Group No.Axis Group pin86Duino Zero86Duino One86Duino EduCake
0X-DIR424242
0X-Pulse999
0Y-DIR434343
0Y-Pulse666
0Z-DIR444444
0Z-Pulse555
1X-DIRNot Support1818
1X-PulseNot Support1313
1Y-DIRNot Support1919
1Y-PulseNot Support1111
1Z-DIRNot Support2020
1Z-PulseNot Support1010
2X-DIRNot Support33Not Support
2X-PulseNot Support29Not Support
2Y-DIRNot Support34Not Support
2Y-PulseNot Support30Not Support
2Z-DIRNot Support35Not Support
2Z-PulseNot Support31Not Support

以下是 Maker 常用的 3D 列印機和 CNC 雕刻機的 A4988 步進馬達驅動器的範例,並提供了不同型號 86Duino 開發板上各軸組的接線範例:

86Duino ZeroZero_Stepper
86Duino OneOne_Stepper
86Duino EduCakeEduCake_Stepper

Machine 類別

此類別提供 XYZ 機器軸組的配置和控制方法,並添加了更多高級功能,以實現更靈活、更通用的運動控制。

基本方法

基本控制

寫入配置

讀取配置

JOG / MPG 控制

速度重置功能

軸跟隨功能

計算工具協助


使用限制

The TimerWDT library and the AIServo86 library also use the timer. To avoid conflicts between the libraries, these libraries cannot be used simultaneously.


演示影片


函式庫參考主頁面

86Duino 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。

返回頂端