发布于 2007-01-10 00:10:40
0楼
从我的电磁流量计通讯说明书上看到,变送器有四种模式: 1、监视模式(Monitor-Mode);2、编程模式(Programming-Mode);3、错误消息(Error Messages);4、终端模式(Terminal-Mode)。
我只要读取仪表的数据是不是就在监视模式操作就行了。
In the Monitor-Mode the parameters can be viewed. The third column in the following tables (No. of Data Bytes) defines the number of data bytes which are outputted by the particular command.
A Monitor-Command is transmitted in the following format: SOH M A1 A0 K1 K0 CR LF
SOH Start of Header
M ASCII ´M´ for Monitor-Mode
A1 A0 Two character Instrument Address
K1 K0 Function Characters (see Table)
CR Carriage Return
LF Line Feed
The converter responds: SOH K1 K0 D7 ... D0 CR LF
SOH Start of Header
K1 K0 Function Characters (see Table)
D7...D0 Maximum eight data bytes (Number see Table)
CR Carriage Return
LF Line Feed
现在仪表的地址我可以在现场设置为0和1,累计流量的功能码为Z>,累计流量为7个字节。
大家就这个情况给我看看吧!
西门柔,你的问题解决了吗,是怎么解决的?
工控菜鸟!