Skip to content

microa/CNC_5axis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

CNC_5axis (English Version)



Packages needed:
* pyserial
-> pip install pyserial
-> https://pypi.org/project/pyserial/


Three functions explainations:


* Move_Certain_Distance("COM48", "x", 20)
  UART port: COM48
  Input "x","y", or "z" to control X-axis, Y-axis, or Z-axis respectively.
  The number 20 represents relative distance from the origin.


* Move_Certain_Time("COM48", "x", "forward", 2)
  UART port: COM48
  Input "x","y", or "z" to select X-axis, Y-axis, or Z-axis respectively.
  Input 'forward' or 'backward' to choose the motor's direction.
  The number 2 represents the duration to move for 2 seconds and then stop.


* Set_Move_Speed("COM48", "xyz")
  UART port: COM48
  Input "xyz" or "ab" to adjust the speed of the corresponding axises or motors.


You can select "a" or "b" in addition to "x", "y", and "z".



## CNC_5axis (中文版)


需要安装的python包:
* pyserial
-> pip install pyserial
-> https://pypi.org/project/pyserial/


已开发三个主要功能:


* Move_Certain_Distance("COM48", "x", 20)
  串口号: COM48
  输入 "x","y", or "z" 以分别选中 X-轴, Y-轴, or Z-轴
  "20"表示移动距离原点的相对距离


* Move_Certain_Time("COM48", "x", "forward", 2)
  串口号: COM48
  输入 "x","y", or "z" 以分别选中 X-轴, Y-轴, or Z-轴
  输入 "forward" 或 "backward" 以选择电机的 正向 或 反向 运动
  数字 "2" 表示执行运动的时间,单位是秒


* Set_Move_Speed("COM48", "xyz")
  串口号: COM48
  输入 "xyz" 或 "ab" 以选中需要调节速度的对象(电机组).


补充:除 "x", "y", 和 "z" 以外,上述函数中还可以选择 "a" or "b"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages