sihu国产精品永久免费_日韩午夜在线视频_久久99中文字幕伊人_古代男男嗯…啊h总攻

senator
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 194 點(diǎn)
下載積分: 614 分
在線時(shí)間: 38(小時(shí))
注冊(cè)時(shí)間: 2008-07-02
最后登錄: 2024-12-23
查看senator的 主題 / 回貼
樓主  發(fā)表于: 2011-07-12 09:47
描述:PLC程序
圖片:
描述:協(xié)議宏序列
圖片:
描述:協(xié)議宏詳細(xì)
圖片:
三菱變頻器 E540
現(xiàn)在通訊設(shè)置沒有問題(9600 E 2) 但是問題是 傳送的數(shù)據(jù)不連續(xù)(有時(shí)候會(huì)連續(xù)) 造成變頻器沒有響應(yīng)
用串口捕捉工具看了下模塊所發(fā)送的數(shù)據(jù) 如下 :
#       Time        Function                        Data ( Hex )    

1       [00000000]  IRP_MJ_CREATE                   Port Opened - AccessPort.exe
2       [00000000]  IOCTL_SERIAL_SET_BAUD_RATE      Baud Rate: 9600

8       [00002544]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
9       [00002694]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
10      [00002784]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
11      [00002841]  IRP_MJ_READ                     Length: 0006, Data: 05 30 31 46 41 31
12      [00002842]  IRP_MJ_READ                     Length: 0004, Data: 30 32 37 42
13      [00002901]  IRP_MJ_READ                     Length: 0004, Data: 05 30 31 46
14      [00002902]  IRP_MJ_READ                     Length: 0006, Data: 41 31 30 32 37 42
15      [00002949]  IRP_MJ_READ                     Length: 0005, Data: 05 30 31 46 41
16      [00002950]  IRP_MJ_READ                     Length: 0005, Data: 31 30 32 37 42
17      [00003001]  IRP_MJ_READ                     Length: 0008, Data: 05 30 31 46 41 31 30 32
18      [00003002]  IRP_MJ_READ                     Length: 0002, Data: 37 42
19      [00003047]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
20      [00003094]  IRP_MJ_READ                     Length: 0001, Data: 05
21      [00003095]  IRP_MJ_READ                     Length: 0009, Data: 30 31 46 41 31 30 32 37 42

Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42  這樣的數(shù)據(jù)時(shí)正確的 變頻器能有響應(yīng) 也就是10位的數(shù)據(jù)要一起發(fā)送才可以的

現(xiàn)在的問題就是有時(shí)候是連續(xù)的 有時(shí)候不是 不知問題所在
PLC程序只有兩段 一段是數(shù)據(jù)傳送到數(shù)據(jù)區(qū) 第二段入附圖所示
不知是不是每一次通訊完成后都要清空一下SCU呢???(注 對(duì)協(xié)議宏和該模塊還不是很了解 所以有此想法 )
附圖 PLC程序 和 協(xié)議宏

