SiemensPPIOverTcpWriteAsync 方法 (String, Byte) |
向西门子的PLC中写入byte数据,地址为"M100","AI100","I0","Q0","V100","S100"等,详细请参照API文档
Write byte data from Siemens PLC with addresses "M100", "AI100", "I0", "Q0", "V100", "S100", etc. For details, please refer to the API documentation
命名空间:
HslCommunication.Profinet.Siemens
程序集:
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
西门子的地址数据信息 - value
- 类型:SystemByte
数据长度
返回值
类型:
TaskOperateResult带返回结果的结果对象
参见