GeSRTPNetWriteAsync 方法 (String, Byte) |
向PLC中写入byte数据,返回是否写入成功
Write byte data to PLC and return whether the writing is successful
命名空间:
HslCommunication.Profinet.GE
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> WriteAsync(
string address,
byte value
)
Public Function WriteAsync (
address As String,
value As Byte
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ WriteAsync(
String^ address,
unsigned char value
)
member WriteAsync :
address : string *
value : byte -> Task<OperateResult>
参数
- address
- 类型:SystemString
起始地址,格式为I100,M100,Q100,DB20.100 -> Starting address, formatted as I100,mM100,Q100,DB20.100 - value
- 类型:SystemByte
byte数据 -> Byte data
返回值
类型:
TaskOperateResult是否写入成功的结果对象 -> Whether to write a successful result object
参见