点击或拖拽改变大小

IModbus 属性

IModbus 类型公开以下成员。

属性
  名称说明
公共属性AddressStartWithZero
获取或设置起始的地址是否从0开始,默认为True
Gets or sets whether the starting address starts from 0. The default is True
公共属性BroadcastStation
获取或是设置当前广播模式对应的站号,广播模式意味着不接收设备方的数据返回操作,默认为 -1,表示不使用广播模式。
Gets or sets the station number corresponding to the current broadcast mode. Broadcast mode means that the data return operation of the device is not received. The default value is -1, indicating that broadcast mode is not used.
公共属性代码示例ByteTransform
当前的数据变换机制,当你需要从字节数据转换类型数据的时候需要。
The current data transformation mechanism is required when you need to convert type data from byte data.
(继承自 IReadWriteDevice。)
公共属性ConnectionId
当前连接的唯一ID号,默认为长度20的guid码加随机数组成,方便列表管理,也可以自己指定
The unique ID number of the current connection. The default is a 20-digit guid code plus a random number.
(继承自 IReadWriteNet。)
公共属性DataFormat
获取或设置数据解析的格式,可选ABCD, BADC,CDAB,DCBA格式,对int,uint,float,double,long,ulong类型有作用
Get or set the format of the data analysis, optional ABCD, BADC, CDAB, DCBA format, effective for int, uint, float, double, long, ulong type
公共属性EnableWriteMaskCode
获取或设置当前掩码写入的功能码是否激活状态,设置为 false 时,再执行写入位时,会通过读字,修改位,写字的方式来间接实现。
When the function code is set to false, and then the write bit is executed, it will be indirectly implemented by reading, modifying the bit, and writing the word.
公共属性IsStringReverse
字符串数据是否按照字来反转,默认为False
Whether the string data is reversed according to words. The default is False.
公共属性代码示例LogNet
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出
The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG
(继承自 IReadWriteNet。)
公共属性Station
获取或者重新修改服务器的默认站号信息,当然,你可以再读写的时候动态指定,例如地址 "s=2;100", 更详细的例子可以参考DEMO界面上的地址示例。
Get or re-modify the server's default station number information, of course, you can dynamically specify when reading and writing, such as the address "s=2; 100", a more detailed example can refer to the DEMO interface address example.
Top
参见