270429890
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 11 個(gè)
工控威望: 150 點(diǎn)
下載積分: 665 分
在線時(shí)間: 18(小時(shí))
注冊(cè)時(shí)間: 2013-04-22
最后登錄: 2023-02-01
查看270429890的 主題 / 回貼
樓主  發(fā)表于: 2013-04-22 22:19
我有一臺(tái)FX3U的PLC 和一個(gè)歐姆龍的旋轉(zhuǎn)編碼器,現(xiàn)要求伺服電機(jī)送3次料,第一固定送4公分,第二次送D0公分,第三次送D1公分,D0和D1分別是自己設(shè)定值
哪么程序是否是下面這樣的   問(wèn)題重點(diǎn)在于高速計(jì)數(shù)器和編碼器的接線方式

LD X1
MOV K4 D2                                                                                                                                                                                    LD X1
MUL D2 K1024(脈沖數(shù)) D3                                                                                                                                                        MOV K4 D2  
OUT C235 D3                               第一次送料                                                                                                                            MUL D2 K1024(脈沖數(shù)) D3
                                                                                                                                                                                                        OUT C235 D3  
LD x2                                                                                                                                                                                                           .
mul d0 k1024(脈沖數(shù))D4         第二次送料                                                                      .
out c236 d4                                                                                                                                                                                   out c235 d4
                                                                                                                                                                                                                       .
ld x3                                                                                                                                                                                                               .
mul d1 k1024(脈沖數(shù)) d5       第三次送料                                                                                                                                out c235 d5    能否想這樣寫(xiě) 求指教,還
out c237 d5                                                                                                                                                                                                           有編碼器A B Z   相相                                                                                                                                                                                                                              的接線方式
是不是3次送料需要3個(gè)不同的高速計(jì)數(shù)器,能不能只用1個(gè),如C235只用這一個(gè)計(jì)數(shù)器,
但是只用這一個(gè)的話又會(huì)造成雙線圈輸出,求高手指點(diǎn)
[ 此帖被270429890在2013-04-23 10:56重新編輯 ]
catfree
虛心向各位學(xué)習(xí)。!
級(jí)別: 工控俠客
精華主題: 0
發(fā)帖數(shù)量: 630 個(gè)
工控威望: 2814 點(diǎn)
下載積分: 15803 分
在線時(shí)間: 474(小時(shí))
注冊(cè)時(shí)間: 2012-03-30
最后登錄: 2022-04-18
查看catfree的 主題 / 回貼
1樓  發(fā)表于: 2013-04-24 08:45
如果精度要求不算萬(wàn)分嚴(yán)格的,是否考慮不需要編碼器,只用伺服電機(jī)?

小弟沒(méi)做過(guò)類(lèi)似項(xiàng)目純屬建議
樓主留言:
請(qǐng)高手指點(diǎn),如何用伺服器控制?
一日晚自習(xí),化學(xué)老師批評(píng)一同學(xué)坐姿不好,問(wèn)他:“你見(jiàn)過(guò)哪個(gè)名人科學(xué)家是像你這樣坐的?”我隨口說(shuō)了一句:“霍金……” 然后就沒(méi)有然后了……一頓狠批啊