Files
vince/README.md

27 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

韦恩斯步进电机驱动模块
总体原则:
唐超需求:
1、电机可以左移/右移 对应函数 MoveSetDistance、 MoveMotar
2、设置电机速度 对应函数SettingSpeed(unsigned long Speed)
*// 舍去3、记录开始移动时的电机内部位置初始位置可以通过命令控制相机返回原位*
任立新回复:
第三条 马达上电后无法记录上次位置 需要结合光电传感器或其他传感器来实现 建议改成以下两条
3、归零操作每次上电做一次且需要一定时间 归0函数 MovetoZero()
4、记录距离0点的位置 也可以理解为记录位置 获取当前位置函数 GetLocationNow()、移动到某位置 MoveToLocation(long Location) 移动期间可以通过获取当前位置来判断是否到位
新加内容
5、设置加减速度 SettingUpandDownSpeed(int addspeed, int downspeed)
2020-9-10
增加了关于双步进电机同步运行 函数如下:
void setSyncMode(); 调用该函数后 改类就变成双步进电机了nettcp+RS485协议