IModbusTranslateToModbusAddress 方法 |
将当前的地址信息转换成Modbus格式的地址,如果转换失败,返回失败的消息。默认不进行任何的转换。
Convert the current address information into a Modbus format address. If the conversion fails, a failure message will be returned. No conversion is performed by default.
命名空间:
HslCommunication.ModBus
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 OperateResult<string> TranslateToModbusAddress(
string address,
byte modbusCode
)
Function TranslateToModbusAddress (
address As String,
modbusCode As Byte
) As OperateResult(Of String)
OperateResult<String^>^ TranslateToModbusAddress(
String^ address,
unsigned char modbusCode
)
abstract TranslateToModbusAddress :
address : string *
modbusCode : byte -> OperateResult<string>
参数
- address
- 类型:SystemString
传入的地址 - modbusCode
- 类型:SystemByte
Modbus的功能码
返回值
类型:
OperateResultString转换之后Modbus的地址
参见