270429890
级别: 探索解密
精华主题: 0
发帖数量: 11 个
工控威望: 150 点
下载积分: 665 分
在线时间: 18(小时)
注册时间: 2013-04-22
最后登录: 2023-02-01
查看270429890的 主题 / 回贴
楼主  发表于: 2013-04-22 22:19
我有一台FX3U的PLC 和一个欧姆龙的旋转编码器,现要求伺服电机送3次料,第一固定送4公分,第二次送D0公分,第三次送D1公分,D0和D1分别是自己设定值
哪么程序是否是下面这样的   问题重点在于高速计数器和编码器的接线方式

LD X1
MOV K4 D2                                                                                                                                                                                    LD X1
MUL D2 K1024(脉冲数) D3                                                                                                                                                        MOV K4 D2  
OUT C235 D3                               第一次送料                                                                                                                            MUL D2 K1024(脉冲数) D3
                                                                                                                                                                                                        OUT C235 D3  
LD x2                                                                                                                                                                                                           .
mul d0 k1024(脉冲数)D4         第二次送料                                                                      .
out c236 d4                                                                                                                                                                                   out c235 d4
                                                                                                                                                                                                                       .
ld x3                                                                                                                                                                                                               .
mul d1 k1024(脉冲数) d5       第三次送料                                                                                                                                out c235 d5    能否想这样写 求指教,还
out c237 d5                                                                                                                                                                                                           有编码器A B Z   相相                                                                                                                                                                                                                              的接线方式
是不是3次送料需要3个不同的高速计数器,能不能只用1个,如C235只用这一个计数器,
但是只用这一个的话又会造成双线圈输出,求高手指点
[ 此帖被270429890在2013-04-23 10:56重新编辑 ]
catfree
虚心向各位学习!!!
级别: 工控侠客
精华主题: 0
发帖数量: 630 个
工控威望: 2814 点
下载积分: 15803 分
在线时间: 474(小时)
注册时间: 2012-03-30
最后登录: 2022-04-18
查看catfree的 主题 / 回贴
1楼  发表于: 2013-04-24 08:45
如果精度要求不算万分严格的,是否考虑不需要编码器,只用伺服电机?

小弟没做过类似项目纯属建议
楼主留言:
请高手指点,如何用伺服器控制?
一日晚自习,化学老师批评一同学坐姿不好,问他:“你见过哪个名人科学家是像你这样坐的?”我随口说了一句:“霍金……” 然后就没有然后了……一顿狠批啊