zhangzhitao
級別: 家園?
|
各位師傅,向大家請教個關于如何寫歐姆龍拔碼開關程序的問題。我公司有幾臺鋁材擠壓機,因生產需要,有時是一支鋁棒擠完前梁鋸就切一次料,而有時則是兩根或是多支鋁棒擠完才切一次,我就想用拔碼開關來控制前梁鋸臺,但我對拔碼開關不太了解,希望知道或是有這方面資料的師傅幫下我。郵箱968756904@qq.com. |
---|---|
|
ngch
深圳工控小匠
級別: 網絡英雄
|
手冊上有介紹。 |
|
---|---|---|
|
xiaolianglxk
致力中國工控,中國工控加油!
級別: 略有小成
|
撥碼開關就是代表二進制的數據了,4位就可以表示16個不同數據,根據不同數據作出不同的選擇 |
---|---|
|
zymzym
級別: 略有小成
|
//--------------------mov k1x000 k1m500 m8000--------------------deco m500 m480 k4 m480至m495就是撥碼開關對應的0—F |
---|---|
本帖最近評分記錄: |
jxh668
jxh668
級別: 工控俠客
|
In this example, DSW(210) is used to read an 8-digit number from a digital switch and outputs the resulting value constantly to D0 to D3. The digital switch is connected through CIO 3 and CIO 104. Since 8 digits of data are being read, C1 (D32000 in this case) is set to 0001 hex. D32001 is used as the system word. |
|
---|---|---|
|