高温计通用协议 Data format UPP(Universal Pyrometer Protocol)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/oWanMeiLuoMu/article/details/70254544

网上没有这个协议的中文,刚好用到了,也通讯成功了,把这个协议在这里写写。
这个pdf中有UPP的介绍。

Via interface and suitable communication software or via “Test” function of the InfraWin
software (section “pyrometer parameters”) commands can be exchanged directly with the
pyrometer.
The data exchange occurs in ASCII format with the following transmission parameters:
The data format is: 8 data bits, 1 stop bit, even parity (8,1,e)
The device responds with the entry of a command with: output (e.g. the measuring value) + CR
(Carriage Return, ASCII 13), with pure entry commands with “ok” + CR. With invalid commands
the instruments answers with „no“ + CR.
Every command starts with the 2-digit device address AA (e.g. “00”). This is followed by 2 small
command letters (e.g. “em” for level of emissivity H), finished with CR
This is followed, if necessary for that command, by the ASCII parameter “X”. If this parameter
“X” is omitted, then the device resets with the current parameter.
Example: Entry: “00em“ + CR!
The emissivity setting of the device with the address 00 is returned
Answer: “0970“ + CR! means emissivity = 0.970 or 97.0%

端口设置:8数据位,1停止位,偶校验,<8,1,e>,还要设置波特率
通讯格式:
AAemXXX+CR
AA表示设备地址,eg:00
em为指令
XXX为一个数
CR是回车
设要发送的指令为:00em010+CR
则16进制指令为:30 30 65 6D 30 31 30 0D

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页