- 1、本文档共3页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
RS232格式
322 protocol of serial interface
Baudrate : 9600
Parity: none
Data bits : 8
Stop bits : 1
Command string has 8 characters.
For example , if you want send “A” command, it should be
02 41 00 00 00 00 00 03
first character is always 02 and last character is 03, second character is the command character
The command of Digital Output is list below:
RS232 command Function Remarks K(ASC 4BH) Ask for model No. Return 4 bytes M(ASC 4DH) MAX/MIN button N(ASC 4EH) Exit MAX/MIN mode C(ASC 43H) dBA/dBC button A(ASC 41H) Send encoded data Return encoded 15 byte a(ASC 61H) Send edcoded data continusly Return encoded 15 byte c(ASC 63H) Stop sending encoded data X(ASC 58H) Response from PC when receive data ?Command K:
Return 4 bytes. For example, when sends command K to meter, it will return 3,0,6, ASCII(13) .
?Command M:
Equivalent to one pushing on the MAX/MIN button and no message is returned.
?Command N:
Equivalent to one pushing and hold the MAX/MIN button for two seconds to exit MAX/MIN mode.
?Command C:
Equivalent to one pushing on the °C/°F button and no message is returned.
?Command A:
1nd BYTE:
The first byte is the start byte , it value is 2.
2nd BYTE:
bit7 bit6 bit5 Bit4 bit3 Bit2 Bit1 bit0 1 Over Under Low Bat Fast/Slow A/C Min_Max_flag Auto Power Off bit 0: 1→Auto Power Off Enabled 0→Disable auto power off
bit 1: 1→in MAX/MIN mode , 0→not in MAX/MIN mode
bit2: 1-A weighting , 0-B weighting
bit3: 1-Fast sampling , 0-Slow sampling
bit4: 1→LOW BATTERY , 0→BATTERY NORMAL
bit5: 1→Under ,
bit6: 1→Over
bit7: aloways 1
3th BYTE:
Bit7 Bit6 Bit5 Bit4 bit3 bit2 Bit1 bit0 1 Memroy Full REC MAXMIN RANGE bit0 bit1:
00→, 30~80
01→ 50~100
10→ 80 ~ 130
11→ Auto
bit2 bit3:
00→not in MAX/MIN mode
01→Display Maximum Reading
10→Display Minimum Reading
11→Display Real Time Reading And Calculating MAX/MIN Value.
bit4: unused
bit 5: 1→recording mode, 0→not
文档评论(0)