SiemensS7NetWriteDateAsync 方法 |
向PLC中写入日期格式的数据,日期格式里只有年,月,日
Write data in date format to PLC, only year, month, day in date format
命名空间:
HslCommunication.Profinet.Siemens
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public Task<OperateResult> WriteDateAsync(
string address,
DateTime dateTime
)
Public Function WriteDateAsync (
address As String,
dateTime As DateTime
) As Task(Of OperateResult)
public:
Task<OperateResult^>^ WriteDateAsync(
String^ address,
DateTime dateTime
)
member WriteDateAsync :
address : string *
dateTime : DateTime -> Task<OperateResult>
参数
- address
- 类型:SystemString
等待写入的PLC地址 - dateTime
- 类型:SystemDateTime
等待写入的日期
返回值
类型:
TaskOperateResult是否写入成功
参见