MemobusTcpNetWriteRandomAsync 方法 |
随机写入扩展的保持寄存器的内容,也即写入不连续的地址的字数据,字节数组的长度必须为地址数组长度的两倍,才能正确写入。
Write the contents of the extended hold registers randomly, that is, write word data for discontinuous addresses,
and the byte array must be twice the length of the address array to be written correctly.
命名空间:
HslCommunication.Profinet.YASKAWA
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> WriteRandomAsync(
ushort[] address,
byte[] value
)
Public Function WriteRandomAsync (
address As UShort(),
value As Byte()
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ WriteRandomAsync(
array<unsigned short>^ address,
array<unsigned char>^ value
)
member WriteRandomAsync :
address : uint16[] *
value : byte[] -> Task<OperateResult>
参数
- address
- 类型:SystemUInt16
地址信息 - value
- 类型:SystemByte
数据信息
返回值
类型:
TaskOperateResult是否写入成功的结果对象
备注
注意,本方法只能针对扩展的保持寄存器进行读取
参见