ModbusAddress 类 |
命名空间: HslCommunication.Core.Address
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 |
名称 | 说明 | |
---|---|---|
AddressStart |
数字的起始地址,也就是偏移地址 (继承自 DeviceAddressDataBase。)The starting address of the number, which is the offset address | |
Function |
获取或设置当前地址携带的功能码 Get or set the function code carried by the current address | |
Length |
读取的数据长度,单位是字节还是字取决于设备方 (继承自 DeviceAddressDataBase。)The length of the data read, the unit is byte or word depends on the device side | |
Station |
获取或设置当前地址的站号信息 Get or set the station number information of the current address | |
WriteFunction |
获取或设置当前地址在写入的情况下使用的功能码,用来扩展一些非常特殊的自定义服务器 |
名称 | 说明 | |
---|---|---|
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 | Determines whether the specified object is equal to the current object. (继承自 Object。) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (继承自 Object。) | |
GetHashCode | Serves as the default hash function. (继承自 Object。) | |
GetType | Gets the Type of the current instance. (继承自 Object。) | |
MemberwiseClone | Creates a shallow copy of the current Object. (继承自 Object。) | |
Parse |
从指定的地址信息解析成真正的设备地址信息 (重写 DeviceAddressDataBaseParse(String, UInt16).)Parsing from the specified address information into real device address information | |
ToString | Returns a string that represents the current object. (重写 DeviceAddressDataBaseToString.) |
名称 | 说明 | |
---|---|---|
ToJsonString |
获取当前对象的JSON格式表示的字符串。 (由 HslExtension 定义。)Gets the string represented by the JSON format of the current object. |