读取台达PLC的原始字节变量,重写了读D地址时,跨区域读4096地址时,将会分割多次读取
命名空间:
HslCommunication.Profinet.Delta.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.3.1.0 (12.3.1.0)
语法public static OperateResult<byte[]> Read(
Func<string, ushort, OperateResult<byte[]>> readFunc,
string address,
ushort length
)
Public Shared Function Read (
readFunc As Func(Of String, UShort, OperateResult(Of Byte())),
address As String,
length As UShort
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ Read(
Func<String^, unsigned short, OperateResult<array<unsigned char>^>^>^ readFunc,
String^ address,
unsigned short length
)
static member Read :
readFunc : Func<string, uint16, OperateResult<byte[]>> *
address : string *
length : uint16 -> OperateResult<byte[]>
参数
- readFunc
- 类型:SystemFuncString, UInt16, OperateResultByte
底层基础的读取方法 - address
- 类型:SystemString
PLC的地址信息 - length
- 类型:SystemUInt16
读取的长度信息
返回值
类型:
OperateResultByte读取的结果
参见