SiemensWebApiWriteAsync 方法 (String, Byte) |
将原始的字节数组信息写入到PLC的指定的数据标签里,写入方式为raw写入,是否写入成功取决于PLC的返回信息
Write the original byte array information to the designated data tag of the PLC.
The writing method is raw writing. Whether the writing is successful depends on the return information of the PLC.
命名空间:
HslCommunication.Profinet.Siemens
程序集:
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
标签的地址信息,例如 "全局DB".Static_21 - value
- 类型:SystemByte
原始的字节数据信息
返回值
类型:
TaskOperateResult是否成功写入PLC的结果对象
实现
IReadWriteNetWriteAsync(String, Byte)参见