FujiSPHNetWriteAsync 方法 (String, Byte) |
批量写入字节数组到PLC的地址里,地址支持M1.1000,M3.1000,M10.1000,返回是否写入成功。
Batch write byte array to PLC address, the address supports M1.1000, M3.1000, M10.1000,
and return whether the writing is successful.
命名空间:
HslCommunication.Profinet.Fuji
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public override Task<OperateResult> WriteAsync(
string address,
byte[] value
)
Public Overrides Function WriteAsync (
address As String,
value As Byte()
) As Task(Of OperateResult)
public:
virtual Task<OperateResult^>^ WriteAsync(
String^ address,
array<unsigned char>^ value
) override
abstract WriteAsync :
address : string *
value : byte[] -> Task<OperateResult>
override WriteAsync :
address : string *
value : byte[] -> Task<OperateResult>
参数
- address
- 类型:SystemString
PLC的地址,支持M1.1000,M3.1000,M10.1000 - value
- 类型:SystemByte
写入的原始字节数据
返回值
类型:
TaskOperateResult是否写入成功
实现
IReadWriteNetWriteAsync(String, Byte)参见