SiemensS7NetWriteAsync 方法 (String, DateTime) |
向PLC中写入时间格式的数据
Writes data in time format to the PLC
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> WriteAsync(
string address,
DateTime dateTime
)
Public Function WriteAsync (
address As String,
dateTime As DateTime
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ WriteAsync(
String^ address,
DateTime dateTime
)
member WriteAsync :
address : string *
dateTime : DateTime -> Task<OperateResult>
参数
- address
- 类型:SystemString
地址 - dateTime
- 类型:SystemDateTime
时间
返回值
类型:
TaskOperateResult是否写入成功
参见