女人叫床声_动漫美女被艹视频_国产精品短篇二区_理发店女人一级毛片

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重新編輯 ]
g073545
佛山工控
級別: 家園常客
精華主題: 0
發帖數量: 412 個
工控威望: 591 點
下載積分: 3655 分
在線時間: 1076(小時)
注冊時間: 2013-03-08
最后登錄: 2024-12-18
查看g073545的 主題 / 回貼
1樓  發表于: 2013-04-24 11:31
你這不就是走三段距離嗎,簡單的問題搞得太復雜,有點畫蛇沃足。