FujiSPHNetRead 方法 (String, UInt16) |
批量读取PLC的地址数据,长度单位为字。地址支持M1.1000,M3.1000,M10.1000,返回读取的原始字节数组。
Read PLC address data in batches, the length unit is words. The address supports M1.1000, M3.1000, M10.1000,
and returns the original byte array read.
命名空间:
HslCommunication.Profinet.Fuji
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.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的地址,支持M1.1000,M3.1000,M10.1000 - length
- 类型:SystemUInt16
读取的长度信息,按照字为单位
返回值
类型:
OperateResultByte包含byte[]的原始字节数据内容
实现
IReadWriteNetRead(String, UInt16)参见