LSCnetOverTcpWriteAsync 方法 (String, Byte) |
将原始数据写入到PLC的指定的地址里,地址示例:MB100, MW100, MD100, 如果输入了M100等同于MB100
Write the original data to the designated address of the PLC.
Examples of addresses: MB100, MW100, MD100, if input M100 is equivalent to MB100
命名空间:
HslCommunication.Profinet.LSIS
程序集:
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的地址信息,例如 M100, MB100, MW100, MD100 - value
- 类型:SystemByte
等待写入的原始数据内容
返回值
类型:
TaskOperateResult是否写入成功
实现
IReadWriteNetWriteAsync(String, Byte)IReadWriteNetWriteAsync(String, Byte)参见