InovanceHelperReadByte 方法 |
按照字节读取汇川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 OperateResult<byte> ReadByte(
IModbus modbus,
string address
)
Public Shared Function ReadByte (
modbus As IModbus,
address As String
) As OperateResult(Of Byte)
public:
static OperateResult<unsigned char>^ ReadByte(
IModbus^ modbus,
String^ address
)
static member ReadByte :
modbus : IModbus *
address : string -> OperateResult<byte>
参数
- modbus
- 类型:HslCommunication.ModBusIModbus
汇川的PLC对象 - address
- 类型:SystemString
地址信息
返回值
类型:
OperateResultByte读取的结果数据
参见