InovanceH5UTcpRead 方法 (String, UInt16) |
按字读取汇川PLC的数据信息,可以输入D0,R0 类型地址
Read Huichuan PLC's data information by word, you can enter D0, R0 type address
命名空间:
HslCommunication.Profinet.Inovance
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:10.0.0.0 (10.0.0.0)
语法public override OperateResult<byte[]> Read(
string address,
ushort length
)
Public Overrides Function Read (
address As String,
length As UShort
) As OperateResult(Of Byte())
public:
virtual OperateResult<array<unsigned char>^>^ Read(
String^ address,
unsigned short length
) override
abstract Read :
address : string *
length : uint16 -> OperateResult<byte[]>
override Read :
address : string *
length : uint16 -> OperateResult<byte[]>
参数
- address
- 类型:SystemString
PLC的真实的地址信息,可以输入D0,R0 类型地址 - length
- 类型:SystemUInt16
读取的数据的长度,按照字为单位
返回值
类型:
OperateResultByte包含是否成功的结果对象信息
实现
IReadWriteNetRead(String, UInt16)IReadWriteNetRead(String, UInt16)
参见