PWA-42769-01那么是不是接收的起始條件設(shè)置不當(dāng)?客戶使用的是起始字符,這并無(wú)不妥。并且改成空閑線檢測(cè)之后,問(wèn)題依然存在。難道是對(duì)方發(fā)送的信號(hào)有問(wèn)題?用串口調(diào)試軟件來(lái)測(cè)試,是可以接收到的。眼見(jiàn)這幾個(gè)常見(jiàn)錯(cuò)誤都沒(méi)能cover住這個(gè)問(wèn)題,我只好從頭一步步地跟客戶確認(rèn)。但是還是沒(méi)能發(fā)現(xiàn)任何破綻。郁悶之下,只好讓客戶把程序發(fā)過(guò)來(lái)看看。
PWA-42769-01 第一次檢查程序的時(shí)候還真沒(méi)注意到問(wèn)題出在哪里。等到看出來(lái)了才覺(jué)得啼笑皆非:
不知道大家看出來(lái)沒(méi)有?客戶在設(shè)定完空閑線時(shí)間SMW90和消息定時(shí)器溢出值SMW92后,慣性地將接受地最大字符數(shù)SMB94也寫(xiě)成了傳送字SMW94。而西門(mén)子PLC的高低字節(jié)是逆序的,也就是說(shuō)SMB94為高有效字節(jié),SMB95為低有效字節(jié)。見(jiàn)手冊(cè)中的如下說(shuō)明:
PWA-42769-01 結(jié)果就是最大字符數(shù)100被傳給了SMB95,SMB95是神馬呢?神馬也不是,總之與接收條件無(wú)關(guān)。而真正最大字符數(shù)存儲(chǔ)字節(jié)SMB94被賦值為0。最大字符數(shù)都為0了,那當(dāng)然是接收不到任何數(shù)據(jù)了。
----商務(wù)熱線---廈門(mén)興銳達(dá)自動(dòng)化設(shè)備有限公司
聯(lián)系人:王文光
++QQ:2851759104
手機(jī):15359273780
電話:0592-5580707 400-855-5103轉(zhuǎn)001
傳真:0592-5361289
郵箱:2851759103@qq.com
網(wǎng)址:http://www.xmxrdauto.com
BENTLY NEVADA PWA-42769-01 USPP PWA4276901
BENTLY NEVADA 10513-01 USPP 1051301
BENTLY NEVADA 72001-01 USPP 7200101
BENTLY NEVADA 10513-02 NSPP 1051302
BENTLY NEVADA PWA-35508-0B USPP PWA355080B
BENTLY NEVADA 81546-01 SIGNAL INPUT RELAY CARD
NEW BENTLY NEVADA PWA72009-05 PC BOARD PWA7200905
BENTLY NEVADA TEF136030 USPP TEF136030
BENTLY NEVADA 81544-01 CARD
BENTLY NEVADA 10513-02 USPP 1051302
BENTLY NEVADA PWA-42727-01
BENTLY NEVADA PWB-40350-01 USPP PWB4035001
BENTLY NEVADA 22151-201-02 NSPP 2215120102
BENTLY NEVADA 90339-01 9033901 PWA90339-01
BENTLY NEVADA Thrust Monitor 7200 Series TP-R Front Unit
BENTLY NEVADA 24145-01 ACCELEROMETER INTERFACE MODULE -18-24V-DC CONTROL B203592
Bently Nevada PWA100811-01 A/B 1771 Rack Board *GOOD PULL*
BENTLY NEVADA - MODEL 3120-300 - PROXIMITOR - 200 Mv - ***NEW***
A06B-0602-B032 DC SERVO MOTOR MODEL 20 GETTYS FANUC ID4476
FANUC A20B-0004-0780 USPP A20B00040780
Fanuc Servo Motor A60B-0314-B504 #7008 (0012666600001) Service Exchange only
Fanuc A06B-0223-B000 Sv Motor Alpha If 4/5000 Servo Motor
A06B-0143-B175 SERVO MOTOR A12/3K 64KABS STANDRAD BRAKE FANUC
A06B-0315-B232 MOTOR AC 10S ABS 2500P W/BRAKE FANUC
NEW FANUC A20B-8100-0149 A20B-8100-0149 / 03C PCB MASTER FS-210i
FANUC A660-4002-T930 NSPP A6604002T930
RECONDITIONED FANUC PCB BOARD FOR LCD TOUCH SCREEN ( A20B-8100-0400 )
RECONDITIONED FANUC SERVO AMPLIFIER ( A06B-6079-H204)