MemobusHelperReadRandom 方法 (IMemobus, String) |
随机读取扩展的保持寄存器的内容,也即读取不连续地址的字数据,可以指定多个地址,然后一次性读取所有的数据,然后解析出实际的数据
Randomly read the contents of the extended hold register, that is, read word data of discontinuous addresses,
you can specify multiple addresses, then read all the data at once, and then parse out the actual data
命名空间:
HslCommunication.Profinet.YASKAWA.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult<byte[]> ReadRandom(
IMemobus memobus,
string[] address
)
Public Shared Function ReadRandom (
memobus As IMemobus,
address As String()
) As OperateResult(Of Byte())
public:
static OperateResult<array<unsigned char>^>^ ReadRandom(
IMemobus^ memobus,
array<String^>^ address
)
static member ReadRandom :
memobus : IMemobus *
address : string[] -> OperateResult<byte[]>
参数
- memobus
- 类型:HslCommunication.Profinet.YASKAWA.HelperIMemobus
PLC通信对象 - address
- 类型:SystemString
地址信息
返回值
类型:
OperateResultByte读取的原始字节结果信息
备注
本方法的地址支持 保持寄存器 M100, 数据寄存器 G100, 输入寄存器 I100, 输出寄存器 O100, 系统寄存器 S100,
参见