InovanceHelperReadByteAsync 方法 |
按照字节读取汇川M地址的数据,地址示例: MB100,MB101,需要注意的是,MB100 及 MB101 的地址是 MW50 的数据。
Read the data of Inovance M address according to the byte, address example: MB100, MB101, it should be noted that the addresses of MB100 and MB101 are the data of MW50.
命名空间:
HslCommunication.Profinet.Inovance
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static Task<OperateResult<byte>> ReadByteAsync(
IModbus modbus,
string address
)
Public Shared Function ReadByteAsync (
modbus As IModbus,
address As String
) As Task(Of OperateResult(Of Byte))
public:
static Task<OperateResult<unsigned char>^>^ ReadByteAsync(
IModbus^ modbus,
String^ address
)
static member ReadByteAsync :
modbus : IModbus *
address : string -> Task<OperateResult<byte>>
参数
- modbus
- 类型:HslCommunication.ModBusIModbus
汇川的PLC对象 - address
- 类型:SystemString
地址信息
返回值
类型:
TaskOperateResultByte读取的结果数据
参见