MemobusHelperWriteRandom 方法 |
随机写入扩展的保持寄存器的内容,也即写入不连续的地址的字数据,字节数组的长度必须为地址数组长度的两倍,才能正确写入。
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.Helper
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public static OperateResult WriteRandom(
IMemobus memobus,
ushort[] address,
byte[] value
)
Public Shared Function WriteRandom (
memobus As IMemobus,
address As UShort(),
value As Byte()
) As OperateResult
public:
static OperateResult^ WriteRandom(
IMemobus^ memobus,
array<unsigned short>^ address,
array<unsigned char>^ value
)
static member WriteRandom :
memobus : IMemobus *
address : uint16[] *
value : byte[] -> OperateResult
参数
- memobus
- 类型:HslCommunication.Profinet.YASKAWA.HelperIMemobus
PLC通信对象 - address
- 类型:SystemUInt16
地址信息 - value
- 类型:SystemByte
数据信息
返回值
类型:
OperateResult是否写入成功的结果对象
备注
注意,本方法只能针对扩展的保持寄存器进行读取
参见