5iMX宗旨:分享遥控模型兴趣爱好

5iMX.com 我爱模型 玩家论坛 ——专业遥控模型和无人机玩家论坛(玩模型就上我爱模型,创始于2003年)
查看: 7513|回复: 13
打印 上一主题 下一主题

求助:MACH3主轴转速和Index输入[还未解决,继续求助]

[复制链接]
跳转到指定楼层
楼主
发表于 2013-2-28 10:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 weberyap 于 2013-3-1 10:00 编辑

买了块Mach3的PWM主轴调速板,现在可以用Mach3设定主轴速度了,可是有误差,我的主轴最高转速2600,Mach3里也是这样设置的Spindle Pulleys,GCode:S50时,根本不动,S100的时候,实际转速130,S200时,实际140-150,S2600时,实际不到2000。把霍尔传感器的输出接到Mach3接口板上,电脑上也能读出这个实际转速来了。
想知道,Mach3能通过怎样的设置让GCode指令和实际转速一致?
看见主轴设置的页面上有个PID参数,调这个有用吗?怎么调?知道这个好像是闭环控制,但不明白,哪位大哥指点一下?



欢迎继续阅读楼主其他信息

沙发
 楼主| 发表于 2013-2-28 11:08 | 只看该作者
找到个老外的文档,说是这样解决:
Set up the configuration under Ports & Pins / Spindle Setup / Special Functions as shown in Figure 5. Do not
use Closed Loop Spindle Control.
Selecting “Use Spindle Feedback in Sync Modes” tells Mach3 to expect feedback pulses from the spindle.
Selecting this effectively puts Mach3 into a closed loop mode.
Selecting “Spindle Speed Averaging” allows Mach3 to “average out” minor speed fluctuations thus
electronically smoothing out synchronized operations.
3
 楼主| 发表于 2013-2-28 11:10 | 只看该作者
Mach3 has a bug in the initial commanded spindle speed under PWM control. It manifests itself as resulting
in a higher initial speed than that requested.
For example, on my lathe, if you request S500 the spindle will go to 643rpm. If you then perform either of the
following actions, the speed will come back to the requested 500rpm:
1. Press Spindle Speed Override Reset Button, or
2. Issue another S500 command from Mach3 via DRO or MDI
Subsequent requested spindle speeds are then true until you stop the spindle and start again.
I don’t know if this bug exists under Step and Direction Controlled spindles because all my machines use
PWM and they all exhibit this problem. It has nothing to do with Smoothstepper because one machine is not
controlled with a Smoothstepper and it behaves exactly the same.
My workaround for this bug is to ensure that the following G Code example (or equivalent) to start the spindle
is inserted into all of my cnc programs:
M3 S500 (Request Start Spindle CW at 500rpm but it goes to 643rpm)
G4 P1 (Wait for 1 second)
S500 (The spindle then comes back to 500rpm)
4
 楼主| 发表于 2013-2-28 11:11 | 只看该作者
只能说挺奇怪的解决方法,这都想的到,晚上回家试试

5
发表于 2013-2-28 11:24 | 只看该作者
weberyap 发表于 2013-2-28 11:11
只能说挺奇怪的解决方法,这都想的到,晚上回家试试

鸟文看不懂,请楼主翻译共享一下。
6
发表于 2013-2-28 11:45 | 只看该作者
楼主就好人做到底吧,帮忙翻译下,或者说下你的设置。。谢谢
7
 楼主| 发表于 2013-3-1 10:13 | 只看该作者
昨晚试了一下,老外的是S500,实际转速643,我的是S500,实际转速340。而且G4指令怎么在我这里没反应?
8
 楼主| 发表于 2013-3-1 10:18 | 只看该作者
第一段说配置,在"Ports & Pins / Spindle Setup / Special Functions"里面,不要勾选"Closed Loop Spindle Control",勾选"Use Spindle Feedback in Sync Modes”和"Spindle Speed Averaging"。
老外说他先给个M3 S500让主轴转起来,然后给个G4 P1,停1秒,再给个S500,重新转,转速就正常了。
9
发表于 2013-3-1 10:20 | 只看该作者
主轴皮带轮那里设置一下就是了,2:1
10
发表于 2013-3-1 10:27 | 只看该作者
继续等楼主的解决方案
11
 楼主| 发表于 2013-3-1 10:35 | 只看该作者
yhzzp 发表于 2013-3-1 10:20
主轴皮带轮那里设置一下就是了,2:1

晚上试试,目前实验的结果,是RPM和S指令的变化好像不成比例,晚上用个大样本数仔细摸摸规律,估计只能取平均值
谢谢

12
 楼主| 发表于 2013-3-1 10:36 | 只看该作者
刚才细看了老外的文档,那个调速板是他自己做的,唉,咱没这本事,只好慢慢试了
13
发表于 2013-10-11 16:52 | 只看该作者
PWM主轴调速板   电压测量了没  可能是电压不足转数才没上去
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

关闭

【站内推荐】上一条 /1 下一条

快速回复 返回顶部 返回列表