485輸入/輸出協議規範
通(tōng)訊方式 | RS485 |
---|---|
波特率 | 9600bps |
起始碼 | 1位起始位 |
數(shù)據位 | 8位數(shù)據位 |
停止位 | 1位停止位 |
校(xiào)驗位 | 無 |
通(tōng)訊方式 | 半雙工,采用一發一回方式 |
232協議組成:
标識符(1)+動作(zuò)類型(1)+延遲動作(zuò)時(shí)間(jiān)(2)+ 運行(xíng)時(shí)間(jiān)(2)+正樓層(10)+負樓層(1)
HD | 01 | 3600 | 00 00 00 00 00 | 00 | 00 |
---|---|---|---|---|---|
标識符 | 動作(zuò)類型 | 動作(zuò)時(shí)間(jiān) | 動作(zuò)樓層 | 延時(shí)時(shí)間(jiān) | 預留 |
參數(shù) | 解釋說明(míng) |
---|---|
标識符 | 區(qū)别項目或設備類型,默認HD |
動作(zuò)類型 | 01代表開(kāi)放亮開(kāi)關權限供手動選按、02代表自動亮燈 |
動作(zuò)時(shí)間(jiān) | 代表開(kāi)觸發保持時(shí)間(jiān)。0001代表保持1秒(miǎo), 3600代表保持1小(xiǎo)時(shí) |
動作(zuò)樓層 | 共10位數(shù),共80層。第一位0代表1~8層;第二位0代表9~16層;第九位0代表64~72層;第十位0代表負1~負8層;9代表全部動作(zuò) |
延時(shí)時(shí)間(jiān) | 00 代表無延時(shí),01代表延時(shí)1秒(miǎo) |
示例1 | HD 02 0001 10 00 00 00 00 00 00 代表自動點亮1層燈 |
示例2 | HD 02 0001 80 00 00 00 00 00 00 代表自動點亮8層燈 |
示例3 | HD 02 0001 01 00 00 00 00 00 00 代表自動點亮9層燈 |
示例4 | HD 01 0001 01 10 10 00 00 00 00 代表開(kāi)放9層、17、33層的燈 |
示例5 | HD 02 0001 99 99 99 99 99 00 00 代表自動點亮負8~72層燈 |
示例6 | HD 02 0001 99 99 99 99 00 00 00 代表自動點亮1~72層燈 |
232協議轉485協議規則
命令 | 485協議 | RS485協議 |
---|---|---|
1層自動保持1秒(miǎo) | HD 02 0001 1 0 00 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 01 00 00 00 00 00 00 00 00 00 00 AD 0D |
2層自動保持1秒(miǎo) | HD 02 0001 2 0 00 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 AE 0D |
3層自動保持1秒(miǎo) | HD 02 0001 3 0 00 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 04 00 00 00 00 00 00 00 00 00 00 A8 0D |
9層自動保持1秒(miǎo) | HD 02 0001 01 00 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 01 00 00 00 00 00 00 00 00 00 AD 0D |
10層自動保持1秒(miǎo) | HD 02 0001 02 00 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 02 00 00 00 00 00 00 00 00 00 AE 0D |
12層手選保持1秒(miǎo) | HD 02 0001 04 00 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 A7 0D |
17層手選保持1秒(miǎo) | HD 02 0001 00 1 0 00 00 00 00 00 |
7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 01 00 00 00 00 00 00 00 00 AE 0D |
全部樓層開(kāi)放 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 FF FF FF FF FF FF FF FF FF FF FF 50
開(kāi)放1、2、3、4、5層 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 02 1F 00 00 00 00 00 00 00 00 00 00 B3 0D
開(kāi)放1~17層 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 02 FF FF 01 00 00 00 00 00 00 00 00 AD 0D 開(kāi)放1~18層 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 02 FF FF 03 00 00 00 00 00 00 00 00 AF 0D 開(kāi)放1~79層 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 02 FF FF FF FF FF FF FF FF FF 7F FF D3 0D
開(kāi)放80層 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 02 00 00 00 00 00 00 00 00 00 80 00 2C 0D
開(kāi)放第 8層 第18層 第28層 第38層 第48層 第58層 第68層 第78層 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 02 80 00 02 08 20 80 00 02 08 20 00 AC 0D
直達1層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 01 00 00 00 00 00 00 00 00 00 00 AD 0D
直達2層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 02 00 00 00 00 00 00 00 00 00 00 AE 0D
直達3層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 04 00 00 00 00 00 00 00 00 00 00 A8 0D
直達4層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 A4 0D
直達5層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 10 00 00 00 00 00 00 00 00 00 00 BC 0D
直達6層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 20 00 00 00 00 00 00 00 00 00 00 8C 0D
直達7層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 40 00 00 00 00 00 00 00 00 00 00 EC 0D
直達8層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 2C 0D
直達9層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 01 00 00 00 00 00 00 00 00 00 AD 0D
直達10層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 02 00 00 00 00 00 00 00 00 00 AE 0D
直達11層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 04 00 00 00 00 00 00 00 00 00 A8 0D
手選12層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 08 00 00 00 00 00 00 00 00 00 A7 0D
手選13層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 10 00 00 00 00 00 00 00 00 00 BF 0D
手選14層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 20 00 00 00 00 00 00 00 00 00 8F 0D
手選15層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 40 00 00 00 00 00 00 00 00 00 EF 0D
手選16層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 80 00 00 00 00 00 00 00 00 00 2F 0D
手選17層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 01 00 00 00 00 00 00 00 00 AE 0D
手選18層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 02 00 00 00 00 00 00 00 00 AD 0D
手選19層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 04 00 00 00 00 00 00 00 00 AB 0D
手選20層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 08 00 00 00 00 00 00 00 00 A7 0D
手選21層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 10 00 00 00 00 00 00 00 00 BF 0D
手選22層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 20 00 00 00 00 00 00 00 00 8F 0D
手選23層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 40 00 00 00 00 00 00 00 00 EF 0D
手選24層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 80 00 00 00 00 00 00 00 00 2F 0D
手選25層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 AE 0D
直達79層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 00 00 00 00 00 00 00 00 40 00 EC 0D
手選79層(1s) 7E 19 00 01 01 0A CC 01 0F 01 00 00 00 01 00 00 00 00 00 00 00 00 00 40 00 EF 0D
直達80層(1s) 7E 19 00 01 01 0A CC 01 0F 02 00 00 00 01 00 00 00 00 00 00 00 00 00 80 00 2C 0D