public class DeviceAddressDataBase extends Object
| 构造器和说明 |
|---|
DeviceAddressDataBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getAddressStart()
获取数字的起始地址,也就是偏移地址
The starting address of the number, which is the offset address
|
int |
getLength()
获取取的数据长度,单位是字节还是字取决于设备方
The length of the data read, the unit is byte or word depends on the device side
|
void |
Parse(String address,
int length)
从指定的地址信息解析成真正的设备地址信息
Parsing from the specified address information into real device address information
|
void |
setAddressOffset(int offset)
设置起始地址的偏移地址信息,可以是正数,也可以是负数
Set the offset address information of the starting address, which can be positive or negative |
void |
setAddressStart(int addressStart)
设置数字的起始地址,也就是偏移地址
he starting address of the number, which is the offset address
|
void |
setLength(int length)
设置读取的数据长度,单位是字节还是字取决于设备方
The length of the data read, the unit is byte or word depends on the device side
|
String |
toString() |
public int getAddressStart()
public void setAddressStart(int addressStart)
addressStart - 值public void setAddressOffset(int offset)
offset - 偏移值public int getLength()
public void setLength(int length)
length - 长度值public void Parse(String address, int length)
address - 地址信息length - 数据长度Copyright © 2022. All rights reserved.