点击或拖拽改变大小

ModbusAddress 类

Modbus协议地址格式,可以携带站号,功能码,地址信息
Modbus protocol address format, can carry station number, function code, address information
继承层次
SystemObject
  HslCommunication.Core.AddressDeviceAddressDataBase
    HslCommunication.Core.AddressModbusAddress

命名空间:  HslCommunication.Core.Address
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:12.0.0.0 (12.0.0.0)
语法
public class ModbusAddress : DeviceAddressDataBase

ModbusAddress 类型公开以下成员。

构造函数
  名称说明
公共方法ModbusAddress
实例化一个默认的对象
Instantiate a default object
公共方法ModbusAddress(String)
实例化一个对象,使用指定的地址初始化
Instantiate an object, initialize with the specified address
公共方法ModbusAddress(String, Byte)
实例化一个对象,使用指定的地址及功能码初始化
Instantiate an object and initialize it with the specified address and function code
公共方法ModbusAddress(String, Byte, Byte)
实例化一个对象,使用指定的地址,站号,功能码来初始化
Instantiate an object, use the specified address, station number, function code to initialize
Top
属性
  名称说明
公共属性AddressStart
数字的起始地址,也就是偏移地址
The starting address of the number, which is the offset address
(继承自 DeviceAddressDataBase。)
公共属性Function
获取或设置当前地址携带的功能码
Get or set the function code carried by the current address
公共属性Length
读取的数据长度,单位是字节还是字取决于设备方
The length of the data read, the unit is byte or word depends on the device side
(继承自 DeviceAddressDataBase。)
公共属性Station
获取或设置当前地址的站号信息
Get or set the station number information of the current address
公共属性WriteFunction
获取或设置当前地址在写入的情况下使用的功能码,用来扩展一些非常特殊的自定义服务器
Top
方法
  名称说明
公共方法AddressAdd
地址偏移1,返回一个新的地址对象
The address is offset by 1 and a new address object is returned
公共方法AddressAdd(Int32)
地址偏移指定的位置,返回一个新的地址对象
The address is offset by the specified position and a new address object is returned
公共方法Equals (继承自 Object。)
受保护的方法Finalize (继承自 Object。)
公共方法GetHashCode (继承自 Object。)
公共方法GetType (继承自 Object。)
受保护的方法MemberwiseClone (继承自 Object。)
公共方法Parse
从指定的地址信息解析成真正的设备地址信息
Parsing from the specified address information into real device address information
(重写 DeviceAddressDataBaseParse(String, UInt16).)
公共方法ToString (重写 DeviceAddressDataBaseToString.)
Top
扩展方法
  名称说明
公共扩展器方法ToJsonString
获取当前对象的JSON格式表示的字符串。
Gets the string represented by the JSON format of the current object.
(由 HslExtension 定义。)
Top
参见