版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
版本說(shuō)明 一、簡(jiǎn) 二、說(shuō) 2、指令列 三、詳 、讀線圈寄存器狀態(tài)(讀繼電器狀態(tài))0x01指令 、寫(xiě)單個(gè)線圈寄存器(控制繼電器動(dòng)作)0x05指令 、讀保存寄存器0x03指令 、寫(xiě)單個(gè)保持寄存器0x06指令 、寫(xiě)多個(gè)保持寄存器0x10指令 四、CRC校 2018-03- 首次發(fā)布 器表結(jié)合參考《MODBUS協(xié)議中文版》即可。1波特率 數(shù)據(jù)位 停止位OUT輸出,驅(qū)-0.13232112位未定義,4 奇偶校驗(yàn): 817位未定100111223457898LED最80:0x03:11默認(rèn)1秒,最大255秒10低字節(jié)OUT端 0:OUT端子不與報(bào) OUT 控制碼01030600FA01950000E8 觸發(fā);此時(shí)讀0X0002寄存器就會(huì)有,如果LED設(shè)置為那么LED就會(huì)亮起;警,打開(kāi)溫度上限和濕度下限。所以必須溫16位數(shù),一位小數(shù),可以參考0X0000寄存器值讀1路OUT輸出的狀態(tài)發(fā)送碼:010100000001FD01指令0000FDCRC16返回碼:010101005101返回的OUT狀態(tài)。0代表關(guān)斷、151控制OUT動(dòng)作發(fā)送碼:01050000FF008C0500FFFF00:8C返回碼:01050000FF008C0500FFFF00:8C、讀保存寄存器0x03指令碼發(fā)送碼:0103000000018403000084返回碼:010302011BF9030128.3F9發(fā)送碼:01030000000305CB03000005返回碼:010306011A01BD0000E803011A01BD005D設(shè)置設(shè)備地址為2發(fā)送碼:0106010000020906010009返回碼:0106010000020906010009發(fā)送碼:000601000001482706010048發(fā)送碼:0110030000050A8009012CFFFFFFFF01900210030055*2=108009012CFFFFFFFF為012C30.002返回碼:0110030000050010030000時(shí),產(chǎn)生,并時(shí)關(guān)聯(lián)OUT端子導(dǎo)通。發(fā)送碼:0110030000050AE009012CFFFFFFFF01900110030055*2=10E009012CFFFFFFFF為01返回碼:0110030000050010030000constUCHARaucCRCHi[]=0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x00,0xC1,0x81,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x00,0xC1,0x81,0x40,0x01,0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x8B,0x8A,0x4A,0x4E,0x8E,0x8F,0x4F,0x8D,0x4D,0x4C,0x44,0x84,0x85,0x45,0x87,0x47,0
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 《沉箱預(yù)制施工方案》課件
- 小學(xué)五年級(jí)數(shù)學(xué)上期小數(shù)點(diǎn)乘除法計(jì)算練習(xí)題合集
- 七年級(jí)生物上冊(cè)第一單元生物和生物圈知識(shí)點(diǎn)總結(jié)(新版)新人教版
- 教師資格證考試普通話要求
- 《切事故都可以預(yù)防》課件
- 二年級(jí)上冊(cè)11 葡萄溝(教案)
- 瀝青砼攤鋪合同協(xié)議書(shū)
- 焊接培訓(xùn)資料:焊接應(yīng)力的消除
- 健康行業(yè)助理工作總結(jié)評(píng)述
- 電梯電梯銷售經(jīng)理銷售業(yè)績(jī)總結(jié)
- 幼兒園食堂食品安全主體責(zé)任風(fēng)險(xiǎn)管控清單(日管控)
- 九年級(jí)上冊(cè)第二單元民主與法治 單元作業(yè)設(shè)計(jì)
- 陜西華縣皮影戲調(diào)研報(bào)告
- 2016年食堂期末庫(kù)存
- 運(yùn)籌學(xué)課程設(shè)計(jì)報(bào)告
- (完整)雙溪課程評(píng)量表
- 人教版高中物理選擇性必修第二冊(cè)《法拉第電磁感應(yīng)定律》教案及教學(xué)反思
- 網(wǎng)絡(luò)安全培訓(xùn)-網(wǎng)絡(luò)安全培訓(xùn)課件
- GB/T 6913-2023鍋爐用水和冷卻水分析方法磷酸鹽的測(cè)定
- 項(xiàng)目部布置圖方案
- 《文明城市建設(shè)問(wèn)題研究開(kāi)題報(bào)告3000字》
評(píng)論
0/150
提交評(píng)論