关于BW500通讯的问题“写参数和读参数”的格式 通讯用MODBUS RTU

已锁定

莫脉

  • 帖子

    46
  • 精华

    0
  • 被关注

    0

论坛等级:游士

注册时间:2007-04-19

普通 普通 如何晋级?

关于BW500通讯的问题“写参数和读参数”的格式 通讯用MODBUS RTU

815

0

2008-03-11 11:21:42

从手册上提供的说明可以得到部分参说的寄存器地址,但是很有限,不能够满足需求,现在手册上有一些不明白的地方如下:
Parameter 40,090 1 0-999 r/w
see page 85
Primary Index 40,091 1 0 - 9 r/w
Secondary Index 40,092 1 0 - 9 r/w
Format Word 40,093 1 bit mapped r/w
Read Value (word 1) 40,094 2 32 bits r
Write Value (word 1) 40,096 2 32 bits r/w
以上几个参数有什么用,看的时候一知半解,是不是可以用他们去间接的读或写BW500其他的一些参数。后面还有Format Word的具体格式,该字是不是一个控制字,控制40094里面的值的格式?
Reading Parameters
To read parameters through Modbus follow these steps:
1. Send the parameter, its primary index, and its secondary index (usually 0) and
format to registers 40,090, to 40,093.
2. Wait until you can read the above values from the registers (40,090 to 40,093).
3. Read the value from registers 40,094 and 40,095.
Writing Parameters
To set parameters through Modbus follow these steps:
1. Send the parameter, its primary index, and its secondary index (usually 0) to
registers 40,090, 40,091, and 40,092.
2. Write the value to registers 40,096 and 40,097
3. Write the desired format word to register 40.093 to enable the BW 500 to interpret
the value correctly.是什么意思?
The value sent to the BW 500 is 0001001000000000 binary or 4608 decimal. The value
4608 is sent as an integer to register 40,093 to format the output words 40,094 and 40,095
accordingly.
If the numeric data type is set for integer and the value contains decimal places they are
ignored. In this situation use the decimal offset to ensure that you have an integer value
and then write your code to recognize and handle the decimal offset. Bits 9 to 11 indicate
the number of place by which the decimal is to be shifted. Bit 12 indicates the direction by
which the decimal point is shifted, left or right. For example, if the decimal offset (value of
bits 9 to 11) is ‘2’ and the shift (value of bit 12 is ‘0’), then the decimal point is shifted two
places to the right.
怎么解释?
望高手指教!!!!急盼
关于BW500通讯的问题“写参数和读参数”的格式 通讯用MODBUS RTU 已锁定
编辑推荐: 关闭

请填写推广理由:

本版热门话题

过程仪表

共有3137条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。