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重新编辑 ]