期待高人出現(xiàn)
senator
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 194 點(diǎn)
下載積分: 614 分
在線時(shí)間: 38(小時(shí))
注冊(cè)時(shí)間: 2008-07-02
最后登錄: 2024-12-23
查看senator的 主題 / 回貼
1樓  發(fā)表于: 2011-07-12 09:49
給技術(shù)支持打電話 用了下他們推薦的串口調(diào)試工具 結(jié)果發(fā)現(xiàn)是這樣的
\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B\ENQ01FA1027B05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42 05 30 31 46 41 31 30 32 37 42  
沒有時(shí)間 和每一次的數(shù)據(jù)長(zhǎng)度
senator
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 194 點(diǎn)
下載積分: 614 分
在線時(shí)間: 38(小時(shí))
注冊(cè)時(shí)間: 2008-07-02
最后登錄: 2024-12-23
查看senator的 主題 / 回貼
2樓  發(fā)表于: 2011-07-12 09:51
8       [00002544]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
9       [00002694]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
10      [00002784]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
11      [00002841]  IRP_MJ_READ                     Length: 0006, Data: 05 30 31 46 41 31
12      [00002842]  IRP_MJ_READ                     Length: 0004, Data: 30 32 37 42
13      [00002901]  IRP_MJ_READ                     Length: 0004, Data: 05 30 31 46
14      [00002902]  IRP_MJ_READ                     Length: 0006, Data: 41 31 30 32 37 42
15      [00002949]  IRP_MJ_READ                     Length: 0005, Data: 05 30 31 46 41
16      [00002950]  IRP_MJ_READ                     Length: 0005, Data: 31 30 32 37 42
17      [00003001]  IRP_MJ_READ                     Length: 0008, Data: 05 30 31 46 41 31 30 32
18      [00003002]  IRP_MJ_READ                     Length: 0002, Data: 37 42
19      [00003047]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
20      [00003094]  IRP_MJ_READ                     Length: 0001, Data: 05
21      [00003095]  IRP_MJ_READ                     Length: 0009, Data: 30 31 46 41 31 30 32 37 42
22      [00003139]  IRP_MJ_READ                     Length: 0009, Data: 05 30 31 46 41 31 30 32 37
23      [00003140]  IRP_MJ_READ                     Length: 0001, Data: 42
24      [00003183]  IRP_MJ_READ                     Length: 0009, Data: 05 30 31 46 41 31 30 32 37
25      [00003184]  IRP_MJ_READ                     Length: 0001, Data: 42
26      [00003225]  IRP_MJ_READ                     Length: 0006, Data: 05 30 31 46 41 31
27      [00003226]  IRP_MJ_READ                     Length: 0004, Data: 30 32 37 42
28      [00003265]  IRP_MJ_READ                     Length: 0002, Data: 05 30
29      [00003266]  IRP_MJ_READ                     Length: 0008, Data: 31 46 41 31 30 32 37 42
30      [00003306]  IRP_MJ_READ                     Length: 0009, Data: 05 30 31 46 41 31 30 32 37
31      [00003307]  IRP_MJ_READ                     Length: 0001, Data: 42
32      [00003344]  IRP_MJ_READ                     Length: 0004, Data: 05 30 31 46
33      [00003345]  IRP_MJ_READ                     Length: 0006, Data: 41 31 30 32 37 42
34      [00003385]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
35      [00003454]  IRP_MJ_READ                     Length: 0005, Data: 05 30 31 46 41
36      [00003455]  IRP_MJ_READ                     Length: 0005, Data: 31 30 32 37 42
37      [00003805]  IRP_MJ_READ                     Length: 0003, Data: 05 30 31
38      [00003806]  IRP_MJ_READ                     Length: 0007, Data: 46 41 31 30 32 37 42
39      [00003886]  IRP_MJ_READ                     Length: 0005, Data: 05 30 31 46 41
40      [00003887]  IRP_MJ_READ                     Length: 0005, Data: 31 30 32 37 42
41      [00003936]  IRP_MJ_READ                     Length: 0008, Data: 05 30 31 46 41 31 30 32
42      [00003937]  IRP_MJ_READ                     Length: 0002, Data: 37 42
43      [00003984]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
44      [00004032]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
45      [00004076]  IRP_MJ_READ                     Length: 0009, Data: 05 30 31 46 41 31 30 32 37
46      [00004077]  IRP_MJ_READ                     Length: 0001, Data: 42
47      [00004379]  IRP_MJ_READ                     Length: 0008, Data: 05 30 31 46 41 31 30 32
48      [00004380]  IRP_MJ_READ                     Length: 0002, Data: 37 42
49      [00005067]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42
50      [00005744]  IRP_MJ_READ                     Length: 0005, Data: 05 30 31 46 41
51      [00005745]  IRP_MJ_READ                     Length: 0005, Data: 31 30 32 37 42
52      [00006516]  IRP_MJ_READ                     Length: 0008, Data: 05 30 31 46 41 31 30 32
53      [00006518]  IRP_MJ_READ                     Length: 0002, Data: 37 42
54      [00006595]  IRP_MJ_READ                     Length: 0010, Data: 05 30 31 46 41 31 30 32 37 42

多次試驗(yàn)后的數(shù)據(jù)
還是有時(shí)連續(xù)有時(shí)不連續(xù)
senator
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 194 點(diǎn)
下載積分: 614 分
在線時(shí)間: 38(小時(shí))
注冊(cè)時(shí)間: 2008-07-02
最后登錄: 2024-12-23
查看senator的 主題 / 回貼
3樓  發(fā)表于: 2011-07-13 15:09
用串口調(diào)試工具發(fā)送同樣的數(shù)據(jù) 只要是連續(xù)的10位 都好使 即使在變頻器運(yùn)行的時(shí)候
PR77=2的時(shí)候 變頻器就可以接受不連續(xù)的數(shù)據(jù) 是這樣的么 ???
senator
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 194 點(diǎn)
下載積分: 614 分
在線時(shí)間: 38(小時(shí))
注冊(cè)時(shí)間: 2008-07-02
最后登錄: 2024-12-23
查看senator的 主題 / 回貼
4樓  發(fā)表于: 2011-07-14 09:14
現(xiàn)在的問題是 怎樣能讓SCU發(fā)送的數(shù)據(jù)連續(xù) 也就是每次的數(shù)據(jù)長(zhǎng)度變成10
senator
級(jí)別: 探索解密
精華主題: 0
發(fā)帖數(shù)量: 78 個(gè)
工控威望: 194 點(diǎn)
下載積分: 614 分
在線時(shí)間: 38(小時(shí))
注冊(cè)時(shí)間: 2008-07-02
最后登錄: 2024-12-23
查看senator的 主題 / 回貼
5樓  發(fā)表于: 2011-07-15 08:35
引用
引用第7樓hlq_0815于2011-07-14 09:31發(fā)表的 SCU21 232串口和變頻器通訊 :
按你貼出的數(shù)據(jù)分析:發(fā)送是連續(xù)的,至少變頻器認(rèn)為是連續(xù)的。只是你的協(xié)議還有點(diǎn)問題:通信等待時(shí)間的數(shù)據(jù)沒有


你錯(cuò)了  我的發(fā)送的10個(gè)數(shù)據(jù)要連續(xù)發(fā)送的  現(xiàn)在并沒有實(shí)現(xiàn)(變頻器要是認(rèn)為是連續(xù)的話估計(jì)就有反應(yīng)了) 數(shù)據(jù)長(zhǎng)度有的還不是10  正因?yàn)槊恳淮伟l(fā)送的數(shù)據(jù)長(zhǎng)度不是10 所以變頻器沒有反應(yīng) 用串口調(diào)試工具發(fā)送連續(xù)的同樣的10個(gè)數(shù)據(jù) 變頻器就有反應(yīng) 還有 關(guān)于沒有CR/LF 在參數(shù)里面是可以設(shè)置的  關(guān)于通訊時(shí)間 通訊數(shù)據(jù)是可以不要求設(shè)置的 變頻器里面設(shè)置的是9999